Ok, I copied the dojo-release-1.1.1\dojo to
\service\src\main\webapp\scripts\dojo
and added
<filter>
<filter-name>staticFilter</filter-name>
<filter-class>org.appfuse.webapp.filter.StaticFilter</filter-class>
<init-param>
<param-name>includes</param-name>
<param-value>/scripts/dojo/*</param-value>
</init-param>
</filter>
in my web.xml. Now the following xhtml shows the error
Could not load 'dojo.widget.*'; last tried './widget/*.js'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Dojo Example - Calendar</title>
<script type="text/javascript"
src="/scripts/dojo/dojo.js"
mce_src="/scripts/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.widget.*");
</script>
</head>
<body>
<form id="frmDojoTest" action="" onsubmit="return false;">
<h4>Please enter a data range:</h4>
<div dojoType="dropdowndatepicker">
</div> to <div dojoType="dropdowndatepicker"></div>
</form>
</body>
</html>
What could be the problem ?
Thank you.
Sudheer
mraible wrote:
>
> Yes, that should work.
>
> On 5/17/08, sudheerp <[EMAIL PROTECTED]> wrote:
>>
>>
>> Is this is the directory to copy Dojo files ?
>> \service\src\main\webapp\scripts\dojo (appfuse-jsf 2.0.2)
>>
>> What is the purpose of the test.html file in that directory ?
>>
>> THank you.
>>
>> Sudheer
>>
>>
>>
>> mraible wrote:
>>>
>>> Yes, you will need to copy Dojo's files into your project or use them
>>> from their CDN.
>>>
>>> Matt
>>>
>>> On Sat, May 17, 2008 at 11:12 AM, sudheerp <[EMAIL PROTECTED]>
>>> wrote:
>>>>
>>>> Hello Matt,
>>>>
>>>> Thanks for the reply. Do I need to copy dojo files ?
>>>>
>>>> Thank you.
>>>>
>>>> Sudheer
>>>>
>>>>
>>>>
>>>> mraible wrote:
>>>>>
>>>>> Dojo is not installed by default for JSF. Therefore, it should be as
>>>>> easy as adding it to any web applications. You might have to adjust
>>>>> the StaticFilter in web.xml, but that's about it.
>>>>>
>>>>> Matt
>>>>>
>>>>> On Thu, May 15, 2008 at 10:07 PM, sudheerp <[EMAIL PROTECTED]>
>>>>> wrote:
>>>>>>
>>>>>> Hello Friends,
>>>>>>
>>>>>> What should I do to add dojo to appfuse-jsf (2.x.x). Is it
>>>>>> already
>>>>>> integrated ?
>>>>>> Is there any getting started for the same ?
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>> Sudheer Palaparambil
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Adding-dojo-to-appfuse-jsf-tp17267275s2369p17267275.html
>>>>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Adding-dojo-to-appfuse-jsf-tp17267275s2369p17294076.html
>>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Adding-dojo-to-appfuse-jsf-tp17267275s2369p17294630.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Adding-dojo-to-appfuse-jsf-tp17267275s2369p17299936.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]