File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes How to used a variable inside the value attribute of a h:inputText tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to used a variable inside the value attribute of a h:inputText tag" Watch "How to used a variable inside the value attribute of a h:inputText tag" New topic
Author

How to used a variable inside the value attribute of a h:inputText tag

Federico Zuppa
Greenhorn

Joined: Nov 23, 2004
Posts: 7
I am working with JSF 1.2 and facelets. Trying to build 2 forms, a client form and an employee form. Both of these form share some fields related to the address, so I have refactor these fields into a address composition which I include in the client and employee pages.
What I need to do when including the address component is passing the backing bean and then use this backing bean in address.xhtml

I have managed to pass the backing bean as a parameter:



but now I don't know how to use this parameter inside the value attribute of the h:inputText in address.xhtml

I gave it a shot to this, but it doesn't work:


Anyone can give me a hint on how this is done?
Cheers,
-fede
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to used a variable inside the value attribute of a h:inputText tag