How to combine DOJO filteringselect and SPRING form handling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rythmic
    New Member
    • Feb 2010
    • 29

    How to combine DOJO filteringselect and SPRING form handling

    Hi!

    I am trying to use a filteringselect with SPRING form.

    Problem
    I can't get the value showing in the filteringselect to be transmitted to the SPRING controller connected to the form. Instead of sending the displayed value it sends 0 (the value zero).

    Code:

    Code:
    //dojo addonload:
    
    var postadresscomp = new dijit.form.FilteringSelect({
        	store: postadressStore,
        	autoComplete: false,
        	searchAttr: "zipcity",
            style: "width: 300px;",
            name:"postadress",
            id: "postadress",
            validate: function() { return true;}
            },"postadress");
    Code:
    //spring form object
    
    <form:input path="postadress" id="postadress" />

    Code:
    //Json code fed to the filteringselects QueryReadStore:
    
    {"identifier":"zipcity","label":"zipcity","items":[{"zipcity":"14636 NEW YORK"}]}
    Does anyone have an idea?

    best regards
    Rythmic
    Last edited by rythmic; Mar 22 '10, 12:26 PM. Reason: Forgot to salut and provide an ending :)
Working...