Alexander Snaps | 17 Apr 19:35 2006

No decoration for jspx's ?

Hi,
I'm new to SiteMesh. I am currently coding my first WebWork app and, missing tiles, came to sitemesh. We have
all pages as jspx, I extracted the layout to have it plainly decorated as of now. But nothing happened. It
turned out in the end, SiteMesh doesn't decorate my jspx's, while jsp's get decorated correctly by the
layout, another jspx file.
I've been looking everywhere i could, but it seems no one has encountered similar problems, so has anyone a
clue on that?
Thanks,
Alex
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26273&messageID=51692#51692

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> sitemesh.dev.java.net
For additional commands, e-mail: users-help <at> sitemesh.dev.java.net

Scott Farquhar | 18 Apr 03:01 2006

Re: No decoration for jspx's ?

Alexander,

Can you please outline what you are trying to achieve, and what happened instead?

From your question, I'm really not sure what your problem is.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26273&messageID=51753#51753

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> sitemesh.dev.java.net
For additional commands, e-mail: users-help <at> sitemesh.dev.java.net

Alexander Snaps | 18 Apr 07:33 2006

Re: No decoration for jspx's ?

It is fixed in the mean, hit me in the tub this morning...

So, my problem was: SiteMesh worked as expected, but as soon as I tried to decorate a jspx, being accessed
directly or as a WebWork result, SiteMesh just kept ignoring those.

I actually only included the <jsp:directive.page contentType="text/html... tag in the decorator and
left it out in my test jspx page, as I would have done using tiles. And that is were it hit me "TILES"! It just
simply isn't the same approach: decorator pattern that is here!
So I added the correct header to my WebWork jspx result so that SiteMesh knows this is content it can handle
(or at least try). Everything's fixed now.
Thanks
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26273&messageID=51776#51776

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> sitemesh.dev.java.net
For additional commands, e-mail: users-help <at> sitemesh.dev.java.net

ranjith | 18 Apr 13:48 2006

Is it possible to have more than one layouts

Lets assume that we have a site which requires 2 layouts(layout = mainDecorator.jsp) 
Since sitemesh maps to the "main" keyword only it is not possible to have two layouts. My doubt is, is it
possible to have a main as  a blank one which is mapped to one of the two reqired layouts for eg. main1 as
default and have it  mapped to main2 as and when the requirement arises.
Do you have any suggestions on this if u have a sol pls give it to me
Thank you
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26353&messageID=51840#51840

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> sitemesh.dev.java.net
For additional commands, e-mail: users-help <at> sitemesh.dev.java.net

Scott Farquhar | 18 Apr 22:30 2006

Re: Is it possible to have more than one layouts

When you say two layouts - you mean there are two pages that require 2 different decorators?

That is what sitemesh does, so I'm not sure if that is your question?

Look at decorators.xml, or if you are after more control, read up about DecoratorMappers.

Scott
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26353&messageID=52015#52015

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> sitemesh.dev.java.net
For additional commands, e-mail: users-help <at> sitemesh.dev.java.net

Scott Farquhar | 18 Apr 23:15 2006

Re: isPropertySet deprecated?

Pete,

I have been travelling the last few weeks - apologies for the late reply.

I also haven't been able to find out what happened to the isPropertySet tag, but a quick look through the CVS
history should show it?

Cheers,
Scott
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=25060&messageID=52022#52022

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> sitemesh.dev.java.net
For additional commands, e-mail: users-help <at> sitemesh.dev.java.net


Gmane