-
1. Re: Page parameters - change value
pmuir Apr 11, 2007 7:52 AM (in response to cdanielw)You'll probably have more luck creating a test component, and giving a property number (or sth), and using #{test.number} as the value of the page parameter
-
2. Re: Page parameters - change value
cdanielw Apr 11, 2007 8:05 AM (in response to cdanielw)Thank you for the reply. I tried out something similar to what you suggest. But for simplicity, I boiled everything down to the simplest case where it didn't work as I expected.
After a little more digging, being confused why the jboss-seam-blog doesn't have this problem, it turns out that it only happens when using server-side state saving. Switching the jboss-seam-blog to server-side state saving gives the exact same problem.
First hit
http://localhost:8080/jboss-seam-blog/seam/entry.xhtml?blogEntryId=seamtext
then
http://localhost:8080/jboss-seam-blog/seam/entry.xhtml?blogEntryId=book
The book entry never shows up. -
3. Re: Page parameters - change value
milli Sep 19, 2007 7:15 PM (in response to cdanielw)I have the same problem. I have a backing component and using a property from it. When I switch to client side state saving method it works.
I'm using seam 1.2.1 GA/Jboss 4.0.5 GA/MyFaces 1.1.14. Is it a problem with myfaces version or seam? Any help is appreciated.
Thanks -
4. Re: Page parameters - change value
milli Sep 19, 2007 10:58 PM (in response to cdanielw)I did play with different JSF implementation. Here are my findings:
Problem exists in MyFaces 1.1.5 as well. However I could not test with MyFaces 1.2 since I was getting errors when I tried to upgrade.
It works as expected in Sun JSF RI 1.2. Looks like it is a bug in MyFaces implementation.
However I would like to know if anyone has the following configuration working.
JBoss 4.0.5/MyFaces 1.2/Seam 1.2.1GA
I could not make myfaces 1.2 to work with the above setup. Is it supported? -
5. Re: Page parameters - change value
cdanielw Sep 20, 2007 2:48 AM (in response to cdanielw)MyFaces 1.2 requires a Servlet 2.5 container (I.e. Tomcat 6). JBoss 4 bundles Tomcat 5.5 right? I'm not using JBoss myself so I might be wrong here.
-
6. Re: Page parameters - change value
pmuir Sep 20, 2007 6:27 AM (in response to cdanielw)Don't use server side state saving, Seam, and MyFaces - it doesn't work. You should use the RI 1.2 if you can - it's much better. You can use JSF 1.2 with facelets in a 2.4 servlet container.
-
7. Re: Page parameters - change value
stephen.friedrich Sep 21, 2007 3:16 AM (in response to cdanielw)Gosh that stupid myfaces bug had cost lots of seam users lots of unproductive hours.
How about making Seam print a BIG FAT WARNING in the log when it detects that myfaces is used in conjunction with server-side state saving?
Can I file a jira issue for that? -
8. Re: Page parameters - change value
pmuir Sep 21, 2007 4:16 AM (in response to cdanielw)An entry in the SeamProblemsFAQ would probably be a good start. We haven't tested with MyFaces 1.2 and server state saving.
-
9. Re: Page parameters - change value
stephen.friedrich Sep 21, 2007 4:29 AM (in response to cdanielw)Done that. The visibility of the SeamProblemsFAQ however is tiny compared to a warning right in the console.
-
10. Re: Page parameters - change value
elmosca2 Oct 14, 2007 7:22 AM (in response to cdanielw)The bug has been fixed in MyFaces now and will be available in its next release.