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

k.moriwaki [E-MAIL ADDRESS DELETED]
2008年 3月 15日 (土) 17:24:38 JST


森脇と申します。

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']}" />

request scopeの内容は以下の通りです。
action = org.seasar.cubby.examples.other.web.components.MayaaComponentsAction$$EnhancedByS2AOP$$[E-MAIL ADDRESS DELETED]
validation = org.seasar.cubby.examples.other.web.components.MayaaComponentsAction$[E-MAIL ADDRESS DELETED]
errors = [E-MAIL ADDRESS DELETED]
flash = {}
colors = [[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED]]
hobbies = [[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED]]
formDto = [E-MAIL ADDRESS DELETED]
action = org.seasar.cubby.examples.other.web.components.MayaaComponentsAction$$EnhancedByS2AOP$$[E-MAIL ADDRESS DELETED]
validation = org.seasar.cubby.examples.other.web.components.MayaaComponentsAction$[E-MAIL ADDRESS DELETED]
errors = [E-MAIL ADDRESS DELETED]
flash = {}
colors = [[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED]]
hobbies = [[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED],
[E-MAIL ADDRESS DELETED]]
formDto = [E-MAIL ADDRESS DELETED]
javax.servlet.forward.request_uri = /cubby-examples-1.0.1/mayaa/components
javax.servlet.forward.context_path = /cubby-examples-1.0.1
javax.servlet.forward.servlet_path = /mayaa/components
org.seasar.framework.container.hotdeploy.HotdeployFilter =
[E-MAIL ADDRESS DELETED]
components_formDto =
[E-MAIL ADDRESS DELETED]
errors = [E-MAIL ADDRESS DELETED]
components_mayaaComponentsAction =
org.seasar.cubby.examples.other.web.components.MayaaComponentsAction$$EnhancedByS2AOP$$[E-MAIL ADDRESS DELETED]
__currentPage__ = /java.lang.Throwable.mayaa([E-MAIL ADDRESS DELETED])
params = {}
__currentComponent__ = /java.lang.Throwable.mayaa([E-MAIL ADDRESS DELETED])
actionContextImpl = [E-MAIL ADDRESS DELETED]
__currentProcessor__ =
[E-MAIL ADDRESS DELETED]


cubby-user メーリングリストの案内