0 Replies Latest reply: Dec 3, 2010 8:54 AM by Romario Bebeto RSS

SuggestionBox with a4j:support in RichFaces4/JSF2

Romario Bebeto Newbie

Hi all,

 

I've in my application the below source:

 

<rich:suggestionbox for="inputId" suggestionAction="#{mBean.values}" var="a">

    <h:column>

        <h:outputText value="#{a.code}" />

    </h:column>

    <h:column>

        <h:outputText value="#{a.name}" />

    </h:column>

    <a4j:support event="onselect" action="#{mBean.setEntity(a)}" ajaxSingle="true" />

</rich:suggestionbox>

 

Then, I set the entity in the "action" property, without a converter.

 

Now, I need to update my application to fully JSF2. In RichFaces4, was introduced autocomplete, removed a4j:support, and a4j:ajax dont have the "action" property.

 

I dont wanna to do one converter for each entity. Is there a solution?

 

Thanks