Just be sure that modelObj.equals( selectedObj ) returns true when it
should.
What do you mean? The object that I pass to the selected parameter should be the same as the model? But the documentation mentions a List. Should I pass a List of models, then? On 6/14/06, Schulte Marcus <[EMAIL PROTECTED]> wrote:
You can use any collection of Model-objects (the objects which are returned by getOption(int) from your PropertySelectionModel). Just be sure that modelObj.equals( selectedObj ) returns true when it should. Marcus > -----Original Message----- > From: Rui Pacheco [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 14, 2006 2:05 PM > To: Tapestry users; Tapestry users > Subject: Setting selected values on Palette > > My little project moves on. I started with a select from > which I needed to retrieve multiple values, now things have > changed (damn the spec, we don't need no stinkin' specs!) and > I ended up using a Palette. > > Which brings us to my question: I have no problem setting the > model and retrieving the selected values. But how can I set > the selected values if, say, I wanted to edit the information > on my form instead of filling a new form? > > I tried passing a List of models (same type as the models I'm > using to fill the Palette's model), and a simple list with > Strings, but nothing happens. > -- > Cumprimentos, > Rui Pacheco > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Cumprimentos, Rui Pacheco