Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question for h:inputText with struts tile 1.1

 
Yasushi Okubo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic