Peter Parson created WICKET-4892:
------------------------------------

             Summary: Provide helpful exception message in 
RequestCycle#urlFor(Class, PageParameters)
                 Key: WICKET-4892
                 URL: https://issues.apache.org/jira/browse/WICKET-4892
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.2.0
            Reporter: Peter Parson


When something goes wrong while trying to get the URL for 
pageClass/pageParameters using RequestCycle, the exception message and its 
stacktrace is not very helpful in tracking down the component actually causing 
the problem. (See attached stacktrace that I while rendering a 
BookmarkablePageLink with a null parameter.)

I suggest to catch any exceptions thrown by urlFor(IRequestHandler) and 
throwing a WicketRuntimeException having pageClass and pageparamters in its 
message. (See attached patch)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to