Feature Requests item #1350014, was opened at 2005-11-07 07:36
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=1350014&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: sakiss (sakiss)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add IModel in BookmarablePageLink constructor

Initial Comment:
can you please add IModel to contructors of
wicket.markup.html.link.BookmarkablePageLink
(so it is consistent with Link ) ?

example

        /**
         * Constructor.
         *
         * @param id
         *            The name of this component
         * @param pageClass
         *            The class of page to link to
         */
        public BookmarkablePageLink(final String id,
final Class pageClass)
        {
                this(id, pageClass, new
PageParameters(), null);
        }

        /**
         * Constructor.
         *
         * @param id
         *            See Component
         * @param pageClass
         *            The class of page to link to
         * @param parameters
         *            The parameters to pass to the new
page when the link is
         *            clicked
         */
        public BookmarkablePageLink(final String id,
final Class pageClass,
                        final PageParameters parameters)
        {
                this(id, pageClass, parameters, null);
        }

        /**
         * Constructor.
         *
         * @param id
         *            See Component
         * @param pageClass
         *            The class of page to link to
         * @param model
         *                           FIXME
         * @see wicket.Component#Component(String, IModel)
         */
        public BookmarkablePageLink(final String id,
final Class pageClass,
                        final IModel model)
        {
                this(id, pageClass, new
PageParameters(), model);
        }

        /**
         * Constructor.
         *
         * @param id
         *            See Component
         * @param pageClass
         *            The class of page to link to
         * @param parameters
         *            The parameters to pass to the new
page when the link is
         *            clicked
         * @param model
         *                           FIXME
         * @see wicket.Component#Component(String, IModel)
         */
        public BookmarkablePageLink(final String id,
final Class pageClass,
                        final PageParameters
parameters, final IModel model)
        {
                super(id, model);
                if (pageClass == null)
                {
                        throw new
IllegalArgumentException("Page class for bookmarkable link
cannot be null");
                }
                this.pageClass = pageClass;
                this.parameters = parameters;
        }






----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1350014&group_id=119783


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to