Feature Requests item #1548203, was opened at 2006-08-28 22:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1548203&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Priority: 5 Submitted By: qwam swatidi (qwam2000) Assigned to: Nobody/Anonymous (nobody) Summary: New class -> NonBookmarkablePageLink Initial Comment: I think the core API is lacking such as class. Do you think we could add the following? As I think it is a common enough piece of functionaluty . ------------------------ cut here ------------------- package wicket.markup.html.link; import wicket.Page; import wicket.PageParameters; import wicket.markup.html.link.Link; public class NonBookmarkablePageLink extends Link { private Class pageClass; private PageParameters pageParameters; public NonBookmarkablePageLink(final String id, Class pageClass) { this(id, pageClass, PageParameters.NULL); } public NonBookmarkablePageLink(final String id, Class pageClass, String keyValuePairs) { this(id, pageClass, new PageParameters(keyValuePairs)); } public NonBookmarkablePageLink(final String id, Class pageClass, PageParameters pageParameters) { super(id); this.pageClass = pageClass; this.pageParameters = pageParameters; setBeforeDisabledLink(""); setAfterDisabledLink(""); } protected boolean linksTo(Page page) { return page.getClass() == pageClass; } public void onClick() { setResponsePage(getPageFactory().newPage(pageClass, pageParameters)); } } Thanks, Qwam ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1548203&group_id=119783 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop