This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes Elaboration? Page param and postback! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Elaboration? Page param and postback!" Watch "Elaboration? Page param and postback!" New topic
Author

Elaboration? Page param and postback!

Prathamesh Gaddam
Ranch Hand

Joined: Feb 18, 2008
Posts: 58
Hi Ranchers,

I'm unable to get these words clearly:

For links and redirects, the parameters that are applied to the URL are read from the configuration for the
target view ID. JSF forms post back to the same page, so the target view ID is the same as the page that
rendered the form.


Please clarify in detail about:
1. Postback (unable to get the details w.r.t JSF at wiki)
2. Above sentance in bold.

Thank you in advance.
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
Prathamesh Gaddam wrote:1. Postback (unable to get the details w.r.t JSF at wiki)

It means when a page control is triggered (i.e. when you click on a submit button), the data is sent back to the same URL page.

Prathamesh Gaddam wrote:2. Above sentance in bold.
JSF forms post back to the same page, so the target view ID is the same as the page that
rendered the form.

In JSF, every JSF page have a view id (i.e. if the URL is http://server:post/MyApp/mypage.jsp) then the view id is normally "mypage". Now since, the data is sent back to the same page (i.e. http://server:port/MyApp/mypage.jsp) which rendered the previous form, hence the view id remains the same (i.e. "mypage").


“Everything should be as simple as it is, but not simpler.” Albert Einstein
Prathamesh Gaddam
Ranch Hand

Joined: Feb 18, 2008
Posts: 58
Thank you very much Duc Vo for precise and speedy responce!

Other: Please also elaborate:
Everything should be as simple as it is, but not simpler.”
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
Prathamesh Gaddam wrote:Thank you very much Duc Vo for precise and speedy responce!

Other: Please also elaborate:
Everything should be as simple as it is, but not simpler.”

You want me to elaborate my signature?
Anyway, it is a quote from one of the greatest physicists of all time. It can mean several things but following are what I like:
(1) Don't complicating a problem
(2) However, don't over simplify a problem
(3) Also, don't try to solve non-existing problem either ...

LOL, hope it's clear now.
 
 
subject: Elaboration? Page param and postback!