[richfaces-issues] [JBoss JIRA] Commented: (RF-7240) reRender should have option: be evaluated before/after invoking action

Dave Chen (JIRA) jira-events at lists.jboss.org
Tue Sep 22 07:52:49 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-7240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12486791#action_12486791 ] 

Dave Chen commented on RF-7240:
-------------------------------

In our application, for instance, an entity is created using a command link (which is dynamically generated). After the entity is created during Invoke Application phase, the command link is removed because it is not applicable any more.

-------------------------------------
| Form data to create entity |
-------------------------------------
   command1,  command2,


the command links are rendered using <t:dataList>

<t:dataList  value="#{bean.commandList}"  var="command">

   <a4j:commandLink value="#{command.name}  action="#{command.exec}"  reRender="#{command.reRender}" />

</t:dataList>

Similarly, in case of pagination,  the command list will change when users navigate into the different page.

First, previous, next, last

In the first page, the "First" is a label. On the 2nd page, the "First" is a command link, etc.

We raised this issue because a list of commands are dynamically created on context in our application.  For a static jsf page, there will no such issue.

The list of commands are changed after taking action in the Invoke App phase. So  during the render phase, a4j gets the wrong value for reRender attribute.

Trinidad does not have this issue for PPR.  There are some issues in our application because of the way A4J behaves. It would be very helpful if this feature can be added, or some workaround can be provided. 

> reRender should have option: be evaluated before/after invoking action
> ----------------------------------------------------------------------
>
>                 Key: RF-7240
>                 URL: https://jira.jboss.org/jira/browse/RF-7240
>             Project: RichFaces
>          Issue Type: Feature Request
>          Components: core
>    Affects Versions: 3.3.0
>         Environment: Richfaces 3.3.0  Sun ri: 1.2.12. JBoss5.0.1, IE7
>            Reporter: Dave Chen
>            Assignee: Nick Belaevski
>
> In our case, when user clicks a button, ajax submit, server side bean executes the action and the button clicked is removed. As a result richfaces could not find the button to get reRender value. if richfaces can evaluate reRender value before invoking the action, it does not matter whatever happen in the action. 
> <a4j:commandLink  action="#{bean.do}" reRender="#{bean.reRender}"  reRenderEvalBeforeAction="true|false" />

-- 
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