You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jamie Orchard-Hays <ja...@dang.com> on 2004/01/12 23:06:50 UTC

Re: palette and selected [RE-SOLVED]

D'OH!

Upon further analysis, I realized that an omission in my code before I tried
the code below might have been the problem. I tried again with the missing
line (I had wrapped an abstract setter so I could log info and then never
called what I was wrapping.) and all was well.

page.getComponent("myPalette").setProperty("selected", myList); is
unnecessary.

Jamie


----- Original Message ----- 
From: "Jamie Orchard-Hays" <ja...@dang.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Monday, January 12, 2004 4:42 PM
Subject: Re: palette and selected [SOLVED]


> In the DirectLink Listener:
>
> iPage page = cycle.getPage("SearchPage");
> page.getComponent("myPalette").setProperty("selected", myList);
>
>
> ----- Original Message ----- 
> From: "Jamie Orchard-Hays" <ja...@dang.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Monday, January 12, 2004 1:25 PM
> Subject: palette and selected
>
>
> > On my Search page I've got a page with a bunch of Palettes to select
> > properties for a search filter. I set the filter and pass set the filter
> > property on the Results page (persistent="no"). If I want to modify the
> > search properties, I have a DirectLink with a listener on Results page
to
> > set the "selected" lists for each of the Palettes on the Search page.
> Using
> > log.info() I can see that all is working as expected, except that the
> > "selected" items are not displaying as selected when the page renders. I
> can
> > see that the property is set with the correct list, but isn't displayed.
> I'm
> > out of ideas as to what I'm not doing correctly.
> >
> > Jamie
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org