[richfaces-issues] [JBoss JIRA] (RF-12510) jsFunction data called before completittion
Brian Leathem (JIRA)
issues at jboss.org
Tue Dec 24 12:20:33 EST 2013
[ https://issues.jboss.org/browse/RF-12510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741430#comment-12741430 ]
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
More information about the richfaces-issues
mailing list