[richfaces-issues] [JBoss JIRA] Closed: (RF-4462) a4j:support issues
Mikhail Vitenkov (JIRA)
jira-events at lists.jboss.org
Tue Dec 30 11:00:04 EST 2008
[ https://jira.jboss.org/jira/browse/RF-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Vitenkov closed RF-4462.
--------------------------------
At least 1st case works.
> a4j:support issues
> ------------------
>
> Key: RF-4462
> URL: https://jira.jboss.org/jira/browse/RF-4462
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.2
> Environment: Facelets 1.1.14, JSF RI 1.2_04-P02 or 1.2_09-BETA1, jboss 4.2.2
> Reporter: Metin OSMAN
> Assignee: Mikhail Vitenkov
>
> Hi,
> 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) :
> {code}
> <h:outputText style="CURSOR: pointer" value="#{lbl.header_deconnexion}">
> <a4j:support event="onclick" onsubmit="window.location='session.stop'; return false;" />
> </h:outputText>
> {code}
> As this does'nt work anymore, I had to change it to :
> {code}
> <h:outputLabel style="CURSOR: pointer" value="#{lbl.header_deconnexion}" onclick="window.location='session.stop'; return false;" />
> {code}
> 2. Lets say I need to populate some data and then open a modalPanel on a given position.
> These lines used to work :
> {code}
> <h:panelGrid column="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>
> {code}
> 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.
> {code}
> <h:panelGrid column="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>
> {code}
> Any idea on what change could have make theses issues happen ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list