selectOneMenu on Search Screen
sandman202 Oct 6, 2008 5:03 AMI have a seam generated search screen that contains several selectOneMenus. On my edit screens the selectOneMenus work fine. On my search screen the selectOneMenus do not work.
I would like to point out, two of my selectOneMenus access different list of codes from my code entity.
I have tried using convertEntity, but I get an exception.
I have tried creating a converter, but that does not seem to work.
I have tried creating a MyEntityIdentifierStore, but I keep getting the exception cannot be cast to EntityIdentifierStore
.
Why does the convertEntity not work on a search screen?
Should I use a converter or EntityIdentifierStore?
<s:decorate id="mediumDecoration" template="layout/display.xhtml"> <ui:define name="label">Medium</ui:define> <h:selectOneMenu id="codeMedium" styleClass="selectOneMenu" value="#{editionHome.instance.medium}"> <s:selectItems value="#{codeList.mediumCodes}" var="_codeMedium" label="#{_codeMedium.code}" noSelectionLabel=" "/> <f:converter converterId="mediumCodeConverter" /> <a:support event="onblur" reRender="mediumDecoration" ajaxSingle="true" bypassUpdates="true"/> </h:selectOneMenu> </s:decorate> <s:decorate id="editionDecoration" template="layout/display.xhtml"> <ui:define name="label">Edition</ui:define> <h:selectOneMenu id="codeEdition" styleClass="selectOneMenu" value="#{editionHome.instance.edition}"> <s:selectItems value="#{codeList.editionCodes}" var="_codeEdition" label="#{_codeEdition.code}" noSelectionLabel=" "/> <f:converter converterId="editionCodeConverter" /> <a:support event="onblur" reRender="editionDecoration" ajaxSingle="true" bypassUpdates="true"/> </h:selectOneMenu> </s:decorate>