The wrapper i wrote is pretty specific and a bit of a dirty hack to
the include it wraps, though here is the concept of what i did. I
stuck the stuff i needed into the underlying HttpSession (so this will
only work within a webapp):
header.jsp (I can't touch this file)
String foo = request.getAttribute("foo");
if(foo.equals("bar")){
...do something with foo to affect the render output
}
header_wrapper.jsp (wrapper to set the needed stuff for the request):
<%
request.setAttribute("foo", session.getAttribute("foo"));
%>
<jsp:include page="header.jsp" />
Then in my wicket WebPage:
HttpSession session = websession.getHttpSession();
session.setAttribute("foo","bar");
add(new Include("header", "header_wrapper.jsp"));
On 7/29/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> Rick,
>
> as this question might pop up here and than, mind providing us the jsp
> wrapper, or may be even a simple example.
>
> thanks a lot
> Juergen
>
> On 7/29/05, Rick Duyckinck <[EMAIL PROTECTED]> wrote:
> > Thanks guys. I managed to get it to work through a jsp wrapper that
> > set up all the needed junk for the request and then set the wicket
> > Include to point to that.
> >
> > I must say, wicket is pretty impressive so far, clean design, short
> > learning curve, simple and lightweight. I have a short attention span
> > and little free time to research new tools, and I have made some
> > really quick progress in picking it up compared to some of the other
> > frameworks out there which have tons of config files (I am so sick of
> > xml config file overuse). The short learning curve is a huge benefit
> > -- it will make it easy for me to justify to management to adopt it
> > (they tend to not like tools that cause a lot of time to ramp up the
> > junior developers -- time == $)
> >
> > On 7/29/05, Phil Kulak <[EMAIL PROTECTED]> wrote:
> > > Sitemesh works well for using JSP within a Wicket page. Although it
> > > makes using REDIRECT_TO_RENDER and REDIRECT_TO_BUFFER a bit difficult.
> > > And by difficult, I mean that I've never been able to get them to
> > > work. ;)
> > >
> > > -Phil
> > >
> > > On 7/28/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > It will be a fully seperate request. An earlier version worked by using
> > > > the servlet dispatcher, but this created infinite loops for some reason.
> > > > Choosing the path of the least resistance, I just converted all relative
> > > > calls to absolute calls. But in your case, you actually might want to
> > > > use the Dispatcher so that you can reuse the request attributes...
> > > >
> > > > Dunno, I guess you should play with it a bit, and ask for help/ suggest
> > > > changes when you get stuck.
> > > >
> > > > Eelco
> > > >
> > > >
> > > > Rick Duyckinck wrote:
> > > >
> > > > >Thanks for the quick response,
> > > > >Here is another question: Will wicket.markup.html.include.Include
> > > > >pass the HttpRequest through to the jsp?
> > > > >
> > > > >rick
> > > > >
> > > > >On 7/28/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > >>Yeah, you should be able to do this with the Include component. It is
> > > > >>based on JSTL's include tag. It doesn't handle external sites very
> > > > >>well
> > > > >>(it misses the images and stuff - the Include component should
> > > > >>probably
> > > > >>try to parse the javascript, css and image references and translate it
> > > > >>to absolute references), but it should be able to handle locale
> > > > >>resources like jsps well.
> > > > >>
> > > > >>Eelco
> > > > >>
> > > > >>Rick Duyckinck wrote:
> > > > >>
> > > > >>
> > > > >>
> > > > >>>I'm currently working on a mini application that will be embedded
> > > > >>>into an existing jsp site and saw it might be a good chance to
> > > > >>>learn
> > > > >>>wicket. However, since it will be integrated with all those nasty
> > > > >>>jsps, I'm going to need to utilize some of them for their content
> > > > >>>(namely headers and footer with dynamic content) Is there a way to
> > > > >>>integrate either jsps as includes or taglibs into a wicket
> > > > >>>application?
> > > > >>>Thanks in advance
> > > > >>>Rick Duyckinck
> > > > >>>
> > > > >>>
> > > > >>>-------------------------------------------------------
> > > > >>>SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > > >>>September
> > > > >>>19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > > > >>>Agile & Plan-Driven Development * Managing Projects & Teams *
> > > > >>>Testing & QA
> > > > >>>Security * Process Improvement & Measurement *
> > > > >>>http://www.sqe.com/bsce5sf
> > > > >>>_______________________________________________
> > > > >>>Wicket-user mailing list
> > > > >>>[email protected]
> > > > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>
> > > > >>-------------------------------------------------------
> > > > >>SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > > >>September
> > > > >>19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > > > >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing
> > > > >>& QA
> > > > >>Security * Process Improvement & Measurement *
> > > > >>http://www.sqe.com/bsce5sf
> > > > >>_______________________________________________
> > > > >>Wicket-user mailing list
> > > > >>[email protected]
> > > > >>https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > >-------------------------------------------------------
> > > > >SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > > >September
> > > > >19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > > > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing
> > > > >& QA
> > > > >Security * Process Improvement & Measurement *
> > > > >http://www.sqe.com/bsce5sf
> > > > >_______________________________________________
> > > > >Wicket-user mailing list
> > > > >[email protected]
> > > > >https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > > September
> > > > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
> > > > QA
> > > > Security * Process Improvement & Measurement *
> > > > http://www.sqe.com/bsce5sf
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > September
> > > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO September
> > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO September
> 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user