[CUBBY-112] Mayaaとの連携時にリクエストスコープに存在するmessages、contextPathが使用できない Created: 2008-03-16  Updated: 2008-04-16  Resolved: 2008-03-16

Status: Closed
Project: Cubby
Component/s: None
Affects Version/s: 1.0.1
Fix Version/s: 1.0.2, 1.1.0-rc1

Type: Bug Priority: Major
Reporter: agata Assignee: agata
Resolution: Fixed Votes: 0
Labels: None


 Description   

[cubby-user:33] Mayaaとの連携について

cubby-examplesのMayaaの連携でmessages.propertiesよりメッセージを取得、
表示しようとしたところ、Mayaaのエラー画面になり以下のエラーメッセージが表示されました。

TypeError: Cannot read property "msg.sample1" from undefined in
script=messages['msg.sample1']

追記したのは以下の二カ所なのですが、他に設定が必要なのでしょうか?

  • components.html
    <span id="test">test</span>
  • components.mayaa
    <m:write m:id="test" value="${messages['msg.sample1']}" />


 Comments   
Comment by agata [ 2008-03-16 ]

r874で1.0.xにマージしました。

Comment by agata [ 2008-03-16 ]

r873で対応。1.0.xにも反映、確認待ち。

Comment by agata [ 2008-03-16 ]

CubbyHttpServletRequest#getAttributeNamesにmessagesとcontextPathが含まれていないのが原因のようです。

Generated at Fri Mar 29 18:46:43 JST 2024 using Jira 9.13.0#9130001-sha1:94297e63fec900085df7b42441d17146fe025bb5.