This content has been marked as final.
Show 4 replies
-
1. Re: Page parameter with h:commandlink
nemya Sep 21, 2007 4:59 AM (in response to nemya)I changed my attribute type from boolean to Boolean
@RequestParameter("realise")
private boolean realise;
I have a nullPointerException every time I call a method using this "realise" attribute with my h:commandlink -
2. Re: Page parameter with h:commandlink
dsmith1 Sep 21, 2007 5:42 AM (in response to nemya)try
<s:link view="/Page.xhtml"> <f:param name="realise" value="#{true}" /> </s:link>
-
3. Re: Page parameter with h:commandlink
nemya Sep 21, 2007 5:47 AM (in response to nemya)The problem isn't on there. That s:link works fine. The problem is when I try to call a method from the bean that contains the @RequestParameter (method using my "realise" attribute).
I found a solution to my problem by assigning the "realise" attribute to another attribute in my @Begin @Create Method. And then I invoke only my new attribute and never the "realise" attribute.
But I still don't understand where my problem comes from. -
4. Re: Page parameter with h:commandlink
pmuir Sep 21, 2007 8:04 AM (in response to nemya)The parameter isn't propagated across the redirect by default so the second time it is injected into your bean it isn't there to inject.