myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Smith (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-407) Add "escape" attribute to select* Components
Date Tue, 08 Nov 2005 19:45:21 GMT
    [ 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


Mime
View raw message