[richfaces-issues] [JBoss JIRA] Updated: (RF-7628) How to programmatically select an item in rich:comboBox with selectItems
Leonid Sokolin (JIRA)
jira-events at lists.jboss.org
Thu Jul 30 13:16:49 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-7628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonid Sokolin updated RF-7628:
-------------------------------
Attachment: piQueryTool.xhtml
> How to programmatically select an item in rich:comboBox with selectItems
> ------------------------------------------------------------------------
>
> Key: RF-7628
> URL: https://jira.jboss.org/jira/browse/RF-7628
> Project: RichFaces
> Issue Type: Feature Request
> Components: component
> Environment: Windows XP, IE or Firefox
> Reporter: Leonid Sokolin
> Attachments: piQueryTool.xhtml
>
>
> I need to find out how I could change the selected item in Rich combo box, which has collection of selectItems populated from the database.
> I am able to change the value of this combo box, when another combo box has selected value changed, but if I click on drop down, it still shows first record as selected, even if text field has a different value. I have to find that value in the list before it would be highlighted.
> I would appreciate, if someone would tell me how to access the selectItem for this combo box. Please see XHTML below:
> <h:outputText value="Product:" />
> <a4j:region>
> <rich:comboBox id="product" width="300" value="#{piQueryToolBean.product}"
> enableManualInput="false" valueChangeListener="#{piQueryToolBean.changeBenchmark}"
> immediate="true"
> converter="#{productConverter}">
>
> <a4j:support event="onselect" reRender="benchmark,benchmarkList" />
> <f:selectItems id="productList" value="#{piQueryToolBean.productList}" />
> </rich:comboBox>
> </a4j:region>
> <rich:message for="product" style="color:red;" />
> <h:outputText value="Benchmark:" />
> <a4j:region>
> <rich:comboBox id="benchmark" width="300" value="#{piQueryToolBean.benchmark}"
> directInputSuggestions="true" enableManualInput="false"
> converter="#{benchmarkConverter}" onlistcall="findBenchmark()" >
>
> <f:selectItems id="benchmarkList" value="#{piQueryToolBean.benchmarkList}" />
> </rich:comboBox>
> </a4j:region>
> <rich:message for="benchmark" style="color:red;" />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list