And if you can do it in 1.2.2 it would be great.

Alex

On 8/4/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:
we can add a set() to request cycle as well :)

-Igor


On 8/4/06, Alexei Sokolov < [EMAIL PROTECTED] > wrote:
For Application & Session you have set() methods. So, you can backup current values and then restore them.

Alex

On 8/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
request cycle is not the only problem. we have application and session threadlocals as well.

-Igor


On 8/4/06, Alexei Sokolov < [EMAIL PROTECTED]> wrote:
You can introduce push/pop methods on RequestCycle in the next version of wicket.

Alex

On 8/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it.

-Igor


On 8/4/06, Alexei Sokolov <[EMAIL PROTECTED]> wrote:
One more roadblock... RequestCycle constructor & current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cycle.

Alex


On 8/4/06, Alexei Sokolov < [EMAIL PROTECTED]> wrote:
Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle requestCycle) method. This code will call checkRendering() as part of page.renderPage() call:

if (component instanceof Page)
        {
            // Use the default Page request target, if component is a Page
            new PageRequestTarget((Page)component).respond(requestCycle);
        }

checkRendering() method will clear page.renderedComponents collection. But then this code will call checkRendering() again and will fail because renderedComponents is null:        
if (page != null)
        {
            page.endComponentRender(component);
        }

Is it a bug in wicket?

Alex

On 8/3/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Well, for instance if you need something like I needed for
www.burgerweeshuis.nl (years ago): administrators maintain a template
with basic scripting facilities (accessing context variables,
conditionals, etc). In that case using Velocity is simpler.

Eelco


On 8/3/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> well...if you are generating html emails and you have common display panels
> already in place for pojos, why not reuse those? you get to reuse the
> layout, css, etc with almost no effort.
>
> -Igor
>
>
>
>  On 8/3/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> >
>  Fair enough. I wouldn't say I'm against it per se. But for many cases
> imo it is overkill.
>
> Eelco
>
>
> On 8/3/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > i disagree, i think wicket is in itself a great templating engine
> > in 3.0 i would like to separate the layers more so you can easily build up
> > components and render them to anywhere - gets you a component-oriented
> > templating engine :)
> >
> > -Igor
> >
> >
> >
> > On 8/3/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > >
> >  It is possible, and you should look at our junit test cases to get
> > some inspiration. Whether it is recommended... I don't know. I'd go
> > for something simple like a Velocity template. Wicket components are
> > meant for interaction, something you don't need when creating email
> > messages.
> >
> > Eelco
> >
> >
> > On 8/3/06, Alexei Sokolov <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I would like to reuse some of the components I have to generate e-mail
> > > reports. Is it possible?
> > >
> > > Thank you,
> > > Alex
> > >
> > >
> >
> -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > > opinions on IT & business topics through brief surveys -- and earn cash
> > >
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
>  >
> >
> -------------------------------------------------------------------------
> >
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys -- and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
>  > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys -- and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -------------------------------------------------------------------------
>
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to