Thread: [smartweb-devel] SmartGrid Component
Brought to you by:
rlogiacco
From: Gaetano P. <gpe...@sm...> - 2008-01-27 14:04:07
|
what do u think about adding a grid component (worksheet like) to smartweb project??? I was thinking about something like the follow: <smart:grid collection="myCollectionToGridName" id="myRaw" styleClass="myGridClass" maxRawXPage="15" scope="MyScope"> <smart:col name="myCol1PropertyName" header="col1Header"/> <smart:col name="myCol2PropertyName" header="col2Header"/> <smart:col name="myCol3PropertyName" header="col3Header" type="number" format="nn" sum="yes"/> <smart:col name="myCol4PropertyName" header="col4Header" type="number" format="nn.dd" sum="yes"/> <smart:col name="myCol5PropertyName" header="col5Header" type="currency" sum="yes"/> </smart:grid> with the attached result... http://www.nabble.com/file/p15119536/Untitled-1.html Untitled-1.html Waiting for feedbacks... -- View this message in context: http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15119536.html Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2008-01-27 14:37:45
|
I don't understand why should we need such a tag library... Those type of visualizations are really rare and most of the time they need to be customized having some elements represented as a combo box, some others as a flaggable radio, other as labels... It's a lot of work if we want to support the entire set, and if we choose not to support the entire set it will have a limited applicability In addition I don't see in your JSP code any formatting (table, tr or td tags) so I think you are outputting them directly through the tags.... this means you should support through your tag all the HTML table features like, colspan, colspace, style, etc.... In particular the heading row.... I really think it's a lot of work for a very limited result... unless I misunderstood what you mean! :-) 2008/1/27, Gaetano Perrone <gpe...@sm...>: > > what do u think about adding a grid component (worksheet like) to smartweb > project??? > I was thinking about something like the follow: > > <smart:grid collection="myCollectionToGridName" id="myRaw" > styleClass="myGridClass" maxRawXPage="15" scope="MyScope"> > <smart:col name="myCol1PropertyName" header="col1Header"/> > <smart:col name="myCol2PropertyName" header="col2Header"/> > <smart:col name="myCol3PropertyName" header="col3Header" type="number" > format="nn" sum="yes"/> > <smart:col name="myCol4PropertyName" header="col4Header" type="number" > format="nn.dd" sum="yes"/> > <smart:col name="myCol5PropertyName" header="col5Header" type="currency" > sum="yes"/> > </smart:grid> > > with the attached result... > http://www.nabble.com/file/p15119536/Untitled-1.html Untitled-1.html > > Waiting for feedbacks... > -- > View this message in context: http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15119536.html > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > -- Roberto Lo Giacco |
From: Stefano V <st...@gm...> - 2008-01-28 09:00:29
|
There's a similar project for the struts framework. look at " http://displaytag.sourceforge.net " We can customize it, (if we need) 2008/1/27, Gaetano Perrone <gpe...@sm...>: > > > what do u think about adding a grid component (worksheet like) to smartweb > project??? > I was thinking about something like the follow: > > <smart:grid collection="myCollectionToGridName" id="myRaw" > styleClass="myGridClass" maxRawXPage="15" scope="MyScope"> > <smart:col name="myCol1PropertyName" header="col1Header"/> > <smart:col name="myCol2PropertyName" header="col2Header"/> > <smart:col name="myCol3PropertyName" header="col3Header" > type="number" > format="nn" sum="yes"/> > <smart:col name="myCol4PropertyName" header="col4Header" > type="number" > format="nn.dd" sum="yes"/> > <smart:col name="myCol5PropertyName" header="col5Header" > type="currency" > sum="yes"/> > </smart:grid> > > with the attached result... > http://www.nabble.com/file/p15119536/Untitled-1.html Untitled-1.html > > Waiting for feedbacks... > -- > View this message in context: > http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15119536.html > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@sm...> - 2008-01-28 09:51:20
|
The project you refer to allows only labels as grid elements... am I right? 2008/1/28, Stefano V <st...@gm...>: > There's a similar project for the struts framework. > look at " http://displaytag.sourceforge.net " We can > customize it, (if we need) -- Roberto Lo Giacco |
From: Stefano V <st...@gm...> - 2008-01-28 10:15:53
|
What Do you mean with "label" ? display tag by default, "display" a bean's Collection to a table in wich any properties is displayed as a column and the property name is the column label. If you prefer you can modify the default behaviur and display only the column you want. DisplayTag has others feutures like export to pdf or excel format and a builtin pagination. 2008/1/28, Roberto Lo Giacco <rlo...@sm...>: > > The project you refer to allows only labels as grid elements... am I > right? > > 2008/1/28, Stefano V <st...@gm...>: > > There's a similar project for the struts framework. > > look at " http://displaytag.sourceforge.net " We can > > customize it, (if we need) > > > -- > Roberto Lo Giacco > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Gaetano P. <gpe...@sm...> - 2008-01-28 10:27:11
|
Your display tag is a good idea to handle standard paginated entity list . With SmartGrid i think to resolve multiraw form common problem. Think u would to acquire n raws from gui. Actually also if the raw is simple (code, description) u must view list click add , compile form field. With grid (worksheet like) u could compile n raw with one click... svetrini wrote: > > What Do you mean with "label" ? > display tag by default, "display" a bean's Collection to a table in wich > any > properties is displayed as a column and the property name is the column > label. > If you prefer you can modify the default behaviur and display only the > column you want. > DisplayTag has others feutures like export to pdf or excel format and a > builtin pagination. > > 2008/1/28, Roberto Lo Giacco <rlo...@sm...>: >> >> The project you refer to allows only labels as grid elements... am I >> right? >> >> 2008/1/28, Stefano V <st...@gm...>: >> > There's a similar project for the struts framework. >> > look at " http://displaytag.sourceforge.net " We can >> > customize it, (if we need) >> >> >> -- >> Roberto Lo Giacco >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > -- View this message in context: http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15132291.html Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2008-01-28 10:38:54
|
I suggest another approach, at least to evaluate. In case we need to input multiple raws, for example the addresses of a Person (smartweb-registry docet), we can adopt a solution like: - display an empty raw to fill - display a button to request another raw to fill if the button is pressed we can update (AJAX style) the DIV containing the raw and add another row to fill Will this fullfil your needs? 2008/1/28, Gaetano Perrone <gpe...@sm...>: > > Your display tag is a good idea to handle standard paginated entity list . > With SmartGrid i think to resolve multiraw form common problem. > Think u would to acquire n raws from gui. Actually also if the raw is simple > (code, description) u must view list click add , compile form field. > With grid (worksheet like) u could compile n raw with one click... > > > svetrini wrote: > > > > What Do you mean with "label" ? > > display tag by default, "display" a bean's Collection to a table in wich > > any > > properties is displayed as a column and the property name is the column > > label. > > If you prefer you can modify the default behaviur and display only the > > column you want. > > DisplayTag has others feutures like export to pdf or excel format and a > > builtin pagination. > > > > 2008/1/28, Roberto Lo Giacco <rlo...@sm...>: > >> > >> The project you refer to allows only labels as grid elements... am I > >> right? > >> > >> 2008/1/28, Stefano V <st...@gm...>: > >> > There's a similar project for the struts framework. > >> > look at " http://displaytag.sourceforge.net " We can > >> > customize it, (if we need) > >> > >> > >> -- > >> Roberto Lo Giacco > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> smartweb-devel mailing list > >> sma...@li... > >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel > >> > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > > -- > View this message in context: http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15132291.html > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > -- Roberto Lo Giacco |
From: Gaetano P. <gpe...@sm...> - 2008-01-28 10:56:35
|
I agree but think about u would use the same page to update pre-loaded datas. Think about smartschool presence , smartteam expense account, registry addresses, typological entity (code , name, description), etc, etc, etc... The one i post is an idea...posted in a static context... :-) we could develop the idea as sofisticatly we like.... If i posted an ajax prototype i have resolved it :-) ... i post a problem and open a discussion to find the solution... and for evidencing a requirement for a common problem... Roberto Lo Giacco-4 wrote: > > I suggest another approach, at least to evaluate. > > In case we need to input multiple raws, for example the addresses of a > Person (smartweb-registry docet), we can adopt a solution like: > > - display an empty raw to fill > - display a button to request another raw to fill > > if the button is pressed we can update (AJAX style) the DIV containing > the raw and add another row to fill > > Will this fullfil your needs? > > 2008/1/28, Gaetano Perrone <gpe...@sm...>: >> >> Your display tag is a good idea to handle standard paginated entity list >> . >> With SmartGrid i think to resolve multiraw form common problem. >> Think u would to acquire n raws from gui. Actually also if the raw is >> simple >> (code, description) u must view list click add , compile form field. >> With grid (worksheet like) u could compile n raw with one click... >> >> >> svetrini wrote: >> > >> > What Do you mean with "label" ? >> > display tag by default, "display" a bean's Collection to a table in >> wich >> > any >> > properties is displayed as a column and the property name is the column >> > label. >> > If you prefer you can modify the default behaviur and display only the >> > column you want. >> > DisplayTag has others feutures like export to pdf or excel format and a >> > builtin pagination. >> > >> > 2008/1/28, Roberto Lo Giacco <rlo...@sm...>: >> >> >> >> The project you refer to allows only labels as grid elements... am I >> >> right? >> >> >> >> 2008/1/28, Stefano V <st...@gm...>: >> >> > There's a similar project for the struts framework. >> >> > look at " http://displaytag.sourceforge.net " We can >> >> > customize it, (if we need) >> >> >> >> >> >> -- >> >> Roberto Lo Giacco >> >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Microsoft >> >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> _______________________________________________ >> >> smartweb-devel mailing list >> >> sma...@li... >> >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> >> >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > smartweb-devel mailing list >> > sma...@li... >> > https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15132291.html >> Sent from the SmartWeb Developers mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > > > -- > Roberto Lo Giacco > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > -- View this message in context: http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15132804.html Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2008-01-28 11:02:28
|
Completely agree with you, I was thinking to the same problems you mentioned... In your answer I didn't understood if you like my proposal or not.... 2008/1/28, Gaetano Perrone <gpe...@sm...>: > > I agree but think about u would use the same page to update pre-loaded datas. > > Think about smartschool presence , smartteam expense account, registry > addresses, typological entity (code , name, description), etc, etc, etc... > > The one i post is an idea...posted in a static context... :-) we could > develop the idea as sofisticatly we like.... If i posted an ajax prototype i > have resolved it :-) ... > i post a problem and open a discussion to find the solution... and for > evidencing a requirement for a common problem... -- Roberto Lo Giacco |
From: Gaetano P. <gpe...@sm...> - 2008-01-28 11:43:47
|
Yes i'd like your idea, we could also display the new empty raw (other than button clicking) on the last column field exit (tabbing as standalone client). An advice: thing about how valorize raw and column field in edit-change mode...is not very simple... Roberto Lo Giacco-4 wrote: > > Completely agree with you, I was thinking to the same problems you > mentioned... > > In your answer I didn't understood if you like my proposal or not.... > > 2008/1/28, Gaetano Perrone <gpe...@sm...>: >> >> I agree but think about u would use the same page to update pre-loaded >> datas. >> >> Think about smartschool presence , smartteam expense account, registry >> addresses, typological entity (code , name, description), etc, etc, >> etc... >> >> The one i post is an idea...posted in a static context... :-) we could >> develop the idea as sofisticatly we like.... If i posted an ajax >> prototype i >> have resolved it :-) ... >> i post a problem and open a discussion to find the solution... and for >> evidencing a requirement for a common problem... > > -- > Roberto Lo Giacco > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > -- View this message in context: http://www.nabble.com/SmartGrid-Component-tp15119536s17546p15133542.html Sent from the SmartWeb Developers mailing list archive at Nabble.com. |