zwwcn

Just another WordPress.com site

richfaces suggestion box doesn’t render outputpanel properly

The problem is  in the following example,when select customer from the suggestion box, it doesn’t rerender the contact fields.

The solution is to add a4j:region around the suggestionbox.

<rich:suggestionbox   id=”iaSuggest” for=”customerName” var=”customerVar” suggestionAction=”#{customerQuery.suggest}”
status=”none”>
<h:column>
<h:outputText value=”#{customerVar.name}” />
</h:column>

<a4j:support event=”onselect”
action=”#{myScheduleLicenseBookingController.selectCustomer(customerVar)}”
ajaxSingle=”true”
reRender=”contactFields”
>
</a4j:support>
</rich:suggestionbox>

<a4j:outputPanel id=”contactFields” layout=”none” styleClass=”float_left”>

some code here                     </a4j:outputPanel>

 

Advertisements

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: