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 <[email protected]>
> To: [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:[email protected]";>[email protected]>
>> 
> To: 
> 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";>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-tp28594189p28606464.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