commandButton with ajax=false using primefaces-mobile doesn't navigate correctly -


i noticed commandbutton ajax=false not working in primefaces mobile. want make non-ajax call navigate different url when user press button. if remove ajax=false, hits bean manager class not navigate different page. fix this?

ui:composition template="/mobile/templates/masterlayout.xhtml"     xmlns="http://www.w3.org/1999/xhtml"     xmlns:f="http://java.sun.com/jsf/core"     xmlns:h="http://java.sun.com/jsf/html"     xmlns:ui="http://java.sun.com/jsf/facelets"     xmlns:p="http://primefaces.org/ui"     xmlns:cc="http://java.sun.com/jsf/composite/composite"     xmlns:pm="http://primefaces.org/mobile">     <ui:define name="center">         <pm:page title="test">             <pm:view id="main">                 <pm:header title="test" swatch="b" />                 <pm:content>                     <p:messages />                     <h:form id="mainform" prependid="false">                         <p:inputtext id="title" value="#{bean.title}"                             required="true" label="title" />                         <p:inputtext id="wbusername"                             value="#{bean.creator}" required="true"                             label="user name" />                         <p:commandbutton id="dialogbutton" value="create" ajax="false"                             actionlistener="#{bean.create}">                         </p:commandbutton>                     </h:form>                 </pm:content>             </pm:view>         </pm:page>  </ui:composition> 

upate:

i have replaced p:commandbutton h:commandbutton , able hit managed bean function, not forwarding url suppose to.

bean.class

 public string create(){                     return "pretty:newpage";     } 

pretty-config.xml

 <url-mapping id="newpage">         <pattern value="/test/"/>         <view-id value="/views/test.jsf"/>     </url-mapping> 

it seems there bug in primefaces mobile tags causes navigation fail: see example app here: http://ocpsoft.org/wp-content/uploads/2013/08/pretty-prime-post-mobile.tar.gz?0decbc - can see. application navigation works non-mobile tags, prime-faces mobile tags, navigation fails. i've notified primefaces devs of issue.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -