[JBoss JIRA] (RF-12510) jsFunction data called before completittion
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12510?page=com.atlassian.jira.plugin.s... ]
Brian Leathem edited comment on RF-12510 at 12/24/13 12:19 PM:
---------------------------------------------------------------
I found following workaroud:
{code}
<a4j:jsFunction name="myFunc" data="#{myBean.action()}" action="#{myBean.blankAction}"/>
class MyBean {
public void blankAction(){
//does nothing
}
public DataObject action(){
// executes action and initializes dataObject
return dataObject;
}
}
{code}
was (Author: tishaishy):
I found following workaroud:
<a4j:jsFunction name="myFunc" data="#{myBean.action()}" action="#{myBean.blankAction}"/>
class MyBean {
public void blankAction(){
//does nothing
}
public DataObject action(){
// executes action and initializes dataObject
return dataObject;
}
}
> jsFunction data called before completittion
> -------------------------------------------
>
> Key: RF-12510
> URL: https://issues.jboss.org/browse/RF-12510
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.2.2.Final
> Environment: Tomcat 6.0.X
> Reporter: Jan Pernica
> Fix For: 5-Tracking
>
>
> When a4j:jsFunction is called then function on data is called twice. Once before action and then after action. How to disable it? RF 3.3.3 have called it just once.
> {code}
> <a4j:jsFunction name="myFunc" data="#{myBean.data}" action="#{myBean.action}"/>
> {code}
> So that myBean.data is called before action call and after action call. How to prevent it?
--
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
10 years, 11 months
[JBoss JIRA] (RF-13442) iterationStatusVar not working in header/footer of extendedDataTable
by Michael Abele (JIRA)
[ https://issues.jboss.org/browse/RF-13442?page=com.atlassian.jira.plugin.s... ]
Michael Abele commented on RF-13442:
------------------------------------
This would be an easy way to display the number of rows in table footer...
> iterationStatusVar not working in header/footer of extendedDataTable
> --------------------------------------------------------------------
>
> Key: RF-13442
> URL: https://issues.jboss.org/browse/RF-13442
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.0.0.Alpha2
> Reporter: Michael Abele
> Assignee: Brian Leathem
> Labels: waiting_on_user
>
> interationStatusVar attribute is available in columns of r:extendedDataTable but not in footer or header part of the table. This would be very useful to display messages like "15 rows loaded" in a table footer.
> Example code:
> {code}
> <r:extendedDataTable values="#{testBean.rows}" interationStatusVar="iter">
> <r:column>#{iter.index}</r:column
> <f:facet name="footer">
> <h:outputText value="#{iter.rowCount} rows loaded." />
> </f:facet>
> </r:extendedDataTable>
> {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
10 years, 11 months
[JBoss JIRA] (RF-12510) jsFunction data called before completittion
by Christophe Noel (JIRA)
[ https://issues.jboss.org/browse/RF-12510?page=com.atlassian.jira.plugin.s... ]
Christophe Noel commented on RF-12510:
--------------------------------------
I would say that the main concern about the issue, is that onComplete is called also twice ! (tested on Liferay 6.1.2ga3, Richfaces 4.3.2.Final with jsFunction).
> jsFunction data called before completittion
> -------------------------------------------
>
> Key: RF-12510
> URL: https://issues.jboss.org/browse/RF-12510
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.2.2.Final
> Environment: Tomcat 6.0.X
> Reporter: Jan Pernica
> Fix For: 5-Tracking
>
>
> When a4j:jsFunction is called then function on data is called twice. Once before action and then after action. How to disable it? RF 3.3.3 have called it just once.
> {code}
> <a4j:jsFunction name="myFunc" data="#{myBean.data}" action="#{myBean.action}"/>
> {code}
> So that myBean.data is called before action call and after action call. How to prevent it?
--
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
10 years, 11 months
[JBoss JIRA] (RF-13446) Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel
by Masafumi Miura (JIRA)
[ https://issues.jboss.org/browse/RF-13446?page=com.atlassian.jira.plugin.s... ]
Masafumi Miura updated RF-13446:
--------------------------------
Description:
*Description of problem:*
Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel. And same javascript error also happens when resizing IE browser window after clicking the a4j:commandButton.
*Version-Release number of selected component (if applicable):*
Richfaces 3.3.1.SP3 and also one-off patch applied BZ#982322.
*Steps to Reproduce:*
1. Modify the following two files of richfaces-demo.war:
- Edit WAR/templates/main.xhtml and change from:
{code}
<table cellpadding="0" cellspacing="0" border="0"
class="content_container" width="100%">
<tbody>
<tr>
<td>
<div class="content_container_left_brick"></div>
</td>
<td width="100%" class="content_container_pdddings">
<!-- tabpanel begin -->
<ui:insert name="body">Body</ui:insert>
<!-- tabpanel end -->
<rich:spacer style="height:10px;" />
<rich:separator style="height:1px" />
<div style="float:right;"
class="footer-text">#{environment.version}</div>
<div style="float:none">
<a
href="http://jboss.com/index.html?module=bb&op=viewtopic&t=104575"
style="color:#000; display:block" class="footer-text">RichFaces. Most
Important Links</a>
</div>
</td>
</tr>
</tbody>
</table>
{code}
to:
{code}
<ui:insert name="body">Body</ui:insert>
{code}
- Edit WAR/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml and add rich:simpleTogglePanel and a4j:commandButton which rerender the
rich:scrollableDataTable. Please note that the original template uses a html table to wrap the facelet body. The error won't show if the facelet body is wrapped with the html body until you resize the browser window.
2. Deploy modified richfaces-demo.war to EAP 5.1.2
3. Go to http://<hostname>:<port>/richfaces-demo/richfaces/scrollableDataTable.jsf on Internet Explorer 9 (Document mode: Internet Explorer 8)
4. Click the button "test" at the bottom of the page.
*Actual results:*
It show the following "Unspecified error" in the IE console. And it will also showe same javascript error when resizing IE browser window after clicking the "test" button.
{code}
SCRIPT16389: Unspecified error
controls-scrollable-data-table.js, line 62 character 23
{code}
*Expected results:*
No javascript error happens.
*Additional info:*
The reported customer is using one-off patch was created from BZ#982322 branch.
http://anonsvn.jboss.org/repos/richfaces/branches/enterprise/3.3.1.SP3_BZ...
was:
*Description of problem:*
Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel. And same javascript error also happens when resizing IE browser window after clicking the a4j:commandButton.
*Version-Release number of selected component (if applicable):*
Richfaces 3.3.1.SP3 and also one-off patch applied BZ#982322.
*Steps to Reproduce:*
1. Deploy the attached richfaces-demo.war to EAP 5.1.2
2. Go to http://<hostname>:<port>/richfaces-demo/richfaces/scrollableDataTable.jsf on Internet Explorer 9 (Document mode: Internet Explorer 8)
3. Click the button "test" at the bottom of the page.
*Actual results:*
It show the following "Unspecified error" in the IE console. And it will also showe same javascript error when resizing IE browser window after clicking the "test" button.
{code}
SCRIPT16389: Unspecified error
controls-scrollable-data-table.js, line 62 character 23
{code}
*Expected results:*
No javascript error happens.
*Additional info:*
The reported customer is using one-off patch was created from BZ#982322 branch.
http://anonsvn.jboss.org/repos/richfaces/branches/enterprise/3.3.1.SP3_BZ...
> Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: RF-13446
> URL: https://issues.jboss.org/browse/RF-13446
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.3.1.SP3
> Reporter: Masafumi Miura
> Assignee: Brian Leathem
> Attachments: RF-13446.patch
>
>
> *Description of problem:*
> Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel. And same javascript error also happens when resizing IE browser window after clicking the a4j:commandButton.
> *Version-Release number of selected component (if applicable):*
> Richfaces 3.3.1.SP3 and also one-off patch applied BZ#982322.
> *Steps to Reproduce:*
> 1. Modify the following two files of richfaces-demo.war:
> - Edit WAR/templates/main.xhtml and change from:
> {code}
> <table cellpadding="0" cellspacing="0" border="0"
> class="content_container" width="100%">
> <tbody>
> <tr>
> <td>
> <div class="content_container_left_brick"></div>
> </td>
> <td width="100%" class="content_container_pdddings">
> <!-- tabpanel begin -->
> <ui:insert name="body">Body</ui:insert>
> <!-- tabpanel end -->
> <rich:spacer style="height:10px;" />
> <rich:separator style="height:1px" />
> <div style="float:right;"
> class="footer-text">#{environment.version}</div>
> <div style="float:none">
> <a
> href="http://jboss.com/index.html?module=bb&op=viewtopic&t=104575"
> style="color:#000; display:block" class="footer-text">RichFaces. Most
> Important Links</a>
> </div>
> </td>
> </tr>
> </tbody>
> </table>
> {code}
> to:
> {code}
> <ui:insert name="body">Body</ui:insert>
> {code}
> - Edit WAR/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml and add rich:simpleTogglePanel and a4j:commandButton which rerender the
> rich:scrollableDataTable. Please note that the original template uses a html table to wrap the facelet body. The error won't show if the facelet body is wrapped with the html body until you resize the browser window.
> 2. Deploy modified richfaces-demo.war to EAP 5.1.2
> 3. Go to http://<hostname>:<port>/richfaces-demo/richfaces/scrollableDataTable.jsf on Internet Explorer 9 (Document mode: Internet Explorer 8)
> 4. Click the button "test" at the bottom of the page.
> *Actual results:*
> It show the following "Unspecified error" in the IE console. And it will also showe same javascript error when resizing IE browser window after clicking the "test" button.
> {code}
> SCRIPT16389: Unspecified error
> controls-scrollable-data-table.js, line 62 character 23
> {code}
> *Expected results:*
> No javascript error happens.
> *Additional info:*
> The reported customer is using one-off patch was created from BZ#982322 branch.
> http://anonsvn.jboss.org/repos/richfaces/branches/enterprise/3.3.1.SP3_BZ...
--
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
10 years, 11 months
[JBoss JIRA] (RF-13446) Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel
by Masafumi Miura (JIRA)
[ https://issues.jboss.org/browse/RF-13446?page=com.atlassian.jira.plugin.s... ]
Masafumi Miura updated RF-13446:
--------------------------------
Security: Public (was: JBoss Internal)
> Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: RF-13446
> URL: https://issues.jboss.org/browse/RF-13446
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.3.1.SP3
> Reporter: Masafumi Miura
> Assignee: Brian Leathem
> Attachments: RF-13446.patch
>
>
> *Description of problem:*
> Unspecified javascript error occurs when clicking a4j:commandButton to rerender rich:scrollableDataTable inside rich:simpleTogglePanel. And same javascript error also happens when resizing IE browser window after clicking the a4j:commandButton.
> *Version-Release number of selected component (if applicable):*
> Richfaces 3.3.1.SP3 and also one-off patch applied BZ#982322.
> *Steps to Reproduce:*
> 1. Deploy the attached richfaces-demo.war to EAP 5.1.2
> 2. Go to http://<hostname>:<port>/richfaces-demo/richfaces/scrollableDataTable.jsf on Internet Explorer 9 (Document mode: Internet Explorer 8)
> 3. Click the button "test" at the bottom of the page.
> *Actual results:*
> It show the following "Unspecified error" in the IE console. And it will also showe same javascript error when resizing IE browser window after clicking the "test" button.
> {code}
> SCRIPT16389: Unspecified error
> controls-scrollable-data-table.js, line 62 character 23
> {code}
> *Expected results:*
> No javascript error happens.
> *Additional info:*
> The reported customer is using one-off patch was created from BZ#982322 branch.
> http://anonsvn.jboss.org/repos/richfaces/branches/enterprise/3.3.1.SP3_BZ...
--
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
10 years, 11 months
[JBoss JIRA] (RF-13216) PoupPanel doesn't disappear when rendered="false" and rerender it.
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13216?page=com.atlassian.jira.plugin.s... ]
Brian Leathem resolved RF-13216.
--------------------------------
Resolution: Won't Fix
> PoupPanel doesn't disappear when rendered="false" and rerender it.
> ------------------------------------------------------------------
>
> Key: RF-13216
> URL: https://issues.jboss.org/browse/RF-13216
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-output
> Affects Versions: 4.3.3
> Reporter: Takayuki Konishi
> Labels: gss, waiting_on_user
> Attachments: rf3_3_4-modalpanel.zip, rf4_3_3-popuppanel.zip
>
>
> If you use the richfaces popupPanel in the default domElementAttachment="body" mode it will not disappear under specific conditions.
> {code:xml}
> <h:body title="page 1">
> <a4j:outputPanel id="myPanel">
> <rich:popupPanel domElementAttachment="body" show="true" rendered="#{test.showPopup}">
> <h:form>
> <a4j:commandButton action="#{test.switchPopup()}" value="switch off" render="myPanel"/>
> </h:form>
> </rich:popupPanel>
> <h:form>
> <a4j:commandButton action="#{test.switchPopup()}" value="switch on" render="myPanel"/>
> </h:form>
> </a4j:outputPanel>
> </h:body>
> {code}
> In Richfaces 3.3.x, on the other hand, there was a component cleanup system ({{memory.js _cleanComponentNodes}}) which was responsible to remove components after ajax calls if the component was removed from the current view.
> Therefore the above example (revert {{popupPanel}} to {{modalPanel}}) works in RF3.3.4.Final.
> Note:
> In case {{domElementAttachment="parent"}}, it will show [the other JSF2 bug|https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-790] where the view state was lost, therefore you must click the action button twice to really call the function.
--
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
10 years, 11 months
[JBoss JIRA] (RF-13442) iterationStatusVar not working in header/footer of extendedDataTable
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13442?page=com.atlassian.jira.plugin.s... ]
Brian Leathem commented on RF-13442:
------------------------------------
I question the validity of having the iterationStatusVar available in the header/footer, since during the header/footer render the iteration has not started/completed.
[~ma.aqcon] can you please further justify your use case?
> iterationStatusVar not working in header/footer of extendedDataTable
> --------------------------------------------------------------------
>
> Key: RF-13442
> URL: https://issues.jboss.org/browse/RF-13442
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.0.0.Alpha2
> Reporter: Michael Abele
> Assignee: Brian Leathem
>
> interationStatusVar attribute is available in columns of r:extendedDataTable but not in footer or header part of the table. This would be very useful to display messages like "15 rows loaded" in a table footer.
> Example code:
> {code}
> <r:extendedDataTable values="#{testBean.rows}" interationStatusVar="iter">
> <r:column>#{iter.index}</r:column
> <f:facet name="footer">
> <h:outputText value="#{iter.rowCount} rows loaded." />
> </f:facet>
> </r:extendedDataTable>
> {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
10 years, 11 months
[JBoss JIRA] (RF-13442) iterationStatusVar not working in header/footer of extendedDataTable
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13442?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13442:
-------------------------------
Labels: waiting_on_user (was: )
> iterationStatusVar not working in header/footer of extendedDataTable
> --------------------------------------------------------------------
>
> Key: RF-13442
> URL: https://issues.jboss.org/browse/RF-13442
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.0.0.Alpha2
> Reporter: Michael Abele
> Assignee: Brian Leathem
> Labels: waiting_on_user
>
> interationStatusVar attribute is available in columns of r:extendedDataTable but not in footer or header part of the table. This would be very useful to display messages like "15 rows loaded" in a table footer.
> Example code:
> {code}
> <r:extendedDataTable values="#{testBean.rows}" interationStatusVar="iter">
> <r:column>#{iter.index}</r:column
> <f:facet name="footer">
> <h:outputText value="#{iter.rowCount} rows loaded." />
> </f:facet>
> </r:extendedDataTable>
> {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
10 years, 11 months