|
Hmm…quick questions: a) where is the setParam call from? b) Sorry if I didn’t explain this right, but what I am looking
to do is attach parameters in the backing bean that would be visible to the JSP
code as follows a. <h:outputText value=”#{param.blah}”/>, where blah
was *created* and *set* on the server-side. Is this possible, or am I going down a
crazy path? Thanks, -Saumil From: Emily Gu
[mailto:[EMAIL PROTECTED] I know you can get it as following. I don't know whether you have
another way to do it though. public void actionListener (ActionEvent event) { You can have regular setter and getter for param in the backing bean. On 12/27/05, Saumil
Mehta <[EMAIL PROTECTED]>
wrote: Hello, I've
got a JSF application which uses the <f:param> tag embedded in a
<h:commandLink> tag in several places. Now I need to set a parameter in a
backing bean that is accessible to the JSP when the page is re-rendered (the
same page is reloaded after the actionlistener executes, no navigation taking
place). How
would I go about attaching a parameter so that it would be accessible? Note
that this type of code doesn't work: Public
void actionListener (ActionEvent evt) {
UIParameter uip = new UIParameter();
Uip.setName("blah");
Uip.setValue("blah");
Uip.setParent(Evt.getComponent()); } I
am guessing this is because the component tree is re-created when the response
is rendered, and that therefore the parameter disappears when my JSP tries to
get to it. Any
ideas as to how this would be done? I'm pretty lost and would appreciate your help.
-Saumil |
- set UIParameter in backing bean Saumil Mehta
- Re: set UIParameter in backing bean Emily Gu
- Re: set UIParameter in backing bean Mike Kienenberger
- RE: set UIParameter in backing bean Saumil Mehta
- Re: set UIParameter in backing bean Emily Gu
- Re: set UIParameter in backing bean Dennis Byrne

