-
1. Re: a4j:support & reRender Problem, anybody can help?
pfreitas Jul 3, 2008 10:13 AM (in response to rolandotr)The code you posted should work...
i did an example with the same logic... and it worked...
your problem must be somewhere else in your code...<h:form> <a4j:commandLink action="#{graficosMBean.changeIt}" value="ooo" reRender="doxo"/> <h:outputText id="doxo" value="#{graficosMBean.hey}" /> </h:form>
-
2. Re: a4j:support & reRender Problem, anybody can help?
pfreitas Jul 3, 2008 10:19 AM (in response to rolandotr)I took a look at you backing bean...
and I guess that this way works better
this is the backing bean i'm using on the page i posted before
just place your input with a4j:support instead of my command linkprivate String hey = "Hey!!"; public String changeIt() { setHey("Hey yo silver !!"); return null; } public String getHey() { return hey; } public void setHey(String hey) { this.hey = hey; }
-
3. Re: a4j:support & reRender Problem, anybody can help?
rolandotr Jul 4, 2008 1:01 PM (in response to rolandotr)Thanks for reply. Well in the first post, your code work because two probably reasons:
first: The component target of reRender is h:outputText and my problem is with h:inputText and others.
second: Maybe the commandLink cause a complete rerender of all the tree so every is rerender without problems.
About the second post ok.
But believe me, the richfaces reference present in the a4j:support section an example with h:outputText and work fine, but if you replace h:outputText for h:inputText does not work.
Could you tell me something more? -
4. Re: a4j:support & reRender Problem, anybody can help?
ilya_shaikovsky Jul 7, 2008 4:51 AM (in response to rolandotr)make your support ajaxSingle or wrap first input into a4j:region. And it will works.
-
5. Re: a4j:support & reRender Problem, anybody can help?
rolandotr Jul 11, 2008 6:56 PM (in response to rolandotr)Great thanks it really work, but in richfaces reference about ajaxSingle they only said
"if "true", submits ONLY one field/link, instead of all
form controls".
I don't see with this explanation why ajaxSingle="true" make it work. Could you explain to me or suggest me a book or article?
Anyway, thanks a lote.