[
http://jira.jboss.com/jira/browse/JBSEAM-1909?page=comments#action_12396789 ]
Sebasti?n Fiorentini commented on JBSEAM-1909:
----------------------------------------------
The solution to this is pretty simple, and relies on a minor modification / extension to
org.jboss.seam.pageflow.Pageflow.
package ar.com.sdc.seam;
import javax.faces.context.FacesContext;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.pageflow.Page;
import org.jboss.seam.pageflow.Pageflow;
@Name("org.jboss.seam.pageflow.pageflow")
@Install(value = false, precedence = Install.DEPLOYMENT)
public class PageflowRichFaces extends Pageflow {
@Override
protected void navigate(FacesContext context) {
Page page = getPage();
String viewIdActual = context.getViewRoot().getViewId();
String proximo = page.getViewId();
//the patch is the following line
if (!viewIdActual.equals(proximo)) {
if (!page.isRedirect()) {
render(context, page);
} else {
redirect(page);
}
}
setDirty();
}
}
Also, If you want to use this extension, put this in your components.xml:
<component name="org.jboss.seam.pageflow.pageflow"
class="ar.com.sdc.seam.PageflowRichFaces" installed="true" />
Now, on your Pageflow, if you navigate to the same page within the states, it use
RichFaces transition, so the page doesn't gets re rendered.
I though that this solution could be pretty incorporated to the next release, and with a
simple boolean parameter anyone can turn on or off the comparision behavior (that which
decides to re render or not the current page).
Hope this helps.
Regards
Sebastian Fiorentini
SDC SRL - Software del Centro
Tandil, Argentina
ajax4jsf:command pageflow action rerender
-----------------------------------------
Key: JBSEAM-1909
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1909
Project: JBoss Seam
Issue Type: Feature Request
Reporter: Tomislav Jakopec
Fix For: 2.1.0.GA
When I use ajax4jsf:commandButton calling bean action rerender of components is working
fine, but when I call pageflow action entire page is reloaded instead of rerender of
particular component
I created example application to show the problem. You could downloaded from:
http://popovac.hr/orka/test.ear
I reported this issue on RichFaces JIRA and they said that should be future request on
SEAM, so here it is.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira