-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Populate MultiSelect Dojo box onLoad from XML data file
PostPosted: Tue May 25, 2010 9:58 am 
Newbie

Joined: Tue Feb 16, 2010 6:57 pm
Posts: 17
Hi,

I created a dijit.form.multiselect control and populated it with hardcoded data in the create.jspx - for testing.

That works fine. Now, I need to populate it with external XML data at onload time. How do I do that? Most materials I read on this subject either uses a json data file or an URI as data source. Furthermore, is there any applicable examples that I can follow?

In create.jspx, I have this:
Code:
    <div id="roo_material_couIds">
    <label for="_couIds_id">Materials:</label>
        <spring:bind path="couIds">               
            <form:select id="couIds" path="couIds">
                  <form:option value="1">Material 1</form:option>
                  <form:option value="2">Material 2</form:option>
                  <form:option value="3">Material  3</form:option>
                  <form:option value="4">Material 4</form:option>
</form:select>         
</spring:bind>   <script type="text/javascript"> Spring.addDecoration(new Spring.ElementDecoration({elementId : "couIds",
                        widgetType : "dijit.form.MultiSelect", widgetAttrs : {required : true,overflow:scroll=yes
                        trim : true, promptMessage : "Select Coupons", invalidMessage : ""}})) </script>


Any info will be greatly appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.