Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Elaboration? Page param and postback!

 
Prathamesh Gaddam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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").
 
Prathamesh Gaddam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic