From jira-events at lists.jboss.org Tue Aug 7 09:53:57 2007 Content-Type: multipart/mixed; boundary="===============9022099580435591267==" MIME-Version: 1.0 From: Richard Leherpeur (JIRA) To: seam-issues at lists.jboss.org Subject: [jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1770) Infinite loop when in some pages.xml configuration Date: Tue, 07 Aug 2007 09:53:56 -0400 Message-ID: <4437585.1186494836913.JavaMail.jira@cloud.prod.atl2.jboss.com> --===============9022099580435591267== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Infinite loop when in some pages.xml configuration -------------------------------------------------- Key: JBSEAM-1770 URL: http://jira.jboss.com/jira/browse/JBSEAM-1770 Project: JBoss Seam Issue Type: Bug Affects Versions: 2.0.0.BETA1 Environment: windows XP, RHEL 5.0 Reporter: Richard Leherpeur You can download this example on the Seam web site: navigation.zip I have the following classes: Code: @Name("user") @Scope(ScopeType.CONVERSATION) public class User implements Serializable { private String pet; public String getPet() { return pet; } public void setPet(String pet) { this.pet =3D pet; } } = Code: @Name("navigation") @Scope(ScopeType.CONVERSATION) public class Navigation implements Serializable { @In(required=3Dtrue) User user; @Logger private Log log; public String animalOutcome(){ if (user =3D=3D null){ return "Dog"; // Just to make sure we don't return null } log.info("********* Outcome: " + user.getPet()); return user.getPet(); } public User getUser() { return user; } public void setUser(User user) { this.user =3D user; } } = Code: @Name("animals") public class AnimalList { private List animals; = @Unwrap public List unwrap() { if (animals =3D=3D null) { animals =3D new ArrayList(); animals.add("Dog"); animals.add("Cat"); animals.add("Goldfish"); animals.add("Rabbit"); animals.add("Snake"); animals.add("Parrot"); } return animals; } } = Pages.xhtml is defined as followed: Code: = = The pageflow is defined as: Code: = = = And finally the pageOne.xhtml: Code: Test Navigation

Choose an animal

= When I select an animal, I get the following stacktrace: Code: INFO: Added Library from: jar:file:/C:/Jboss/jboss-4.2.0.GA/server/default/= tmp/d eploy/tmp50163navigation.ear-contents/navigation-exp.war/WEB-INF/lib/jsf-fa= celet s.jar!/META-INF/jstl-core.taglib.xml 13:23:07,046 INFO [Navigation] ********* Outcome: Cat 13:23:07,218 INFO [Navigation] ********* Outcome: Cat 13:23:07,281 INFO [Navigation] ********* Outcome: Cat 13:23:07,359 INFO [Navigation] ********* Outcome: Cat 13:23:07,437 INFO [Navigation] ********* Outcome: Cat 13:23:07,515 INFO [Navigation] ********* Outcome: Cat 13:23:07,609 INFO [Navigation] ********* Outcome: Cat 13:23:07,687 INFO [Navigation] ********* Outcome: Cat 13:23:07,781 INFO [Navigation] ********* Outcome: Cat 13:23:07,859 INFO [Navigation] ********* Outcome: Cat 1: Code: ... = where #{navigation.outcome} returns outcome -> redirection to /animalPage.xhtml (which doesn't exist) because evaluate = EL expression is never called 2: Code: ... = where #{navigation.animalOutcome} returns void and #{navigation.outcome} re= turns outcome -> We enter a loop where action expression is called then evaluate expressi= on is called, etc.... 3: Code: ... = where #{navigation.animalOutcome} returns outcome -> We enter a loop where action expression is called indefinitely 4: Code: ... = where #{navigation.animalOutcome} returns outcome -> We enter a loop where action expression is called indefinitely -- = 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 --===============9022099580435591267==--