jsf 2 - Command button doesn't calls it's action method after including prettyfaces -



jsf 2 - Command button doesn't calls it's action method after including prettyfaces -

i have embedded prettyfaces webapp , have unusual behavior.

i have update user form commandbutton: commmandbutton likes following.

neither command link nor command button invokes action method in thee bean. bean view-scoped bean.

when click button, page reloaded , action defined called not invoked! simply, page reload performs.

<p:commandbutton style=" float: right; margin-left: 10px; " id="saveedituser" update=":form" value="save" action="#{edituser.updateuser()}" ajax="false" />

but, when remove related lines in prettyfaces, page works find. ( next have defined in prettyfaces related edit user)

<url-mapping id="edituser" onpostback="false"> <pattern value="/user/edit/#{initalusername}" /> <view-id value="/user/edituser.xhtml" /> </url-mapping>

is method edituser.updateuser() called after click on button? (use breakpoint create sure)

my guess mapping should :

<url-mapping id="edituser" onpostback="false"> <pattern value="/user/edit/#{initalusername}" /> <view-id value="/user/edituser.jsf" /> </url-mapping>

note .xhtml beingness replaced .jsf

jsf-2 primefaces prettyfaces

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -