well it would be nice to make embedding GWT /applications/ easy too, but
actually i was sortof remembering my old sprockets idea, i guess.  i really
don't know GWT well enough (there are not enough hours in the day it
seems...), so i don't know if this is a bad idea technically (if, for
example, GWT were slow or heavyweight to start up), but i was hoping that
one could create wicket wrappers for GWT "applets" that do fancy editing of
wicket models.  then wicket users could just drop in the GWT components and
get lots of fancy client-side editing of their richer wicket models (rich
text, images, stock lists, charts, spline editors, whatever).

a GWT wicket component would be a subclass of something like GwtPanel.  it
would get a POJO model from wicket on loading through a GWT callback to some
GwtPanel glue code.  then, when the component was done editing it, the GWT
side would have an interface to send the model back to wicket, which would
update the wicket-side component model and call something like
onModelChanged (only with an ajax request target so the wicket component
could refresh other parts of the page).  so, for example, using a
super-fancy GWT rich text editor might look like:

class SuperFancyGwtRichHtmlEditor extends GwtPanel { ... }

add(new SuperFancyGwtRichHtmlEditor("htmlEditor", new PropertyModel(product,
"htmlDescription")) 
{
    public void onModelChanged(final AjaxRequestTarget target) {
        // update the product list with fancy rich text
        target.addComponent(products);
    }
});

this worked pretty well for sprockets and the code should still be up there
on wicket-stuff somewhere, but nobody used sprockets much (i guess because
they're applets).  if this turns out to be a good idea, i suggest "grockets"
as a name to honor sprockets and mike myers.  hey, all i want here is sharks
with frickin' lasers attached to their heads, okay?

best,

       jon


igor.vaynberg wrote:
> 
> you can make roundtripping easier. for example, you develop a login
> panel that lets users either login or signup. a wicket component may
> look something like this:
> 
> add(new LoginPanel("panel") {
>   onLoging(String username, String password) {..}
>   onSignup(String first, String last, String login, String password,
> String email) {..}
> }
> 
> LoginPanel would extend some BaseGwtWidget which will make it easy to:
> * include gwt module javascript into the page
> * generate binding javascript that binds callbacks to said module's
> javascript
> * create the callback urls with json? unmarshalling
> * json marshal data to the gwt widget
> 
> just thinking out loud. some isolated "very rich" components might be
> easier to build in gwt then with wicket's ajax.
> 
> -igor
> 
> 
> 
> 
> On Mon, Mar 31, 2008 at 12:19 PM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
>> How do you see that intergration?
>>  The only thing that gwt has on the server is 'services'
>>  Dont see how wicket can do much there
>>
>>
>>
>>  On 3/31/08, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>>  >
>>  >
>>  > With Google sponsoring Wicket meetings, I'm wondering if we might
>> someday
>>  > see Wicket/GWT integration?
>>  >
>>  >
>>  > jweekend wrote:
>>  > >
>>  > > Just a reminder that our next event is on Wednesday evening at
>> Google's
>>  > > offices.
>>  > > You can register and keep an eye on full details
>>  > > http://jweekend.com/dev/LWUGReg/ here  (some of you have not
>> confirmed or
>>  > > cancelled yet - please do so as we need to fix security and manage
>> the
>>  > > space available).
>>  > >
>>  > > Also let us know if you'd like to give a short presentation
>> (anything
>>  > > between 5 - 30 minutes is OK) this time or in the future.
>>  > >
>>  > > Regards - Cemal
>>  > >  http://jWeekend.co.uk http://jWeekend.co.uk
>>  > >
>>  > > PS To those that have asked and others that are worried, we'll
>> probably be
>>  > > able to catch all of the 2nd half of Arsenal - Liverpool (quarter
>> final of
>>  > > the UEFA Champions League) at the pub.
>>  > >
>>  > >
>>  >
>>  > --
>>  > View this message in context:
>>  >
>> http://www.nabble.com/London-Wicket-Event---Wednesday-evening-at-Google-tp16396048p16398935.html
>>  > Sent from the Wicket - User mailing list archive at Nabble.com.
>>  >
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >
>>  >
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Event---Wednesday-evening-at-Google-tp16396048p16411092.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to