KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to pass a parameter (POST) to a @managedBean, I used managed properties like this: @ManagedProperty(value = "#{param.id}") private int id; And the scope of the Bean is ViewScope I end up with this error: Unable to create managed bean receipt. The following problems were found: - The scope of the object referenced by expression #{param.id}, request, is shorter than the referring managed beans scope of view What can I do? arjan take a look: My page: Facelet Title <form method="post" action="faces/index.xhtml"> <input name="id" value="4" /> <input type="submit" value="submit" /> </form> <h:form> <h:commandLink value="click" action="index"> <f:param id="id" name="id" value="20"/> </h:commandLink> </h:form>
Tags (comma-separated)
Save Edits
Cancel