[
https://issues.apache.org/jira/browse/WICKET-1427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johan Compagner updated WICKET-1427:
------------------------------------
Assignee: Johan Compagner
> make setAfter/BeforeDisabledLink return "this" for chaining
> -----------------------------------------------------------
>
> Key: WICKET-1427
> URL: https://issues.apache.org/jira/browse/WICKET-1427
> Project: Wicket
> Issue Type: Improvement
> Affects Versions: 1.3.2
> Reporter: Sebastiaan van Erk
> Assignee: Johan Compagner
> Priority: Minor
> Fix For: 1.4-M1
>
>
> 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(""));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.