Hi,

But how do I get that target?

As the items are being rendered using a ListView - the only time I can get
access is during the populateItem - but thats a ListItem, I need a
AjexRequestTarget to append the javascript?



On Sun, Aug 17, 2008 at 1:28 PM, Vitaly Tsaplin <[EMAIL PROTECTED]>wrote:

>   Hi,
>
>   The item is already on your page so just use its html id in the
> javascript script you use to highlight it.
>
>   Vitaly
>
> On Sun, Aug 17, 2008 at 1:22 PM, Wayne Pope
> <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > I have a ListView that displays a list of cars (say).
> > I have a small form on the page whereby they can add a new car using a
> > AjaxFallbackButton.
> > I can enter a new car and it updates the ListView
> >
> > However I want to highlight the newly added item, and I just can't seemt
> to
> > figure out how I can 'target' the item.
> >
> > I'd like to do something like
> >
> > protected void onSubmit(AjaxRequestTarget target, Form arg1) {
> >  // add new car...
> >
> >   if (target!=null) {
> >     target.addComponent(carList);
> >     target.addCompoent(<THENEWITEM>.addJavascript(new
> > Effect.Highlight(this).toJavascript()));
> > }
> >
> >
> > - the question is how do I get the target reference to the new item
> added?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to