From jira-events at lists.jboss.org Tue Mar 4 08:10:58 2008 Content-Type: multipart/mixed; boundary="===============0019804000453757234==" MIME-Version: 1.0 From: Pavel Myshkin (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-2319) h:commandLink and h:commandButton not working with RichFaces Portlet Bridge 3.1.4-GA / 3.1.4-SR1 in portlet/facelet environment Date: Tue, 04 Mar 2008 08:06:58 -0500 Message-ID: <9749269.1204636018187.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 12932381.1203935322744.JavaMail.jira@cloud.prod.atl2.jboss.com --===============0019804000453757234== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://jira.jboss.com/jira/browse/RF-2319?page=3Dcomments#action_1240= 1223 ] = = Pavel Myshkin commented on RF-2319: ----------------------------------- A workaround for this issue with a working example. ;) Notice the : "/faces/rfRes//org/ajax4jsf/framework.pack.js" in jboss-portle= t.xml and another filter-mapping for "/faces/rfRes/*" and the empty org.aj= ax4jsf.RESOURCE_URI_PREFIX in web.xml. God bless open source. view.jsf =3D=3D=3D=3D=3D=3D jboss-portlet.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D richPortlet web.xml =3D=3D=3D=3D=3D=3D=3D Richfaces Example org.ajax4jsf.VIEW_HANDLERS org.jboss.portletbridge.application.FaceletPortletViewHandler javax.portlet.faces.renderPolicy ALWAYS_DELEGATE javax.portlet.faces.preserveActionParams true org.ajax4jsf.RESOURCE_URI_PREFIX org.richfaces.LoadStyleStrategy NONE org.richfaces.LoadScriptStrategy NONE org.ajax4jsf.COMPRESS_SCRIPT false javax.faces.DEFAULT_SUFFIX .jsf org.richfaces.SKIN blueSky javax.faces.CONFIG_FILES /WEB-INF/faces-config.xml facelets.DEVELOPMENT true Ajax4jsf Filter ajax4jsf org.ajax4jsf.Filter forceparser false ajax4jsf Faces Servlet *.jsf REQUEST FORWARD INCLUDE ajax4jsf Faces Servlet /faces/rfRes/* REQUEST FORWARD INCLUDE FacesServlet javax.faces.webapp.FacesServlet 1 FacesServlet /faces/* 10 /faces/index.jsf faces-config.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D org.jboss.portletbridge.application.PortletViewHandler org.jboss.portletbridge.application.PortalStateManager org.jboss.portletbridge.context.FacesContextFactoryImpl backbean com.nielsen.poc.backbean.BackBean session BackBean.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D package com.nielsen.poc.backbean; public class BackBean { public String username =3D "Pavel"; public int counter =3D 0; public String getUsername() { return username; } public void setUsername(String username) { this.username =3D username; } public String alteration(){ counter++; return "true"; } public int getCounter() { return counter; } public void setCounter(int counter) { this.counter =3D counter; } } portlet.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D richPortlet javax.portlet.faces.GenericFacesPortlet javax.portlet.faces.defaultViewId.view /faces/view.jsf javax.portlet.faces.defaultViewId.edit /faces/edit.jsf javax.portlet.faces.defaultViewId.help /faces/help.jsf javax.portlet.faces.preserveActionParams true -0 RichFaces Example Portlet text/html VIEW EDIT HELP Nyst > h:commandLink and h:commandButton not working with RichFaces Portlet Brid= ge 3.1.4-GA / 3.1.4-SR1 in portlet/facelet environment > -------------------------------------------------------------------------= ------------------------------------------------------ > > Key: RF-2319 > URL: http://jira.jboss.com/jira/browse/RF-2319 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.1.4 > Environment: JBoss Portal 2.6.3-GA / JBoss [Trinity] 4.2.2.GA (bu= ild: SVNTag=3DJBoss_4_2_2_GA date=3D200710221139) > Java version: 1.5.0_11,Sun Microsystems Inc. > Java VM: Java HotSpot(TM) Client VM 1.5.0_11-b03,Sun Microsystems Inc. > OS-System: Windows 2000 5.0,x86 > Reporter: Andreas Chlupacek > Assigned To: Alexander Smirnov > Fix For: 3.2.0 > > > This might be a problem related to JIRA entry RF-2180, however we did not= experience any view expired exception or JavaScript Errors described there= . Furthermore, it seems to be related solely to the Portlet Bridge. > Description: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > A JSR-168 portlet project using RichFaces 3.1.3-GA and facelets was deplo= yed on JBoss Portal 2.6.3. After upgrading the RichFaces Portlet Bridge lib= raries contained in the project to 3.1.4-GA, h:commandButton and h:commandL= ink components do not invoke the actions bound to them anymore. Upgrading t= o Portlet Bridge 3.1.4-SR1 does not remedy the problem either. > Steps to reproduce: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Set up a portlet application with the following artefacts: > web.xml: > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee http://java.sun.co= m/xml/ns/j2ee/web-app_2_4.xsd"> > > org.richfaces.LoadStyleStrategy > ALL > > > org.ajax4jsf.COMPRESS_STYLE > false > = > > org.richfaces.LoadScriptStrategy > ALL > > > org.ajax4jsf.COMPRESS_SCRIPT > false > > = > > org.ajax4jsf.RESOURCE_URI_PREFIX > rfRes > > > > org.ajax4jsf.VIEW_HANDLERS > > org.ajax4jsf.portlet.application.FaceletPortletViewHandler > > > > javax.portlet.faces.renderPolicy > ALWAYS_DELEGATE > > > facelets.DEVELOPMENT > true > > > facelets.SKIP_COMMENTS > true > > > facelets.VIEW_MAPPINGS > *.xhtml > > > javax.faces.STATE_SAVING_METHOD > server > > > Ajax4jsf Filter > ajax4jsf > org.ajax4jsf.Filter > > > ajax4jsf > FacesServlet > FORWARD > REQUEST > INCLUDE > > > FacesServlet > javax.faces.webapp.FacesServlet > 1 > > > FacesServlet > /faces/* > > > svg > image/svg+xml > > > BASIC > > > faces-config.xml: > > "http://java.sun.com/dtd/web-facesconfig_1_= 1.dtd"> > > > bean > de.tmobile.richfaces.test.Bean > session > > > > org.ajax4jsf.portlet.application.PortletViewHandler > org.ajax4jsf.portlet.application.PortalStateManager > > > org.ajax4jsf.portlet.context.FacesContextFactory= Impl > > > jboss-portlet.xml: > > "-//JBoss Portal//DTD JBoss Portlet 2.6//EN" > "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd"> > > > richFacesPortlet > > > > = > > > = > > view.xhtml: > > xmlns:ui=3D"http://java.sun.com/jsf/facelets" xmlns:h=3D"http://java.sun= .com/jsf/html" > xmlns:a4j=3D"http://richfaces.org/a4j" xmlns:rich=3D"http://richfaces.or= g/rich"> > > > > > > > > > > > > > Contents of /WEB-INF/lib: > commons-beanutils-1.7.0.jar > commons-collections-3.2.jar > commons-digester-1.8.jar > jsf-facelets.jar > portletbridge-api-3.1.3.GA.jar > portletbridge-impl-3.1.3.GA.jar > richfaces-api-3.1.3.GA.jar > richfaces-impl-3.1.3.GA.jar > richfaces-ui-3.1.3.GA.jar > Observed behaviour: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > After upgrading the portletbridge jars to any version of 3.1.4, the actio= n is not invoked. PhaseTracker shows that Stage 1 (Restore View) of the JSF= lifecycle is executed and processing then directy advances to stage 6 (Ren= der Response). = > Expected behaviour: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > The action should be invoked. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://jira.jboss.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============0019804000453757234==--