I think this would be a good idea in a limited form ( ie strings only, not scriptlets ).
Ive noticed over time our tapestry page templates became more and more convoluted with these types of scriptlets because it is more convinient for developers to stick small pieces of code right into the page template (its amazing how much you can pack into an ognl expression). One strong point of wicket is that it separates presentation from logic. Another problem with this is that pretty soon you find yourself needing something like spindle to work efficiently with your components. Igor > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Eelco Hillenius > Sent: Wednesday, July 06, 2005 1:29 PM > To: Wicket User List > Subject: [Wicket-user] setting component properties from tag > attributes > > Setting component properties from tag attributes could be a > valueable addition to our arsenal. /IF/ we can do this > /efficiently/ we could support things like: > > <a href="#" wicket:id="link" color="brown">set color</color> > > private class ColorLink extends Link > { > private String color; > > public void setColor(String color) { this.color = color; } > > public String getColor() { return color; } > > public void onClick() > { > ... > } > }; > > where attribute color would be set the the color property on > a ColorLink instance. > > I think this is a lot like Tapestry's informal parameters. > Any readers that have experience with that? And what do you > think. Can it be a good thing, or does it encourage scripting > too much. Personally, I think that it could help in cases > where the properties to be set are really about the visuals > in the first place. In that case supporting this could be a good idea. > > Eelco > > p.s. though this is a develop discussion, I hope on broader > opinions here which is why I posted to the user list. > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user