I agree that hijacking JSP pages and wrapping elements with GWT
widgets is not the best long-term approach.

As an alternative to using JSNI to hijack the drop-downs, you could
make the host JSP page simply contain empty placeholder div elements
with known id values, insert your GWT ListBox instances in them using
RootPanel.  You could populate the list options with server data
gotten via separate request (GWT RPC?).  While it's true that this is
an extra round-trip, you have to look at it in the overall context of
developing a rich client, in which case you may already have need to
fetch data from the server, and you could piggyback this request onto
that.  This approach has the added benefit that if the list box
contents are at all dynamic, you now have the means to refresh them.

Walden

On Sep 19, 9:36 am, obesga <[EMAIL PROTECTED]> wrote:
> I think you don't have the rihgth approach to GWT, but if this is what
> you really want, there's a way to do it
>
> Make a GWT module and implement your desired behaviour of the listbox
> in one ListBox class
> Implemet a method , by JSNI,  that assigns the desired textbox to the
> class - using public static ListBox wrap(Element element)
> Load into the jsp page the generated script
> <script type="text/javascript" language="javascript"
> src="neeraj.MyProject.nocache.js">
>
> But you must learn a little to make it well
>
> Oskar
>
> On 18 sep, 09:34, neeraj <[EMAIL PROTECTED]> wrote:
>
>
>
> > HI
> > I m new to GWT. suppose if I want to add gwt functionality to two
> > dropdowns on mi jsp page.how could i achieve that.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to