Hi,

"Can't coerce a List to a SelectModel".

Regards,
Daniel P.

-----Ursprüngliche Nachricht-----
Von: Thiago H de Paula Figueiredo [mailto:[email protected]] 
Gesendet: Mittwoch, 7. Oktober 2015 16:11
An: Tapestry users
Betreff: Re: SelectModel created by Factory using List<String>

On Wed, 07 Oct 2015 05:39:03 -0300, Poggenpohl, Daniel 
<[email protected]> wrote:

> Hi,

Hi!

> I tried to fix some IntelliJ warnings by returning not a List<String> 
> for a select model,

Tapestry has a built-in conversion from List to SelectModelFactory so it's a 
completely valid object to pass to the model parameter of SelectModel-based 
components. I don't know why IntelliJ is showing you a warning for that. What 
exactly does the warning say?

> but rather a SelectModel created using the SelectModelFactory.create 
> method. The method takes two parameters. If I give a List<String> as 
> the objects, what labelProperty do I have to set then?

You don't.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to