Java rich:menuitem传递参数

Java rich:menuitem传递参数,java,jsf,richfaces,Java,Jsf,Richfaces,我使用rich:menuitem在Richfaces上构建菜单。我需要确定用户单击了哪个菜单项。我尝试使用: <rich:menuItem submitMode="server" value="#{msg.sidemenu_alldocs_internal_documents_bill_sent_documents}" action="#{billdoc.list}"> <f:param name="sidemenutype" value="#{bill

我使用rich:menuitem在Richfaces上构建菜单。我需要确定用户单击了哪个菜单项。我尝试使用:

<rich:menuItem submitMode="server" value="#{msg.sidemenu_alldocs_internal_documents_bill_sent_documents}" action="#{billdoc.list}">
            <f:param name="sidemenutype" value="#{bill_sent}"/>
        </rich:menuItem>

docType为空。我可以使用rich:menuitem将参数从jsp传递到请求吗?

我建议使用
(在
menuitem
中)并在bean的属性中设置docType,而不是在请求中设置docType。

我建议使用
(在
menuitem
中)并在bean的属性中设置docType,不在请求中。

请改用
f:setPropertyActionListener

<f:setPropertyActionListener target="#{billdoc.bill_sent}" value="#{bill_sent}"/>


这需要在
billdoc
bean中使用getter和setter发送属性
bill\u

使用
f:setPropertyActionListener

<f:setPropertyActionListener target="#{billdoc.bill_sent}" value="#{bill_sent}"/>


这需要在
billdoc
bean中使用getter和setter发送属性
bill\u

我不鼓励下划线分隔的属性:)我不鼓励下划线分隔的属性:)