OK, hadn't seen your last message On Thu, Nov 10, 2011 at 5:42 AM, Maarten Bosteels <mbosteels....@gmail.com>wrote:
> I think your attachment didn't make it to the mailing list. > > Maarten > > On Wed, Nov 9, 2011 at 7:52 PM, David Berkman <david.berk...@glu.com>wrote: > >> I've had a number of requests, so I'll upload this bit of code here so >> people can have a look. I know there's room for improvement in the code >> that exists, and a ton that needs to be done. There's a wicket-dojo project >> on GitHub https://github.com/vijaykiran/wicketstuff-dojo that's much >> cleaner, with many more advanced integrations. However, that project lacked >> implemented wrappers for Dojo Dijits, which is what I wanted most. The code >> there also seemed a bit daunting, so I began a project to make wrappers I >> could understand, and extend, and learn both Wicket and Dojo in the >> process. This is the results so far. The few advantages it has over the >> GitHub code I've linked to are... >> >> 1) A bunch of useful Dijits wrapped in a way I hope is fairly clear and >> extensible (it's getting better). >> 2) All the wrappers use fluent APIs >> 3) You can generally set a field, or your own model, interchangeably. For >> instance, if you want to set a Title, you can usually setTitle(String >> title) or setTitleModel(IModel<String> titleModel). Being able to control >> the model is extremely useful. >> 4) You can generally set attributes in your HTML and these values will >> initialize the fields/models in the wrappers on a non-Ajax render. Values >> can then be dynamically altered from there via Ajax (as with user >> interaction). >> 5) Using setIntermediateChanges(true) will generally update the wrappers' >> fields/models upon user interactions with the Dijit, via Ajax (you can also >> add DojoAjaxUpdatingBehaviors to get your own callbacks). This extends to >> things like stack container updating its models for selected child index >> and id. >> >> There's still much to do. It's not the cleanest code yet. It doesn't >> handle animations or fx or anything but presenting widgets. It's part of a >> larger project so I haven't presented a real build, just the code. If >> people are interested, I can cleave this off and provide a true maven build. >> >> David >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > >