You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "simon.s" <si...@gmx.de> on 2007/10/30 14:26:56 UTC
Input components display wrong values
Hello!
I am despaired: I have some components that should display and update my
model. Now the problem: When I open the page the first time everything is
ok, the correct values are displayed. When I open the page a second time
some components have the right, some have the values they had the last time.
Of course I checked my model but everything is correct and the most
fantastic is: Simple <h:outputText /> with the same value displays the right
value:
<h:inputTextarea value="#{model.selectedEntry.comment}" /> <-- wrong value
<h:outputText value="#{model.selectedEntry.comment}" /> <-- correct value
Can anybody help? I have no idea why the two components display different
values.
Thx!
Simon
--
View this message in context: http://www.nabble.com/Input-components-display-wrong-values-tf4718367.html#a13488292
Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: Input components display wrong values
Posted by "simon.s" <si...@gmx.de>.
For everyone who has the same problem, this is the answer:
http://wiki.apache.org/myfaces/ClearInputComponents
Regards
Simon
simon.s wrote:
>
> Hi!
>
> No, I do not ajax. Just a simple page.
>
> Simon
>
>
> Michael Heinen wrote:
>>
>> How do you open your pages? Do you use ajax?
>> What is your environment, your libraries, etc ?
>>
>> I have a similar problem in combination with ajax4jsf and sticky
>> local/submitted values.
>>
>> -----Original Message-----
>> From: simon.s [mailto:simon.schroeder@gmx.de]
>> Sent: Dienstag, 30. Oktober 2007 14:27
>> To: users@myfaces.apache.org
>> Subject: Input components display wrong values
>>
>>
>> Hello!
>>
>> I am despaired: I have some components that should display and update my
>> model. Now the problem: When I open the page the first time everything
>> is
>> ok, the correct values are displayed. When I open the page a second time
>> some components have the right, some have the values they had the last
>> time.
>> Of course I checked my model but everything is correct and the most
>> fantastic is: Simple <h:outputText /> with the same value displays the
>> right
>> value:
>>
>> <h:inputTextarea value="#{model.selectedEntry.comment}" /> <-- wrong
>> value
>> <h:outputText value="#{model.selectedEntry.comment}" /> <-- correct
>> value
>>
>> Can anybody help? I have no idea why the two components display
>> different
>> values.
>>
>> Thx!
>> Simon
>> --
>> View this message in context:
>> http://www.nabble.com/Input-components-display-wrong-values-tf4718367.ht
>> ml#a13488292
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Input-components-display-wrong-values-tf4718367.html#a13490657
Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: Input components display wrong values
Posted by "simon.s" <si...@gmx.de>.
Hi!
No, I do not ajax. Just a simple page.
Simon
Michael Heinen wrote:
>
> How do you open your pages? Do you use ajax?
> What is your environment, your libraries, etc ?
>
> I have a similar problem in combination with ajax4jsf and sticky
> local/submitted values.
>
> -----Original Message-----
> From: simon.s [mailto:simon.schroeder@gmx.de]
> Sent: Dienstag, 30. Oktober 2007 14:27
> To: users@myfaces.apache.org
> Subject: Input components display wrong values
>
>
> Hello!
>
> I am despaired: I have some components that should display and update my
> model. Now the problem: When I open the page the first time everything
> is
> ok, the correct values are displayed. When I open the page a second time
> some components have the right, some have the values they had the last
> time.
> Of course I checked my model but everything is correct and the most
> fantastic is: Simple <h:outputText /> with the same value displays the
> right
> value:
>
> <h:inputTextarea value="#{model.selectedEntry.comment}" /> <-- wrong
> value
> <h:outputText value="#{model.selectedEntry.comment}" /> <-- correct
> value
>
> Can anybody help? I have no idea why the two components display
> different
> values.
>
> Thx!
> Simon
> --
> View this message in context:
> http://www.nabble.com/Input-components-display-wrong-values-tf4718367.ht
> ml#a13488292
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
>
>
--
View this message in context: http://www.nabble.com/Input-components-display-wrong-values-tf4718367.html#a13489187
Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: Input components display wrong values
Posted by Michael Heinen <mh...@recommind.com>.
How do you open your pages? Do you use ajax?
What is your environment, your libraries, etc ?
I have a similar problem in combination with ajax4jsf and sticky
local/submitted values.
-----Original Message-----
From: simon.s [mailto:simon.schroeder@gmx.de]
Sent: Dienstag, 30. Oktober 2007 14:27
To: users@myfaces.apache.org
Subject: Input components display wrong values
Hello!
I am despaired: I have some components that should display and update my
model. Now the problem: When I open the page the first time everything
is
ok, the correct values are displayed. When I open the page a second time
some components have the right, some have the values they had the last
time.
Of course I checked my model but everything is correct and the most
fantastic is: Simple <h:outputText /> with the same value displays the
right
value:
<h:inputTextarea value="#{model.selectedEntry.comment}" /> <-- wrong
value
<h:outputText value="#{model.selectedEntry.comment}" /> <-- correct
value
Can anybody help? I have no idea why the two components display
different
values.
Thx!
Simon
--
View this message in context:
http://www.nabble.com/Input-components-display-wrong-values-tf4718367.ht
ml#a13488292
Sent from the MyFaces - Users mailing list archive at Nabble.com.