[JBoss JIRA] (RF-12969) rich:tabPanel: Click on already selected rich:tab causes JavaScript error
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12969?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12969:
-------------------------------
Component/s: component-output
> rich:tabPanel: Click on already selected rich:tab causes JavaScript error
> -------------------------------------------------------------------------
>
> Key: RF-12969
> URL: https://issues.jboss.org/browse/RF-12969
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-output
> Affects Versions: 4.3.2
> Environment: Mojarra 2.1.20
> Reporter: Michael Abele
> Assignee: Brian Leathem
> Priority: Blocker
> Labels: regression
> Fix For: 4.3.2
>
> Original Estimate: 2 hours
> Remaining Estimate: 2 hours
>
> Clicking on an already active tab causes a JavaScript error with 4.3.2 CR1.
> The following example works fine with 4.3.1
> {code}
> <rich:tabPanel switchType="ajax">
> <rich:tab name="1">
> </rich:tab>
> <rich:tab name="2">
> </rich:tab>
> </rich:tabPanel>
> {code}
> JavaScript error output in Chrome is:
> {quote}
> Uncaught TypeError: Cannot call method 'onCompleteHandler' of undefined
> (anonymous function)
> serverEventHandler packed.js:529
> (anonymous function) packed.js:505
> (anonymous function) packed.js:488
> (anonymous function) packed.js:456
> (anonymous function) packed.js:488
> sendEvent jsf.js.jsf:1613
> response jsf.js.jsf:2254
> jsf.ajax.response packed.js:656
> richfaces.queue.response packed.js:1170
> jsf.ajax.response packed.js:799
> onComplete jsf.js.jsf:1398
> AjaxEngine.req.xmlReq.onreadystatechange jsf.js.jsf:1379
> {quote}
> JavaScript error in Firefox is
> {quote}
> TypeError: RichFaces.$(...) is undefined
> return new Function("event", handlerCode);
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (RF-12971) a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Brian Leathem commented on RF-12971:
------------------------------------
Ok, forget that workaround. The richFaces 4 way of doing this is to use the `RichFaces.$` function to get a refernece to the RichFaces component object from a DOM id, as in:
{code}
<a4j:commandButton id="issueButton"
onclick="alert('tableId is: editMarginModal${tableId}');"
oncomplete="RichFaces.$('editMarginModal${tableId}').show()"
action="#{richBean.helloWorld(margin)}"
image="img/iconEdit.png"
render="editMarginModal${tableId}">
</a4j:commandButton>
{code}
> a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
> --------------------------------------------------------------------------------
>
> Key: RF-12971
> URL: https://issues.jboss.org/browse/RF-12971
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.3.1
> Reporter: Ilia Vassilev
> Assignee: Brian Leathem
> Attachments: richfaces_sample_app.zip
>
>
> The following code works in RF 3, but not in RF 4. The "tableId" does not evaluate to a value in "oncomplete" attribute.
> {code}
> <a4j:commandButton id="issueButton"
> onclick="alert('tableId is: editMarginModal${tableId}');"
> oncomplete="#{rich:component('editMarginModal${tableId}')}.show()"
> action="#{richBean.helloWorld(margin)}"
> image="img/iconEdit.png"
> render="editMarginModal${tableId}">
> </a4j:commandButton>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (RF-12965) Graph validator's behavior changed in Mojarra 2.1.18
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-12965?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč commented on RF-12965:
---------------------------------
Pavol, could you also try this with the 2.1.19/21 which might be the final target for us?
> Graph validator's behavior changed in Mojarra 2.1.18
> ----------------------------------------------------
>
> Key: RF-12965
> URL: https://issues.jboss.org/browse/RF-12965
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: compatibility, component-validators
> Affects Versions: 4.3.2
> Environment: RichFaces 4.3.2-SNAPSHOT
> Metamer 4.3.2-SNAPSHOT
> works in Mojarra 2.1.17 and 2.1.7, broken in 2.1.18 to 2.1.21
> Apache Tomcat 7.0.35
> OpenJDK Runtime Environment 1.7.0_19-mockbuild_2013_04_19_20_08-b00 @ Linux
> Chrome 26.0.1410.63 @ Linux x86_64, Firefox 20
> Reporter: Pavol Pitonak
> Fix For: 4.3.2
>
> Original Estimate: 2 hours
> Remaining Estimate: 2 hours
>
> with Mojarra 2.1.17 and older:
> # deploy Metamer to Tomcat and open http://localhost:8080/metamer/faces/components/richGraphValidator/all.xhtml
> # set groups attribute to "ValidationGroupBooleanInputs"
> # uncheck "Select Boolean Checkbox"
> # click "Apply changes", *result: message "may not be empty" next to "Input Secret"*
> # type ":-)" to input secret
> # click "Apply changes", *result: message "Select Boolean Checkbox isn't checked!" at the top of form*
> # check the checkbox
> # click "Apply changes", *result: message "Action successfully done!"
> with Mojarra 2.1.18 and newer:
> # deploy Metamer to Tomcat and open http://localhost:8080/metamer/faces/components/richGraphValidator/all.xhtml
> # set groups attribute to "ValidationGroupBooleanInputs"
> # uncheck "Select Boolean Checkbox"
> # click "Apply changes", *result: message "Select Boolean Checkbox isn't checked!" at the top of form*
> # check the checkbox
> # click "Apply changes", *result: message "Action successfully done!"
> # *input secret isn't validated at all, the same can be reproduced with calendar, inplace input, input textarea, select many checkbox*
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] (RF-12971) a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
by Ilia Vassilev (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Ilia Vassilev commented on RF-12971:
------------------------------------
I tested the workaround, but still doesn't work. Is my implementation correct?
{code}
<ui:param name="oncompleteParam" value="rich:component('editMarginModal${tableId}')" />
<!-- Issue with -->
<a4j:commandButton id="issueButton"
oncomplete="#{oncompleteParam}.show()"
action="#{richBean.helloWorld(margin)}"
image="img/iconEdit.png"
render="editMarginModalshareDefaultMarginTable">
</a4j:commandButton>
{code}
> a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
> --------------------------------------------------------------------------------
>
> Key: RF-12971
> URL: https://issues.jboss.org/browse/RF-12971
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.3.1
> Reporter: Ilia Vassilev
> Assignee: Brian Leathem
> Attachments: richfaces_sample_app.zip
>
>
> The following code works in RF 3, but not in RF 4. The "tableId" does not evaluate to a value in "oncomplete" attribute.
> {code}
> <a4j:commandButton id="issueButton"
> onclick="alert('tableId is: editMarginModal${tableId}');"
> oncomplete="#{rich:component('editMarginModal${tableId}')}.show()"
> action="#{richBean.helloWorld(margin)}"
> image="img/iconEdit.png"
> render="editMarginModal${tableId}">
> </a4j:commandButton>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months