RequestLogger change - include Page Parameters for BookmarkablePages
--------------------------------------------------------------------

                 Key: WICKET-2139
                 URL: https://issues.apache.org/jira/browse/WICKET-2139
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4-RC2, 1.3.5
            Reporter: Alex Parvulescu
            Priority: Trivial


>From the dev-list: 
>http://www.nabble.com/RequestLogger-change---include-Page-Parameters-for-BookmarkablePages-td22295982.html

Can you please add page parameters to the IRequestTarget logging ?

Its a simple addition to
org.apache.wicket.protocol.http.RequestLogger#getRequestTargetString(IRequestTarget
target) :

so this

        else if (target instanceof IBookmarkablePageRequestTarget)
        {
            IBookmarkablePageRequestTarget pageRequestTarget =
(IBookmarkablePageRequestTarget)target;
            sb.append("BookmarkablePage[");
            sb.append(pageRequestTarget.getPageClass().getName());
            sb.append("]");


becomes

        } else if (target instanceof IBookmarkablePageRequestTarget) {
            IBookmarkablePageRequestTarget pageRequestTarget =
(IBookmarkablePageRequestTarget) target;
            sb.append("BookmarkablePage[");
            sb.append(pageRequestTarget.getPageClass().getName());
            sb.append("(");
            sb.append(pageRequestTarget.getPageParameters());
            sb.append(")]"); 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to