Hi all,

I wonder if any of you used the Type conversion as explained here
http://struts.apache.org/2.x/docs/type-conversion.html

I am trying to dynamically fill a table. I have a bean 
Person and Person has "List<House>".  

What did I do is step by step.

1 - I defined "List <House> houseList" in the PersonAction class. (Also
Getter and Setter Methods)

2 - create a file. in the resources directory (the path is the same with the
PersonAction) 

PersonAction-conversion.properties

KeyProperty_houseList=id
Element_houseList=org.tutorial.model.House
CreateIfNull_houseList=true

3 - And in the jsp file I put this as it is said in link above.

<s:iterator value="houseList" id="house">
  <s:textfield name="houseList(%{house.id}).name" />
</s:iterator>

(House has a String field "name")

4 - The values are not shown in the jsp file. So I cannot get them in the
action too. 
But when I change the name of the <s:textfield> to "name" it writes the
names on the textboxes. But still I cannot get the list when I press on the
update button.

Can you see what I am doing wrong?

Thanks for reading.
-- 
View this message in context: 
http://www.nabble.com/-S2--How-to-make-type-Conversion-tf3653255s2369.html#a10205738
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to