-
1. Re: Page Parameter not working
milli Sep 11, 2007 7:20 PM (in response to stephen.friedrich)When you hover over the link do you see departmentId and its value in the URL?
Are you injecting request parameter or using page parameter to get the value in your model? -
2. Re: Page Parameter not working
stephen.friedrich Sep 12, 2007 1:41 AM (in response to stephen.friedrich)I do see the request parameter in the URL and after clicking on a link the correct URL is even displayed in the browser's address bar.
I do (try to) use a page parameter:<page view-id="/departments.xhtml" action="#{entryAction.enter()}"> <param name="departmentId" value="#{departmentHome.id}" converterId="javax.faces.Long"/> </page>
I put the action there only for testing and it sure is called.
However request parameters never are used. As I previously said: This setup was working on Seam 2.0.0, Trinidad 1.2.2, Sun JSF RI 1.2 and JBoss 4.2. Of course it may be that I forgot to change some descriptors to the older format, but I triple (quadruple, and lots more) checked them against the seampay example in 1.2.1.
It really seems to me like a bug in the integration of Seam and Trinidad.
In my scenario Seam never calls it's own applyRequestParameterValues() which sure seems like a bug to me. Of course it probably has a deeper cause somewhere.
It seems that for this request Seam figures out there won't be a JSF response, so the applyRequestParameterValues() is not needed (I have no clue why facesContext.getRenderResponse() always returns false nor why that should disable request parameter processing). -
3. Re: Page Parameter not working
stephen.friedrich Sep 12, 2007 7:06 PM (in response to stephen.friedrich)Another midnight is through, but stupid me has found the culprit:
As part of the backport from Seam 2.0.0 to 1.2.1 I changed from JSF RI to MyFaces, but I still tried to use server side state saving, which seems to be known to be buggy:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=108488
Currently I am working with client side state saving and it works fine. Unfortunately I probably have to get server side state saving to work, because my client's web development guidelines forbid hidden input field.
Even more unfortunately there were issues with Trinidad and JSF RI last time I tried, so that's not an easy way either. I'll check again, maybe now with Trinidad 1.0.2 and JSF RI 1.1 I'll have more luck. However right now I am totally fed up with trying to get different frameworks to work together. -
4. Re: Page Parameter not working
piotr.walczyszyn Sep 17, 2007 4:00 PM (in response to stephen.friedrich)Did you manage to solve this problem? I have a same issue with my application. I even tried to upgrade myfaces to 1.1.5 but it didn't help.
-
5. Re: Page Parameter not working
stephen.friedrich Sep 17, 2007 4:19 PM (in response to stephen.friedrich)Nope, currently I am still using client-side state saving which is working fine.
I posted a question on the myfaces mailing list, but nobody seemed to care. -
6. Re: Page Parameter not working
piotr.walczyszyn Sep 17, 2007 4:23 PM (in response to stephen.friedrich)The strange thing about this problem is that its completely not deterministic. I have a few pages that are using same construct and are working fine.