This content has been marked as final.
Show 4 replies
-
1. Re: h:commandLink doesn't work after a4j:poll has re-rendered it
stianst Oct 25, 2011 7:20 AM (in response to stianst)If the h:form element is not re-rendered by a4j:poll it works.
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <h:head /> <body> <h:form> <a4j:poll interval="5000" render="action" /> </h:form> <h:form id="form"> <h:commandLink id="action" action="#{ajaxTest.submit}" value="submit #{ajaxTest.date}" /> </h:form> </body> </html>
-
2. Re: h:commandLink doesn't work after a4j:poll has re-rendered it
stianst Dec 1, 2011 9:17 AM (in response to stianst)This seems to be a bug though? Anyone from the Richfaces team care to comment?
-
3. Re: h:commandLink doesn't work after a4j:poll has re-rendered it
mcmurdosound Dec 1, 2011 9:45 AM (in response to stianst)A simple rule: do not rerender forms! This often caused strange problems in our applications.
-
4. Re: h:commandLink doesn't work after a4j:poll has re-rendered it
stianst Dec 1, 2011 11:39 AM (in response to mcmurdosound)That's my current thinking as well, but I would think that there are one or two underlying bugs causing it to be a problem in the first place?