so want quit simple. have page displays list of users, example adminusers.jsf, , has list of users. click new user button , modal p:dialog shows user form.
this works perfect want allowing users click on link , adminusers.jsf shows p:dialog enabled.
so if users goes url
http://localhost:8080/pages/adminuser.jsf?create=true
the modal dialog shown without clicking button. thought of way of doing maybe not proper jsf way. thinking. capture "create" on useradmincontroller, , set
<h:outputtext/>
write javascript call userpanel.show, param this.
rendered="#{usuarioadmincontroller.create}"
is correct way of doing this.
you can bind value request parameter directly visible
attribute of dialog this:
<p:dialog visible="#{param.create}"/>
Comments
Post a Comment