-
1. Re: Problem with a4j:support ?
shandor Jun 27, 2009 11:06 AM (in response to shandor)Here is an example of what does not work. The outputText ( a2 ) and disabled inputText (a3) updates correctly. Enabled inputText (a1) will not update.
<h:form id="myform"> start here <h:inputText value="#{bean.text}" id="here"> <a4j:support event="onkeyup" ajaxSingle="true" reRender="a1,a2,a3"/> </h:inputText> <br/> update a1 <h:inputText id="a1" value="#{bean.text}"/> <br/> update a2 <h:outputText id="a2" value="#{bean.text}"/> <br/> update a3 <h:inputText id="a3" value="#{bean.text}" disabled="true"/> </h:form>
And the backing bean:public class TestBean { private String text="hello"; public String getText() { return text; } public void setText(String text) { this.text = text; } }
-
2. Re: Problem with a4j:support ?
nbelaevski Jun 27, 2009 12:53 PM (in response to shandor)Hi,
Please try 3.1.6.SR1. -
3. Re: Problem with a4j:support ?
shandor Jun 27, 2009 1:58 PM (in response to shandor)Thanks for your advice. I tried with 3.1.6SR1 and got exactly the same behavior as in 3.1.4.
Any other ideas ?
Thanks
Shandor -
4. Re: Problem with a4j:support ?
nbelaevski Jun 28, 2009 6:13 AM (in response to shandor)Hi Shandor,
Looks like, this won't work in 3.1.x. What about upgrading to JSF 1.2/RF 3.3.1? -
5. Re: Problem with a4j:support ?
shandor Jul 7, 2009 8:05 AM (in response to shandor)Hello nbelaevski,
This does not work also after upgrading to JSF 1.2/RF 3.3.1.
Do you have any other ideas ?
It might be an oversight in the design of the a4j:support component. It is strange that not many people came across this one before.
My application is highly dynamic. It is actually a port of a swing based application to jsf so the behavior is much more dynamic than a regular web application... But this is where the power of jsf and richfaces really is, no ?
Will appreciate a response from the RichFaces team for this one.
Shandor -
6. Re: Problem with a4j:support ?
nbelaevski Jul 7, 2009 8:24 AM (in response to shandor)Shandor,
I cannot confirm this. Your code works ok with 3.3.1.GA. -
7. Re: Problem with a4j:support ?
user1234 Jul 7, 2009 9:42 AM (in response to shandor)Yes , I have tested this is working fine with JSF 1.2/RF 3.3.1.
But if ajaxSingle="true" not there then event if updating it not not take the effect as page value will be submitted and shown instead of updated value though id's are mentioned in reRender -
8. Re: Problem with a4j:support ?
shandor Jul 8, 2009 6:30 AM (in response to shandor)Hi nbelaevski,
Thanks - It does work on 3.3.1. I had some config problems..
Any chances this is going to be fixed for 3.1.6 ?
Maybe I can help.
Thanks
shandor -
9. Re: Problem with a4j:support ?
ilya_shaikovsky Jul 9, 2009 7:06 AM (in response to shandor)try to use region around the component instead of ajaxSingle.