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 question for h:inputText with struts tile 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "question for h:inputText with struts tile 1.1 " Watch "question for h:inputText with struts tile 1.1 " New topic
Author

question for h:inputText with struts tile 1.1

Yasushi Okubo
Greenhorn

Joined: Jan 28, 2005
Posts: 9
I am using jsf1.1.01 + struts 1.1 and try to get data from h:inputText field. It should be simple, but I am having difficuty to do so. Please help me experts.

I have defined a simple tile controler attached to the tile creates an instancce of a bean and put it into a sessionBean. And one jsp page that has an inputText field:

<h:inputText id="targetId" value="#{queryBean.targetId}" valueChangeListener="#{queryBean.idSelected}"/>

is imported to one of tiles. When a use clicks a commandButton, I would like to simply capture a value entered in inputText field.

It looks to me that I need to kick off setXX method for beans somehow if I have a controler, but I am not sure about it. So, I added a valueChangeListener to inputText component, but it did not work. It does not work with/without valueChangeListener.

my questions are:
1. if the tile controler servlet has been added, should setXX methods be hand-coded to the controler ? if so, why does only getXXX methods work fine to display

2. if I have to get inputText value from tile controler, how can I get it ?

3. Or should I change to managed bean from tile controler ?

Thank you
yasushi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question for h:inputText with struts tile 1.1