开发者

Set JSF backing bean variable when clicking componentControl and displaying contentMenu

I have a开发者_运维问答 rich:componentControl which sets a parameter called applicationId and displays a rich:contextMenu:

<rich:componentControl event="onRowClick" for="ctxMenu" operation="show">
<f:param value="#{item[1].applicationId}" name="applicationId"/>
</rich:componentControl>

and here's the rich:contextMenu:

<rich:contextMenu id="ctxMenu" submitMode="ajax">           
<rich:menuItem ajaxSingle="true" value="View Resume" action="#{activeAppsForm.viewResume}" rendered="#{activeAppsForm.hasResume}" >
<a4j:actionparam name="selectedApplicationId" value="{applicationId}" assignTo="#{activeAppsForm.applicationId}"/>
</rich:menuItem>
</rich:contentMenu>

My problem is with the rendered attribute. The backing bean property it's calling needs access to applicationId before being able to correctly get the rendered value. How can I assign the applicationId value to #{activeAppsForm.applicationId} when the menu is rendered?

Thanks.


<f:setPropertyActionListener target="#{MyBean.myProperty}" value="#{value to be set}"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜