Templated Widget Design
Posted by Gaurav Vaish on August 29th, 2008
Yesterday, we accomplish a kind-of breakthrough. We were able to process the template for a template-based-widget and extract the dojoAttachPoint-s.
The tougher challenge for us is to work with dojoAttachEvent. At this point, I am not quite too sure if and how we will support it because Java does not support function-pointers whereas JavaScript does.
Yesterday, I did try out sinking some events and capturing them (onBrowserEvent). Worked fine in trivial case. I think it’s time to look at EventListener and define custom event listeners, and methods to add/remove/fire them.
I intend to pen-down a small architecture / design document today (hey, I’m traveling tonight and will be off action for next 4-5 days) highlighting the templated widgets.
And once the templated widget is done, creating further widgets would be straight forward and quite speedy.
