Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 58359 invoked from network); 27 Feb 2009 10:49:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2009 10:49:41 -0000 Received: (qmail 50280 invoked by uid 500); 27 Feb 2009 10:49:34 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 50241 invoked by uid 500); 27 Feb 2009 10:49:34 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 50232 invoked by uid 99); 27 Feb 2009 10:49:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 02:49:34 -0800 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.186] (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 10:49:27 +0000 Received: from pustefix158.kundenserver.de (pustefix158.kundenserver.de [172.23.4.158]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1Ld0HA24G3-0006Ps; Fri, 27 Feb 2009 11:49:04 +0100 Message-Id: <29283383.872501235731744454.JavaMail.servlet@kundenserver> From: dev@elfwyn.net To: Subject: Re: [TRINIDAD] Problem moving from standard MyFaces to Trinidad MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46180_15092789.1235731744375" X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 27400343 X-Routing: DE X-Message-Id: <27400343$1235731744375172.23.4.1586955093@pustefix158.kundenserver.de--907827650> X-Received: from pustefix158.kundenserver.de by 77.87.224.100 with HTTP id 27400343 for [users@myfaces.apache.org]; Fri, 27 Feb 2009 11:49:04 CET Date: Fri, 27 Feb 2009 11:49:04 +0100 X-Provags-ID: V01U2FsdGVkX1+d+cKRmwuNQDY5ra0nsHxK7xacUX8KUdAuwMo w+AEClo2kL6T8szhI97wf5ecCJlr0O8SoWP7Q446hUUMfhgoPC FVIC4OfnBwRiGW35INSxg== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_46180_15092789.1235731744375 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Adding these Servlet mappings did not solve my problem. Here is a description of the faulty application faces-config.xml: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org.apache.myf= aces.trinidad.core =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 MyFaces Core xhtml File: Anfrage Vorname
Nachname
The same beaviour can be seen when using a Trinidad based page: =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 Listener Action: public class ChangeActionListener implements ActionListener { =C2=A0=C2=A0=C2=A0 public void processAction(ActionEvent arg0) throws Abort= ProcessingException { =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 FacesContext facesContext =3D FacesCo= ntext.getCurrentInstance(); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Application application =3D facesCont= ext.getApplication(); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ValueBinding valueBinding =3D applica= tion.createValueBinding("#{anfragePerson}"); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 AnfragePerson anfragePerson =3D (Anfr= agePerson) =C2=A0=C2=A0 valueBinding.getValue(facesContext); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 String vorname =3D anfragePerson.getV= orname(); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 anfragePerson.setVorname(anfragePerso= n.getNachname()); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 anfragePerson.setNachname(vorname); =C2=A0=C2=A0=C2=A0 } } web.xml: =C2=A0=C2=A0=C2=A0 PT3 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 javax.faces.DEFAULT_SUFFI= X =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 .xhtml =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 javax.faces.STATE_SAVING_= METHOD =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 client =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 facelets.VIEW_MAPPINGS =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 *.xhtml =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 facelets.SKIP_COMMENTS =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 true =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 true =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 false =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org.apache.myfaces.trinid= ad.CACHE_VIEW_ROOT =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 false =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 true =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org.apache.myfaces.trinid= ad.CHANGE_PERSISTENCE =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 session =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 true =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 512000 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 5120000 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org.apache.myfaces.trinid= ad.UPLOAD_TEMP_DIR =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 /tmp =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org.apache.myfaces.trinid= ad.resource.DEBUG =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 true =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 3 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.CLIENT_STATE_METHOD =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 all =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 userInputHere: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 com.sun.facelets.Facelet= ViewHandler =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 trinidad =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org.apache.myfaces.trin= idad.webapp.TrinidadFilter =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 trinidad =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 FacesServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 org.apache.myfaces.webapp.StartupServletContex= tListener =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 myapp.listener.Contex= tListener =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 FacesServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 javax.faces.webapp.Fac= esServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 2 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 FacesServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 *.jsf =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 FacesServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 /faces/* =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ResourcesServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org.apache.myfaces.tri= nidad.webapp.ResourceServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 1 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ResourcesServlet =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 /adf/* =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 30 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 index.jsp =C2=A0=C2=A0=C2=A0 I have been working on this problem for several days now and can't seem to find a sollution for it by myself. Please help. Yours S.Fassel =C2=A0 I'm not sure, but I think I have read about problems using that servlet map= ping.=C2=A0 I am using trinidad and facelets, and I have the following serv= let mappings: =C2=A0=C2=A0=C2=A0 faces =C2=A0=C2=A0=C2=A0 /faces/* =C2=A0=C2=A0=C2=A0 resources =C2=A0=C2=A0=C2=A0 /adf/* HTH =E2=80=9CMany men go fishing all of their lives without knowing it is not f= ish they are after.=E2=80=9D - Henry David Thoreau On Thu, Feb 26, 2009 at 11:03 AM, Steve Horne wrote: Oh, sorry, I missed seeing that you already had that specified.=C2=A0 Every= thing seems OK to me. =E2=80=9CMany men go fishing all of their lives without knowing it is not f= ish they are after.=E2=80=9D - Henry David Thoreau On Thu, Feb 26, 2009 at 10:52 AM, Steve Horne wrote: Add this context param: =C2=A0=C2=A0=C2=A0 javax.faces.DEFAULT_SUFFIX =C2=A0=C2=A0=C2=A0 .xhtml HTH =E2=80=9CMany men go fishing all of their lives without knowing it is not f= ish they are after.=E2=80=9D - Henry David Thoreau On Thu, Feb 26, 2009 at 10:15 AM, Stefan Fassel wrote: Here my current web.xml: =C2=A0 myApp =C2=A0 =C2=A0 =C2=A0 =C2=A0 javax.faces.DEFAULT_SUFFIX =C2=A0 =C2=A0 =C2=A0 .xhtml =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 facelets.VIEW_MAPPINGS =C2=A0 =C2=A0 =C2=A0 *.xhtml =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 javax.faces.STATE_SAVING_METHOD =C2=A0 =C2=A0 =C2=A0 client =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 facelets.SKIP_COMMENTS =C2=A0 =C2=A0 =C2=A0 true =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.DISABLE_CONTE= NT_COMPRESSION =C2=A0 =C2=A0 =C2=A0 true =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.USE_APPLICATI= ON_VIEW_CACHE =C2=A0 =C2=A0 =C2=A0 false =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.CACHE_VIEW_RO= OT =C2=A0 =C2=A0 =C2=A0 false =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.CHECK_FILE_MO= DIFICATION =C2=A0 =C2=A0 =C2=A0 true =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.CHANGE_PERSIS= TENCE =C2=A0 =C2=A0 =C2=A0 session =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.ENABLE_LIGHTW= EIGHT_DIALOGS =C2=A0 =C2=A0 =C2=A0 true =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.UPLOAD_MAX_ME= MORY =C2=A0 =C2=A0 =C2=A0 512000 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.UPLOAD_MAX_DI= SK_SPACE =C2=A0 =C2=A0 =C2=A0 5120000 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.UPLOAD_TEMP_D= IR =C2=A0 =C2=A0 =C2=A0 /tmp =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.resource.DEBU= G =C2=A0 =C2=A0 =C2=A0 true =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.CLIENT_STATE_= MAX_TOKENS =C2=A0 =C2=A0 =C2=A0 3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.CLIENT_STATE_= METHOD =C2=A0 =C2=A0 =C2=A0 all =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.DIALOG_NAVIGA= TION_PREFIX =C2=A0 =C2=A0 =C2=A0 userInputHere: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.ALTERNATE_VIE= W_HANDLER =C2=A0 =C2=A0 =C2=A0 com.sun.facelets.FaceletViewHandler =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 trinidad =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.webapp.Trin= idadFilter =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 trinidad =C2=A0 =C2=A0 =C2=A0 FacesServlet =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.webapp.StartupServ= letContextListener =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 my.project.listener.ContextListener =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 FacesServlet =C2=A0 =C2=A0 =C2=A0 javax.faces.webapp.FacesServlet =C2=A0 =C2=A0 =C2=A0 1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 resources =C2=A0 =C2=A0 =C2=A0 org.apache.myfaces.trinidad.webapp.Res= ourceServlet =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 FacesServlet =C2=A0 =C2=A0 =C2=A0 *.jsf =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 resources =C2=A0 =C2=A0 =C2=A0 /adf/* =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 30 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 index.jsp =C2=A0 Yours S.Fassel Steve Horne wrote: Please post your web.xml. =E2=80=9CMany men go fishing all of their lives without knowing it is not f= ish they are after.=E2=80=9D - Henry David Thoreau On Thu, Feb 26, 2009 at 3:51 AM, Stefan Fassel > wrote: =C2=A0 =C2=A0Hello again =C2=A0 =C2=A0I have decided to rephrace my Question from before =C2=A0 =C2=A0I have a running Application using: =C2=A0 =C2=A0JSF 1.1 =C2=A0 =C2=A0Tomcat 5.5.23 =C2=A0 =C2=A0Java 1.5 =C2=A0 =C2=A0Facelets 1.1.14 =C2=A0 =C2=A0Now I want to introduce the Trinidad 1.0.10 component framewo= rk. =C2=A0 =C2=A0There was a partial success since I got Trinidad to render th= e =C2=A0 =C2=A0first xhtml-file. =C2=A0 =C2=A0The problem here is, that when submitting the first page the = same =C2=A0 =C2=A0page is reredered again and both =C2=A0 =C2=A0the Action Implements and Managed beans are never used. =C2=A0 =C2=A0This also happens when using an xhtml-file without Trinidad-T= ags. =C2=A0 =C2=A0By removing Trinidad - replacing =C2=A0 =C2=A0org.apache.myfaces.trinidad.core =C2=A0 =C2=A0by =C2=A0 =C2=A0com.sun.facelets.FaceletViewHandler =C2=A0 =C2=A0in faces-config.xml - the Actions and Managed Beans are again =C2=A0 =C2=A0working as they were meant to. =C2=A0 =C2=A0This effect can be seen with and without using navigation-rul= es. =C2=A0 =C2=A0Maybe someone knows this error pattern... =C2=A0 =C2=A0Yours =C2=A0 =C2=A0S. Fassel ------=_Part_46180_15092789.1235731744375 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Adding these Servlet mappings did not solve my pro= blem.

Here is a description of the faulty application

faces-c= onfig.xml:

    <application>
  &nb= sp;     <default-render-kit-id>org.apache.myfaces.trin= idad.core</default-render-kit-id>
      &= nbsp; <!--view-handler>com.sun.facelets.FaceletViewHandler</view-h= andler-->
    </application>

MyFaces Core= xhtml File:

<?xml version=3D"1.0" encoding=3D"ISO-8859-1" ?><= br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:= //www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns= =3D"http://www.w3.org/1999/xhtml"
xmlns:ui=3D"http://java.sun.com/jsf/fa= celets"
xmlns:h=3D"http://java.sun.com/jsf/html"
xmlns:f=3D"http://ja= va.sun.com/jsf/core">
<head>
<meta http-equiv=3D"Content-= Type" content=3D"text/html; charset=3DISO-8859-1"/>
<title>Anfr= age</title>
</head>
<body>
<f:view>
<= ;h:messages></h:messages>
<h:form id=3D"nameform">
Vor= name <h:inputText id=3D"vorname" required=3D"true" value=3D"#{anfragePer= son.vorname}"/><br/>
Nachname <h:inputText id=3D"nachname" r= equired=3D"true" value=3D"#{anfragePerson.nachname}"/><br/>
<= ;h:commandButton id=3D"cbutton" value=3D"Change"><f:actionListener ty= pe=3D"myapp.listener.ChangeActionListener"/></h:commandButton>
= </h:form>
</f:view>
</body>
</html>
The same beaviour can be seen when using a Trinidad based page:

<= ;tr:document
   xmlns:ui=3D"http://java.sun.com/jsf/facelets"<= br>   xmlns:h=3D"http://java.sun.com/jsf/html"
   xm= lns:f=3D"http://java.sun.com/jsf/core"
   xmlns:tr=3D"http://m= yfaces.apache.org/trinidad"
   title=3D"Facelets">
 = ; <tr:form>
      <tr:inputText label= =3D"Vorname" id=3D"vorname" value=3D"#{anfragePerson.vorname}" />
&nb= sp;     <tr:inputText label=3D"Nachname" id=3D"nachn= ame" value=3D"#{anfragePerson.nachname}" />
    &= nbsp; <tr:commandButton id=3D"changeButton" text=3D"Change">
 = ;     <f:actionListener type=3D"de.bund.bka.dad.bsp.= listener.ChangeActionListener"/>
      </= tr:commandButton>
   </tr:form>
</tr:document&g= t;



Listener Action:

public class ChangeActionListener= implements ActionListener {
    public void processActio= n(ActionEvent arg0) throws AbortProcessingException {
   =     FacesContext facesContext =3D FacesContext.getCurrentIn= stance();
        Application application = =3D facesContext.getApplication();
       = ValueBinding valueBinding =3D application.createValueBinding("#{anfragePer= son}");
        AnfragePerson anfragePerso= n =3D (AnfragePerson)    valueBinding.getValue(facesContext);
=         String vorname =3D anfragePerson.getV= orname();
        anfragePerson.setVorname= (anfragePerson.getNachname());
        anf= ragePerson.setNachname(vorname);
    }
}

web.xm= l:

<?xml version =3D '1.0' encoding =3D 'ISO-8859-1'?>
<= web-app xmlns=3D"http://java.sun.com/xml/ns/j2ee"
   &nbs= p;     xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-in= stance"
         xsi:schemaLocat= ion=3D"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-= app_2_4.xsd"
         version=3D= "2.4">
    <display-name>PT3</display-name>= ;

    <!-- JAVAX.FACES Parameter -->
 &= nbsp;  <context-param>
        = <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 &n= bsp;      <param-value>.xhtml</param-value>=
    </context-param>
    <con= text-param>
        <param-name>j= avax.faces.STATE_SAVING_METHOD</param-name>
    &nb= sp;   <param-value>client</param-value>
 &nbs= p;  </context-param>

    <!-- FACELETS = Parameter -->
    <context-param>
  = ;      <param-name>facelets.VIEW_MAPPINGS</par= am-name>
        <param-value>*.x= html</param-value>
    </context-param>
&n= bsp;   <context-param>
      &n= bsp; <param-name>facelets.SKIP_COMMENTS</param-name>
 &= nbsp;      <param-value>true</param-value><= br>    </context-param>

    <= !-- TRINIDAD Parameter -->
    <context-param> <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPR= ESSION</param-name>
        <para= m-value>true</param-value>
    </context-para= m>
    <context-param>
 <param-name&g= t;org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>=
        <param-value>false</para= m-value>
    </context-param>
  &nb= sp; <context-param>
        <para= m-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>        <param-value>false</param-v= alue>
    </context-param>
   = <context-param>
 <param-name>org.apache.myfaces.trinid= ad.CHECK_FILE_MODIFICATION</param-name>
     &= nbsp;  <param-value>true</param-value>
  &nbs= p; </context-param>
    <context-param>
&n= bsp;       <param-name>org.apache.myfaces.tr= inidad.CHANGE_PERSISTENCE</param-name>
     &n= bsp;  <param-value>session</param-value>
  &n= bsp; </context-param>
    <context-param>
=  <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIAL= OGS</param-name>
        <param-v= alue>true</param-value>
    </context-param&g= t;
    <context-param>
 <param-name>o= rg.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
 &n= bsp;      <param-value>512000</param-value>=
    </context-param>
    <con= text-param>
 <param-name>org.apache.myfaces.trinidad.UPLOA= D_MAX_DISK_SPACE</param-name>
       = ; <param-value>5120000</param-value>
    <= /context-param>
    <context-param>
 &nb= sp;      <param-name>org.apache.myfaces.trinidad.= UPLOAD_TEMP_DIR</param-name>
       = <param-value>/tmp</param-value>
    </con= text-param>
    <context-param>
  &= nbsp;     <param-name>org.apache.myfaces.trinidad.reso= urce.DEBUG</param-name>
        <= param-value>true</param-value>
    </context-= param>
    <context-param>
 <param-na= me>org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS</param-name>= ;
        <param-value>3</param-v= alue>
    </context-param>
   = <context-param>
 <param-name>org.apache.myfaces.trinid= ad.CLIENT_STATE_METHOD</param-name>
      = ;  <param-value>all</param-value>
    &l= t;/context-param>
    <context-param>
 &= lt;param-name>org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX</p= aram-name>
        <param-value>u= serInputHere:</param-value>
    </context-param&= gt;
    <context-param>
 <param-name>= org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
&n= bsp;       <param-value>com.sun.facelets.Fac= eletViewHandler</param-value>
    </context-para= m>
    <!-- FILTERS -->
    &l= t;filter>
        <filter-name>tr= inidad</filter-name>
        <fil= ter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-c= lass>
    </filter>
    <fi= lter-mapping>
        <filter-name&g= t;trinidad</filter-name>
        <= ;servlet-name>FacesServlet</servlet-name>
    &l= t;/filter-mapping>
    <!-- LISTENERS -->
&nb= sp;   <listener>
   <listener-class>org.= apache.myfaces.webapp.StartupServletContextListener</listener-class><= br>    </listener>
    <listener&= gt;
        <listener-class>myapp.li= stener.ContextListener</listener-class>
    </li= stener>
    <!-- FACES SERVLET -->
 &nbs= p;  <servlet>
        <servl= et-name>FacesServlet</servlet-name>
     &n= bsp;  <servlet-class>javax.faces.webapp.FacesServlet</servlet= -class>
        <load-on-startup>= 2</load-on-startup>
    </servlet>
 &= nbsp;  <servlet-mapping>
       = ; <servlet-name>FacesServlet</servlet-name>
  &nbs= p;     <url-pattern>*.jsf</url-pattern>
 = ;   </servlet-mapping>
    <servlet-ma= pping>
        <servlet-name>Face= sServlet</servlet-name>
        <= url-pattern>/faces/*</url-pattern>
    </serv= let-mapping>
    <!-- RESOURCE SERVLET -->
&n= bsp;   <servlet>
        &= lt;servlet-name>ResourcesServlet</servlet-name>
  &nb= sp;     <servlet-class>org.apache.myfaces.trinidad.web= app.ResourceServlet</servlet-class>
      = ;  <load-on-startup>1</load-on-startup>
  &nb= sp; </servlet>
    <servlet-mapping>
 = ;       <servlet-name>ResourcesServlet</s= ervlet-name>
        <url-pattern>= ;/adf/*</url-pattern>
    </servlet-mapping><= br>    <!-- MISC -->
    <session= -config>
        <session-timeout>= ;30</session-timeout>
    </session-config>    <welcome-file-list>
     =    <welcome-file>index.jsp</welcome-file>
 &n= bsp;  </welcome-file-list>
</web-app>

I have bee= n working on this problem for several days now and
can't seem to find a = sollution for it by myself.

Please help.

Yours

S.Fasse= l


 

I'm not sure, but I think I have read about problems using that servlet = mapping.  I am using trinidad and facelets, and I have the following s= ervlet mappings:
<servlet-mapping>
    <servl= et-name>faces</servlet-name>
    <url-pattern>/faces/*</url-pattern>
</= servlet-mapping>
<servlet-mapping>
    <se= rvlet-name>resources</servlet-name>
    <url-= pattern>/adf/*</url-pattern>
</servlet-mapping>

HTH

=E2=80=9CMany men = go fishing all of their lives without knowing it is not fish they are after= .=E2=80=9D
- Henry David Thoreau


On Thu, Feb 26, 2009 at 11:03 AM, Steve Horne <stevehorne@gmail.com>= ; wrote:


=E2=80=9CMany men go fishing all of their lives witho= ut knowing it is not fish they are after.=E2=80=9D
- Henry David Thoreau


On Thu, Feb 26, 2009 at 10:52 AM, Steve Horne <stevehorn= e@gmail.com> wrote:
Add this context param:

<context-param>
    <param-name>javax.fac= es.DEFAULT_SUFFIX</param-name>
    <param-value&= gt;.xhtml</param-value>
</context-param>

HTH


=E2=80=9CMany men go fishing all of their lives without knowing it is not f= ish they are after.=E2=80=9D
- Henry David Thoreau


On Thu, Feb 26, 2009 at 10:15 AM, Stefan Fassel = <dev@elfwyn.ne= t> wrote:
Here my current web.xml:

<?xml version =3D '1.0' encoding =3D 'ISO-8859-1'?>
<web-app xmlns=3D"http://jav= a.sun.com/xml/ns/j2ee"
       xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web= -app_2_4.xsd"
       version=3D"2.4">
  <display-name>myApp</display-name>
  <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</para= m-name>
      <param-value>.xhtml</param-value>
  </context-param>
  <context-param>
      <param-name>facelets.VIEW_MAPPINGS</param-na= me>
      <param-value>*.xhtml</param-value>
  </context-param>

<!-- ************************ Trinidad Config **************************= ** -->
  <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD<= /param-name>
      <param-value>client</param-value>
  </context-param>
  <context-param>
      <param-name>facelets.SKIP_COMMENTS</param-na= me>
      <param-value>true</param-value>
  </context-param>

  <context-param>
      <param-name>org.apache.myfaces.trinidad.DISABLE= _CONTENT_COMPRESSION</param-name>
      <param-value>true</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.USE_APP= LICATION_VIEW_CACHE</param-name>
      <param-value>false</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.CACHE_V= IEW_ROOT</param-name>
      <param-value>false</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.CHECK_F= ILE_MODIFICATION</param-name>
      <param-value>true</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.CHANGE_= PERSISTENCE</param-name>
      <param-value>session</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.ENABLE_= LIGHTWEIGHT_DIALOGS</param-name>
      <param-value>true</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.UPLOAD_= MAX_MEMORY</param-name>
      <param-value>512000</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.UPLOAD_= MAX_DISK_SPACE</param-name>
      <param-value>5120000</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.UPLOAD_= TEMP_DIR</param-name>
      <param-value>/tmp</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.resourc= e.DEBUG</param-name>
      <param-value>true</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.CLIENT_= STATE_MAX_TOKENS</param-name>
      <param-value>3</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.CLIENT_= STATE_METHOD</param-name>
      <param-value>all</param-value>
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.DIALOG_= NAVIGATION_PREFIX</param-name>
      <param-value>userInputHere:</param-value>=
  </context-param>
  <context-param>
      <param-name>org.apache.myfaces.trinidad.ALTERNA= TE_VIEW_HANDLER</param-name>
      <param-value>com.sun.facelets.FaceletViewHandle= r</param-value>
  </context-param>
  <filter>
      <filter-name>trinidad</filter-name>
      <filter-class>org.apache.myfaces.trinidad.webap= p.TrinidadFilter</filter-class>
  </filter>
  <filter-mapping>
      <filter-name>trinidad</filter-name>
      <servlet-name>FacesServlet</servlet-name>=
  </filter-mapping>
<!-- ********************* Trinidad Config  Ende ******************= ******* -->

  <listener>
      <listener-class>org.apache.myfaces.webapp.Start= upServletContextListener</listener-class>
  </listener>
  <listener>
      <listener-class>my.project.listener.ContextList= ener</listener-class>
  </listener>
  <servlet>
      <servlet-name>FacesServlet</servlet-name>=
      <servlet-class>javax.faces.webapp.FacesServlet&= lt;/servlet-class>
      <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet>
      <servlet-name>resources</servlet-name>       <servlet-class>org.apache.myfaces.trinidad.weba= pp.ResourceServlet</servlet-class>
  </servlet>
  <servlet-mapping>
      <servlet-name>FacesServlet</servlet-name>=
      <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
      <servlet-name>resources</servlet-name>       <url-pattern>/adf/*</url-pattern>
  </servlet-mapping>
  <session-config>
      <session-timeout>30</session-timeout>
  </session-config>

  <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>   </welcome-file-list>
</web-app>

Yours

S.Fassel


Steve Horne wrote:
Please post your web.xml.

=E2=80=9CMany men go fishing all of their lives without knowing it is not f= ish they are after.=E2=80=9D
- Henry David Thoreau


On Thu, Feb 26, 2009 at 3:51 AM, Stefan Fassel <dev@elfwyn.net <mailto:dev@elfwyn.net>> wrote:
   Hello again

   I have decided to rephrace my Question from before

   I have a running Application using:

   JSF 1.1
   Tomcat 5.5.23
   Java 1.5
   Facelets 1.1.14

   Now I want to introduce the Trinidad 1.0.10 component framewo= rk.

   There was a partial success since I got Trinidad to render th= e
   first xhtml-file.

   The problem here is, that when submitting the first page the = same
   page is reredered again and both
   the Action Implements and Managed beans are never used.
   This also happens when using an xhtml-file without Trinidad-T= ags.

   By removing Trinidad - replacing
   <default-render-kit-id>org.apache.myfaces.trinidad.core= </default-render-kit-id>
   by
   <view-handler>com.sun.facelets.FaceletViewHandler</v= iew-handler>
   in faces-config.xml - the Actions and Managed Beans are again=
   working as they were meant to.

   This effect can be seen with and without using navigation-rul= es.

   Maybe someone knows this error pattern...

   Yours

   S. Fassel








------=_Part_46180_15092789.1235731744375--