Wednesday, 9 May 2012

Introduction

Hi ,
I am Gautam Balwant Singh . I am a java software devleoper.
Had got enough experience to guide help and guide others in various java technologies.
Time to time I will be sharing my knowledge using this blog as a medium.
Please fell free to post for queries regarding java technologies.  

4 comments:

  1. Hi Gautam ,

    Can you please explain how the 'immediate attribute' affects the JSF life cycle and where can this attribute be helpful in building JSF Page.

    ReplyDelete
  2. 'immediate' is one of the property of JSF component.
    It holds boolean value. By default it is 'false'. But when you set the immediate ="true" to any component its conversation,validation and updation of model happens in the second phase of the JSF life cycle(apply request phase). For all those component who are not set immediate="true" follow the same life cycle process.

    If the component is action component like '' then 'invoke application phase' operation is performed in the 'apply request phase'.


    The use of 'immediate' property is very tricky.
    It can be useful in scenario like:-
    1.For cancel operation you can use the immediate="true", where on the click of cancel button you can skip all the validation of other attributes.
    2. Situation where you have like many components on the page and you want to validate only 5 components. then you set those 5 components as 'immediate="true". By this the validation of these 5 component will happen in the second phase and if any error occurs than then it will skip the other phases and render to the render response phase i.e the last phase of the life cycle. The reset of the component are not validate that's saves your time.

    I think this answer yours question.

    ReplyDelete
  3. Thanks man...your valuable support really helped mew a lot!!!

    ReplyDelete