-
1. Re: rich:inputSelect is still resetting after ajax submit
ilya_shaikovsky Aug 20, 2009 7:31 AM (in response to piotr.sobczyk)you sure that updated to 3.3.1 GA (fix version from issue)?
add rich:messages to the page. -
2. Re: rich:inputSelect is still resetting after ajax submit
piotr.sobczyk Aug 20, 2009 8:10 AM (in response to piotr.sobczyk)Yeah, I'm sure I updated to 3.3.1 GA, when I run my test Seam application I can read:
INFO: Added Library from: ... JBoss_4.2_Community_Server/deploy/test.war/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/a4j.taglib.xml
and others libraries from richfaces-ui-3.3.1.GA.jar.
I even tried with 3.3.2 nightly build but nothing changed. Also rich:messages doesn't generate ane messages on submission. :(
I'm using JBoss 4.2, richfaces 3.3.1 GA and Seam 2.0.2 GA with JBoss Tools if that matters. -
3. Re: rich:inputSelect is still resetting after ajax submit
piotr.sobczyk Aug 20, 2009 8:14 AM (in response to piotr.sobczyk)and tihs is testBean component used in code:
@Name("testBean") @Scope(ScopeType.APPLICATION) public class TestBean { @Logger private Log log; private String test; public String getTest(){ return test; } public void setTest(String test){ log.info("Setting value: " + test); this.test = test; } }
The logger message is: "Setting value null" on AJAX submission even that I'm selecting proper, not-null values in inputSelect. -
4. Re: rich:inputSelect is still resetting after ajax submit
ilya_shaikovsky Aug 20, 2009 11:15 AM (in response to piotr.sobczyk)Sorry.. just noticed.. the issue you refering to not connected with your issue at all. Just onchange fired when you actually changed the value but before script applied this new value to input.
just use onviewactivated event. -
5. Re: rich:inputSelect is still resetting after ajax submit
piotr.sobczyk Aug 20, 2009 1:28 PM (in response to piotr.sobczyk)Thanks a lot, now it finally works correctly!
But does it mean that all of RichFaces components work that way? Onchange event is trigerred before a new value is sent to component so reRendering causes previous values to be displayed? -
6. Re: rich:inputSelect is still resetting after ajax submit
ilya_shaikovsky Aug 21, 2009 4:53 AM (in response to piotr.sobczyk)normally we have two events onchange and onchanged in such cases. in order to provide possibility to cancel change and to store it. But this component misses this event. (jira already filled for that.)