[ 
http://issues.apache.org/jira/browse/MYFACES-296?page=comments#action_12318593 
] 

Martin Marinschek commented on MYFACES-296:
-------------------------------------------

I tried that out - had to correct the sourcecode in several things, this is the 
revised version:

public class MyBean
{
    private boolean renderedText=false;
    private String text="input me ";
    public String getText()
    {
       return this.text;
    }
    public void setText(String text)
    {
        this.text=text;
    }
    public boolean getRenderedText()
   {
      return this.renderedText;
   }
    public void setRenderedText(boolean _renderedText)
    {
    this.renderedText=_renderedText;
    }
    public String doSubmitText()
    {
        System.out.println(this.renderedText);

        return "";
    }
}

Bean was defined as a session scoped bean!

State-Saving method: CLIENT_SIDE

... and it worked great! So I am closing this right now... Can be reopened if 
more information comes up.

> all of the input components  can not save sates when they are not rendered at 
> the first time
> --------------------------------------------------------------------------------------------
>
>          Key: MYFACES-296
>          URL: http://issues.apache.org/jira/browse/MYFACES-296
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: jdk 1.4.2
>     Reporter: lantian
>     Assignee: Martin Marinschek
>     Priority: Critical
>      Fix For: Nightly Build

>
> i make the rendered property of   input components  to be dynamic by binding 
> it whith a boolean variable of backingben,but 
> myface can not save the sates of input components when they are not rendered 
> at the first time.

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

Reply via email to