struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom tom <j_lal...@yahoo.com>
Subject Re: dojo 1.1 in struts 2.0.11 portlets
Date Tue, 06 May 2008 03:27:22 GMT
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



--- Jeromy Evans <jeromy.evans@blueskyminds.com.au>
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@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



      ____________________________________________________________________________________
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@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message