webtier@glassfish.java.net

[webtier] Re: How to debug action method not being called in command button

From: Ed Burns <edward.burns_at_oracle.com>
Date: Wed, 24 Mar 2010 09:54:52 -0700

>>>>> On Fri, 19 Mar 2010 21:02:45 -0700 (PDT), webtier_at_javadesktop.org said:

ABS> I think I figured this one out. The page in question had a
ABS> parameter on the URL, that was not being preserved by the command
ABS> link. The failure was coming when the page was trying to
ABS> reconstruct the view I guess because the parameter was not there it
ABS> could not rebuild the tree. I hard-coded the value list to return
ABS> a list without regard to the parameter and it worked. So, now I
ABS> need to figure out how to make forms work with URL parameters.

This is exactly what <f:viewParam>, new in JSF 2.0, is for.

I don't have time to find an example for you right now, but I can say
it's covered in my book <http://bit.ly/edburnsjsf2>.

Ed

-- 
| edward.burns_at_oracle.com  | office: 408 884 9519 OR x31640
| homepage:                | http://ridingthecrest.com/