Hi,

I use a |TextArea| component in a form so that users can enter a set of IP addresses. The target model is of type |Collection<String>|. I have written a validator to validate the raw user input an a converter to convert the string input into a collection of strings (|Collection<String>|).

Now I cannot set the model for the used |TextArea| instance it has a different object type then |String|.

Any idea how to handle this?

|public  class  MyForm<FormModel>
{
    private  final  TextArea<String> cripField;
}

// The validator is validating the raw string
public  class  CripBlockValidator  implements  IValidator<String>
{/*...*/}

// The converter coverts the string input into a subtype of List<String>
public  class  CripBlockConverter  extends  AbstractConverter<IPList>
{/*...*/}
|

Reply via email to