Tuesday 15 June 2010

jsf - PrimeFaces Mobile display value in another view -



jsf - PrimeFaces Mobile display value in another view -

i have problem simple sample. here's code index.xhtml want info inputtext , move sec view (by using managed bean). after click update, nil happens, loading icon appears 1 second. doing wrong?

<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:pm="http://primefaces.org/mobile" contenttype="text/html" renderkitid="primefaces_mobile" xmlns:h="http://java.sun.com/jsf/html"> <pm:page title="mobile"> <f:facet name="preinit"> <link type="text/css" rel="stylesheet" href="#{request.contextpath}/themes/maciejtheme.css" /> </f:facet> <pm:view id="viewa"> <pm:header title="a" /> <pm:content> <h:form> <p:inputtext value="#{bean.text}" /> <p:commandbutton value="update" update=":formb:display" /> </h:form> </pm:content> </pm:view> <pm:view id="viewb"> <pm:header title="b" /> <pm:content> <h:form id="formb"> <h:outputtext id="display" value="#{bean.text}"/> </h:form> </pm:content> </pm:view> </pm:page>

@managedbean @sessionscoped public class bean { private string text; public string gettext() { homecoming text; } public void settext(string text) { this.text = text; }

jsf input primefaces

No comments:

Post a Comment