jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitch Warner" <mitch.war...@fluencyvoice.com>
Subject RE: RDC Submittal: Color Picker RDC - Source files part 3/3
Date Thu, 19 May 2005 16:41:03 GMT

===========================================
/jakarta-taglibs-sandbox/rdc/src/org/apache/taglibs/rdc/Color.java
===========================================

/*
 *   Copyright 2004 The Apache Software Foundation.
 *
 *  Licensed 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.
 *
 *
 */

package org.apache.taglibs.rdc;

import org.apache.taglibs.rdc.core.BaseModel;

/**
 * Datamodel for the Color RDC. The Color RDC is associated with the
 * color input
 *
 * @author Mitch Warner (Original)
 * @author $Author: mitch.warner $ (Last Updated)
 * @version $Revision: 1.1 $ $Date: 2005/05/04 17:07:13 $
 */
public class Color extends BaseModel {

	/**
	 * Sets default values for all data members
	 */
	public Color() {
		super();
	}

}

===========================================
/jakarta-taglibs-sandbox/rdc/examples/web/color-test.jsp
===========================================

<%@ page language="java" contentType="application/vxml" %>
<%@ taglib prefix="rdc"
uri="http://jakarta.apache.org/taglibs/rdc-1.0"%>

<vxml version="2.0" xml:lang="en-US"
xmlns="http://www.w3.org/2001/vxml">
    <jsp:useBean id="dialogMap" class="java.util.LinkedHashMap"
scope="session" />

    <rdc:task map="${dialogMap}">
        <rdc:color id="color" confirm="true" minConfidence="0.4F"
numNBest="5" echo="false" />
    </rdc:task>
</vxml>


===========================================
Patch for /jakarta-taglibs-sandbox/rdc/xml/rdc.xml
===========================================

      <tag-file>
        <description>Collects a color value</description>
        <display-name>color</display-name>
        <name>color</name>
        <path>/META-INF/tags/rdc/color.tag</path>
        <example>
           <![CDATA[
                   <rdc:color id="myColor" confirm="true" echo="true" />
          ]]>
          <usage>
            <comment>
              <p>
                See color-test.jsp in the rdc-examples application.
              </p>
            </comment>
          </usage>
        </example>
        <tag-extension
namespace="http://jakarta.apache.org/taglibs/rdc/pre-beta/tools">
 
<extension-element>/META-INF/tags/rdc/color.rdc</extension-element>
        </tag-extension>
      </tag-file>



________________________________________________________________________
This email has been scanned for all viruses by Netscalibur Mail Scanner, powered by MessageLabs.
For more information on a proactive email security service working around the clock, around
the globe, visit
http://www.netscalibur.co.uk/scanner/index.html
________________________________________________________________________
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message