users@woodstock.java.net

Re: Woodstock & Facelet : masthead component badly rendered

From: Djohannot <david.johannot_at_heig-vd.ch>
Date: Thu, 10 Jan 2008 23:43:58 -0800 (PST)

I use the 4.1.1 Woodstock library. I found this informations in the
Manifest.MF file in the Jar:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: Sun Microsystems Inc.
Implementation-Title: Woodstock 4.1.1
Implementation-Version: 4.1.1
Implementation-Vendor: Sun Microsystems Inc.
Implementation-Vendor-Id: com.sun
Specification-Title: Woodstock
Specification-Version: 4.1.1
Specification-Vendor: Sun Microsystems Inc.

Name: com/sun/webui/jsf/
X-SJWUIC-SWAED-Version: 4.0
X-SJWUIC-Components-Version: 4.1.1
X-SJWUIC-Components-Timestamp: 200712030852
X-SJWUIC-Theme-Version-Required: 4.1
X-SJWUIC-JSF-Version: 1.2
X-SJWUIC-Dependencies: dataprovider.jar/1.0, jhall.jar/2.0
X-SJWUIC-Dependencies-FileUpload: commons-fileupload.jar/1.0

I don't know if the problem come from that...

David

Bill Edwards - Sun BOS Software wrote:
>
>
> I believe this was with 4.1. Here's a dump of the jar manifest:
>
> indiana_lh3.1% vjar webui-jsf.jar
>
> Main manifest attributes:
> Specification-Title Woodstock
> Created-By Sun Microsystems Inc.
> Ant-Version Apache Ant 1.7.0
> Implementation-Title Woodstock 4.1
> Specification-Vendor Sun Microsystems Inc.
> Specification-Version 4.1
> Implementation-Vendor-Id com.sun
> Manifest-Version 1.0
> Implementation-Version 4.1
> Implementation-Vendor Sun Microsystems Inc.
>
> Are you using 4.0?
>
> At any rate, I wanted to show the source for loading the image, not so
> much
> the code for creating the image widget.
>
> Djohannot wrote:
>> No really the same...
>> which release of Woodstock do you use?
>> the main difference is here:
>> You:
>> dojo.addOnLoad(function()
>> {webui.suntheme.widget.common.replaceElement("form1:masthead_1:masthead_1_productInfo",
>> {"widgetType":...
>> Me:
>> webui.suntheme.widget.common.createWidgetOnLoad("j_id4",{"widgetType":.....
>>
>>
>>
>>
>> Bill Edwards - Sun BOS Software wrote:
>>
>>> Here's what gets generated in one of my Woodstock pages using the
>>> Masthead component
>>> (for the product image). This is from the page source dump:
>>>
>>> type="text/javascript">dojo.addOnLoad(function()
>>> {webui.suntheme.widget.common.replaceElement("form1:masthead_1:masthead_1_productInfo",
>>> {"widgetType":"webui.suntheme.widget.image","width":202,"height":23,"visible":true,"border":0,"src":"/console/com_sun_webui_jsf/images/PrimaryProductName.png","alt":"console","id":"form1:masthead_1:masthead_1_productInfo"});});</script>
>>> </div></td><td class="MstTdLogo_sun4" width="1%" align="right"
>>> nowrap="nowrap"> Hi Kenneth,
>>>
>>>> Yes, i've tried the two cases, and absolute url too (http://..) and I
>>>> can
>>>> open the image in my browser.
>>>> You can see a printscreen in my last message, a reply to bill
>>>> suggestion.
>>>> Hope you have another idea. Do you work with jsp or xhtml web pages?
>>>> Thanks,
>>>>
>>>> David
>>>>
>>>>
>>>> Kenneth Suter wrote:
>>>>
>>>>
>>>>> I don't see this problem and use Facelets with Woodstock. Have you
>>>>> tried specifying the URL with a leading '/' character?
>>>>>
>>>>> /images/headerTitle.png
>>>>>
>>>>> instead of
>>>>>
>>>>> images/headerTitle.png
>>>>>
>>>>>
>>>>> -Kenneth
>>>>>
>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>>
>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/Woodstock---Facelet-%3A-masthead-component-badly-rendered-tp14734903p14751224.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.