Hi Arvind,

the attribute named "collapsed" has been changed over to be the
"value" attribute in newer versions of MyFaces - apart from that, your
explanation holds true.

regards,

Martin

On 8/25/06, Mr Arvind Pandey <[EMAIL PROTECTED]> wrote:
Hi,
    You can use following attribute :
      collapsed="true".
 But this way it will always keep it open, therefore
you can use a bean property as below :

collapsed="#{collapsiblePanelBean.booleanVariable}"
and  keep default value of booleabVariable as true and
scope of collapsiblePanelBean must be request.

eg:
JAVA class :
public collapsiblePanelBean{
private boolean booleanVariable = true;

public isBooleanVariable(){
   return booleanVariable;
}

public setBooleanVariable(booleanVariable){
   this.booleanVariable = booleanVariable;
}
}


JSF File:
<t:collapsiblePanel
collapsed="#{collapsiblePanelBean.booleanVariable}"
value="XYZ" >
  ---JSF contents --->
</t:collapsiblePanel>

   Hope this will work.
Regards
Arvind


--- Dennis Gesker <[EMAIL PROTECTED]> wrote:

> Which attribute is used to have this control default
> to open? I wasn't
> able to find anything at
> http://myfaces.apache.org/tomahawk/index.html
> --drg
>
> --
> Dennis R. Gesker
> email: [EMAIL PROTECTED]
> Key Id: 0xEFA10A51
>
>




__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to