Greetings,
I create a test wicket project using maven archetype,and kept on
configuring stuff gradually.
I noticed that,after I configure Spring as shown in (1) below, the
mounting wont work.
It works fine for (2) which doesn't have Spring integration!
<!-- (1) -->
<!--
<param-name>applicationFactoryClassName</param-name>-->
<!--
<param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value>-->
<!-- (2) -->
<param-name>applicationClassName</param-name>
<param-value>com.mycompany.WicketApplication</param-value>
Any tips?
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 <
auma...@biggjapan.com> 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
<auma...@biggjapan.com> 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
<auma...@biggjapan.com> 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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org