Hi Igor,
I moved the mounting to constructor because in init() method it gives
the error:
org.apache.wicket.WicketRuntimeException: search is already mounted for
BookmarkablePageEncoder[page=class
edu.jst.nihonbare.web.pages.SearchResultsPage]
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.mount(WebRequestCodingStrategy.java:468)
at
org.apache.wicket.protocol.http.WebApplication.mount(WebApplication.java:321)
at
edu.jst.nihonbare.web.NihonBareApplication.init(NihonBareApplication.java:47)
at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:696)
at
org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:213)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at
org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
Any tips please?
umanga
Igor Vaynberg wrote:
make sure you are mounting your pages in application.init() and not in
the constructor...
-igor
On Fri, Jan 29, 2010 at 1:39 AM, Ashika Umanga Umagiliya
<[email protected]> wrote:
Any tips ? :(
Any examples with Spring integration and mounted pages?
Ashika Umanga Umagiliya wrote:
Greetings all,
Just to make sure , I create another skeleton Wicket application and
integrated a module which I used before with GWT (use only Spring+Hibernate)
.And whenever I configure Spring , non of the mounted pages work?
So is this something with Spring integration?
Josh Kamau wrote:
I suggest you start with something very simple that works. You can use
maven
archetype to generate a project then mount the page there. If it works.
Try
adding adding your spring and hibernate stuff . If it works see where you
went wrong in your main application
Josh
On Fri, Jan 29, 2010 at 6:57 AM, Ashika Umanga Umagiliya <
[email protected]> wrote:
Nop,I only use Wicket filter! I use markup inheritance for my pages,so
I
create new plain test WebPages and mounted,and they wont mount either.
I use Spring,Hibernate and Compass search engine in my app.
You said to debug the code, you mean with Wicket source?
I dont have good understand of Wicket internals,could you point me where
I
found be looking at?
Thanks
umanga
Igor Vaynberg wrote:
i doubt spring has anything to do with it. do you have any other
filters?
-igor
On Thu, Jan 28, 2010 at 7:36 PM, Ashika Umanga Umagiliya
<[email protected]> wrote:
None of my mounted pages work!
Do you think this has some thing to do with the way I have integrated
Spring
?
I have used ApplicationObjectApproach ,mentioned below :
http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
Igor Vaynberg wrote:
strange, i guess you will have to debug with breakpoints to see where
it goes wrong.
-igor
On Thu, Jan 28, 2010 at 7:11 PM, Ashika Umanga Umagiliya
<[email protected]> wrote:
Igor Vaynberg wrote:
do other mounted pages work?
I mounted a test webpage and it wont work either.
do you use the /* mapping with your wicket filter?
Yes,and I use Spring integration as follows:
<filter>
<filter-name>wicket.nihonbare-web</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>
</filter>
<filter-mapping>
<filter-name>wicket.nihonbare-web</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>wicket</servlet-name>
<servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
<init-param>
<param-name>applicationFactoryClassName</param-name>
<param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]