application.init() {
getrequestcyclesettngs().addresponsefilter(new iresponsefilter() {
public appendingatringbuffer filter(appendingstringbuffer responsebuffer) {
return responsebuffer.append("<!-- generated at: "+new Date()+" -->");
}
}
that is an example filter that adds a comment at the end of the html
-igor
On Thu, Jul 24, 2008 at 10:42 AM, Ricky <[EMAIL PROTECTED]> wrote:
> Hi Igor,
>
> Thanks for reply!
> My apologies, but could elaborate a little on IResponseFilter usage as a
> skeletal example. I am not following Java documentation's verbiage that well
> (sorry if i come across as dumb).
>
> Regards
> Vyas, Anirudh
>
> On Wed, Jul 23, 2008 at 11:40 AM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
>
>> see IResponseFilter.
>>
>> as far as spitting out text, wicket works with xml not plain text. but
>> if you call setrenderbodyonly(true) on all components there wont be
>> any xml tags left in the output.
>>
>> -igor
>>
>> On Wed, Jul 23, 2008 at 8:20 AM, Ricky <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> >
>> > I have two questions (related) :
>> > 1.) Is there a way in wicket to get Not the raw markup but markup
>> > *AFTER*the actual data has been inserted? (meaning the final HTML as
>> > we see it on
>> > the page?).
>> > 2.) Similar to above scenario, can you use container to spit out markup
>> in
>> > some other form, for example Plain Text or XML form ? (the markup with
>> > actual data).
>> >
>> > I prepared a test case for the same, which used a TestPage and Wicket
>> Tester
>> > to start the page and then called testPage.getAssociateMarkup(true); and
>> > testPage.getMarkup(). I tried to call it after doing testPage.render()
>> but
>> > no change.
>> >
>> >
>> > Regards
>> > Vyas, Anirudh
>> >
>>
>> ---------------------------------------------------------------------
>> 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]