Don't bother providing Woodstock style sheets and JavaScript files
yourself -- the head tag will take care of that. (Alternatively, you can
use the themeLinks tag, but stick with the head tag, if possible.) Just
include the JavaScript files you need in the head tag's body, like so:
<webuijsf:head title="seamtest" debug="false">
<webuijsf:script url="js/select.js"/>
<webuijsf:script url="js/filter.js"/>
</webuijsf:head>
If you want to see some live examples and source, use the URL below. In
addition, the TLD docs provide detailed information regarding the usage.
https://woodstock.dev.java.net/Preview.htm
Dan
Padraig Byrne wrote:
> Is there a reference / example /recommended woodstock head tag ?
>
> I made recommended changes ? but still same outcome
>
>
> <webuijsf:head>
>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
>
> <title>seamtest</title>
>
> <link href="stylesheet/theme.css" rel="stylesheet" type="text/css" />
>
> <!-- Woodstock-related resources -->
>
> <link rel="stylesheet" type="text/css"
>
> href="/seamgen2/theme/com/sun/webui/jsf/suntheme/css/css_master.css" />
>
> <script type="text/javascript">
>
> var djConfig =
> {"parseWidgets":false,"isDebug":true,"debugAtAllCosts":true};
>
> </script>
>
> <script type="text/javascript"
>
> src="/seamgen2/theme/META-INF/dojo/dojo.js"></script>
>
> <script type="text/javascript"
>
> src="/seamgen2/theme/META-INF/json/json.js"></script>
>
> <script type="text/javascript"
>
> src="/seamgen2/theme/META-INF/prototype/prototype.js"></script>
>
> <script type="text/javascript"
>
> src="/seamgen2/theme/META-INF/com_sun_faces_ajax.js"></script>
>
> <script type="text/javascript">
>
> dojo.hostenv.setModulePrefix("webui.suntheme",
> "/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript");
>
> dojo.require('webui.suntheme.*');
>
> dojo.require('webui.suntheme.widget.*');
>
> dojo.require('webui.suntheme.widget.jsfx.*');
>
> </script>
>
> <script type="text/javascript" src="/seamgen2/js/select.js"></script>
>
> <script type="text/javascript" src="/seamgen2/js/filter.js"></script>
>
> </webuijsf:head>
>
>
>
>
>
>
>
>
> ----- Original Message ----
> From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
> To: dev_at_woodstock.dev.java.net
> Sent: Monday, August 20, 2007 5:33:20 PM
> Subject: Re: _23.getProps is not a function ??
>
> Padraig Byrne wrote:
>> Yes I am using you using the Woodstock
>> head tag? I was not & tjough this was the issue but it hasn't solved problem
>>
>> Here it is
>> <webuijsf:head>
>> <meta http-equiv="Content-Type" content="text/html; " />
>> <title>seamtest</title>
>> <link href="stylesheet/theme.css" rel="stylesheet" type="text/css" />
>> <!-- Woodstock-related resources -->
>> <link rel="stylesheet" type="text/css"
>> href="/seamgen2/theme/com/sun/webui/jsf/suntheme/css/css_master.css" />
>> <script type="text/javascript">
>> var djConfig = {"parseWidgets":true,"isDebug":true,"debugAtAllCosts":false};
>> </script>
>> <script type="text/javascript"
>> src="/seamgen2/theme/META-INF/dojo/dojo.js"></script>
>> <script type="text/javascript"
>> src="/seamgen2/theme/META-INF/json/json.js"></script>
>> <script type="text/javascript"
>> src="/seamgen2/theme/META-INF/prototype/prototype.js"></script>
>> <script type="text/javascript"
>> src="/seamgen2/theme/META-INF/com_sun_faces_ajax.js"></script>
>> <script type="text/javascript" src="/seamgen2/js/select.js"></script>
>> <script type="text/javascript" src="/seamgen2/js/filter.js"></script>
>> <script type="text/javascript">
>> dojo.hostenv.setModulePrefix("webui.suntheme", "/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript");
>> dojo.require('webui.suntheme.*');
>> dojo.require('webui.suntheme.widget.*');
>> dojo.require('webui.suntheme.widget.jsfx.*');
>> </script>
>> </webuijsf:head>
>>
>
> If you're truly using the Woodstock head tag, your select.js and
> filter.js files would be included after the dojo.require statements.
> Further, the isDebug and debugAtAllCosts properties above would both
> be set to true -- parseWidgets is typically false. Obviously, there is
> something wrong with your environment for these oddities to occur.
>
>> & Here is firebug trace of page load
>>
>
> With debug mode enabled, all JavaScript files are included in the
> page. Unfortunately, the trace below isn't very helpful. Although, I
> can see that table.js has been included in the page, which is what I
> was looking for.
>
> Dan
>
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/debug.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/__package__.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/props.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/cookie.js (23ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/browser.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/body.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/common.js (23ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/formElements.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/theme.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/__package__.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/xml/Parse.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/Widget.js (46ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/lang/declare.js (57ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/ns.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/Manager.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/a11y.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/uri/__package__.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/Parse.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/DomWidget.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/HtmlWidget.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/html/util.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/lfx/toggle.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/addRemove.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/calendar.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/commonTasksSection.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/editableList.js (33ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/fileChooser.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/orderableList.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/scheduler.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/table.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/tree.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/wizard.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/__package__.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/common.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/props.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/widgetBase.js (57ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/accordion.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/html/__package__.js (23ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/html/selection.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/html/layout.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/PageContainer.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/accordionTab.js (46ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/ContentPane.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/alarm.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/anchor.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/alert.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/bubble.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/button.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/calendar.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/calendarField.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/textField.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/fieldBase.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/checkbox.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/checkboxGroup.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/dropDown.js (46ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/listbox.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/editableField.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/hiddenField.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/hyperlink.js (23ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/image.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/imageButton.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/imageHyperlink.js (35ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/label.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/progressBar.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/radioButton.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/radioButtonGroup.js (23ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/resetButton.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/staticText.js (46ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/table2.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/table2RowGroup.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/textArea.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/passwordField.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/__package__.js (33ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/common.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/accordion.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/accordionTab.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/alarm.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/anchor.js (49ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/alert.js (46ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/bubble.js (56ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/button.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/calendarField.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/checkbox.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/checkboxGroup.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/dropDown.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/editableField.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/hiddenField.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/hyperlink.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/image.js (46ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/imageHyperlink.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/label.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/listbox.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/progressBar.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/radioButton.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/radioButtonGroup.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/staticText.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/table2.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/table2RowGroup.js (34ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/textArea.js (45ms)dojo.js (line 769)
>> GET http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/textField.js (34ms)
>>
>>
>> ----- Original Message ----
>> From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
>> To: dev_at_woodstock.dev.java.net
>> Sent: Monday, August 20, 2007 4:53:30 PM
>> Subject: Re: _23.getProps is not a function ??
>>
>>
>> Need a little more information. For example, are you using the Woodstock
>> head tag? If so, what JavaScript includes have been output in the page?
>>
>> Dan
>>
>> Padraig Byrne wrote:
>>
>>> Any ideas on following error ?
>>>
>>> _23.getProps is not a function
>>> (no name)("form1:table1:rowGroup1")dojo.js (line 301)
>>> (no name)()dojo.js (line 173)
>>> initAllRows()
>>>
>>>
>>> ----- Original Message ----
>>> From: Ratnadeep Bhattacharjee <Ratnadeep.Bhattacharjee_at_Sun.COM>
>>> To: dev_at_woodstock.dev.java.net
>>> Sent: Monday, August 20, 2007 3:24:08 PM
>>> Subject: Re: Woodstock component jars on maven repo ?
>>>
>>> > Woodstock component jars on maven repo ?
>>>
>>> Not yet...
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>>> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>>> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>
>>
>
>