Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As you will notice of the example above, I also defined support for all possible mime-types (<mime-type>/</mime-type>), to support ResourceURLs setting any mime-type they might need. This is just to ensure the portal/container isn't going to complain if your ResourceURL handling is going to set an unexpected mime-type. If you happen to know all possible mime-types before hand you also can enumerate each of them, instead of simply allowing everything.

Note: the wicket filter path must be also specified with the "filterMappingUrlPattern" parameter in web.xml (this time with the trailing /*):

Code Block
xml
xml

   <filter>
      ...
      <init-param>
         <param-name>filterMappingUrlPattern</param-name>
         <param-value>/ajax/*</param-value>
      </init-param>
      ...
   </filter>

That should be all you need to do to get started.
Please let us know if you encounter any problems and also if you get working just fine of course (smile)

...