How to pass query parameters to the EntityQuery interface
The following link passes query parameters as f:param and they get substituted in Users.page.xml, and these parameters appear as query parameters in the browse URL which we would like to not show to the end user. Is there an alternate mechanis开发者_如何学Pythonm to pass parameters to the entity query bean
<rich:menuItem>
<s:link value="Users" view="/Users.xhtml">
<f:param name="gender" value="male" />
</s:link>
</rich:menuItem>
With s:link you are doing a GET request, the parameter will be in the URL. To hide the parameter you can change this to a h:commandButton calling an action with the parameter:
<h:commandButton action="#{bean.listUsers('male')}" >
精彩评论