• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

binding

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is binding doing internally?
How it will affect the normal life-cycle of JSF page?
where and when should I use it?

Example:
I have 5 JSF components in my page. On some action...I need to set some properties of those components from the backing bean.

now...if I am doing with the scope request and using binding...i can set all the properties of all the components of that page.

or...with session scope and without binding i can do the same.

which one is the better approach?

Is it good idea to keep all the states of all components stored in session??? or bindind could be the good alternative???
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vishal K Patel:
what is binding doing internally?
How it will affect the normal life-cycle of JSF page?
where and when should I use it?


Check this link, nice one..
http://java.sun.com/developer/EJTechTips/2004/tt0923.html


Example:
I have 5 JSF components in my page. On some action...I need to set some properties of those components from the backing bean.

now...if I am doing with the scope request and using binding...i can set all the properties of all the components of that page.

or...with session scope and without binding i can do the same.

which one is the better approach?

Is it good idea to keep all the states of all components stored in session??? or bindind could be the good alternative???



Using backing bean can sometimes be abused and mix the business data with the form components, but it has its uses like it is sometimes
necessary for event handlers or validators to have access to the actual components on a form. That case, yes backing beans can be used, but
in general try to use a different beans for business objects.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic