I think thats prety hard to do. Because if you where able to render only a panel. What happens if i click on a link on that part? Then it has to find the page, so you have to have a dummy page.. And then after the link click you have to somehow caputere that again and render first the struts page again...
Looks like a completely wrong way to me. 2007/12/7, Murat Yücel <[EMAIL PROTECTED]>: > Has any of the developers a comment to this? Is it possible to mix > wicket with struts? > For example forms could be a big issue. I guess it should be possible > to include wicket > panels in struts as long as it is only used for view. For example make > a pie chart panel > in wicket. > > /Murat > > 2007/11/29, Murat Yücel <[EMAIL PROTECTED]>: > > Hi Martijn > > > > I can give you an use case. Your current webapp is developed in > > struts. You are tired of it and want to migrate to wicket. Because > > this is a big task it could actually be nice only to migrate very > > small parts. > > I have tried to migrate full pages and the communication between > > struts and wicket are quite good. But if it was possible to migrate > > small parts from the page to wicket panels and then include it in the > > jsp, then it would be more easy to migrate and probably a lot more > > developers would take the jump. > > > > /Murat > > > > 2007/11/28, Martijn Dashorst <[EMAIL PROTECTED]>: > > > Why do you want to include Wicket pages inside a JSP? What is your > usecase? > > > Martijn > > > > > > On Nov 26, 2007 10:50 PM, Seif <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, i'm a new wicket user, and i'm trying to execute a helloworld > exemple > > > > included in a JSP page > > > > My problem is that wicket become a javax.servlet.Filter and not a > Servlet > > > > in > > > > the 1.3-rc1 version :( > > > > > > > > to explain my problem here is some code: > > > > The file web.xml: > > > > ------------------------------------------------- > > > > ... > > > > <filter> > > > > <filter-name>HelloWorldApplication</filter-name> > > > > > <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> > > > > <init-param> > > > > <param-name>applicationClassName</param-name> > > > > <param-value>net.lebonchoix.web.HelloWorldApplication</param-value> > > > > </init-param> > > > > </filter> > > > > <filter-mapping> > > > > <filter-name>HelloWorldApplication</filter-name> > > > > <url-pattern>/Wicket/HelloWorld/*</url-pattern> > > > > </filter-mapping> > > > > ... > > > > ------------------------------------------------- > > > > > > > > The file index.jsp > > > > ------------------------------------------------- > > > > <%@ page language="java" contentType="text/html; charset=UTF-8" > > > > pageEncoding="UTF-8"%> > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " > > > > http://www.w3.org/TR/html4/loose.dtd"> > > > > <html> > > > > <head> > > > > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > > > > <title>test wicket</title> > > > > </head> > > > > <body> > > > > <jsp:include page="/Wicket/HelloWorld" /> > > > > </body> > > > > </html> > > > > ------------------------------------------------- > > > > > > > > When i launch my browser with the url: > > > > http://localhost:58080/TestWicket/Wicket/HelloWorld it works fine but > when > > > > i > > > > try http://localhost:58080/TestWicket/ or > > > > http://localhost:58080/TestWicket/index.jsp i get a exception: > > > > ------------------------------------------------- > > > > [#|2007-11-26T22:04: > > > > > > > > > 19.437+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18 > > > > > ;_ThreadName=httpSSLWorkerThread-58080-1;_RequestID=e78d3242-d891-421e-904b-e6f43cbe9715;|StandardWrapperValve[jsp]: > > > > PWC1406 : servlet.service() pour le servlet jsp a émis une exception. > > > > java.io.FileNotFoundException: /TestWicket/Wicket/HelloWorld > > > > at org.apache.catalina.servlets.DefaultServlet.serveResource( > > > > DefaultServlet.java:732) > > > > at org.apache.catalina.servlets.DefaultServlet.doGet( > > > > DefaultServlet.java > > > > :384) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) > > > > at org.apache.catalina.core.ApplicationFilterChain.servletService( > > > > ApplicationFilterChain.java:411) > > > > at org.apache.catalina.core.ApplicationDispatcher.doInvoke( > > > > ApplicationDispatcher.java:855) > > > > at org.apache.catalina.core.ApplicationDispatcher.invoke( > > > > ApplicationDispatcher.java:703) > > > > at org.apache.catalina.core.ApplicationDispatcher.doInclude( > > > > ApplicationDispatcher.java:660) > > > > at org.apache.catalina.core.ApplicationDispatcher.include( > > > > ApplicationDispatcher.java:578) > > > > at org.apache.jasper.runtime.JspRuntimeLibrary.include( > > > > JspRuntimeLibrary.java:997) > > > > at org.apache.jsp.index_jsp._jspService(index_jsp.java from :55) > > > > ... > > > > |#] > > > > ------------------------------------------------- > > > > > > > > I have asked in the IRC channel and the only answer i got is look at > > > > > http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/which > > > > explain how to include/use JSP in Wicket and not the reverse :( > > > > > > > > So does anyone have an idea how to solve this problem or any other > > > > solution. > > > > > > > > > > > > > > > > -- > > > > Cordialement > > > > ------------------- > > > > Seif > > > > > > > > > > > > > > > > -- > > > Buy Wicket in Action: http://manning.com/dashorst > > > Apache Wicket 1.3.0-rc1 is released > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/ > > > > > > > --------------------------------------------------------------------- > 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]