dijit.form.FilteringSelect + DWR 3 data.Store

View: New views
19 Messages — Rating Filter:   Alert me  

dijit.form.FilteringSelect + DWR 3 data.Store

by Rami-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@...


Re: dijit.form.FilteringSelect + DWR 3 data.Store

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...



Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Rami-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@...
>>
>>
>
>

--
View this message in context: http://n2.nabble.com/dijit.form.FilteringSelect-%2B-DWR-3-data.Store-tp3038769p3039145.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@...


Re: dijit.form.FilteringSelect + DWR 3 data.Store

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Rami-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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.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@...


Re: dijit.form.FilteringSelect + DWR 3 data.Store

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can check IWebMvc2 for a couple alternative stores tested with FilteringSelects as well.

On Sun, Jun 7, 2009 at 7:47 PM, Rami <rami@...> wrote:

var carJson = { label: 'name', items: [jsonStore] };


Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Rami-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


well, I found a way  DWR + DOJO only

Cars.getUsers(function(v) {

 
 jsonStore=v;
 // jsonStore =[{ name:"kia",id:"3",engine:"notgood"},{
name:"audi",id:"4",engine:"good"}];


   var carJson = { identifier:'id' , items: jsonStore };
  select = new dijit.form.FilteringSelect({searchAttr:"name", id: "selee",
store: new dojo.data.ItemFileReadStore({ data: carJson })} , "carSelect");

  });



thank you any way




Rami wrote:

>
>
> 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-tp3038769p3043436.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@...


Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Ziphyre Marco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...




Re: dijit.form.FilteringSelect + DWR 3 data.Store

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please open the issue

On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...





Re: dijit.form.FilteringSelect + DWR 3 data.Store

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Attaching a sample of the client/server code would be a plus.

On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...






Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Selim Ober :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...







Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Selim Ober :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395

On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...








Re: dijit.form.FilteringSelect + DWR 3 data.Store

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It should be fixed. Use:

dojo.addOnLoad(function() {
   dwrStore = new dwr.data.Store("crowd");
   dijit.byId("combo").store = dwrStore;
});

<input id="combo" dojoType="dijit.form.FilteringSelect" searchAttr="name" />

Or use @ExposeToString and then searchAttr="$label"

Regards

On Tue, Jun 23, 2009 at 8:15 AM, Selim Ober <selim.ober@...> wrote:
Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395


On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...









Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Selim Ober :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you Jose,

I can confirm that it's working right now.
You got any idea why giving the store name in the template doesn't work?
I got the example from here:

On Tue, Jun 23, 2009 at 4:25 PM, Jose Noheda <jose.noheda@...> wrote:
It should be fixed. Use:

dojo.addOnLoad(function() {
   dwrStore = new dwr.data.Store("crowd");
   dijit.byId("combo").store = dwrStore;
});

<input id="combo" dojoType="dijit.form.FilteringSelect" searchAttr="name" />

Or use @ExposeToString and then searchAttr="$label"

Regards

On Tue, Jun 23, 2009 at 8:15 AM, Selim Ober <selim.ober@...> wrote:
Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395


On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...










Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Selim Ober :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jose,

I noticed that queryExpr of ComboBox doesn't work if you set it to "*${0}*" . You got any idea why? 

// queryExpr: String
// This specifies what query ComboBox/FilteringSelect sends to the data store,
// based on what the user has typed.  Changing this expression will modify
// whether the drop down shows only exact matches, a "starting with" match,
// etc.   Use it in conjunction with highlightMatch.
// dojo.data query expression pattern.
// `${0}` will be substituted for the user text.
// `*` is used for wildcards.
// `${0}*` means "starts with", `*${0}*` means "contains", `${0}` means "is"
queryExpr: "${0}*"

On Wed, Jun 24, 2009 at 10:54 AM, Selim Ober <selim.ober@...> wrote:
Thank you Jose,

I can confirm that it's working right now.
You got any idea why giving the store name in the template doesn't work?
I got the example from here:

On Tue, Jun 23, 2009 at 4:25 PM, Jose Noheda <jose.noheda@...> wrote:
It should be fixed. Use:

dojo.addOnLoad(function() {
   dwrStore = new dwr.data.Store("crowd");
   dijit.byId("combo").store = dwrStore;
});

<input id="combo" dojoType="dijit.form.FilteringSelect" searchAttr="name" />

Or use @ExposeToString and then searchAttr="$label"

Regards

On Tue, Jun 23, 2009 at 8:15 AM, Selim Ober <selim.ober@...> wrote:
Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395


On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...











Re: dijit.form.FilteringSelect + DWR 3 data.Store

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you confirmed the combo is substituting the ${0} for the actual content? Try putting a breakpoint with firebug in the beginning of the fetch method to see what is being sent to the server

Regards

On Wed, Jun 24, 2009 at 2:45 PM, Selim Ober <selim.ober@...> wrote:
Jose,

I noticed that queryExpr of ComboBox doesn't work if you set it to "*${0}*" . You got any idea why? 

// queryExpr: String
// This specifies what query ComboBox/FilteringSelect sends to the data store,
// based on what the user has typed.  Changing this expression will modify
// whether the drop down shows only exact matches, a "starting with" match,
// etc.   Use it in conjunction with highlightMatch.
// dojo.data query expression pattern.
// `${0}` will be substituted for the user text.
// `*` is used for wildcards.
// `${0}*` means "starts with", `*${0}*` means "contains", `${0}` means "is"
queryExpr: "${0}*"

On Wed, Jun 24, 2009 at 10:54 AM, Selim Ober <selim.ober@...> wrote:
Thank you Jose,

I can confirm that it's working right now.
You got any idea why giving the store name in the template doesn't work?
I got the example from here:

On Tue, Jun 23, 2009 at 4:25 PM, Jose Noheda <jose.noheda@...> wrote:
It should be fixed. Use:

dojo.addOnLoad(function() {
   dwrStore = new dwr.data.Store("crowd");
   dijit.byId("combo").store = dwrStore;
});

<input id="combo" dojoType="dijit.form.FilteringSelect" searchAttr="name" />

Or use @ExposeToString and then searchAttr="$label"

Regards

On Tue, Jun 23, 2009 at 8:15 AM, Selim Ober <selim.ober@...> wrote:
Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395


On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...












Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Selim Ober :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The default value for queryExpr in ComboBox.js file is "${0}*", so it's not empty.
If you leave it like this, it works with auto complete. So I assume it makes the substitution.

But I'll try to debug anyway

On Wed, Jun 24, 2009 at 3:54 PM, Jose Noheda <jose.noheda@...> wrote:
Have you confirmed the combo is substituting the ${0} for the actual content? Try putting a breakpoint with firebug in the beginning of the fetch method to see what is being sent to the server

Regards


On Wed, Jun 24, 2009 at 2:45 PM, Selim Ober <selim.ober@...> wrote:
Jose,

I noticed that queryExpr of ComboBox doesn't work if you set it to "*${0}*" . You got any idea why? 

// queryExpr: String
// This specifies what query ComboBox/FilteringSelect sends to the data store,
// based on what the user has typed.  Changing this expression will modify
// whether the drop down shows only exact matches, a "starting with" match,
// etc.   Use it in conjunction with highlightMatch.
// dojo.data query expression pattern.
// `${0}` will be substituted for the user text.
// `*` is used for wildcards.
// `${0}*` means "starts with", `*${0}*` means "contains", `${0}` means "is"
queryExpr: "${0}*"

On Wed, Jun 24, 2009 at 10:54 AM, Selim Ober <selim.ober@...> wrote:
Thank you Jose,

I can confirm that it's working right now.
You got any idea why giving the store name in the template doesn't work?
I got the example from here:

On Tue, Jun 23, 2009 at 4:25 PM, Jose Noheda <jose.noheda@...> wrote:
It should be fixed. Use:

dojo.addOnLoad(function() {
   dwrStore = new dwr.data.Store("crowd");
   dijit.byId("combo").store = dwrStore;
});

<input id="combo" dojoType="dijit.form.FilteringSelect" searchAttr="name" />

Or use @ExposeToString and then searchAttr="$label"

Regards

On Tue, Jun 23, 2009 at 8:15 AM, Selim Ober <selim.ober@...> wrote:
Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395


On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...













Re: dijit.form.FilteringSelect + DWR 3 data.Store

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I see the problem now. You want to filter everything that contains the provided text in the middle. I just considered the case of one asterisk at the end of the query expression and translated it to a Java Pattern object. If you can provide me the Java pattern for the expression you need I'll include it.

Regards

On Wed, Jun 24, 2009 at 3:09 PM, Selim Ober <selim.ober@...> wrote:
The default value for queryExpr in ComboBox.js file is "${0}*", so it's not empty.
If you leave it like this, it works with auto complete. So I assume it makes the substitution.

But I'll try to debug anyway


On Wed, Jun 24, 2009 at 3:54 PM, Jose Noheda <jose.noheda@...> wrote:
Have you confirmed the combo is substituting the ${0} for the actual content? Try putting a breakpoint with firebug in the beginning of the fetch method to see what is being sent to the server

Regards


On Wed, Jun 24, 2009 at 2:45 PM, Selim Ober <selim.ober@...> wrote:
Jose,

I noticed that queryExpr of ComboBox doesn't work if you set it to "*${0}*" . You got any idea why? 

// queryExpr: String
// This specifies what query ComboBox/FilteringSelect sends to the data store,
// based on what the user has typed.  Changing this expression will modify
// whether the drop down shows only exact matches, a "starting with" match,
// etc.   Use it in conjunction with highlightMatch.
// dojo.data query expression pattern.
// `${0}` will be substituted for the user text.
// `*` is used for wildcards.
// `${0}*` means "starts with", `*${0}*` means "contains", `${0}` means "is"
queryExpr: "${0}*"

On Wed, Jun 24, 2009 at 10:54 AM, Selim Ober <selim.ober@...> wrote:
Thank you Jose,

I can confirm that it's working right now.
You got any idea why giving the store name in the template doesn't work?
I got the example from here:

On Tue, Jun 23, 2009 at 4:25 PM, Jose Noheda <jose.noheda@...> wrote:
It should be fixed. Use:

dojo.addOnLoad(function() {
   dwrStore = new dwr.data.Store("crowd");
   dijit.byId("combo").store = dwrStore;
});

<input id="combo" dojoType="dijit.form.FilteringSelect" searchAttr="name" />

Or use @ExposeToString and then searchAttr="$label"

Regards

On Tue, Jun 23, 2009 at 8:15 AM, Selim Ober <selim.ober@...> wrote:
Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395


On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...














Re: dijit.form.FilteringSelect + DWR 3 data.Store

by Selim Ober :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There are 3 patterns which dijit.form.ComboBox offers
- "${0}*"
- "*${0}*"
- "*${0}"

So I think we can provide these 3 patterns.

Regards

On Wed, Jun 24, 2009 at 4:20 PM, Jose Noheda <jose.noheda@...> wrote:
I see the problem now. You want to filter everything that contains the provided text in the middle. I just considered the case of one asterisk at the end of the query expression and translated it to a Java Pattern object. If you can provide me the Java pattern for the expression you need I'll include it.

Regards


On Wed, Jun 24, 2009 at 3:09 PM, Selim Ober <selim.ober@...> wrote:
The default value for queryExpr in ComboBox.js file is "${0}*", so it's not empty.
If you leave it like this, it works with auto complete. So I assume it makes the substitution.

But I'll try to debug anyway


On Wed, Jun 24, 2009 at 3:54 PM, Jose Noheda <jose.noheda@...> wrote:
Have you confirmed the combo is substituting the ${0} for the actual content? Try putting a breakpoint with firebug in the beginning of the fetch method to see what is being sent to the server

Regards


On Wed, Jun 24, 2009 at 2:45 PM, Selim Ober <selim.ober@...> wrote:
Jose,

I noticed that queryExpr of ComboBox doesn't work if you set it to "*${0}*" . You got any idea why? 

// queryExpr: String
// This specifies what query ComboBox/FilteringSelect sends to the data store,
// based on what the user has typed.  Changing this expression will modify
// whether the drop down shows only exact matches, a "starting with" match,
// etc.   Use it in conjunction with highlightMatch.
// dojo.data query expression pattern.
// `${0}` will be substituted for the user text.
// `*` is used for wildcards.
// `${0}*` means "starts with", `*${0}*` means "contains", `${0}` means "is"
queryExpr: "${0}*"

On Wed, Jun 24, 2009 at 10:54 AM, Selim Ober <selim.ober@...> wrote:
Thank you Jose,

I can confirm that it's working right now.
You got any idea why giving the store name in the template doesn't work?
I got the example from here:

On Tue, Jun 23, 2009 at 4:25 PM, Jose Noheda <jose.noheda@...> wrote:
It should be fixed. Use:

dojo.addOnLoad(function() {
   dwrStore = new dwr.data.Store("crowd");
   dijit.byId("combo").store = dwrStore;
});

<input id="combo" dojoType="dijit.form.FilteringSelect" searchAttr="name" />

Or use @ExposeToString and then searchAttr="$label"

Regards

On Tue, Jun 23, 2009 at 8:15 AM, Selim Ober <selim.ober@...> wrote:
Forgot the link:
http://bugs.directwebremoting.org/bugs/browse/DWR-395


On Tue, Jun 23, 2009 at 9:14 AM, Selim Ober <selim.ober@...> wrote:
Jose,

Sorry for late reply.
I've added a bug to JIRA and attached some code.


On Tue, Jun 16, 2009 at 12:03 PM, Jose Noheda <jose.noheda@...> wrote:
Attaching a sample of the client/server code would be a plus.


On Tue, Jun 16, 2009 at 10:56 AM, Jose Noheda <jose.noheda@...> wrote:
Please open the issue


On Tue, Jun 16, 2009 at 10:52 AM, Ziphyre Marco <ziphyre@...> wrote:
Jose,
 
Currently queryOptions in fetch object is not supported in dwr.data.store which is major problem for ComboBox/FilteringSelect. Shall I open an issue for that on JIRA, or is it in your todo list?

On Sun, Jun 7, 2009 at 7:03 PM, Jose Noheda <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@...