“process” attribute

The “process” attribute defines the ids of the components to be processed together with the
component which contains this attribute. In order to define processed components you could set
theirs ids into the value of the “process” attribute.
The “process” attribute has two limitations:
• it works only if “ajaxSingle” equals to “true” for given command component
• you do not have to point this attribute to one of the own parent components to avoid processing
of command component twice

<body>
<f:view>
<h:form>
<h:inputText id=”oneA” value=”#{bean.tf1}”/>
<br/>
<h:inputText id=”oneB” value=”#{bean.tf2}”/>
<br/>
<a4j:commandButton value=”Submit2″ process=”oneB” ajaxSingle=”true”
reRender=”three1, three2″/>
<br/>
one : <h:outputText id=”three1″ value=”#{bean.tf1}”/>
<br/>
two : <h:outputText id=”three2″ value=”#{bean.tf2}”/>
</h:form>
</f:view>
</body>

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.