Hi,

I think the following layout templates would play roles:
- In normal states, 
/jetspeed/WEB-INF/templates/layout/xhtml-basic/columns/layout.vm [1]
- In maximized state: 
/jetspeed/WEB-INF/templates/layout/xhtml-basic/maximized/layout.vm [2]

Also, I found the following lines in those vm files at the bottom:

#if(($decoBottom ) && ($myFragment == $myPage.getRootFragment()))
#parse($myFragment.decoration.footer)
#end

or,

#if($decoBottom)
#parse($jetspeed.getDecoration($decoBottom, "layout").appRelativePath)
#end

I'm not sure, but I think the cause is that $decoBottom is not set in [1].
In [2], it's set like '#set($decoBottom = "${ldecorator}/footer.vm")'.
However, the interesting thing is that the header.vm is parsed without any 
conditional statement in [1], which I think means footer.vm should be treated 
in the same way.

So, I'd like to suggest you test with commenting #if ~ #end conditional 
statement in [1] as follows:

##if(($decoBottom ) && ($myFragment == $myPage.getRootFragment()))
#parse($myFragment.decoration.footer)
##end

Also, I'm not sure if the fallback algorithm works for the decorator paths like 
pages.
If it doesn't seem to work, then I think you can just add a proper decorations 
and configure the pages to use it. Please have a look at 
/jetspeed/WEB-INF/pages/_user/guest/_mediatype/wml/default-page.psml on setting 
default decorators.



Kind regards,

Woonsan



----- Original Message ----
> From: Mobile mania <[email protected]>
> To: [email protected]
> Sent: Fri, May 21, 2010 9:08:33 AM
> Subject: Re: jetspeed 2.2.2.0 missing templates for xhtml-basic
> 
> 
Hi,

I Looked at the xhtml page source. it appears that:
1. both 
> the 
> portlets
(WEB-INF\pages\_user\guest\_mediatype\xhtml-basic\default-page.psml, 
> login
and bookmark) are being rendered correctly.
2. header is being 
> rendered from
jetspeed\decorations\layout\jetspeed\header.vm
3. but 
> footer.vm from the above location does not get rendered.
moment i put body 
> and html closing tags at the end of xhtml after saving
localy, and open it, i 
> can see the complete page pretty fine, but w/o
footer.
I tried putting 
> plain </body> and </html> in footer.vm, but didnt help. Is
there 
> anything else in between  rendering portlets and footer, which 
> might
causing further rendering.
I went thru the provided links too, but 
> could not make any decision, how to
place files in 
> decorations/layout/jetspeed/html-basic/

Please suggest,
Mobile 
> mania

Woonsan Ko wrote:
> 
> Hi,
> 
> I guess the 
> reason why html element is missing is that you don't have
> decorators for 
> the media type.
> For example, the /WEB-INF/templates/layout/ folder has 
> media type folder
> (e.g. html, html-basic, wml, ...) for each device 
> type. 
> I'm not sure but I guess decorations would work in the same way 
> like
> '/decorations/layout/jetspeed/wml/header.vm' or
> 
> '/decorations/layout/jetspeed/html-basic/css/styles.css'.
> 
> I 
> think the following links could help:
> 
> http://portals.apache.org/jetspeed-2/devguide/guide-portal-design.html
> 
> http://portals.apache.org/jetspeed-2/devguide/guide-layouts.html
> 
> http://portals.apache.org/jetspeed-2/devguide/guide-decorators.html
> 
> 
> If you have some improvements for this, please let us know. :-)
> 
> 
> Woonsan
> 
> 
> 
> ----- Original Message 
> ----
>> From: Mobile mania <
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]>
>> 
> To: 
> href="mailto:[email protected]";>[email protected]
>> 
> Sent: Wed, May 19, 2010 12:29:20 PM
>> Subject: Re: jetspeed 2.2.2.0 
> missing templates for xhtml-basic
>> 
>> 
> Hi 
> Woonsan,
> 
> Thanks alot, I moved a bit forward with your 
> suggestion 
>> but still not able
> to render 
> xhtml-basic.
> BTW I checked out latest version 
>> (2.2.2.1). 
> 
> it is  a lot different from 2.2.2.0. I added the support for 
> 
>> xhtml as you
> said. then tried from mozilla by changing its 
> user agent to one 
>> of
> xhtml/basic capablity. this time I 
> didnt get any error message in logs, 
>> but
> browser showed me 
> 'XML Parsing Error: no element found
> Location: 
>> 
> http://localhost:8080/jetspeed/portal
> Line Number 236, Column 1:' When I 
> 
>> looked at html source, there is complete
> html for both the 
> fragments (login 
>> and bookmark) but no closing html and
> body 
> tag.
> 
> Similarly for wml, 
>> tags are not being closed 
> correctly. 
> Please help me setting up an enterprise 
>> wap 
> portal. There are lots of
> sections/pages/template. 
>> 
> 
> 
> Thanks,
> mobile mania
> 
> 
> 
> Woonsan 
> Ko wrote:
>> 
>> 
>> Hi,
>> 
>> If 
> the error log is "Specified content type 
>> 'application/xhtml+xml' is 
> not
>> supported.", then I suspect the Jetspeed 
>> layout 
> portlets don't have that
>> mime type support.
>> So, I think 
> 
>> you can add the following supports for VelocityOneColumn 
> in
>> 
>> 
> /jetspeed/WEB-INF/apps/jetspeed-layouts/WEB-INF/portlet.xml and see 
> what
>> 
>> happens next (I assume that the page for xhtml 
> client uses
>> 
>> VelocityOneColumn layout).
>> 
> 
>>    
>> <supports>
>>    
>   
>> 
> <mime-type>application/xhtml+xml</mime-type>      
> 
>> 
>>      
>> 
> <portlet-mode>view</portlet-mode>    
>>  
>   
>> </supports>
>> 
>> By the way, I 
> found 
>> /jetspeed/WEB-INF/templates/layout/xhtml-basic/ 
> folder
>> in 
>> JS-2.2.
>> 
>> 
> Regards,
>> 
>> Woonsan
>> 
>> 
>> 
> 
>> 
>> ----- Original Message ----
>>> From: 
> Mobile mania 
>> <
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]>
>>> 
> 
>> To: 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>> 
> 
>> Sent: Tue, May 18, 2010 12:39:46 PM
>>> Subject: 
> jetspeed 2.2.2.0 
>> missing templates for xhtml-basic
>>> 
> 
>>> 
>> When I 
>> access portal from a wap 
> device, i get meesage illegal 
>>> 
>> argument
>> 
> exception type application/xhtml+xml not supported.
>> in 
>> 
> logs it 
>>> appeards template-top2 does not support above mime 
> type. 
>> 2.1.3
>> release note 
>>> says this 
> bug(js2-796) was resolved. but 
>> still in 2.2.2.0, i
>> 
> couldnot find 
>>> 
>> /layout/simple/xhtml
>> 
> 
>> -- 
>> View this message in context: 
>> 
> 
>>> 
>> 
> http://old.nabble.com/jetspeed-2.2.2.0-missing-templates-for-xhtml-basic-tp28594189p28594189.html
>> 
> 
>> Sent 
>>> from the Jetspeed - User mailing list archive 
> at 
>>> 
>> href="http://Nabble.com";>
>> 
> href="http://Nabble.com";>
> target="_blank" href="http://Nabble.com";>Nabble.com.
>> 
> 
>> 
>> 
>> 
> ---------------------------------------------------------------------
>> 
> To 
>> 
>>> unsubscribe, e-mail: 
>>> 
> ymailto="mailto:
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> 
>>> href="mailto:
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>> 
> 
>> For 
>>> additional commands, e-mail: 
>>> 
> ymailto="mailto:
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> 
>>> href="mailto:
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>> 
> 
>> 
>> 
>>      
>> 
> 
>> 
>> 
> ---------------------------------------------------------------------
>> 
> To 
>> unsubscribe, e-mail: 
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>> 
> 
>> For additional commands, e-mail: 
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>> 
> 
>> 
>> 
>> 
> 
> -- 
> View this 
> message in context: 
>> 
> http://old.nabble.com/jetspeed-2.2.2.0-missing-templates-for-xhtml-basic-tp28594189p28606464.html
> 
> Sent 
>> from the Jetspeed - User mailing list archive at 
>> 
> Nabble.com.
> 
> 
> 
> ---------------------------------------------------------------------
> To 
> 
>> unsubscribe, e-mail: 
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
> 
> For 
>> additional commands, e-mail: 
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>  
> 
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
> 
> 
> 
>      
> 
> 
> ---------------------------------------------------------------------
> To 
> unsubscribe, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
> 
> For additional commands, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
> 
> 
> 
> 

-- 
View this message in context: 
> http://old.nabble.com/jetspeed-2.2.2.0-missing-templates-for-xhtml-basic-tp28594189p28630392.html
Sent 
> from the Jetspeed - User mailing list archive at 
> Nabble.com.


---------------------------------------------------------------------
To 
> unsubscribe, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
For 
> additional commands, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to