Summary: | [RDC] BuiltIn Grammar support for Field | ||
---|---|---|---|
Product: | Taglibs | Reporter: | Aravilli Srinivasa Rao <arao> |
Component: | RDC Taglib | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | ASSIGNED --- | ||
Severity: | enhancement | CC: | arao |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | other | ||
Attachments: | Attached the source files which are required for this tag |
Description
Aravilli Srinivasa Rao
2006-01-09 11:35:51 UTC
I have added a new tag to support the builtin grammar in VoiceXML. new Tag rdc:builtinGrammar> Usage <rdc:builtinGrammar id="test" type="digits?minlength=1;maxlength=3; /> <rdc:builtinGrammar id="ticket_num" type="digits" /> <rdc:builtinGrammar id="testfield" type="boolean?y=7;n=9" /> The following files are added/modified in order to support the new tag META-INF\tags\rdc\builtinGrammar.tag META-INF\tags\rdc\builtinGrammar.rdc META-INF\tags\rdc\config\builtinGrammar.xml org\apache\taglibs\rdc\BuiltinGrammar.java builtInGrammar-test.jsp // to test using the VXML builtin-test-xml.jsp // to test using the Browser META-INF\tags\rdc\fsm-input.tag META-INF\talib.tld org\apache\taglibs\rdc\core\BaseModel.java org\apache\taglibs\rdc\resources\RDCBundle.properties org\apache\taglibs\rdc\resources\RDCBundle_en_US.properties Created attachment 17370 [details]
Attached the source files which are required for this tag
Modified and Tested with the latest code i.e 02-JAN-2006. Thanks, I'll take a look at this within the next couple of days. Please leave ticket Assigned To: taglibs-dev@j.a.o Re-assigning correctly to taglibs-dev. This looks good, we should make a couple of changes: 1) "type" property doesn't belong in BaseModel, we should add it to BuiltinGrammar.java 2) The config file is fictitious and cannot be used. I suggest having a majorType property in BuiltinGrammar.java and using it in the config file. So the majorType for type "digits?minlength=1;maxlength=3" will be "digits", and the prompt can then read "Please specify the #{model.majorType}" -- which, in this case, will become "Please specify the digits". Please make the required changes and include the tag in the next release. (In reply to comment #7) > Please make the required changes and include the tag in the next release. I intend to do that. Ofcourse, feel free to revise the patch yourself (if not, I'll take another look at this come time for 1.1). |