when rerender via a4j:support of richfaces (3.3.3) on h:selectoneradio, have strange behavior (not every time).
here xhtml section h:selectoneradio:
<h:selectoneradio id="toto" value="#controller.toto}" > <f:selectitem itemlabel="#{bundle['oui']}" itemvalue="#{true}" /> <f:selectitem itemlabel="#{bundle['non']}" itemvalue="#{false}" /> </h:selectoneradio> <rich:message for="toto" />
when go in browser html code:
<table id="formulaire:toto" > <tbody> <tr> <td> <input id="formulaire:toto:0" type="radio" onchange="a4j.ajax.submit('formulaire',event,{'control':this,'similaritygroupingid':'formulaire:support','parameters':{'ajaxsingle':'formulaire:toto','formulaire:support':'formulaire:support'} } )" value="true" name="formulaire:toto"> <label for="formulaire:toto:0"> oui</label> </td> <td> <input id="formulaire:toto:1" type="radio" onchange="a4j.ajax.submit('formulaire',event,{'control':this,'similaritygroupingid':'formulaire:support','parameters':{'ajaxsingle':'formulaire:toto','formulaire:support':'formulaire:support'} } )" value="false" name="formulaire:toto" checked="checked"> <label for="formulaire:toto:1"> non</label> </td> </tr> </tbody> </table>
everything fine.
but when 1 rerender component, html changes , first radio element out of table:
<input type="radio" onchange="a4j.ajax.submit('formulaire',event,{'control':this,'similaritygroupingid':'formulaire:support','parameters':{'ajaxsingle':'formulaire:toto','formulaire:support':'formulaire:support'} } )" value="true" id="formulaire:toto:0" name="formulaire:toto" checked="checked"> <label for="formulaire:toto:0"> oui</label> <table id="formulaire:toto"> <tbody> <tr> <td> <input type="radio" onchange="a4j.ajax.submit('formulaire',event,{'control':this,'similaritygroupingid':'formulaire:support','parameters':{'ajaxsingle':'formulaire:toto','formulaire:support':'formulaire:support'} } )" value="false" id="formulaire:toto:1" name="formulaire:toto"><label for="formulaire:toto:1"> non</label> </td> </tr> </tbody> </table>
it's strange behavior , breaks style.
why rerender breaks html code ?
thanks.
after many searchs, bug comes neko.
to optimize performances, change xml parse (tiny default) neko , 1 can break html.
Comments
Post a Comment