zwwcn

Just another WordPress.com site

Monthly Archives: January 2013

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