jsf 2 - menupopup event listener not get called? -
i'm using ice:menupopup create menus on tree nodes. in jspx page i've this
<ice:tree id="tree" value="#{tree.model}" var="item" imagedir="./xmlhttp/css/xp /css-images/"> <ice:treenode> <f:facet name="icon"> <ice:panelgroup style="display: inline"> <h:graphicimage value="#{item.userobject.icon}"/> </ice:panelgroup> </f:facet> <f:facet name="content"> <ice:panelgroup style="display: inline" menupopup="menupopupeffects"> <ice:commandlink actionlistener="#{tree.url}" value="# {item.userobject.text}"/> </ice:panelgroup> </f:facet> <ice:menupopup id="menupopupeffects"> <ice:menuitem value="open" actionlistener="#{tree.nodevalue}"> <f:param name="effecttype" value="open"/> </ice:menuitem> <ice:menuitem value="close"> <f:param name="effecttype" value="close"/> </ice:menuitem> <ice:menuitem value="send"> <f:param name="effecttype" value="send"/> </ice:menuitem> </ice:menupopup> </ice:treenode>
the problem actionlistener="#{tree.nodevalue}" never gets called. can 1 tell me i'm wrong?
try move ice:menupopup..../ice:menupopup block up, insert block line below:
ice:commandlink actionlistener="#{tree.url}" value="# {item.userobject.text}"
thus in same panelgroup. works me way, still use icefaces 1.8.
Comments
Post a Comment