You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Grant Smith (JIRA)" <de...@myfaces.apache.org> on 2005/11/08 20:45:21 UTC

[jira] Commented: (MYFACES-407) Add "escape" attribute to select* Components

    [ http://issues.apache.org/jira/browse/MYFACES-407?page=comments#action_12357059 ] 

Grant Smith commented on MYFACES-407:
-------------------------------------

I assume when you said : The NCR characters are displaying fine using "escape=true" in outputText. 
That you meant:  The NCR characters are displaying fine using "escape=false" in outputText.

The default is true, which means output is escaped. You want it NOT to be escaped to render your NCR correctly.

I have started implementing this for the Tomahawk select* components. For now it will have to be at the parent component level, as we dont have Tomahawk versions of <f:selectItem> and <f:selectItems>. I will kick off a discussion on the dev list to drum up support for these, however.


> Add "escape" attribute to select* Components
> --------------------------------------------
>
>          Key: MYFACES-407
>          URL: http://issues.apache.org/jira/browse/MYFACES-407
>      Project: MyFaces
>         Type: New Feature
>   Components: Implementation
>  Environment: myfaces 1.0.9
>     Reporter: Peter Cheung
>     Assignee: Grant Smith

>
> Currently, the "selectMany*", "selectOne*", "selectItem*" components don't have the option to disable the "escape" functionality. For example for "selectItems", renderSelectOptions method of HtmlRendererUtils.java invokes "writer.writeText" (line 478), which escapes the string before displaying it. In my application, I store the Chinese texts as "Numeric Character Reference" in the format of  "&#12345;". After the string is escaped, it becomes unreadable. The NCR characters are displaying fine using "escape=true" in outputText. This is inconsistency within JSF. I hope that this feature can be added to these components. Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira