Using Ajax can I set page properties, meaning for eg.

I have this ListEditMap of items(defined as a Page Property) in my
cart which are displayed in the page using @ListEdit component. I am
trying to add a Ajax help. wherin the user is typing in the name and
the available items are pulled from DB using AJAX. But now when a item
is selected. I have to add it to this ListEditMap for items. There are
2 steps for this. FIRST, I have to identify the selected item and
SECOND, add it to the pages' ListEditMap. For the first one ur earlier
reply should be the solution. Still stuck with the second one though.
Can this be done or am I going wrong somewhere. I want this to happen
without a page refresh. Is that possible?

Ty

On 6/17/05, Kent Tong <[EMAIL PROTECTED]> wrote:
> ty renner <mymail.ty <at> gmail.com> writes:
> 
> > I am using tapestry ajax component xtile. this thread returns me
> > results for a search without a page refresh. I am populating the
> > result returned by xtile into a simple html listbox. now onsubmit of
> > the page I want to read the selected items from this listbox inside
> > the tapestry class. How can I do this?
> 
> You will have to do something like that:
> 
>    Set selectedItems = buildSelections(cycle, yourSelect.getName());
> 
> The buildSelections() method is taken from Select.java:
> 
>    private Set buildSelections(IRequestCycle cycle, String parameterName)
>    {
>        RequestContext context = cycle.getRequestContext();
> 
>        String[] parameters = context.getParameters(parameterName);
> 
>        if (parameters == null)
>            return null;
> 
>        int length = parameters.length;
> 
>        int size = (parameters.length > 30) ? 101 : 7;
> 
>        Set result = new HashSet(size);
> 
>        for (int i = 0; i < length; i++)
>            result.add(parameters[i]);
> 
>        return result;
>    }
> 
> --
> Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)
> 
> 
> ---------------------------------------------------------------------
> 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