Re: Wicket in web-fragments environment

2015-03-17 Thread Martin Grigorov
Oh, right! So /META-INF/web-fragment.xml and de.example.infrastructure.wicket. MyWicketApplication are in the same .jar file ? It seems the code at https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/protocol/http/ContextParamWebApplicationFactory.java#L64-L72

Re: TextTemplateHeaderContributor from 1.4 to 6

2015-03-17 Thread David Kaufman
Hi Martin, is it also eligible to put the body inside a behavior, i.e.: protected void addJavaScriptFile() { add( new Behavior() { @Override public void renderHead( final Component component, final IHeaderResponse response ) { super.renderHead(

Re: Wicket in web-fragments environment

2015-03-17 Thread Patrick Davids
So /META-INF/web-fragment.xml and de.example.infrastructure.wicket. MyWicketApplication are in the same .jar file ? Correct. It seems the code at ... doesn't work in this case. Jepp, also have found this code part, and due to the mentioned bug-entry, my initial question arises. Please

Re: Wicket in web-fragments environment

2015-03-17 Thread Patrick Davids
Hi Martin, sorry, for delay... This is the stacktrace. kind regards Patrick Information: Starting Servlet Engine: Apache Tomcat/7.0.59 ERROR [WicketFilter] - The initialization of an application with name 'wicket.myapp' has failed. org.apache.wicket.WicketRuntimeException: Unable to create

Re: Wicket in web-fragments environment

2015-03-17 Thread Maxim Solodovnik
Seems to be bad classpath The main class for your application is not found On Tue, Mar 17, 2015 at 3:01 PM, Patrick Davids patrick.dav...@nubologic.com wrote: Hi Martin, sorry, for delay... This is the stacktrace. kind regards Patrick Information: Starting Servlet Engine: Apache

Re: Wicket in web-fragments environment

2015-03-17 Thread Patrick Davids
I dont have a annotated WebFilter sub-class. I just splitted my web.xml into fragments. So, my web-fragment.xml looks like this. web-fragment xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: TextTemplateHeaderContributor from 1.4 to 6

2015-03-17 Thread Martin Grigorov
Yes, if you need to reuse it then put it in a Behavior! Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Mar 17, 2015 at 12:38 PM, David Kaufman david.kauf...@gmx.de wrote: Hi Martin, is it also eligible to put the body

Problem with ModalWindowPage example

2015-03-17 Thread wicket556
Hi I started to build my application with Wicket(7). And I have problem with ajax modal window example. Basically they don't show up. This is the message which I get from Wicket Ajax Debug Window. I don't see what can be wrong with this. Maybe someone would be able to help me with that. Thanks

Re: Problem with ModalWindowPage example

2015-03-17 Thread Martin Grigorov
Hi, Check the JavaScript console for any errors. Also in Dev Tools Network tab for the actual Ajax response. What looks suspicious to me is: component id=modal23e /component. It shouldn't be empty. Please show us the related Java code. Martin Grigorov Freelancer, available for hire! Wicket

Re: Problem with ModalWindowPage example

2015-03-17 Thread Martin Grigorov
Hi, On Tue, Mar 17, 2015 at 3:04 PM, wicket556 marc...@ekopal.pl wrote: Hi, thanks for a quick reply. The java code is the same as in http://www.wicket-library.com/wicket-examples/ajax/modal-window http://www.wicket-library.com/wicket-examples/ajax/modal-window?0 . I'm only changed

Re: Problem with ModalWindowPage example

2015-03-17 Thread wicket556
Hi, thanks for a quick reply. The java code is the same as in http://www.wicket-library.com/wicket-examples/ajax/modal-window http://www.wicket-library.com/wicket-examples/ajax/modal-window?0 . I'm only changed ModalWindowPage extends BasePage to: ModalWindowPage extends