4 Replies Latest reply on Sep 27, 2007 12:42 PM by igx89

    How to use ConverterChain?

    jbuechel

      Can someone tell me how to use the ConverterChain class?

      My intention is to let seams EntityConverter convert my entities. If the entity to convert isn't an ejb entity though, my own Converter should be used.

      Is something like this possible?

      My xhtml code:

      <h:selectOneMenu id="#{fwcLabelMessageKey}"
       styleClass="fwc-input-select" value="#{fwcInputProperty}">
       <s:selectItems value="#{fwcInputDataModel}" var="object"
       label="#{fwcInputDataModelLabel}"
       noSelectionLabel="#{messages[fwcLabelMessageKeyNoSelection]}" />
       <s:convertEntity />
       </h:selectOneMenu>
      


      I would think of something like this:
      <component name="fwcConverterChain" class="org.jboss.seam.ui.converter.ConverterChain"
       scope="conversation">
       <property name="converters">
       <value>#{fwcEntityConverter}</value>
       <value>#{org.jboss.seam.ui.entityConverterStore}</value>
       </property>
       </component>
      
      

      But i know that's not the way it is..

      Can i use the ConverterChain only if i build my own UIComponents?