As I see it uses Portlet. Is it only way?
And as I understand it mounts the portlet on "examples" url and all
other are subfolders of it. But I need main application on root and
only one subfolder to admin application.
2008/11/17 Igor Vaynberg <[EMAIL PROTECTED]>:
> you have to tell the admin filter where it is mounted. see
> wicket-examples - each example is a separate app and there mounts work
> fine.
>
> -igor
>
> On Mon, Nov 17, 2008 at 9:41 AM, Anatoly Kupriyanov <[EMAIL PROTECTED]> wrote:
>> I have two wicket apps: main site and admin site. I want to use them
>> both from one web.xml
>> I made:
>> <filter>
>> <filter-name>wicket</filter-name>
>> <filter-class>
>> org.apache.wicket.protocol.http.WicketFilter
>> </filter-class>
>> <init-param>
>> <param-name>applicationFactoryClassName</param-name>
>> <param-value>
>>
>> org.apache.wicket.spring.SpringWebApplicationFactory
>> </param-value>
>> </init-param>
>> <init-param>
>> <param-name>applicationBean</param-name>
>> <param-value>wicketApplication</param-value>
>> </init-param>
>> </filter>
>>
>> <filter>
>> <filter-name>wicketAdmin</filter-name>
>> <filter-class>
>> org.apache.wicket.protocol.http.WicketFilter
>> </filter-class>
>> <init-param>
>> <param-name>applicationFactoryClassName</param-name>
>> <param-value>
>>
>> org.apache.wicket.spring.SpringWebApplicationFactory
>> </param-value>
>> </init-param>
>> <init-param>
>> <param-name>applicationBean</param-name>
>> <param-value>wicketAdminApplication</param-value>
>> </init-param>
>> </filter>
>> ...
>> <filter-mapping>
>> <filter-name>wicketAdmin</filter-name>
>> <url-pattern>/admin/*</url-pattern>
>> </filter-mapping>
>> <filter-mapping>
>> <filter-name>wicket</filter-name>
>> <url-pattern>/*</url-pattern>
>> </filter-mapping>
>>
>> all works fine, except mounted pages. In admin application I'll do
>> mountBookmarkablePage("thePage", ThePage.class) and I get wicket 404
>> error: NOT_FOUND RequestURI=/site/admin/thePage. As I understand, the
>> wicket "mounter" expects the page mounted on "admin/thePage", but not
>> just "thePage". What can I do to avoid explicit url-pattern mapping
>> part in mounted page url?
>>
>> --
>> WBR, kan.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
WBR, kan.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]