Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • dependent drop down lists

    0 answers - 1915 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    option is
    1-Store all the data in tokenized form in a hidden variable.
    something like this- a1|b1|c1@a2|b2|c2@
    "|" and "@" are delimiters.
    2-Use javascript split function on the onchange of first list and create the second list with javascript
    Message
    From: Givler, Eric [mailto:egivler (AT) state (DOT) pa.us]
    Sent: Friday, September 15, 2006 2:23 PM
    To: Struts Users Mailing List
    Subject: RE: dependent drop down lists
    You'd need to rebuild the second list on the posting of the form, i.e.
    1. get value selected from first list
    2. invoke method to refresh dependent list based on user prm from fist list
    3. place that list into a request attribute to read on the page.
    Here's a code snippet. The prepareLVs is called on a post-back event:
    public void prepareLVs(ActionForm form,
    HttpServletRequest request)
    throws Exception
    {
    MyForm myform = (MyForm) form;
    String strCountyId = myform.getCounty_id();
    AppModule am = new AppModuleImpl( request.getRemoteUser() );
    List municipalities = am.getPaMunicipalitiesView( strCountyId );
    request.setAttribute ( Constants.MUNICIPALITIES_LV, municipalities );
    }
    Message
    From: Joe Yuen [mailto:joe.yuen (AT) chisq (DOT) com]
    Sent: Thursday, September 14, 2006 4:18 PM
    To: user (AT) struts (DOT) apache.org
    Subject: dependent drop down lists
    Importance: High
    I currently having trouble implementing dependent drop down lists. Do anyone know where I might see an example of how to implement such a thing?
    Thanks,
    -Joe
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org

Re: dependent drop down lists


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Java"

EMSDN.COM