Some contributions

5 views
Skip to first unread message

Pete

unread,
May 2, 2009, 12:55:13 PM5/2/09
to SmartGWT Extensions
I have several widgets that I can contribute to get people started.
They include:
1. File Upload Canvas and servlet
2. File Manager with context menu to manage files (and some server
code to show how to transmit file info)
3. ResourceMenu that lets you tag urls or internal file links. The
tags are used as the labels for a SectionStack.
4. A Notes that lets you store notes and comments in a tree
structure. Notes editor can be configured by the user to create types
of notes, each with their own icon.
5. HTMLEditor (FCKEditor) with dialogs to link to files, htmltemplates
and styles. This comes with a download servlet which will show how to
display local files within html.
6. If the HTMLEditor and Notes are shown side by side, you can
highlight html (including images etc.) and make it a note.

I was waiting until I had them fully documented but that will probably
not happen soon, so I thought it would be better to get the code out
their sooner rather than later.

What is your pleasure?

Sanjiv Jivan

unread,
May 3, 2009, 9:24:33 PM5/3/09
to smartgwt-...@googlegroups.com
Thats great!! I agree that its best to make the code available and add documentation / polish it later as other users can benefit a great deal from what you have in the current state.

Please go ahead and check in the code. If you have any doubts / questions on where the code must go, feel free to post here.

Also kind you kindly add the MIT license header to the source, along with @author etc tags.

Thanks,
Sanjiv

Boysen, Pete [ITACD]

unread,
May 10, 2009, 6:21:06 PM5/10/09
to smartgwt-...@googlegroups.com
Sanjiv,
They are committed, even with a little documentation for a few, all with licenses and tags as suggested. I have also provided a upload, download and cache servlets which should help explain the server-side, which seems to be a frequent question. You are welcome to direct them to the code or to me. My email is in the comments.


Pete Boysen
Information Technology Services
pbo...@iastate.edu
(515)294-6663
winmail.dat

Sanjiv Jivan

unread,
May 10, 2009, 7:10:54 PM5/10/09
to smartgwt-...@googlegroups.com
Excellent, looking forward to checking it out soon.

Thanks,
Sanjiv

Boysen, Pete [ITACD]

unread,
May 11, 2009, 4:49:29 PM5/11/09
to smartgwt-...@googlegroups.com

I do have a question about Object data processing.  In some cases, I can’t link a datasource to a widget but have to process the Object data to extract information. For example,

            for (int i = 1; i < 10; i++) {

                  String prefix = "//projects/project[" + i + "]/";

                  String context = XMLTools.selectString(data, prefix + "@context");

                  if (context == null)

                        break;

                  if (context.equals("ThinkSpace")) {

                        String sid = XMLTools.selectString(data, prefix + "@id");

                        String title = XMLTools.selectString(data, prefix + "@title");

                        String type = XMLTools.selectString(data, prefix + "@model");

                        spaces.add(new Space(sid, title, type));

                  }

            }

This seems rather klunky.  XMLTools provides the ability to get nodes but then I am not sure how to process the nodes.  Is there an easier/better way?

 

 

Pete Boysen (pbo...@iastate.edu)
Information Technology Services
209 Durham
(515)294-6663

Reply all
Reply to author
Forward
0 new messages