[jboss-user] [JBoss Seam] - How to use ConverterChain?

jbuechel do-not-reply at jboss.com
Thu Sep 27 09:19:55 EDT 2007

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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089315#4089315

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089315

More information about the jboss-user mailing list