You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Csík Norbert <cs...@freemail.hu> on 2005/03/21 21:19:36 UTC
popup element
Hi!
I've tried to use the popup element in the MyFaces extensions components, but I failed. I use Sun's JSF 1.1 RI with MyFaces 1.0.8 extensions. I've put the following code into an h:panelGrid, but nothing happend.
<x:popup styleClass="popup" closePopupOnExitingElement="true"
closePopupOnExitingPopup="true" displayAtDistanceX="10"
displayAtDistanceY="10">
<h:outputText value="some text."/>
<f:facet name="popup">
<h:panelGroup>
<h:panelGrid columns="1">
<h:outputText value="Popup Text 2"/>
</h:panelGrid>
</h:panelGroup>
</f:facet>
</x:popup>
The text "some text" rendered, with some events calling javascript functions, but the JSPopup.js reference is missing in the generated HTML: orgApacheMyfacesPopup is not defined.
Can anyone help me what to do? Is something wrong with the component, or I missed something?
Please reply to my e-mail address too, because I'm not in the list, yet.
Thanks
--
Norbert Csík
Re: popup element
Posted by Bruno Aranda <br...@gmail.com>.
Maybe the extensions filter is missing in your web.xml file. It is
necessary to load popup resources (and for other components as well)
from the jar file...
<!-- 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>
Good luck,
Bruno
On Mon, 21 Mar 2005 21:19:36 +0100, Csík Norbert <cs...@freemail.hu> wrote:
> Hi!
>
> I've tried to use the popup element in the MyFaces extensions components, but I failed. I use Sun's JSF 1.1 RI with MyFaces 1.0.8 extensions. I've put the following code into an h:panelGrid, but nothing happend.
>
> <x:popup styleClass="popup" closePopupOnExitingElement="true"
> closePopupOnExitingPopup="true" displayAtDistanceX="10"
> displayAtDistanceY="10">
> <h:outputText value="some text."/>
> <f:facet name="popup">
> <h:panelGroup>
> <h:panelGrid columns="1">
> <h:outputText value="Popup Text 2"/>
> </h:panelGrid>
> </h:panelGroup>
> </f:facet>
> </x:popup>
>
> The text "some text" rendered, with some events calling javascript functions, but the JSPopup.js reference is missing in the generated HTML: orgApacheMyfacesPopup is not defined.
>
> Can anyone help me what to do? Is something wrong with the component, or I missed something?
>
> Please reply to my e-mail address too, because I'm not in the list, yet.
>
> Thanks
>
> --
> Norbert Csík
>