You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by vaibhav228 <va...@gmail.com> on 2012/04/11 16:12:32 UTC

How to enable SSI in wicket framework.

Hi All,
       I have configured the SSI in apache Tomcat 7.0 by un-commenting the
tags in web.xml for ssi and adding  privileged="true" in the context.xml.
       I am using the wicket framework and the project is running at the
root level.But unfortunately the framework is not processing the include tag
and it outputs in the HTML as it is.

       Is there anything that I can do to enable the Server Side Include tag
ion wicket framework. or It will not process that tag.

       If I deploy the project which doesn't uses wicket framework, then SSI
works properly. It renders the page completely. But when I use project with
wicket framework, then include tag is not getting rendered.

Please help me.

Thanks
Vaibhav228 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4548962.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to enable SSI in wicket framework.

Posted by Martin Grigorov <mg...@apache.org>.
See org.apache.wicket.markup.html.include.Include
Maybe it will do the job

On Thu, Apr 12, 2012 at 5:17 PM, Dan Retzlaff <dr...@gmail.com> wrote:
> I think the challenge is getting content from a /ssi/footer request
> integrated into a Wicket-rendered page. AFAIK Wicket doesn't provide any
> component for that. It might be possible using servlet's "forward"
> capability from a custom Wicket component's onComponentTagBody. It seems to
> be used for generating internal requests, but I'm not familiar with the
> details.
>
> On Wed, Apr 11, 2012 at 11:35 PM, Martin Grigorov <mg...@apache.org>wrote:
>
>> See filter-mapping and servlet-mapping elements in web.xsd
>>
>> On Thu, Apr 12, 2012 at 9:20 AM, vaibhav228 <va...@gmail.com> wrote:
>> > Hi Martin,
>> >           Thanks for the reply. I am new to wicket framework. Can you
>> > please elaborate more on how to do the setting that you have provided. It
>> > would be very helpful.
>> >           My app is running at ROOT level. SSI is already enabled in the
>> > web.xml file by removing the SSI servlet tags comments.
>> >
>> > --
>> > View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4551039.html
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to enable SSI in wicket framework.

Posted by Dan Retzlaff <dr...@gmail.com>.
I think the challenge is getting content from a /ssi/footer request
integrated into a Wicket-rendered page. AFAIK Wicket doesn't provide any
component for that. It might be possible using servlet's "forward"
capability from a custom Wicket component's onComponentTagBody. It seems to
be used for generating internal requests, but I'm not familiar with the
details.

On Wed, Apr 11, 2012 at 11:35 PM, Martin Grigorov <mg...@apache.org>wrote:

> See filter-mapping and servlet-mapping elements in web.xsd
>
> On Thu, Apr 12, 2012 at 9:20 AM, vaibhav228 <va...@gmail.com> wrote:
> > Hi Martin,
> >           Thanks for the reply. I am new to wicket framework. Can you
> > please elaborate more on how to do the setting that you have provided. It
> > would be very helpful.
> >           My app is running at ROOT level. SSI is already enabled in the
> > web.xml file by removing the SSI servlet tags comments.
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4551039.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: How to enable SSI in wicket framework.

Posted by Martin Grigorov <mg...@apache.org>.
See filter-mapping and servlet-mapping elements in web.xsd

On Thu, Apr 12, 2012 at 9:20 AM, vaibhav228 <va...@gmail.com> wrote:
> Hi Martin,
>           Thanks for the reply. I am new to wicket framework. Can you
> please elaborate more on how to do the setting that you have provided. It
> would be very helpful.
>           My app is running at ROOT level. SSI is already enabled in the
> web.xml file by removing the SSI servlet tags comments.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4551039.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to enable SSI in wicket framework.

Posted by vaibhav228 <va...@gmail.com>.
Hi Martin,
           Thanks for the reply. I am new to wicket framework. Can you
please elaborate more on how to do the setting that you have provided. It
would be very helpful.
           My app is running at ROOT level. SSI is already enabled in the
web.xml file by removing the SSI servlet tags comments.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4551039.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to enable SSI in wicket framework.

Posted by Martin Grigorov <mg...@apache.org>.
On Thu, Apr 12, 2012 at 8:05 AM, vaibhav228 <va...@gmail.com> wrote:
> Thanks for the reply Dan.
>
> We need to use only SSI, because these pages are getting generated from the
> CMS, and in the CMS we have done separate header, footer, menu htmls and
> while generating main page we are including these pages into main page and
> deploying that main page in Apache tomcat where we have wicket framework
> running.
>
> But it is not rendering the include tag. Is there any possible way we can do
> it ?

I haven't used SSI with Java/Tomcat but it should be possible.
Make your app (WicketFilter) listen on /app/* and SSI on /ssi

>
> Thanks....
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4550962.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to enable SSI in wicket framework.

Posted by vaibhav228 <va...@gmail.com>.
Thanks for the reply Dan.

We need to use only SSI, because these pages are getting generated from the
CMS, and in the CMS we have done separate header, footer, menu htmls and
while generating main page we are including these pages into main page and
deploying that main page in Apache tomcat where we have wicket framework
running.

But it is not rendering the include tag. Is there any possible way we can do
it ?

Thanks....

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4550962.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to enable SSI in wicket framework.

Posted by Dan Retzlaff <dr...@gmail.com>.
SSI is implemented with its own servlet which is totally separate from
Wicket's filter, so you cannot use both Wicket and SSI for a single page.
However, Wicket provides a variety of ways to include content into pages it
renders: panels, fragments, labels, and more. Once you're familiar with
these mechanisms, you'll find that they're considerably more powerful than
SSI. A good place for examples is
http://www.wicket-library.com/wicket-examples/compref/.

Hope this helps,
Dan

On Wed, Apr 11, 2012 at 8:12 AM, vaibhav228 <va...@gmail.com> wrote:

> Hi All,
>       I have configured the SSI in apache Tomcat 7.0 by un-commenting the
> tags in web.xml for ssi and adding  privileged="true" in the context.xml.
>       I am using the wicket framework and the project is running at the
> root level.But unfortunately the framework is not processing the include
> tag
> and it outputs in the HTML as it is.
>
>       Is there anything that I can do to enable the Server Side Include tag
> ion wicket framework. or It will not process that tag.
>
>       If I deploy the project which doesn't uses wicket framework, then SSI
> works properly. It renders the page completely. But when I use project with
> wicket framework, then include tag is not getting rendered.
>
> Please help me.
>
> Thanks
> Vaibhav228
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-enable-SSI-in-wicket-framework-tp4548962p4548962.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>