[
https://issues.apache.org/jira/browse/WICKET-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596501#action_12596501
]
Johan Compagner commented on WICKET-1626:
-----------------------------------------
"BTW Martin what on earth did you use to create this patch? it simply does not
match anything on trunk or 1.3 branch. "
Ha! it was even a hard one to tackle!
And i thought lets be gentle..
> Typo in src/main/java/org/apache/wicket/protocol/http/WebApplication.java
> -------------------------------------------------------------------------
>
> Key: WICKET-1626
> URL: https://issues.apache.org/jira/browse/WICKET-1626
> Project: Wicket
> Issue Type: Bug
> Reporter: Martin Funk
> Assignee: Maurice Marrink
> Priority: Trivial
> Fix For: 1.3.4, 1.4-M2
>
>
> Index: src/main/java/org/apache/wicket/protocol/http/WebApplication.java
> ===================================================================
> --- src/main/java/org/apache/wicket/protocol/http/WebApplication.java
> (revision 655812)
> +++ src/main/java/org/apache/wicket/protocol/http/WebApplication.java
> (working copy)
> @@ -167,7 +167,7 @@
> }
>
> /**
> - * Gets an init parameter from the filter's context.
> + * Gets an init parameter of the filter, or null if the parameter does
> not exist.
> *
> * @param key
> * the key to search for
> @@ -179,9 +179,10 @@
> {
> return
> wicketFilter.getFilterConfig().getInitParameter(key);
> }
> - throw new IllegalStateException("servletContext is not set yet.
> Any code in your"
> - + " Application object that uses the
> wicketServlet/Filter instance should be put"
> - + " in the init() method instead of your constructor");
> + throw new IllegalStateException("init parameter '" + key +
> + "' is not set yet. Any code in your" +
> + " Application object that uses the wicketServlet/Filter
> instance should be put" +
> + " in the init() method instead of your constructor");
> }
>
> /**
> @@ -202,7 +203,7 @@
>
> /**
> * Gets the servlet context for this application. Use this to get
> references to absolute paths,
> - * global web.xml parameters (<context-param>), etc.
> + * global web.xml parameters (<context-param>), etc.
> *
> * @return The servlet context for this application
> */
> @@ -555,7 +556,7 @@
> * namespaced param. see WICKET-1317
> */
>
> - // If no system parameter check filter/servert initparam and
> context param
> + // If no system parameter check filter/servlet <init-param> and
> <context-param>
> if (result == null)
> {
> result = getInitParameter("wicket." +
> Application.CONFIGURATION);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.