Re: Interfaces for component hierarchies (e.g. Buttons)?

2008-10-08 Thread John Krasnay
Hi Martin, Programmatically generating the markup as you've done below is not really "the Wicket way", which is probably why you're bumping up against other Wicket design decisions. I've solved similar problems using a RepeatingView as follows: ButtonPanel.html ButtonPanel.java public c

Re: Interfaces for component hierarchies (e.g. Buttons)?

2008-10-08 Thread Martin Dietze
On Tue, October 07, 2008, Jeremy Thomerson wrote: > Maybe supply some code as an example of what you're doing. I really didn't > understand your scenario below. See the code below. I use a button panel which allows me to setup form buttons in different ways within a page class hierarchy, i.e. an

Re: Interfaces for component hierarchies (e.g. Buttons)?

2008-10-07 Thread Jeremy Thomerson
Maybe supply some code as an example of what you're doing. I really didn't understand your scenario below. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 7, 2008 at 11:41 AM, Martin Dietze <[EMAIL PROTECTED]> wrote: > On Tue, October 07, 2008, Jeremy Thomerson wrote: > > > Depe

Re: Interfaces for component hierarchies (e.g. Buttons)?

2008-10-07 Thread Martin Dietze
On Tue, October 07, 2008, Jeremy Thomerson wrote: > Depending on what you are doing, you may want to try implementing the "foo" > feature code as a behavior. Behaviors are like plugins for components, and > can be used on any component. So, if it is possible to implement your > functionality as

Re: Interfaces for component hierarchies (e.g. Buttons)?

2008-10-07 Thread Jeremy Thomerson
Depending on what you are doing, you may want to try implementing the "foo" feature code as a behavior. Behaviors are like plugins for components, and can be used on any component. So, if it is possible to implement your functionality as a behavior, then you could add it to the button or ajax but

Addition [Re: Interfaces for component hierarchies (e.g. Buttons)?]

2008-10-07 Thread Martin Dietze
On Tue, October 07, 2008, Martin Dietze wrote: > Just wondering, whould it be a good idea to add such interfaces > to the Wicket-API? Or am I missing something? commenting on my comments: (1) This would of course mean to interface-ify basically the whole component type hierarchy, since in or

Interfaces for component hierarchies (e.g. Buttons)?

2008-10-07 Thread Martin Dietze
Hi, I am currently running into the following: I extend the button class by a snappy "foo"-feature. I build stuff which uses it. Now I need a "foo"-ified AjaxButton within this infrastructure. The obvious way to do this is to write an interface FooButton which gives me this "foo"-feature. Howeve