Title: RE: RDC Submittal: Color Picker RDC - Source files part 1

Further to the previous mail, I have been asked  to submit the source files to this list - because of the size restrictions imposed on this mailing list mentioned earlier, I will have to split this into multiple emails (hopefully only two). This is the first mail, with the first set of files attached.

<<color.tag>> <<color.rdc>> <<color.xml>>

_____________________________________________
From:   Mitch Warner 
Sent:   17 May 2005 17:23
To:     'Tag Libraries Developers List'
Subject:        RDC Submittal: Color Picker RDC


I have created a color picker RDC that I would like to submit to the Jakarta Taglib project. This is a very simple component which I created whilst learning how to produce my own RDCs; however it may be found useful by the wider community.

I am having difficulties posting the source files to this list due to size and attachment restrictions; therefore if you want the source for this component, please mail me directly. The intention is that eventually Rahul Akolkar will merge these files into the Taglib CVS module.

0) Description

Component that allows a color to be specified by a user.

1) List of new files ( -> and descriptions)

/jakarta-taglibs-sandbox/rdc/src/META-INF/tags/rdc/color.tag    -> Tag implementation for the component.
/jakarta-taglibs-sandbox/rdc/src/META-INF/tags/rdc/color.rdc    -> rdc configuration and parameter data.
/jakarta-taglibs-sandbox/rdc/src/META-INF/tags/rdc/config/color.xml     -> configuration data for the component
/jakarta-taglibs-sandbox/rdc/src/org/apache/taglibs/rdc/Color.java      -> private data model for the component
/jakarta-taglibs-sandbox/rdc/src/.grammar/color.grxml   -> SRGF grammar for use with the component, containing all allowable colors.

/jakarta-taglibs-sandbox/rdc/examples/web/color-test.jsp                -> Example file for testing the component

2) List of modified files

/jakarta-taglibs-sandbox/rdc/xml/rdc.xml        ->      Included description of the new component.


________________________________________________________________________
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
________________________________________________________________________
<?xml version="1.0" encoding="utf-8"?>
<!--
  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.
-->
  <config>
    <input>
      <property-list>
        <property name="incompletetimeout"  value="1s"/>
        <property name="completetimeout"  value="1s"/>
      </property-list>
      <prompt-list>
        <prompt>What is your favourite color</prompt>
      </prompt-list>
      <help-list>
        <help>
          <prompt> Say your favourite color, for example burgundy</prompt>
        </help>
      </help-list>
      <noinput-list>
        <noinput count="1">
          <prompt>I did not hear you say it again.</prompt>
        </noinput>
        <noinput count="2">
          <prompt>Could you please repeat the input?</prompt>
        </noinput>
        <noinput count="3">
          <prompt>I appear to be having trouble hearing you. 
            Waiting for you to spell the input. </prompt>
        </noinput>
      </noinput-list>
      <nomatch-list>
        <nomatch>
          <prompt>I am sorry. I didn't understand you. Please repeat the 
            input.</prompt>
        </nomatch>
      </nomatch-list>
    </input>
    <confirm>
      <property-list>
        <property name="incompletetimeout" value="1s"/>
        <property name="completetimeout" value="1s"/>
      </property-list>
      <prompt-list>
          <prompt>I think you said #{model.utterance}. Is that
        right? </prompt>
      </prompt-list>
      <help-list>
        <help>
          <prompt>To accept the value, say yes. To change your mind, say no.</prompt>
        </help>
      </help-list>
      <noinput-list>
        <noinput>
          <prompt>Is #{model.utterance} an acceptable value? Please
            say yes or no.</prompt>
        </noinput>
      </noinput-list>
      <nomatch-list>
        <nomatch>
          <prompt>If #{model.utterance} is acceptable, say yes. Otherwise,
            say no.</prompt>
        </nomatch>
      </nomatch-list>
      <reject>
        <prompt>OK, lets try again.</prompt>
      </reject>
    </confirm>
    <validate>
    </validate>
    <echo>
      <property-list>
        <property name="universals" value="all"/>
      </property-list>
      <prompt-list>
        <prompt>OK, #{model.utterance}. Got it.</prompt>
      </prompt-list>
    </echo>
  </config>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to