You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Rottstock, Sven" <Sv...@sungard.de> on 2008/03/04 15:53:41 UTC
[Trinidad] XmlMenuModel + launchListener
Hi,
i'm unable to use the launchListener attribute in the XmlMenuModel
because i don't know how i could define it in my page.
I've got the following xml menu declaration:
<menu xmlns="http://myfaces.apache.org/trinidad/menu"
resourceBundle="MyMessages" var="msgBundle">
<itemNode id="userProfile" label="#{msgBundle['userProfile']}"
action="dialog:userProfile"
useWindow="true" windowWidth="780" windowHeight="400"
launchListener="#{portalHeader.launchUserProfileDialog}"/>
</itemNode>
</menu>
And here is my code snippet that should use the xml menu:
<tr:navigationPane hint="bar" id="mainNavBar"
value="#{xmlMenuModel}" var="menuItem">
<f:facet name="nodeStamp">
<tr:commandNavigationItem text="#{menuItem.label}"
action="#{menuItem.doAction}"
rendered="#{menuItem.rendered}"
disabled="#{menuItem.disabled}"
useWindow="#{menuItem.useWindow}"
windowWidth="#{menuItem.windowWidth}"
windowHeight="#{menuItem.windowHeight}"
launchListener="#{menuItem.launchListener}"
partialSubmit="true">
</tr:commandNavigationItem>
</f:facet>
</tr:navigationPane>
When i click on my navigation item i get the error:
myPage.jpx @29,54 launchListener="#{menuItem.launchListener}": Method
not found:
org.apache.myfaces.trinidadinternal.menu.ItemNode@f9d3e5.launchListener(
org.apache.myfaces.trinidad.event.LaunchEvent)
What's going on here? Could somebody give me any clues how i have to
write the nodeStamp facet? I'm filled with despair...
Regards,
Sven
[Trinidad] No PPR-capable 'id' found
Posted by Mathias Walter <ma...@gmx.net>.
Hi,
I'm using PPR to partially render a table row. The cells contain
tr:inputText elements which are read-only, if the row is not in edit mode.
<tr:inputText value="#{sample.value}" readOnly="#{pm.visibleOnly}"
partialTriggers="sEdit sSave sReset" />
If I submit the form (<tr:commandLink id="sSave" actionListener="#{pm.save}"
text="Save" partialSubmit="true" rendered="#{!pm.visibleOnly}">) I get
warnings like:
04.03.2008 16:55:47
org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter$PPR
Tag finish
WARNUNG: No PPR-capable 'id' found for elements of
CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=j_id_jsp_997528573_42].
This component has not written-out an 'id' attribute.
04.03.2008 16:55:47
org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter$PPR
Tag finish
WARNUNG: No PPR-capable 'id' found for elements of
CoreInputText[UIXEditableFacesBeanImpl, id=j_id_jsp_997528573_46]. This
component has not written-out an 'id' attribute.
But setting an id to an element which is rendered in each row does not make
sense and does not solve the problem.
What is wrong?
--
Kind regards,
Mathias