So how do you know which one you think you are supposed to be using for the
search? Say the top one submits KS and the bottom one submits OK. How does
your code know which one you meant for the search? Or is that also part of
the problem?
Gregg
On Fri, Aug 29, 2008 at 2:45 PM, Stripes-payal <[EMAIL PROTECTED]> wrote:
>
> yes,this is correct,and also when again i start selecting values form top
> it
> shows the result with old values.
> neither it changes the value of dropdown.
>
>
> Gregg Bolinger-7 wrote:
> >
> > I found it very difficult to read your question so I hope that I am
> making
> > some correct assumptions. My assumption is that you have 2 drop down
> > select
> > lists. Both contain states. When the top one is selected every thing
> > works
> > correctly. When the bottom one is selected the filter works right but
> the
> > top select isn't updated with the selected search state from the bottom
> > one.
> >
> > Is this correct? Is so, I can take a stab at helping you solve your
> > problem
> > so let me know.
> >
> > Gregg
> >
> > On Fri, Aug 29, 2008 at 1:50 PM, Stripes-payal <[EMAIL PROTECTED]>
> > wrote:
> >
> >>
> >> have two dropdowns in my search page one at up and one at down
> >> and both have the values of states.
> >> When I select the value from dropdown at top of page it gives the result
> >> and
> >> updates the down dropdown by states what i have selected.
> >> This is what I want.
> >> But Now when I select any location from down dropdown it shows the
> result
> >> from what i have selected in down dropdown but dosent update the up one.
> >> Now if I again goes to up dropdown selection it display the old values
> >> and
> >> dosent update any of those.
> >> I have named my dropdown as
> >>
> >> <stripes:select name="updropdown"
> >> onchange="document.eventForm.submit();">
> >> <%if(services.location!="" &&
> >> services.location!=null)
> >> {System.out.println("inLocation"+services.location);%>
> >>
> >> <stripes:option value=""
> >> selected="true"><%=services.location%></stripes:option>
> >>
> >> <%}
> >> else{%>
> >> <stripes:option value="">---- View
> All
> >> ----</stripes:option>
> >>
> >> <%}
> >> %>
> >>
> >> <stripes:options-collection collection="${actionBean.locations}"/>
> >> </stripes:select>
> >>
> >> &
> >> <stripes:select name="doenDropdown"
> >> onchange="document.eventForm.submit();">
> >> <%if(services.location!="" &&
> >> services.location!=null)
> >> {System.out.println("inLocationDown"+services.location);%>
> >>
> >> <stripes:option value=""
> >> selected="true"><%=services.location%></stripes:option>
> >>
> >> <%}
> >> else{%>
> >> <stripes:option value="">---- View
> All
> >> ----</stripes:option>
> >>
> >> <%}
> >> %>
> >>
> >> <stripes:options-collection collection="${actionBean.locations}"/>
> >> </stripes:select>
> >> and in my java class
> >> i take it as
> >>
> >> code:
> >>
> >>
> --------------------------------------------------------------------------------
> >>
> >> uplocation=request.getParameter("updropdown");
> >> locationDown=request.getParameter("downdropdown"); if(uplocation!="")
> >> {
> >> location=uplocation; } }if(locationDown!="") {
> >> location=locationDown;
> >> }
> >>
> >>
> >>
> --------------------------------------------------------------------------------
> >>
> >>
> >> and with "location " variable i am doing the search.
> >> Please help me how to handle 2 dropdowns with the same values for the
> >> search.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/problem-with-search-using-2-dropdowns-with-same-values-tp19225391p19225391.html
> >> Sent from the stripes-users mailing list archive at Nabble.com.
> >>
> >>
> >>
> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win great
> >> prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in the
> >> world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> Stripes-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >>
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> > world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Stripes-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/problem-with-search-using-2-dropdowns-with-same-values-tp19225391p19226307.html
> Sent from the stripes-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users