Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
1. Sample code to create a button which, when clicked, gets the format hint for a color field and displays it in an output text.
<f:verbatim>
<script language="javascript">
function getHint ()
</script>
</f:verbatim>
<tr:inputColor id="sic1" chooseId="cp1"
label="Enter or select color from palette below">
<f:facet name="help">
<tr:outputText id="help_sic1" value="Format hint goes here if button is clicked"/>
</f:facet>
</tr:inputColor>
<tr:commandButton onclick="getHint(this); return false;" text="Click for color hint"/>
2. Run the page and click the button - the output text is updated with the string "Example Format: ". It should instead reflect the patterns for the inputColor which are defaulted in the example above, i.e. "Example Format: RRGGBB, #RRGGBB, r,g,b"
Here is another example using the DateRestrictionValidator
1. Go to this page, and look for the demo "Please no Mondays...!"
http://www.irian.at/trinidad-demo/faces/convertValidate/dateRestrictionValidate.jspx
2. Pick a Monday and submit, get the following error:
Enter a date from the following weekday(s): .
It should be an array of days that are permissible.
2.