jsf 2 - how can I fix Value is not valid when selectOneMenu items are changed? -
being newbie @ jsf, i've ran situation don't understand how solve. have page 2 selectonemenu objects (financialcolumn, linesofbusiness) depending on values of 2 other selectonemenu objects (year, businesstype). contents of financialcolumn & linesofbusiness can different depending on year or businesstype selected (all components requestscoped beans).
<h:outputtext value="data year:" /> <h:selectonemenu id="year" value="#{yearoptions.year}" > <f:selectitems value="#{yearoptions.options}" /> <f:ajax execute="@this businesstype" render="financialcolumn linesofbusiness" /> </h:selectonemenu> <h:outputtext value="business type:" /> <h:selectonemenu id="businesstype" value="#{bustypeoptions.buslistkey}" > <f:selectitems value="#{bustypeoptions.options}" /> <f:ajax execute="@this year" render="financialcolumn linesofbusiness" /> </h:selectonemenu> <h:outputtext value="select financial amount report on:" /> <h:selectonemenu id="financialcolumn" value="#{fincolumn.fincolumn}"> <f:selectitems value="#{fincolumn.options}"/> </h:selectonemenu> <h:outputtext value="select lines of business include:" /> <h:selectmanylistbox id="linesofbusiness" value="#{loboptions.linenums}" size="5" > <f:selectitems value="#{loboptions.options}"/> </h:selectmanylistbox> : : <h:commandbutton value="submit" type="submit" action="/pages/report/lines-of-business-summary"
the issue i'm trying figure out long don't change or go original values of financialcolumn & linesofbusiness report page displays when change businesstype value causes complete change in financialcolumn & linesofbusiness values receive "•criteria:financialcolumn: validation error: value not valid". why happening , how can fix it?
thanks
Comments
Post a Comment