|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
dojo 1.1 in struts 2.0.11 portletsHi,
In order to leverage the full capabilities of dojo 1.1 (latest) with the latest stable struts version. What exactlyt the best practice. The things we concerned are as followes 1) Will there be a conflict in the different dojo versions in struts 2.0.11 and dojo 1.1 2) Will it impact any struts tags behaviours etc. If there is a better way to explore the new features of dojo pls do let us know, or any other best practice Thanks ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletstom tom wrote:
> Hi, > > In order to leverage the full capabilities of dojo 1.1 > (latest) with the latest stable struts version. What > exactlyt the best practice. > > The things we concerned are as followes > > 1) Will there be a conflict in the different dojo > versions in struts 2.0.11 and dojo 1.1 > > tue struts2 ajax-themed tags. > 2) Will it impact any struts tags behaviours etc. > > Yes, definitely as the Struts2 ajax tags are for Dojo 0.4.x. > If there is a better way to explore the new features > of dojo pls do let us know, or any other best practice > > Yes, use Dojo 1.1 directly within your JSP. Don't attempt to use the Struts 2 ajax tags (dojo 0.4) at the same time as Dojo 1.1. Juse use the css/xhtml themed struts tags and dojo's own markup and widgets. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletsThanks Jeromy,
Yes that is what I also thought, On the other hand I came to know that Struts 2.1 got lot of tag enhancements with regards to dojo .... The main thing which I can't understand is, why struts provides AJAX theme at all, DOJO to me is not only a set of javascript, it is a framework, with widgets and events, How can individual struts tags support the entire event model, am confused, isnt it a good idea to provide the practices to use dojo directly to utilize the full dojo features. Thanks --- Jeromy Evans <jeromy.evans@...> wrote: > tom tom wrote: > > Hi, > > > > In order to leverage the full capabilities of dojo > 1.1 > > (latest) with the latest stable struts version. > What > > exactlyt the best practice. > > > > The things we concerned are as followes > > > > 1) Will there be a conflict in the different dojo > > versions in struts 2.0.11 and dojo 1.1 > > > > > Yes, the Struts2 ajax-theme tags will conflict with > Dojo 1.1. Don't use > tue struts2 ajax-themed tags. > > 2) Will it impact any struts tags behaviours etc. > > > > > Yes, definitely as the Struts2 ajax tags are for > Dojo 0.4.x. > > If there is a better way to explore the new > features > > of dojo pls do let us know, or any other best > practice > > > > > Yes, use Dojo 1.1 directly within your JSP. Don't > attempt to use the > Struts 2 ajax tags (dojo 0.4) at the same time as > Dojo 1.1. Juse use > the css/xhtml themed struts tags and dojo's own > markup and widgets. > > > > > > To unsubscribe, e-mail: > user-unsubscribe@... > For additional commands, e-mail: > user-help@... > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletsHi Jeromy,
Sorry, I forgot one more question, Eventhough we use dojo 1.1 directly, we need to have dojo.js, wouldn't this conflict with the one which comes as part of struts bundle --- Jeromy Evans <jeromy.evans@...> wrote: > tom tom wrote: > > Hi, > > > > In order to leverage the full capabilities of dojo > 1.1 > > (latest) with the latest stable struts version. > What > > exactlyt the best practice. > > > > The things we concerned are as followes > > > > 1) Will there be a conflict in the different dojo > > versions in struts 2.0.11 and dojo 1.1 > > > > > Yes, the Struts2 ajax-theme tags will conflict with > Dojo 1.1. Don't use > tue struts2 ajax-themed tags. > > 2) Will it impact any struts tags behaviours etc. > > > > > Yes, definitely as the Struts2 ajax tags are for > Dojo 0.4.x. > > If there is a better way to explore the new > features > > of dojo pls do let us know, or any other best > practice > > > > > Yes, use Dojo 1.1 directly within your JSP. Don't > attempt to use the > Struts 2 ajax tags (dojo 0.4) at the same time as > Dojo 1.1. Juse use > the css/xhtml themed struts tags and dojo's own > markup and widgets. > > > > > > To unsubscribe, e-mail: > user-unsubscribe@... > For additional commands, e-mail: > user-help@... > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletsYes, it would, which is why Jeromy said don't use the strts2 ajax theme
or tags. As long as you don't use those, the Dojo bundled with Struts wont be loaded, so there wont then be a conflict. L. tom tom wrote: > Hi Jeromy, > > Sorry, I forgot one more question, > > Eventhough we use dojo 1.1 directly, we need to have > dojo.js, wouldn't this conflict with the one which > comes as part of struts bundle > > --- Jeromy Evans <jeromy.evans@...> > wrote: > >> tom tom wrote: >>> Hi, >>> >>> In order to leverage the full capabilities of dojo >> 1.1 >>> (latest) with the latest stable struts version. >> What >>> exactlyt the best practice. >>> >>> The things we concerned are as followes >>> >>> 1) Will there be a conflict in the different dojo >>> versions in struts 2.0.11 and dojo 1.1 >>> >>> >> Yes, the Struts2 ajax-theme tags will conflict with >> Dojo 1.1. Don't use >> tue struts2 ajax-themed tags. >>> 2) Will it impact any struts tags behaviours etc. >>> >>> >> Yes, definitely as the Struts2 ajax tags are for >> Dojo 0.4.x. >>> If there is a better way to explore the new >> features >>> of dojo pls do let us know, or any other best >> practice >>> >> Yes, use Dojo 1.1 directly within your JSP. Don't >> attempt to use the >> Struts 2 ajax tags (dojo 0.4) at the same time as >> Dojo 1.1. Juse use >> the css/xhtml themed struts tags and dojo's own >> markup and widgets. >> >> >> >> >> > --------------------------------------------------------------------- >> To unsubscribe, e-mail: >> user-unsubscribe@... >> For additional commands, e-mail: >> user-help@... >> >> > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletsThanks Jeromy,
If we use direct dojo calls (dojo 1.1) without using struts ajax tags, Will there be any issues linking these components with server side Struts Action and form classes, e.g if I have a dojo 1.1 Grib will I be able to utilize the serverside struts action classes, are there any best practice for this. My first objective is to have dojo Grid inside a jsp, with CRUD/sorting and pagination And Link this Grid with the Struts 2 Action classes, Is there any practices to follow to achieve, is this doable Thanks --- Jeromy Evans <jeromy.evans@...> wrote: > tom tom wrote: > > Hi, > > > > In order to leverage the full capabilities of dojo > 1.1 > > (latest) with the latest stable struts version. > What > > exactlyt the best practice. > > > > The things we concerned are as followes > > > > 1) Will there be a conflict in the different dojo > > versions in struts 2.0.11 and dojo 1.1 > > > > > Yes, the Struts2 ajax-theme tags will conflict with > Dojo 1.1. Don't use > tue struts2 ajax-themed tags. > > 2) Will it impact any struts tags behaviours etc. > > > > > Yes, definitely as the Struts2 ajax tags are for > Dojo 0.4.x. > > If there is a better way to explore the new > features > > of dojo pls do let us know, or any other best > practice > > > > > Yes, use Dojo 1.1 directly within your JSP. Don't > attempt to use the > Struts 2 ajax tags (dojo 0.4) at the same time as > Dojo 1.1. Juse use > the css/xhtml themed struts tags and dojo's own > markup and widgets. > > > > > > To unsubscribe, e-mail: > user-unsubscribe@... > For additional commands, e-mail: > user-help@... > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletstom tom wrote:
> Thanks Jeromy, > > If we use direct dojo calls (dojo 1.1) without using > struts ajax tags, Will there be any issues linking > these components with server side Struts Action and > form classes, > > e.g if I have a dojo 1.1 Grib will I be able to > utilize the serverside struts action classes, are > there any best practice for this. > > My first objective is to have dojo Grid inside a jsp, > with CRUD/sorting and pagination > > And > > Link this Grid with the Struts 2 Action classes, > > Is there any practices to follow to achieve, is this > doable > > Thanks > > Hi haven't used Dojo's grid myself so I can only speculate on a suitable approach, but I do use the YUI datagrid with a json datasource and all the features you described. Struts2 actions are actually very good at this. Create an action that will be the datasource for the grid (on for the page; for the grid). I use the action to setup a bean that matches the model used by grid, and then use the JSON plugin result or REST plugin to serialize the bean as JSON or XML. I created a factory that could create an appropriate table model from a collection of beans. If you make it match exactly what dojo expects then there'll be very little work to do on the client-side. If you make the model generic you can reuse it for all your different grids; this is the kind of thing that does belong in a dojo plugin. regards, Jeromy Evans --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletsThanks Jeromy,
Is there any reason why YUI datagrid instead of dojo 1.1 grid, Isn't it risky to depend on YUI datagrid, Thanks --- Jeromy Evans <jeromy.evans@...> wrote: > tom tom wrote: > > Thanks Jeromy, > > > > If we use direct dojo calls (dojo 1.1) without > using > > struts ajax tags, Will there be any issues linking > > these components with server side Struts Action > and > > form classes, > > > > e.g if I have a dojo 1.1 Grib will I be able to > > utilize the serverside struts action classes, are > > there any best practice for this. > > > > My first objective is to have dojo Grid inside a > jsp, > > with CRUD/sorting and pagination > > > > And > > > > Link this Grid with the Struts 2 Action classes, > > > > Is there any practices to follow to achieve, is > this > > doable > > > > Thanks > > > > > > Hi haven't used Dojo's grid myself so I can only > speculate on a suitable > approach, but I do use the YUI datagrid with a json > datasource and all > the features you described. > Struts2 actions are actually very good at this. > Create an action that > will be the datasource for the grid (on for the > page; for the grid). I > use the action to setup a bean that matches the > model used by grid, and > then use the JSON plugin result or REST plugin to > serialize the bean as > JSON or XML. I created a factory that could create > an appropriate table > model from a collection of beans. If you make it > match exactly what > dojo expects then there'll be very little work to do > on the client-side. > If you make the model generic you can reuse it for > all your different > grids; this is the kind of thing that does belong in > a dojo plugin. > regards, > Jeromy Evans > > > > To unsubscribe, e-mail: > user-unsubscribe@... > For additional commands, e-mail: > user-help@... > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletstom tom wrote:
> Thanks Jeromy, > > Is there any reason why YUI datagrid instead of dojo > 1.1 grid, > > Isn't it risky to depend on YUI datagrid, > > Thanks > > Moving to YUI datagrid is no riskier than moving to Dojo 1.1. They're both good libraries. Dojo 1.1 is very different than 0.4 but not as different as YUI. Each use different programming models and approaches (as do the other libraries I referenced) so choose one that you're comfortable or productive with. In fact, the very first thing I did with YUI was create a small test action with an ajax datagrid. Anyway watch this video tutorial about the DojoX datagrid: http://dojocampus.org/content/2008/02/17/dojox-grid/ Hope that helps, Jeromy Evans --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletsdojo 1.1 Grid looks very good,
but it is still under dojox project, because of that we are thinking twice How flexible the YUI datagrid and how about the integration with Struts 2, Is that grid in beta like dojo grid or ready for production support Thanks, --- Jeromy Evans <jeromy.evans@...> wrote: > tom tom wrote: > > Thanks Jeromy, > > > > Is there any reason why YUI datagrid instead of > dojo > > 1.1 grid, > > > > Isn't it risky to depend on YUI datagrid, > > > > Thanks > > > > > > Moving to YUI datagrid is no riskier than moving to > Dojo 1.1. They're > both good libraries. Dojo 1.1 is very different > than 0.4 but not as > different as YUI. > Each use different programming models and approaches > (as do the other > libraries I referenced) so choose one that you're > comfortable or > productive with. > > In fact, the very first thing I did with YUI was > create a small test > action with an ajax datagrid. > > Anyway watch this video tutorial about the DojoX > datagrid: > http://dojocampus.org/content/2008/02/17/dojox-grid/ > > Hope that helps, > Jeromy Evans > > > To unsubscribe, e-mail: > user-unsubscribe@... > For additional commands, e-mail: > user-help@... > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: dojo 1.1 in struts 2.0.11 portletstom tom wrote:
> dojo 1.1 Grid looks very good, > > but it is still under dojox project, because of that > we are thinking twice > > How flexible the YUI datagrid and how about the > integration with Struts 2, > > Is that grid in beta like dojo grid or ready for > production support > > Thanks, > > get in an try it out in a little test application. Don't forget though that it is a completely different appropriate to client-side programming compared to Dojo. You also need to consider where your application is going and what other widgets you may need. YUI deliberately leave a lot of things out that may want. Instead they provide APIs. In terms of stability, the YUI grid is fine. The known issues are discussed at the bottom of the documentation. It's beta because the API is subject to change, and there was a significant change between 2.5.0 and 2.5.1. I can only speculate, but I expect there'll be some more changes as their Charting widget uses the same DataSource API as the datagrid and charting is experimental, but my experience with these guys has only been positive so far. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free Forum Powered by Nabble | Forum Help |