Re: Enhancement to converters?
Frank Meißner <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Wolf Paulus wrote: > A possible solution to this problem would be to elevate delegates from > attributes to tags. To give an example: > Instead of > > <list id="alist" cellrenderer="com.mydomain.MyCellRenderer"/> > > a nested tag would be used: > > <list id="alist"> > <mycellrenderer> > </list> Hello Wolf, this sounds like a very good idea to me. To be able to re-use the renderers by specifying an (ref)id solves a problem my approach did not have a solution for. (without introducing a rather awful syntax) I'm able to work on swixml again next weekend, perhaps a couple of hours during this week. Frank > > Since renders are often re-used, the already know refid attribute could > help to define this case: > > <list id="alist"> > <mycellrenderer id="renderer123"/> > </list> > > <list id="alist"> > <mycellrenderer refid="renderer123"/> > </list> > > Elevating delegates to tag would also allow to initialize it since we > could provide the full parser support, allowing to use setter and the > initclass attribute as well. > > Since we probably don't want to allow to instantiate every class know to > the system, delegates would have to be registered (like tags and > converters are being registered.) A simple map could take care of this. > This would also allow for not having to flag a delegate tag. > If a tag is found registered it's representing class is instantiated and > added into the parent - else we would try to find it in the delegate map. > If found, we instantiate it, set it up and try to find a setter in the > parent. > > Wolf > > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > > -- AuthentiDate International AG GroÃenbaumer Weg 6 40472 Düsseldorf / Germany Phone : +49(0)211 43 69 89-52 FAX : +49(0)211 43 69 89-19 Erfahren Sie mehr unter: www.authentidate.de Oder beim Enterprise Signature Day 11. März 2004, Düsseldorf www.enterprise-signature-day.de