Ok. :-) Just put it on here before reporting in the jira just in case it's was a stupid idea. ;-)

https://issues.apache.org/jira/browse/WICKET-1427

Regards,
Sebastiaan

Igor Vaynberg wrote:
jira...

-igor

On Sat, Mar 15, 2008 at 6:18 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote:
Hi,

 Is it possible to make setAfterDisabledLink on AbstractLink return
 "this" so that chaining is possible. Now I have somthing similar to the
 following:

        fragment.add(new BookmarkablePageLink("season2Link",
 ProgramsPage.class, new PageParameters("0=2008")) {
                {
                        setAfterDisabledLink("");
                        setBeforeDisabledLink("");
                }

                @Override
                public boolean isEnabled() {
                        return "2008".equals(season);
                }
        });

 But it would be nice if I could do:

        fragment.add(new BookmarkablePageLink("season2Link",
 ProgramsPage.class, new PageParameters("0=2008")) {
                @Override
                public boolean isEnabled() {
                        return "2008".equals(season);
                }
        }.setBeforeDisabledLink("").setAfterDisabledLink(""));

 Regards,
 Sebastiaan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to