a4j:support issue on 3.2.2 ?
metin.osman Sep 12, 2008 4:43 AMHi,
I have just migrated from 3.2.1 to 3.2.2 and I am experiencing 2 problems with the a4j:support tag.
1. As there is no "onclick" attribute on h:outputText, I used a4j:support to attach an action to the "onclick" event of the outputText (rendered as a span) :
<h:outputText style="CURSOR: pointer" value="#{lbl.header_deconnexion}"> <a4j:support event="onclick" onsubmit="window.location='session.stop'; return false;" /> </h:outputText>
As this does'nt work anymore, I had to change it to :
<h:outputLabel style="CURSOR: pointer" value="#{lbl.header_deconnexion}" onclick="window.location='session.stop'; return false;" />
2. Lets say I need to populate some data and then open a modalPanel on a given position.
These lines used to work :
<h:panelGrid columns="2"> <h:column> <h:graphicImage alt="green" url="/resources/img/feurouge-vert-16x16.gif" styleClass="priorityIcon" rendered="false" /> </h:column> <h:panelGrid cellpadding="0" cellspacing="0"> <h:outputText value="Qualification" /> <h:outputText value="#{client.qualification}%" /> </h:panelGrid> <a4j:support action="#{client.openQualification}" immediate="true" reRender="..." event="onclick" oncomplete="showIndicatorModalPanel(this);" /> </h:panelGrid>
The showIndicatorModalPanel(this) js function calculate a position and open the modalPanel on this position.
With 3.2.2, all the dom attributes relative to dimensions and positions of the clicked panelGrid are set to 0. Then, the calculated position is wrong and the modalPanel is misplaced.
But when I call the same js function on the "onclick" attribute of the panelGrid, the modalPanel is correctly placed, but its data are not filled as I did not call the client.openQualification action.
<h:panelGrid columns="2" onclick="showIndicatorModalPanel(this);"> <h:column> <h:graphicImage alt="green" url="/resources/img/feurouge-vert-16x16.gif" styleClass="priorityIcon" rendered="false" /> </h:column> <h:panelGrid cellpadding="0" cellspacing="0"> <h:outputText value="Qualification" /> <h:outputText value="#{client.qualification}%" /> </h:panelGrid> </h:panelGrid>
Any idea on what change could have make theses issues happen ?