<?xml version="1.0"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, | |
software distributed under the License is distributed on an | |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
KIND, either express or implied. See the License for the | |
specific language governing permissions and limitations | |
under the License. | |
--> | |
<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd" | |
version="2.0"> | |
<namespace>http://myfaces.apache.org/trinidad</namespace> | |
<tag> | |
<description> | |
The setActionListener tag provides a declarative syntax for assigning values before an action fires | |
</description> | |
<tag-name>setActionListener</tag-name> | |
<handler-class>org.apache.myfaces.trinidadinternal.facelets.SetActionListenerTag</handler-class> | |
<attribute> | |
<description> | |
the target for the value; must be an EL expression | |
</description> | |
<name>to</name> | |
<required>true</required> | |
</attribute> | |
<attribute> | |
<description> | |
the source of the value; can be an EL expression or a constant value | |
</description> | |
<name>from</name> | |
<required>true</required> | |
</attribute> | |
</tag> | |
<tag> | |
<description> | |
The resetActionListener tag provides a declarative syntax for resetting values before an action fires | |
</description> | |
<tag-name>resetActionListener</tag-name> | |
<handler-class>org.apache.myfaces.trinidadinternal.facelets.ResetActionListenerTag</handler-class> | |
</tag> | |
<tag> | |
<description> | |
The returnActionListener tag is a declarative way to allow an action source to return | |
a value from a dialog or process. | |
</description> | |
<tag-name>returnActionListener</tag-name> | |
<handler-class>org.apache.myfaces.trinidadinternal.facelets.ReturnActionListenerTag</handler-class> | |
<attribute> | |
<description> | |
The value to return as the dialog/process result. | |
This can be an EL expression or a constant value. | |
</description> | |
<name>value</name> | |
</attribute> | |
</tag> | |
<tag> | |
<description> | |
The fileDownloadActionListener tag provides a declarative syntax for downloading files to a user from a command component. | |
</description> | |
<tag-name>fileDownloadActionListener</tag-name> | |
<handler-class>org.apache.myfaces.trinidadinternal.facelets.FileDownloadActionListenerTag</handler-class> | |
<attribute> | |
<description> | |
the content or mime type of the file - e.g., text/html or application/pdf | |
</description> | |
<name>contentType</name> | |
<type>java.lang.String</type> | |
</attribute> | |
<attribute> | |
<description> | |
the desired or proposed filename. If set, the user will typically be presented with a "Save File" dialog, though this is ultimately at the descretion of the user agent. | |
</description> | |
<name>filename</name> | |
<type>java.lang.String</type> | |
</attribute> | |
<attribute> | |
<description> | |
an EL binding to the method that will deliver the file contents. The method must take two parameters, a FacesContext and an OutputStream. | |
</description> | |
<name>method</name> | |
<required>true</required> | |
<method-signature>void myMethod(javax.faces.context.FacesContext, java.io.OutputStream)</method-signature> | |
</attribute> | |
</tag> | |
</facelet-taglib> |