Re: How to render component markup to string?

2008-07-23 Thread Igor Vaynberg
myrequestcycle extends requestcycle {

  onbeginrequest() {
  setresponse(new stringresponse());
  }

  onendrequest() {
 string str=((stringresponse)getresponse()).getstring();
 // do whatever
  }
}

-igor

On Wed, Jul 23, 2008 at 6:41 AM, Enes Fazli <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to create markup with wicket components but I do not want to send it
> to a browser, I want to store it in a String. Is there a way to do so?
>
> With regards,
>
> Enes F.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to render component markup to string?

2008-07-23 Thread Enes Fazli
As I understand wicketstuff- rome it is just used to create a webresource
from my feed and it provides a custom listmodel for consuming feeds. The
Feed itself gets build by me.

On Wed, Jul 23, 2008 at 4:43 PM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

> Are you using wicketstuff-rome? Or building it yourself?
>
> Martijn
>
> On Wed, Jul 23, 2008 at 4:39 PM, Enes Fazli <[EMAIL PROTECTED]>
> wrote:
> > I use rome to create Atom feeds and my intention was to use wicket
> generated
> > markup for the feed entries content.
> >
> > On Wed, Jul 23, 2008 at 4:31 PM, Martijn Dashorst <
> > [EMAIL PROTECTED]> wrote:
> >
> >> Why do you want to store it in  a string?
> >>
> >> Martijn
> >>
> >> On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli <[EMAIL PROTECTED]>
> >> wrote:
> >> > Hello Martijn Dashorst,
> >> >
> >> > thank you for your fast response, but I cannot see how this could
> solve
> >> my
> >> > problem as I do not want to send a String to the browser. I want to
> store
> >> > the Markup, which gets rendered by a panel for example, in a String.
> >> >
> >> > Thank you in advance for any advice to this topic.
> >> >
> >> > With regards,
> >> >
> >> > Enes F.
> >> >
> >> > On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst <
> >> > [EMAIL PROTECTED]> wrote:
> >> >
> >> >> getRequestCycle().setRequestTarget(new StringRequestTarget());
> >> >>
> >> >> On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli <
> [EMAIL PROTECTED]>
> >> >> wrote:
> >> >> > Hello,
> >> >> >
> >> >> > I want to create markup with wicket components but I do not want to
> >> send
> >> >> it
> >> >> > to a browser, I want to store it in a String. Is there a way to do
> so?
> >> >> >
> >> >> > With regards,
> >> >> >
> >> >> > Enes F.
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Become a Wicket expert, learn from the best:
> http://wicketinaction.com
> >> >> Apache Wicket 1.3.4 is released
> >> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >>
> >>
> >>
> >> --
> >> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >> Apache Wicket 1.3.4 is released
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to render component markup to string?

2008-07-23 Thread Martijn Dashorst
Are you using wicketstuff-rome? Or building it yourself?

Martijn

On Wed, Jul 23, 2008 at 4:39 PM, Enes Fazli <[EMAIL PROTECTED]> wrote:
> I use rome to create Atom feeds and my intention was to use wicket generated
> markup for the feed entries content.
>
> On Wed, Jul 23, 2008 at 4:31 PM, Martijn Dashorst <
> [EMAIL PROTECTED]> wrote:
>
>> Why do you want to store it in  a string?
>>
>> Martijn
>>
>> On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli <[EMAIL PROTECTED]>
>> wrote:
>> > Hello Martijn Dashorst,
>> >
>> > thank you for your fast response, but I cannot see how this could solve
>> my
>> > problem as I do not want to send a String to the browser. I want to store
>> > the Markup, which gets rendered by a panel for example, in a String.
>> >
>> > Thank you in advance for any advice to this topic.
>> >
>> > With regards,
>> >
>> > Enes F.
>> >
>> > On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst <
>> > [EMAIL PROTECTED]> wrote:
>> >
>> >> getRequestCycle().setRequestTarget(new StringRequestTarget());
>> >>
>> >> On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli <[EMAIL PROTECTED]>
>> >> wrote:
>> >> > Hello,
>> >> >
>> >> > I want to create markup with wicket components but I do not want to
>> send
>> >> it
>> >> > to a browser, I want to store it in a String. Is there a way to do so?
>> >> >
>> >> > With regards,
>> >> >
>> >> > Enes F.
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> >> Apache Wicket 1.3.4 is released
>> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.4 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to render component markup to string?

2008-07-23 Thread Enes Fazli
I use rome to create Atom feeds and my intention was to use wicket generated
markup for the feed entries content.

On Wed, Jul 23, 2008 at 4:31 PM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

> Why do you want to store it in  a string?
>
> Martijn
>
> On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli <[EMAIL PROTECTED]>
> wrote:
> > Hello Martijn Dashorst,
> >
> > thank you for your fast response, but I cannot see how this could solve
> my
> > problem as I do not want to send a String to the browser. I want to store
> > the Markup, which gets rendered by a panel for example, in a String.
> >
> > Thank you in advance for any advice to this topic.
> >
> > With regards,
> >
> > Enes F.
> >
> > On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst <
> > [EMAIL PROTECTED]> wrote:
> >
> >> getRequestCycle().setRequestTarget(new StringRequestTarget());
> >>
> >> On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli <[EMAIL PROTECTED]>
> >> wrote:
> >> > Hello,
> >> >
> >> > I want to create markup with wicket components but I do not want to
> send
> >> it
> >> > to a browser, I want to store it in a String. Is there a way to do so?
> >> >
> >> > With regards,
> >> >
> >> > Enes F.
> >> >
> >>
> >>
> >>
> >> --
> >> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >> Apache Wicket 1.3.4 is released
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to render component markup to string?

2008-07-23 Thread Martijn Dashorst
Why do you want to store it in  a string?

Martijn

On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli <[EMAIL PROTECTED]> wrote:
> Hello Martijn Dashorst,
>
> thank you for your fast response, but I cannot see how this could solve my
> problem as I do not want to send a String to the browser. I want to store
> the Markup, which gets rendered by a panel for example, in a String.
>
> Thank you in advance for any advice to this topic.
>
> With regards,
>
> Enes F.
>
> On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst <
> [EMAIL PROTECTED]> wrote:
>
>> getRequestCycle().setRequestTarget(new StringRequestTarget());
>>
>> On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli <[EMAIL PROTECTED]>
>> wrote:
>> > Hello,
>> >
>> > I want to create markup with wicket components but I do not want to send
>> it
>> > to a browser, I want to store it in a String. Is there a way to do so?
>> >
>> > With regards,
>> >
>> > Enes F.
>> >
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.4 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to render component markup to string?

2008-07-23 Thread Enes Fazli
Hello Martijn Dashorst,

thank you for your fast response, but I cannot see how this could solve my
problem as I do not want to send a String to the browser. I want to store
the Markup, which gets rendered by a panel for example, in a String.

Thank you in advance for any advice to this topic.

With regards,

Enes F.

On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

> getRequestCycle().setRequestTarget(new StringRequestTarget());
>
> On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli <[EMAIL PROTECTED]>
> wrote:
> > Hello,
> >
> > I want to create markup with wicket components but I do not want to send
> it
> > to a browser, I want to store it in a String. Is there a way to do so?
> >
> > With regards,
> >
> > Enes F.
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to render component markup to string?

2008-07-23 Thread Martijn Dashorst
getRequestCycle().setRequestTarget(new StringRequestTarget());

On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to create markup with wicket components but I do not want to send it
> to a browser, I want to store it in a String. Is there a way to do so?
>
> With regards,
>
> Enes F.
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]