You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Bauschert (JIRA)" <de...@myfaces.apache.org> on 2006/10/06 16:21:19 UTC

[jira] Created: (MYFACES-1438) Content of bound Panel get lost

Content of bound Panel get lost 
--------------------------------

                 Key: MYFACES-1438
                 URL: http://issues.apache.org/jira/browse/MYFACES-1438
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 1.1.4
         Environment: XP SP2, Tomcat 5.5, JDK 1.4.2_09
            Reporter: Michael Bauschert


There is a jsp (wizard.jsp) creating two components with a binding to properties within a managed bean (DummyWizardBean)

The Jsp:
	<h:outputText id="wizardText" binding="#{dummyWizard.caption}"/>
	<h:panelGrid id="wizard" binding="#{dummyWizard.inputFieldContainer}"/>

The Bean:
	public HtmlPanelGrid getInputFieldContainer() {
		return inputFieldContainer;
	}

	public HtmlOutputText getCaption() {
		return caption;
	}



If the buttons next or pev are pressed a method on the bean is invoked which is switching the references "dummyWizard.caption" and "dummyWizard.inputFieldContainer". If the use presses next the switch from page1 to page 2 is successful. If the user switches back to page1 the outputText and the panelGrid are not show again.

These are the methods:

	public String back() {
		inputFieldContainer = inputFieldContainers[0];
		caption = captions[0];
		backButtonDisabled = true;
		nextButtonDisabled = false;
		return "wizard";
	}

	public String next() {
		inputFieldContainer = inputFieldContainers[1];
		caption = captions[1];
		backButtonDisabled = false;
		nextButtonDisabled = true;
		return "wizard";
	}

The sample is working with myfaces 1.1.3. Tomahawk was 1.1.3 (but is think that should not matter)

The attached sample contains a complete webapplication (as eclipse webproject) to reproduce the bug.
The second attachment contains the webapplication as war-file for easier "demoing".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira