You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Marcus Schmidke <ma...@prosystemsit.de> on 2006/07/21 16:26:46 UTC
inputText doesn't display value??
Hello all,
what might be the reason if an inputText does not display the "value"
value?
(Facelets / myFaces 1.1.3)
The source code:
...
<td>
<h:inputText value="#{leistungsschein.leistung.beschreibung}" />
<h:outputText value="#{leistungsschein.leistung.beschreibung}" />
</td>
...
The HTML result:
<td><input id="_id8:_id10:4:_id32" name="_id8:_id10:4:_id32" type="text"
value="" />Beschreibungstext
</td>
As you can see, outputText did what it should. inputText didn't.
Into what kind of beginner's trap did I tumble now???
(leistungsschein is a Seam managed stateful bean, does that matter?)
Marcus.
_____________________________________________________________________
prosystems IT GmbH
Anwendungsentwicklung
Postfach 31 51
53021 Bonn (Germany)
Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329
mailto:Marcus.Schmidke@prosystemsIT.de http://www.prosystemsIT.de
Amtsgericht Bonn - HR B 13189
Re: inputText doesn't display value??
Posted by Chandra Sekhar <sv...@lasersoft.co.in>.
Hi,
For display the record after fetching from the database
you need to use <h:outputLabel> for displaying it.
Regards,
Chandru.
----- Original Message -----
From: "Marcus Schmidke" <ma...@prosystemsit.de>
To: <us...@myfaces.apache.org>
Sent: Friday, July 21, 2006 7:56 PM
Subject: inputText doesn't display value??
>
> Hello all,
>
> what might be the reason if an inputText does not display the "value"
> value?
>
> (Facelets / myFaces 1.1.3)
>
> The source code:
>
> ...
> <td>
> <h:inputText value="#{leistungsschein.leistung.beschreibung}" />
> <h:outputText value="#{leistungsschein.leistung.beschreibung}" />
> </td>
> ...
>
> The HTML result:
>
> <td><input id="_id8:_id10:4:_id32" name="_id8:_id10:4:_id32" type="text"
> value="" />Beschreibungstext
> </td>
>
> As you can see, outputText did what it should. inputText didn't.
>
> Into what kind of beginner's trap did I tumble now???
>
>
> (leistungsschein is a Seam managed stateful bean, does that matter?)
>
> Marcus.
>
> _____________________________________________________________________
> prosystems IT GmbH
> Anwendungsentwicklung
> Postfach 31 51
> 53021 Bonn (Germany)
>
> Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329
> mailto:Marcus.Schmidke@prosystemsIT.de http://www.prosystemsIT.de
> Amtsgericht Bonn - HR B 13189
>
Re: inputText doesn't display value??
Posted by Mike Kienenberger <mk...@gmail.com>.
What happens if you edit the xhtml file and reload the page? Do both
of them end up with an empty value? I was noticing that facelets was
caching the values of my outputText and el expressions, and wouldn't
change them until I edited the xhtml file and reloaded the page. It
could be that your inputText field is showing the "real" value while
the outputText file is showing a cached value.
On 7/21/06, Marcus Schmidke <ma...@prosystemsit.de> wrote:
>
> Hello all,
>
> what might be the reason if an inputText does not display the "value"
> value?
>
> (Facelets / myFaces 1.1.3)
>
> The source code:
>
> ...
> <td>
> <h:inputText value="#{leistungsschein.leistung.beschreibung}" />
> <h:outputText value="#{leistungsschein.leistung.beschreibung}" />
> </td>
> ...
>
> The HTML result:
>
> <td><input id="_id8:_id10:4:_id32" name="_id8:_id10:4:_id32" type="text"
> value="" />Beschreibungstext
> </td>
>
> As you can see, outputText did what it should. inputText didn't.
>
> Into what kind of beginner's trap did I tumble now???
>
>
> (leistungsschein is a Seam managed stateful bean, does that matter?)
>
> Marcus.
>
> _____________________________________________________________________
> prosystems IT GmbH
> Anwendungsentwicklung
> Postfach 31 51
> 53021 Bonn (Germany)
>
> Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329
> mailto:Marcus.Schmidke@prosystemsIT.de http://www.prosystemsIT.de
> Amtsgericht Bonn - HR B 13189
>
>
>