[JBoss JIRA] (RF-12891) Datatable with ExtendedDataModel ajax call
by Pavol Pitonak (JIRA)
[ https://issues.jboss.org/browse/RF-12891?page=com.atlassian.jira.plugin.s... ]
Pavol Pitonak reassigned RF-12891:
----------------------------------
Assignee: Juraj Húska (was: Pavol Pitonak)
Juraj, please verify.
> Datatable with ExtendedDataModel ajax call
> ------------------------------------------
>
> Key: RF-12891
> URL: https://issues.jboss.org/browse/RF-12891
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.1
> Environment: apache-tomcat-7.0.34, servlet-weld 1.1.11.
> Reporter: tehackio teha
> Assignee: Juraj Húska
> Priority: Critical
> Labels: ExtendedDataModel, UIDataAdaptor, a4j:commandLink, datatable
>
> If one ajax call inside column of datatable(org.ajax4jsf.model.ExtendedDataModel) to render outside, method walk is called many times;
> On org.richfaces.component.UIDataAdaptor.requiresRowIteration(VisitContext context), context.getFacesContext().getAttributes().get("javax.faces.visit.SKIP_ITERATION") returns "null", therefore "false".
--
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 Holger L (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Holger L commented on RF-12971:
-------------------------------
Sure. Thanks for your help.
> 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, richfaces_sample_app.zip, richfaces_sample_app_v2.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-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 updated RF-12971:
-------------------------------
Attachment: richfaces_sample_app.zip
I'm not able to run that 2nd app you installed. Attached is the original app with my modification.
Continue to work with Red Hat GSS, they will involve me in issue resolution as required.
> 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, richfaces_sample_app.zip, richfaces_sample_app_v2.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-12971) a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
by Holger L (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Holger L commented on RF-12971:
-------------------------------
Hi Brian,
I've attached the sample application with the code which doesn't work for me. We're also stuck with 2 other issue (also part of the sample app) which have been raised with Red Hat. It would be great if you could have a look and hopefully help out.
Thanks.
Holger
> 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, richfaces_sample_app_v2.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-12971) a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
by Holger L (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Holger L updated RF-12971:
--------------------------
Attachment: richfaces_sample_app_v2.zip
> 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, richfaces_sample_app_v2.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-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:
------------------------------------
The code snippet I put with `RichFaces.$` worked when I put it in the attached code sample. Can you post the code you used that did not work?
> 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-12971) a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
by Holger L (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Holger L edited comment on RF-12971 at 5/8/13 9:16 PM:
-------------------------------------------------------
This causes a javascript error: "Cannot call method 'show' of undefined"
The following seems to work with the workaround:
{code}
<ui:param name="editModalName" value="editMarginModal${tableId}" />
<a4j:commandButton id="issueButton"
onclick="alert('tableId is: editMarginModal${tableId}');"
oncomplete="#{rich:component(editModalName)}.show()"
action="#{richBean.helloWorld(margin)}"
image="img/iconEdit.png"
render="editMarginModal${tableId}">
</a4j:commandButton>
{code}
Is there a proper way using RichFaces.$ without having to define the ui:param?
was (Author: holger.lierse):
This causes a javascript error: "Cannot call method 'show' of undefined"
The following seems to work with the workaround:
<ui:param name="editModalName" value="editMarginModal${tableId}" />
<a4j:commandButton id="issueButton"
onclick="alert('tableId is: editMarginModal${tableId}');"
oncomplete="#{rich:component(editModalName)}.show()"
action="#{richBean.helloWorld(margin)}"
image="img/iconEdit.png"
render="editMarginModal${tableId}">
</a4j:commandButton>
Is there a proper way using RichFaces.$ without having to define the ui:param?
> 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-12971) a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
by Holger L (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Holger L edited comment on RF-12971 at 5/8/13 9:14 PM:
-------------------------------------------------------
This causes a javascript error: "Cannot call method 'show' of undefined"
The following seems to work with the workaround:
<ui:param name="editModalName" value="editMarginModal${tableId}" />
<a4j:commandButton id="issueButton"
onclick="alert('tableId is: editMarginModal${tableId}');"
oncomplete="#{rich:component(editModalName)}.show()"
action="#{richBean.helloWorld(margin)}"
image="img/iconEdit.png"
render="editMarginModal${tableId}">
</a4j:commandButton>
Is there a proper way using RichFaces.$ without having to define the ui:param?
was (Author: holger.lierse):
This causes a javascript error: "Cannot call method 'show' of undefined"
> 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-12971) a4j:commandButton does not evaluate value expressions in “oncomplete” attribute.
by Holger L (JIRA)
[ https://issues.jboss.org/browse/RF-12971?page=com.atlassian.jira.plugin.s... ]
Holger L commented on RF-12971:
-------------------------------
This causes a javascript error: "Cannot call method 'show' of undefined"
> 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-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 resolved RF-12969.
--------------------------------
Resolution: Done
Prevented the entire TabPanel from being rendered when the 0th tab is clicked. Prevented a duplicate encoding of the active tab in partial requests.
> 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