This content has been marked as final.
Show 4 replies
-
1. Re: a4j:repeat and inputNumberSpinner.value problem
ilya_shaikovsky Oct 18, 2007 11:23 AM (in response to kannattaa)you should use variable defined in your var instead of concrete bean's variable. Because in your case all the spinners will be submited with applying their values in the same property.
-
2. Re: a4j:repeat and inputNumberSpinner.value problem
kannattaa Oct 19, 2007 6:04 AM (in response to kannattaa)i've simplified the code
<rich: inputNumberSpinner value="#{bean.getSomeOtherBean(currentItem).spinnerValue}"/>
is used in the original code.
idea of the example was to show that the first part<rich:inputNumberSpinner value="#{bean.spinnerValue}" immediate="true" > <a4j:support event="onchange" reRender="spinnerValueOutputId"/> </rich:inputNumberSpinner> <s:div id="spinnerValueOutputId"> <h:outputText value="#{bean.spinnerValue}" /> </s:div>
works fine
but the second :<a4j:repeat value="#{bean.getItems()}" var="currentItem"> <a4j:form ajaxSingle="true"> <rich:inputNumberSpinner value="#{bean.spinnerValue}" immediate="true" > <a4j:support event="onchange" reRender="spinnerValueOutputId"/> </rich:inputNumberSpinner> <s:div id="spinnerValueOutputId"> <h:outputText value="#{bean.spinnerValue}" /> </s:div> </a4j:form> </a4j:repeat>
doesn't work properly
if you try to play with any inputNumberSpinner
spinnerValueOutputId's div will be refreshed but with the initial value, not new! -
3. Re: a4j:repeat and inputNumberSpinner.value problem
kannattaa Oct 19, 2007 6:08 AM (in response to kannattaa)is there a way to get new value?
-
4. Re: a4j:repeat and inputNumberSpinner.value problem
turkishpirate Oct 20, 2007 2:44 AM (in response to kannattaa)Yes, yes!!! I have the same problem.
Please, russian guys, tell us how to fix it. :)