Kiran,

How you persist your application state (i.e. the parameters) will depend on whether you choose client or server state saving. You can read more about both options on the wiki. See [1] to get you started.

Once you have the right parameters, it's a simple matter of (a) retrieving fresh data from your back end; and (b) making sure JSF displays the new data. The trick I gave you in the last post can help with part (b).

Good luck.

[1] http://wiki.apache.org/myfaces/How_JSF_State_Management_Works

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

[EMAIL PROTECTED] wrote:
Thanks Jeff,

I will try the option suggested by you.
Here are some more details about my requirement.
Every page of my application has header. Header contains Refresh button.
Selecting it, the page should fetch the data from back end.

I foresee some problems with Refresh in JSF with the limited knowledge I
have in JSF.
- The page would have been displayed because of some actionlistener with
parameters.

Getting the parameters again (firing of that actionlistener) may not be
possible.
- the Browser URL may be that of previous page (Using 'redirect' in
faces-config may solve this. But I'm not sure about the implications of
it)

I hope the trick would work for me.

Regards,
Kiran

-----Original Message-----
From: Jeff Bischoff [mailto:[EMAIL PROTECTED]

Sent: Thursday, September 21, 2006 12:07 AM
To: MyFaces Discussion
Subject: Re: Refresh JSF Page


Kiran,

That's a pretty broad topic! If you could be more specific, you might

get more hints...

See [1] for a neat trick to force updated model values in input
components.

[1] http://wiki.apache.org/myfaces/ClearInputComponents

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

[EMAIL PROTECTED] wrote:
Hi,


I have to provide Refresh Button in all the pages of my JSF
application.
Please help me how to achieve Refresh.


Regards,
Kiran


The information contained in this electronic message and any
attachments

to this message are intended for the exclusive use of the addressee(s)

and may contain proprietary, confidential or privileged information.
If

you are not the intended recipient, you should not disseminate,

distribute or copy this e-mail. Please notify the sender immediately
and

destroy all copies of this message and any attachments.


WARNING: Computer viruses can be transmitted via email. The recipient

should check this email and any attachments for the presence of
viruses.

The company accepts no liability for any damage caused by any virus

transmitted by this email.


www.wipro.com






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.


WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.


www.wipro.com





Reply via email to