Hi,
this way you're hard coding the 1st dropdown list. I'd like to get it
from an action.
By the way, how does the 2nd dropdown get updated?

Thanks,
Rodrigo Pereira


On Dec 11, 2007 2:01 PM,  <[EMAIL PROTECTED]> wrote:
> http://struts.apache.org/2.0.6/docs/ajax-tags.html
> <s:url id="autoLower" action="dropdown!lower"/><form id="selectForm"><!--
> allow the control to set values for upperValue --> <s:autocompleter
> theme="simple" list="{'UPPERNAME','lowername'} name="upperValue"
> notifyTopics="/Changed"/> <s:autocompleter theme="ajax" href="%{autoLower}"
> formId="selectForm" listenTopics="/Changed"/>M--
>
>
> > Hi,
> > I am trying to dynamic update a dropdown list based on the selection
> > of the previous one, but I am getting no value in the 2nd dropdown
> > list.
> >
> >
> > dropdown.jsp:
> >
> > <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> > <%@ taglib prefix="s" uri="/struts-tags" %>
> > <html>
> > <head>
> > <title>Example - Dropdown</title>
> >
> > <s:head theme="ajax"/>
> >
> > </head>
> > <body>
> >
> > <s:url id="autoLower" action="dropdown!lower"/>
> >
> > <form id="selectForm">
> > <s:autocompleter theme="simple" id="upperValue" name="upperValue"
> > list="upper" listValue="name" listKey="valueId"
> > notifyTopics="/Changed"/>
> > </form>
> >
> > <s:autocompleter theme="ajax" id="lowerValue" name="lowerValue"
> > list="lower" listValue="name" listKey="valueId" href="%{#autoLower}"
> > listenTopics="/Changed" formId="selectForm" />
> >
> > </body>
> > </html>
> >
> > Does anybody know what I am doing wrong?
> > Btw, the action is called and it can access upperValue value, is there
> > a way of sending key instead of value?
> >
> > Thanks,
> > Rodrigo Pereira
> >
> > ---------------------------------------------------------------------
> > 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