Skip navigation
JBossDeveloper
Log in
Register
JBoss Community Archive (Read Only)
Home
Content
Places
Search
Cancel
Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.
All Places
>
Seam
>
Seam 2
>
Discussions
Please enter a title.
You can not post a blank message. Please type your message and try again.
Body
This project is read only now.
0 Replies
Latest reply
on Apr 15, 2009 6:51 AM by jayakemmannu
h:selectOneMenu not showing selected value
jayakemmannu
Apr 15, 2009 6:51 AM
i have xhtml page in my seam application with <rich:panel>.A column contain <h:selectOneMenu> tag. i want display the values of one column of database table in that listbox how can i do that?
<ui:define name="body">
<h:form id="policy" styleClass="edit">
<rich:panel>
<f:facet name="header">#{policyHome.managed ? 'Edit' : 'Add'} Policy</f:facet>
<s:decorate id="policyIdField" template="layout/edit.xhtml">
<ui:define name="label">Policy id</ui:define>
<h:inputText id="policyId"
disabled="#{policyHome.managed}"
required="true"
size="30"
maxlength="30"
value="#{policyHome.instance.policyId}" style=" width : 142px;">
<a:support event="onblur" reRender="policyIdField" bypassUpdates="true" ajaxSingle="true"/>
</h:inputText>
</s:decorate>
<s:decorate id="PolicyTypeIdField" template="layout/edit.xhtml">
<ui:define name="label">PolicyTypeID</ui:define>
<h:selectOneListbox id="PolicyTypeID"
required="true"
disabled="#{policytypeHome.managed}"
value="#{policytypeHome.}" style=" width : 142px;">
</h:selectOneListbox>
</s:decorate>
</rich:panel>
This content has been marked as final.
Show 0 replies