voyent
setting array value for inputText?  XML
Forum Index -> General Help
Author Message
andreiij

Joined: 15/Feb/2009 00:00:00
Messages: 35
Offline


Hi,

I have a inputText which value is an string in an Object-array
The getter is working, but which setter method should be used?

I don't get any exceptions and have tried different setters, but non of them updates my textfield field. Thanks!

BEAN
Code:
 String textfield;
 Object[] o =  { textfield,... } ;
 
 public Object[] getValues() {
       return o;
 }
 


WEB
Code:
   <ice:inputText value="#{Bean.values[0]}" />
 
camuski

Joined: 08/Jun/2009 00:00:00
Messages: 11
Offline


The InputText attribute “value” type is String.

You are not passing it String but Object – the super class of String and many more others. You want to replace Object[] with String[]. Good luck.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team