I just want a way to get around this problem so what about this:
JS code:
=====
var jsonStore ={ name:'mazda',id:'3'};
var carJson = { label: 'name', items: [jsonStore] };
// uncomment this and every thing will work
// var carJson = { label: 'name', items: [{ name:'mazda',id:'3'}] };
new dijit.form.FilteringSelect({id: "sele", store: new
dojo.data.ItemFileReadStore({ data: carJson })}, "carSelect");
HTML code:
=======
<p<input id="carSelect"> </p>
Error:
====
dijit.form.ComboBox:[object Object]
I just want to var jsonStore to work !! because it's easy to get JSON using
DWR then i'll pass it to var jsonStore
so the thing is : why if we put { name:'mazda',id:'3'} will work ,while,
jsonStore won't work!! inspite of that jsonStore={ name:'mazda',id:'3'}
?????
David Marginian-2 wrote:
>
> I believe we have open issues regarding documenting the dojo stuff (if
> we don't I will open one). Keep in mind this is a new feature and is
> not even in an officially released version (AFAIK).
>
> Rami wrote:
>> Is there any other way to do what I want ? maybe josnp provided by dwr3 (
>> lacking of doc makes developing a game of guessing )
>>
>> I just want it to be working could you please suggest any alternative
>> solution !
>>
>>
>> Jose Noheda wrote:
>>
>>> I haven't see the store working with a FilteringSelect. That's another
>>> test
>>> to add to the demo app. I recall something about the queryOptions error.
>>> Could you open an issue? There are several bugs with the store API right
>>> now
>>> that I'll try to fix this week.
>>>
>>> On Sun, Jun 7, 2009 at 4:39 PM, Rami <
rami@...> wrote:
>>>
>>>
>>>> Hello,
>>>>
>>>> I've been trying to implement the dwr.data.Store for exactly 44 hours
>>>> :(
>>>> and it's not working!
>>>>
>>>> HTML+JS CODE:
>>>> ============
>>>> <html>
>>>> <head>
>>>> <script type="text/javascript" src="js/dojolib/dojo/dojo.js"
>>>> djConfig="parseOnLoad:true, isDebug:true
>>>> ,modulePaths:{'dwr':
>>>> '
http://localhost:8084/cars/dwr'}"></script>
>>>>
>>>> <link href="js/dojolib/dijit/themes/tundra/tundra.css"
>>>> rel="stylesheet" type="text/css">
>>>> <link href="js/dojolib/dojo/resources/dojo.css"
>>>> rel="stylesheet"
>>>> type="text/css">
>>>>
>>>> <script type="text/javascript">
>>>> dojo.require("dwr.engine");
>>>> dojo.require("dwr.util");
>>>> dojo.require("dwr.data.Store");
>>>> dojo.require("dwr.interface.Cars");
>>>>
>>>>
>>>> dojo.require("dijit.form.FilteringSelect");
>>>> var dwrStore ;
>>>>
>>>>
>>>> var init = function(){
>>>> Cars.wip();
>>>> dwrStore=new dwr.data.Store("ServerData" ,{ subscribe:false});
>>>>
>>>> var sele = new dijit.form.FilteringSelect({id: "sele", store:
>>>> dwrStore}, "carSelect");
>>>>
>>>> // dwr.engine.setActiveReverseAjax(true);
>>>>
>>>>
>>>> }
>>>> dojo.addOnLoad(init);
>>>>
>>>>
>>>> </script>
>>>>
>>>> </head>
>>>> <body class="tundra">
>>>>
>>>> <p<input id="carSelect"> </p>
>>>> </body>
>>>> </html>
>>>>
>>>>
>>>>
>>>> JAVA CODE (Cars class):
>>>> ========
>>>>
>>>> public void wip()
>>>> {
>>>>
>>>>
>>>> Map<String ,CarInfo> data= new HashMap<String, CarInfo>(); //
>>>> CarInfo is POJO set,get methods only
>>>>
>>>> CarInfo CI=new CarInfo();
>>>> CI.setId("2");
>>>> CI.setBrand("BMW");
>>>> CI.setEngine("V8");
>>>> CI.setGear("GGGG");
>>>> CI.setMilage("280km");
>>>> CI.setModel("650i");
>>>> CI.setYear("2007");
>>>> data.put("1", CI);
>>>>
>>>> MapStoreProvider provider = new MapStoreProvider(data,CarInfo.class);
>>>> Directory.register("ServerData", provider);
>>>> }
>>>>
>>>>
>>>>
>>>> Error:
>>>> ====
>>>>
>>>> queryOptions is not currently supported by DwrStore
>>>> dijit.form.ComboBox:[object Object]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Please help ASAP I really can't avoid thinking of solving this issue
>>>> BTW: I hate the grid example within dwr.jar ,specially , the story in
>>>> the
>>>> source tap !!
>>>>
>>>> --
>>>> View this message in context:
>>>>
http://n2.nabble.com/dijit.form.FilteringSelect-%2B-DWR-3-data.Store-tp3038769p3038769.html>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
users-unsubscribe@...
>>>> For additional commands, e-mail:
users-help@...
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
users-unsubscribe@...
> For additional commands, e-mail:
users-help@...
>
>
>
--
View this message in context:
http://n2.nabble.com/dijit.form.FilteringSelect-%2B-DWR-3-data.Store-tp3038769p3039351.htmlSent from the DWR - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...