dev@jsftemplating.java.net

question relating to DropDown component

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Fri, 06 Oct 2006 18:53:38 -0700

Hi Ken,
Does the DropDown component honors the <!beforeEncode> event ?

I have the following:

    <sun:property label="ABC" >
             <event>
                  <!beforeEncode
                             println(value="!!!!!!!!!! beforeEncode of
Property -- This one shows up !!!" );
                   />
               </event>
             <sun:dropDown labels=${changeEveryRefresh}
selected="#{wizardPoolExtra.connectionDefinition}" required="#{true}" >
                 <event>
                    <!beforeEncode
                              println(value="!!!! beforeEncode of
DropDown, Never see this one !!" );
                     />
                <!beforeCreate
                              println(value="!!!! beforeCreate of
DropDown, This one shows up !!! );
                     />
                 </event>
             </sun:dropDown>
      </sun:property>

I need to change the dropdown list when the page redisplay. Is there
any way to force the UI component to be recreated so that i can make use
of the labels in the factory ? Otherwise, i have to write java code to
do the 'setItems' myself.

thanks
Anissa.