[ 
https://issues.apache.org/jira/browse/TRINIDAD-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585801#action_12585801
 ] 

Yee-Wah Lee commented on TRINIDAD-1036:
---------------------------------------

Attachment works for both trunk and jsf 1.2.6 branch.

> Client Color Converter's getFormatHint() returns empty string for the hints. 
> -----------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1036
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1036
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Yee-Wah Lee
>            Priority: Minor
>         Attachments: trin11_1036.diff
>
>
> 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 ()
>               {
>                 var colorField = document.getElementById ("sic1");
>                 var format = _getColorFieldFormat (colorField);
>                 var colorHint = document.getElementById ("help_sic1");
>                 colorHint.textContent = format.getFormatHint ();
>               }
>               </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" 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to