...
Code Block | ||||
---|---|---|---|---|
| ||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org/" xml:lang="en" xml:lang="en" lang="en"> "> |
Wicket Filter Mapping
Wicket 1.4.x & 1.5.x
On these versions, you should prefer to use WicketFilter instead of WicketServlet. If you want, it's possible to map /*
instead of /app/*
. But remember to configure the ignorePaths
parameter to ignore static resources and leave them to be handled by the container.
Ignoring paths
If you want to leave static resources to be handled by the container, configure the {{ignorePaths }}init parameter as follows:
Code Block |
---|
<filter>
<filter-name>wicket.app</filter-name>
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>com.myproject.MyApplication</param-value>
</init-param>
<init-param>
<param-name>filterMappingUrlPattern</param-name>
<param-value>/*</param-value>
</init-param>
<init-param>
<param-name>ignorePaths</param-name>
<param-value>/css,/js,/images,/icons</param-value>
</init-param>
</filter>
|
Wicket Servlet Mapping
Wicket 1.1.x & 1.2.x
...
You may experience difficulties with form POSTs if you map to /*
. For example, if a GET request on a Wicket form produces a URL like http://www.examplehost.com/examplecontext/?wicket:interface=wicket-0:2:3
, you will find that Wicket writes an action="/examplecontext?wicket:interface=wicket-0:2:3:someForm:2:IFormSubmitListener"
attribute to the |<form\>
element. Because of the missing /
before the ?
, the container may not recognise the resulting POST as a request for the Wicket servlet. This behaviour has been observed with:
...
PBEWithMD5AndDES not found
Wiki Markup |
---|
_\[For the moment, I'll leave this, but I'm not convinced this actually belongs here at |
all -_ _[Gwyn|User__Gwynevans]_ _13:56, 23 Aug 2006 (BST)\]_ |
Not entirely clear what causes this.
...
- download http://www.bouncycastle.org/download/bcprov-jdk15-133.jar
- put it in jre\lib\ext
- in java.security (jre\lib\security), add this security provider:
Code Block security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
Wiki Markup |
---|
\[Comments on the mailing list suggest this has been seen _twice_ only, and may be due to misconfigured/corrupted JDK - Suggest reinstalling the JDK before adding BouncyCastle... [Gwyn|User__Gwynevans] 13:56, 23 Aug 2006 (BST)\] |
I've only seen this under the SysDeo Tomcat plug-in for Eclipse, when the boot classpath wasn't configured properly to include jce.jar, etc. – Al Maw
...
This is due to a hard to fix issue. As long as that issue is open, people should avoid setting id attributes on tags that are coupled to components that use rely on the markup id (setOutputMarkupId true). See http://issues.apache.org/jira/browse/WICKET-694 – Eelco
Avoid using empty elements (i.e. <textarea />)
...