-
1. Re: h:inputText not updated when a value returns from a ModalPanel
sivaprasad9394 Aug 10, 2010 3:21 AM (in response to aj81)hi
After your validation what kind of text do u want to display in the h:inputText???What value is returning from the modelpanel???could brief about that scenario.
-
2. Re: h:inputText not updated when a value returns from a ModalPanel
aj81 Aug 10, 2010 3:49 AM (in response to sivaprasad9394)Let say the user input '153458', which is a invalid code, after the validation, it will return to the same page. The user will use the modalPanel to search for a valid code and select '11011011', The modalPanel will return '11011011' to the h:inputText but the h:inputTextbox display '153458' instead. Although it display '153458', the value of the h:inputText in my backingbean is '11011011'.
-
4. Re: h:inputText not updated when a value returns from a ModalPanel
sivaprasad9394 Aug 10, 2010 4:03 AM (in response to aj81)Try to reRender the id
h:inputText id="somevalue" i think it will update the value in the screen when you rerender the id of the input Text box,because in your bean it is correct means this is the only idea to update the inputText box.try this.
-
5. Re: h:inputText not updated when a value returns from a ModalPanel
aj81 Aug 10, 2010 5:46 AM (in response to ilya_shaikovsky)Thanks! This is what I'm looking for. But I cant find the page source and bean source. It's a broken link. Any idea where I can find the source?
-
6. Re: h:inputText not updated when a value returns from a ModalPanel
sivaprasad9394 Aug 10, 2010 11:55 AM (in response to aj81)No need to find the page source and all.
example while defining the h:inputTextBox you define the id attribute also.
like,
<h:inputText id="someName" value="#{...}" />
here while closing the model panel you can define like this reRender="
someName".or you can reRender the id
of text box in list or what ever you are trying to disply correct values in model panel.
Example,
<a4j:commandLink value="Close.. " action="#{.....}" reRender="someName"></a4j:commandLink>
<a4j:commandButton action="#{...}" value="Back.." reRender="someName"/>