Alright... here's the log:

I load the page:
15 Jun 2006 10:31:36,561 - INFO -
ProjectCreationWizardBackingBean.<init>(24) | created

I click the first button
15 Jun 2006 10:31:38,311 - INFO -
ProjectCreationWizardBackingBean.<init>(24) | created
15 Jun 2006 10:31:38,311 - INFO -
ProjectCreationWizardBackingBean.enableStepTwo(44) | called...

I click the second button
15 Jun 2006 10:31:40,265 - INFO -
ProjectCreationWizardBackingBean.<init>(24) | created

and back to where I started! Why does it keep instantiating a new bean?


Here's a simplified version of the jsf page (excluding the t:saveState at
the top):
<t:panelTabbedPane styleClass="tabbedPane" 
                activeTabStyleClass="activeTab" 
                inactiveTabStyleClass="inactiveTab" 
                disabledTabStyleClass="disabledTab" 
                activeSubStyleClass="activeSub" 
                inactiveSubStyleClass="inactiveSub" 
                tabContentStyleClass="tabContent"
                serverSideTabSwitch="true" 
                selectedIndex="#{pcwBacker.currentIncompleteStep - 1}">

        <t:panelTab label="General Information">
                <h:form>
                <t:panelGrid columns="2" cellpadding="10px">
                        
                        <t:commandButton action="#{pcwBacker.enableStepTwo}" 
                                value="#{pcwBacker.completed ? 'Update' : 'Next 
Step'}"
styleClass="btn"/>      
                        <h:outputText value=""/>
                </t:panelGrid>
                </h:form>
        </t:panelTab>
                                
        <t:panelTab rendered="#{pcwBacker.stepTwoEnabled}" label="People 
Involved">
                <h:form>
                <t:panelGrid columns="1" cellpadding="10px">
                        <t:commandButton action="#{pcwBacker.enableStepThree}" 
                                        value="#{pcwBacker.completed ? 'Update' 
: 'Next Step'}"
styleClass="btn"/>
                </t:panelGrid>
                </h:form>
        </t:panelTab>
                        
        <t:panelTab rendered="#{pcwBacker.stepThreeEnabled}" label="Project
Description">
                <h:form>
                <t:panelGrid columns="1">
                        <t:commandButton action="#{pcwBacker.enableFinalStep}" 
                                        value="#{pcwBacker.completed ? 'Update' 
: 'Next Step'}"
styleClass="btn"/>
                </t:panelGrid>
                </h:form>
        </t:panelTab>
                        
        <t:panelTab rendered="#{pcwBacker.finalStepEnabled}" label="Final">
                <h:form>
                <t:panelGrid columns="1">
                        <t:commandButton value="Save" action="#{pcwBacker.save}"
styleClass="btn"/>
                </t:panelGrid>
                </h:form>       
        </t:panelTab>
                        
</t:panelTabbedPane>
--
View this message in context: 
http://www.nabble.com/Problems-With-saveState-t1780890.html#a4884106
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to