struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodrigo Pereira" <rodpereira...@gmail.com>
Subject Re: 2.0.11: s:autocompleter
Date Tue, 11 Dec 2007 18:37:42 GMT
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,  <mgainty@hotmail.com> 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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>

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


Mime
View raw message