dev@jsftemplating.java.net

rendering component based on changing session attributes

From: Priti Tiwary <Priti.Tiwary_at_Sun.COM>
Date: Mon, 11 Sep 2006 17:27:28 -0700

Hi,

i have a qs related to rendering (lets say alert) component based on
attributes whose values are modified by other components(lets say button).

i have initially set render to false..so alert is not rendered when the
page is displayed first time..

<!beforeCreate
   setSessionAttribute(key="render", value="$boolean{false}")
/>

<sun:alert id="alert1" summary="Failed" details="check logs"
rendered="#{sessionScope.render}"/>
.....
     <sun:button id="Btn1" text="Next">
          <!command
                
                changeRenderProp(renderAlert=>$session{render})/>
    </sun:button>


If changeRenderProp changes render value to true, after Next button
click, the same page should be displayed (navigate is doing that) but
with alert rendered..(not doing that right now)

what is wrong here..?
Priti

-- 
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Priti Tiwary          		M/S SCA16-2425
Sun Microsystems, Inc.		4160 Network Circle
Voice: +1 408 276 5559          Santa Clara, CA 95054      
Cell: +1 510 396 4431           United States