You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by gi...@mac.com on 2005/09/07 13:13:55 UTC
inputDate JavaScript generation problem
Hi
I've got a newbie question regarding components and JavaScript
generation.
I'm using t:inputDate with popupCalendar="true" but when I click the
button to display the popup calendar nothing happens, this is because
the necessary JavaScript link tags are not present in the page.
When I run the MyFaces examples for the date input component it works
perfectly and the links to the JavaScript and CSS are in the page
header.
As far as I can tell from the example these links should be auto-
generated by the component or maybe I'm missing something obvious?
Suggestions appreciated.
Thanks
Gianni
PS. I've got org.apache.myfaces.ALLOW_JAVASCRIPT set to 'true'
Re: inputDate JavaScript generation problem
Posted by gi...@mac.com.
Excellent it's working now, many thanks for the quick response.
I thought I was missing something obvious :)
-Gianni
On 07/set/05, at 13:18, Bruno Aranda wrote:
> You have to include the extensions filter in the web.xml:
>
> [CODE]
>
> <!-- Extensions Filter -->
> <filter>
> <filter-name>extensionsFilter</filter-name>
> <filter-
> class>org.apache.myfaces.component.html.util.ExtensionsFilter</
> filter-class>
> <init-param>
> <param-name>uploadMaxFileSize</param-name>
> <param-value>100m</param-value>
> <description>Set the size limit for uploaded files.
> Format: 10 - 10 bytes
> 10k - 10 KB
> 10m - 10 MB
> 1g - 1 GB
> </description>
> </init-param>
> <init-param>
> <param-name>uploadThresholdSize</param-name>
> <param-value>100k</param-value>
> <description>Set the threshold size - files
> below this limit are stored in memory, files above
> this limit are stored on disk.
>
> Format: 10 - 10 bytes
> 10k - 10 KB
> 10m - 10 MB
> 1g - 1 GB
> </description>
> </init-param>
> <!-- <init-param>
> <param-name>uploadRepositoryPath</param-name>
> <param-value>/temp</param-value>
> <description>Set the path where the intermediary files
> will be stored.
> </description>
> </init-param>-->
> </filter>
>
> <filter-mapping>
> <filter-name>extensionsFilter</filter-name>
> <url-pattern>*.jsf</url-pattern>
> </filter-mapping>
> <filter-mapping>
> <filter-name>extensionsFilter</filter-name>
> <url-pattern>/faces/*</url-pattern>
> </filter-mapping>
>
> [/CODE]
>
> Regards,
>
> Bruno
>
> 2005/9/7, giannidoe@mac.com <gi...@mac.com>:
>
>> Hi
>> I've got a newbie question regarding components and JavaScript
>> generation.
>>
>> I'm using t:inputDate with popupCalendar="true" but when I click the
>> button to display the popup calendar nothing happens, this is because
>> the necessary JavaScript link tags are not present in the page.
>> When I run the MyFaces examples for the date input component it works
>> perfectly and the links to the JavaScript and CSS are in the page
>> header.
>>
>> As far as I can tell from the example these links should be auto-
>> generated by the component or maybe I'm missing something obvious?
>>
>> Suggestions appreciated.
>> Thanks
>> Gianni
>>
>> PS. I've got org.apache.myfaces.ALLOW_JAVASCRIPT set to 'true'
>>
>
Re: inputDate JavaScript generation problem
Posted by Bruno Aranda <br...@gmail.com>.
You have to include the extensions filter in the web.xml:
[CODE]
<!-- Extensions Filter -->
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
<!-- <init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
<description>Set the path where the intermediary files
will be stored.
</description>
</init-param>-->
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
[/CODE]
Regards,
Bruno
2005/9/7, giannidoe@mac.com <gi...@mac.com>:
> Hi
> I've got a newbie question regarding components and JavaScript
> generation.
>
> I'm using t:inputDate with popupCalendar="true" but when I click the
> button to display the popup calendar nothing happens, this is because
> the necessary JavaScript link tags are not present in the page.
> When I run the MyFaces examples for the date input component it works
> perfectly and the links to the JavaScript and CSS are in the page
> header.
>
> As far as I can tell from the example these links should be auto-
> generated by the component or maybe I'm missing something obvious?
>
> Suggestions appreciated.
> Thanks
> Gianni
>
> PS. I've got org.apache.myfaces.ALLOW_JAVASCRIPT set to 'true'
>