myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bauschert (JIRA)" <>
Subject [jira] Created: (MYFACES-1438) Content of bound Panel get lost
Date Fri, 06 Oct 2006 14:21:19 GMT
Content of bound Panel get lost 

                 Key: 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

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:
For more information on JIRA, see:


View raw message