The only think I know is that if you allow the end dev user to set a
different LinkListener he will be able to do so, and if you do not, he
will not be able to.
The example below is an example of an application.
I'm not sure that framework architects in companies, that will want to
build more elaborate frameworks above Wicket, will be happy to have to
create a specific subclass for each "action" component in order to be
able to add listeners to them at runtime (e.g. if they want to provide
quick hooks to create PageBuilders from configuration retrieved from
database if they are writing a CMS ...)
--
Laurent
On 12/8/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
> i also thought that at first.
> But there isn't to much of a difference when doing this:
>
> javax.swing.JButton button = new JButton();
> button.addActionListener(new ActionListener()
> {
> public void actionPerformed(ActionEvent e)
> {
> // do youre stuff
> }
> });
>
> against
>
> wicket.Link = new Link()
> {
> onClick()
> {
> // do youre stuff
> }
> }
>
>
> johan
>
> On 12/8/05, Laurent PETIT <[EMAIL PROTECTED]> wrote:
> >
> > On 12/8/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > The standard way of wicket is to subclass and implement the onClick or
> > > onSubmit method
> > >
> > > But if you want to do it through seperate listeners then yes you need to
> > > subclass link once
> > > so that you can add listeners on it. Just as i subscribed above.
> > >
> > > Or call youre DAO service and do stuff there when you just override Link
> and
> > > implement that in onClick()
> > > as most people do.
> >
> > Ok, I undestand that.
> >
> > Honestly, I'm not very happy with this. Have not yet been faced to a
> > problem with this, but it just seems like too much subclassing
> > enforcements to me ...
> >
> > But now it is clear to me that the "Wicket way" of doing this is by
> > subclassing, thanks for the confirmation.
> >
> > See you,
> >
> > --
> > Laurent
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user