pm:commandButton irregular behavior

UI Components for JSF
Post Reply
djheath
Posts: 7
Joined: 28 May 2010, 02:16

03 Aug 2011, 19:23

Hi all,

I can't seem to get this pesky <pm:commandButton> to behave. Essentially, it's not calling either the action method or actionListener of my backing bean. I've even stripped out all the form fields leaving the following code:

Code: Select all

<f:view 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.prime.com.tr/ui"
        xmlns:pm="http://primefaces.prime.com.tr/mobile"
        contentType="text/html">	
    <pm:page title="Child Details" >#{babyPageBean.m}
        <pm:view id="main" >
            <pm:header title="#{babyPageBean.businessObject.label}">
            	<f:facet name="left"><pm:button value="Back" icon="back" role="back"/></f:facet>
            </pm:header>
            <pm:content>
              <h:form>
                <pm:commandButton id="_btnSave" action="#{babyPageBean.save}"  
                	actionListener="#{babyPageBean.doSave}" value="Save" icon="check" swatch="e" ajax="false"/>              
              </h:form>
            </pm:content>
        </pm:view>
    </pm:page>
</f:view>
I've tried every combination of removing either the action or actionListener attribute individually. I've changed ajax=true and false. I've used process="@form" and process="@this", but the action / actionListener will work once and then never again until I restart the web server.

Anyone else using Primefaces Mobile and experiencing this kind of squirrly behavior? Thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests