[jboss-jira] [JBoss JIRA] Resolved: (JBFORUMS-286) error on formatting RSS feeds in html

Luca Stancapiano (JIRA) jira-events at lists.jboss.org
Fri May 15 05:14:46 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBFORUMS-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Stancapiano resolved JBFORUMS-286.
---------------------------------------

    Resolution: Done


I resolved so:

I changed default value to ' true' of htmlEnabled attribute inside org.jboss.portlet.forums.impl.MessageImpl. That attribute is used only in FeedsServlet. If it is true I enable html formatting in FeedsServlet. I moved FacesContext call inside FeedsServlet and I introduces commons-lang of apache community. It has a static method to do directly the html conversion so:

org.jboss.portlet.forums.feeds.FeedsServlet: 320 row

        description.setValue(post.getMessage().getHTMLEnabled() ? 
        		StringEscapeUtils.escapeHtml(text) : text);


> error on formatting RSS feeds in html
> -------------------------------------
>
>                 Key: JBFORUMS-286
>                 URL: https://jira.jboss.org/jira/browse/JBFORUMS-286
>             Project: JBoss Forums
>          Issue Type: Bug
>          Components: Forum Model Layer
>    Affects Versions: 1.2.0 GA
>         Environment: myfaces 1.1.1
>            Reporter: Luca Stancapiano
>            Assignee: Luca Stancapiano
>             Fix For: 1.2.0 GA
>
>
> Often a html formatting for RSS feeds is required. Actually RSS feeds are not formatted in html because FeedsServlet try to format the message using FacesContext. But facesContext can be null if we use directly FeedsServlet

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

        



More information about the jboss-jira mailing list