users@woodstock.java.net

Re: Woodstock & Facelet : masthead component badly rendered

From: Djohannot <david.johannot_at_heig-vd.ch>
Date: Thu, 10 Jan 2008 08:57:28 -0800 (PST)

Hello Bill,

Thanks for your answer. This is my answer to your questions:
> What did the page source show ?
I have upload a printscreen. You can see that the image isn't displayed
between the "user info" and the "Status area".
> How did you generate this image?
I've created with Gimp. Yes, the backgroud is transparant, but in the
example too.
> Browsers used?
I use Firefox and Safari, on Mac OS X leopard. Same result...


Bill Edwards - Sun BOS Software wrote:
>
> What did the page source show (did it in fact render the IMG for the
> image)?
> How did you generate this image; that is, does it use the proper
> transparencies?
> Did you use the "pngomatic" to generate the image? Was your browser IE6?
>
> Djohannot wrote:
>> Hello everyone,
>>
>> I've seen on the forum that Woodstock isn't running very well, specially
>> with Facelet...
>>
>> I've a new "strange" error with the masthead tag component.
>> I want to diplay a productImageUrl, like in the example. But the problem
>> is
>> ... that the image is never displayed!
>>
>> If i look at the generated code, it seems that all is defined correctly.
>> But
>> the only things displayed are the user and server property...
>>
>> Has anyone met the same problem? or an idea?
>>
>> Thanks for your help,
>>
>> David J.
>> JSF code (header.xhtml):
>> <f:view xmlns="http://www.w3.org/1999/xhtml"
>> xmlns:f="http://java.sun.com/jsf/core"
>> ...
>> xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
>>
>> <webuijsf:page>
>> <f:loadBundle basename="ch.intrack.resources" var="msgs" />
>>
>> <webuijsf:html id="html">
>> <webuijsf:head id="head" title="#{msgs['header.title']}"/>
>> <body>
>> <webuijsf:masthead id="myHeader"
>> productImageURL="images/headerTitle.png" userInfo="Todo"
>> serverInfo="Todo"/>
>> </body>
>> </webuijsf:html>
>> </webuijsf:page>
>> </f:view>
>>
>> Generated code (In bold the image reference):
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml"
>> xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
>> xmlns:waistate="http://www.w3.org/2005/07/aaa">
>> <head>
>> <title>Masthead page</title><link rel="stylesheet" type="text/css"
>> href="/InTrack-war/theme/com/sun/webui/jsf/suntheme4_1_1/css/css_master-all.css"
>> /><script type="text/javascript">
>> //<![CDATA[
>> var djConfig={"parseOnLoad":false,"isDebug":false}
>> //]]>
>> </script><script type="text/javascript"
>> src="/InTrack-war/theme/META-INF/json2_0/json.js"></script><script
>> type="text/javascript"
>> src="/InTrack-war/theme/META-INF/prototype1_5/prototype.js"></script><script
>> type="text/javascript"
>> src="/InTrack-war/theme/META-INF/com_sun_faces_ajax.js"></script><script
>> type="text/javascript"
>> src="/InTrack-war/theme/META-INF/dojo1_0_1/dojo/dojo.js"></script><script
>> type="text/javascript"
>> src="/InTrack-war/theme/META-INF/dojo1_0_1/dijit/dijit.js"></script><script
>> type="text/javascript">
>> //<![CDATA[
>> dojo.registerModulePath("webui.suntheme",
>> "/InTrack-war/theme/com/sun/webui/jsf/suntheme4_1_1/javascript");
>> //]]>
>> </script><script type="text/javascript"
>> src="/InTrack-war/theme/com/sun/webui/jsf/suntheme4_1_1/javascript/webui-jsfx.js"></script><script
>> type="text/javascript">
>> //<![CDATA[
>> webui.suntheme.bootstrap.init({"debug":false,"theme":{"locale":"fr","prefix":"/InTrack-war/theme","modulePath":"/com/sun/webui/jsf/suntheme4_1_1/javascript/theme","bundle":"suntheme","module":"webui.suntheme.theme"}});
>> //]]>
>> </script></head>
>> <body><div class="MstDiv_sun4">
>> <div class="SkpMedGry1_sun4"> #myHeader_skipUtility <script
>> type="text/javascript">
>>
>> //<![CDATA[
>> webui.suntheme.widget.common.createWidgetOnLoad("j_id3",{"widgetType":"webui.suntheme.widget.image","width":1,"height":1,"icon":"DOT","visible":true,"border":0,"src":"/InTrack-war/theme/com/sun/webui/jsf/suntheme4_1_1/images/other/dot.gif","id":"myHeader:skipUtility_icon"});
>> //]]>
>> </script> </div><table width="100%" border="0" cellpadding="0"
>> cellspacing="0" class="MstTblTop_sun4" title=""><tr><td
>> nowrap="nowrap"></td><td align="right"
>> valign="bottom"></td></tr></table><table width="100%" border="0"
>> cellpadding="0" cellspacing="0" class="MstTblBot_sun4" title=""><tr><td
>> class="MstTdTtl_sun4" width="99%"><div class="MstDivUsr_sun4">Utilisateur
>> :&nbsp;Todo<script type="text/javascript">
>> //<![CDATA[
>> webui.suntheme.widget.common.createWidgetOnLoad("j_id4",{"widgetType":"webui.suntheme.widget.image","width":14,"height":14,"icon":"MASTHEAD_SEPARATOR","visible":true,"border":0,"src":"/InTrack-war/theme/com/sun/webui/jsf/suntheme4_1_1/images/masthead/masthead-separator.gif","id":"myHeader:_userInfoSeparator"});
>> //]]>
>> </script>&nbsp;Serveur :&nbsp;Todo</div><div
>> class="MstDivTtl_sun4"><script
>> type="text/javascript">
>> //<![CDATA[
>> webui.suntheme.widget.common.createWidgetOnLoad("j_id5",{"widgetType":"webui.suntheme.widget.image","visible":true,"border":0,"src":"images/headerTitle.png","id":"myHeader:myHeader_productInfo"});
>> //]]>
>> </script></div></td><td class="MstTdLogo_sun4" width="1%" align="right"
>> nowrap="nowrap"><script type="text/javascript">
>> //<![CDATA[
>> webui.suntheme.widget.common.createWidgetOnLoad("j_id6",{"widgetType":"webui.suntheme.widget.image","width":2,"height":37,"icon":"DOT","visible":true,"border":0,"src":"/InTrack-war/theme/com/sun/webui/jsf/suntheme4_1_1/images/other/dot.gif","alt":"","id":"myHeader:_logoSep"});
>> //]]>
>> </script></td></tr><tr><td colspan="2"><div class="hrule_sun4"><script
>> type="text/javascript">
>> //<![CDATA[
>> webui.suntheme.widget.common.createWidgetOnLoad("j_id7",{"widgetType":"webui.suntheme.widget.image","width":1,"height":1,"icon":"DOT","visible":true,"border":0,"src":"/InTrack-war/theme/com/sun/webui/jsf/suntheme4_1_1/images/other/dot.gif","alt":"","id":"myHeader:_mhrule"});
>> //]]>
>>
>> </script></div></td></tr></table></div><div> </div>
>> </body></html>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>
>
http://www.nabble.com/file/p14738569/Picture%2B1.png
-- 
View this message in context: http://www.nabble.com/Woodstock---Facelet-%3A-masthead-component-badly-rendered-tp14734903p14738569.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.