users@jsf-extensions.java.net

Session variables is not getting updated in JSP with JSF

From: Shivaji9 <shivaji.byrapaneni_at_gmail.com>
Date: Wed, 18 Mar 2009 22:06:18 -0700 (PDT)

Hi Floks,

I had a situation where in i need to populate the drop down depending on the
action perfomed by user in menus.
An action method is triggered to load the scneario specific values to drop
down
 here is that

[code]
   PSSBuilder pssbuilder = new PSSBuilder();
            pssbuilder.getPlanTypesForCreateScenarioSnapshot(this,"S");
            getCCMPPSessionBean().setSelectedPlanType("0");
            this.getDrpPlanType().setRendered(true);
            this.getLblPlanType().setRendered(true);
            this.getDrpPlanType().setDisabled(false);
            Option[] opt = getCCMPPSessionBean().getPlanTypeOptions();
            Option[] tmp = new Option[opt.length-2];
            int j = 0 ;
            for(int i = 0 ; i < opt.length ; i++){
                    
                    
            
if((opt[i].getValue().toString().trim()).equalsIgnoreCase("SSMP") ||
                            
(opt[i].getValue().toString().trim()).equalsIgnoreCase("SRECON")){
                            
                    }else{
                            tmp[j] = opt[i];
                            j++;
                    }
                            
            }
            
            getCCMPPSessionBean().setPlanTypeOptions(tmp);

                // For debug
                opt = pssDetails.getCCMPPSessionBean().getPlanTypeOptions();
                for (int i = 0; i < opt.length; i++) {
                        CCMPPLogger.getLogger().debug(
                                        "Value [ " + opt[i].getValue() + " ] Label [ "
                                                        + opt[i].getLabel() + " ]");
                }

[/code]


in my JSP im doing this

[code]
<ui:dropDown id="drpPlanType"
                                                                                                                binding="#{PSSDetails.drpPlanType}"
                                                                                                                        items="#{CCMPPSessionBean.planTypeOptions}"
                                                                                                                        selected="#{CCMPPSessionBean.selectedPlanType}"/>
[/code]

i can see the logs with the values i expected from my action method.
where as comming to the jsp its showing some other things other than which i
see in logs..

Please help me

Thanks & Regards,
Shivaji Byrapaneni.
-- 
View this message in context: http://www.nabble.com/Session-variables-is-not-getting-updated-in-JSP-with-JSF-tp22593841p22593841.html
Sent from the jsf-extensions users mailing list archive at Nabble.com.