[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-650) <s:formattedText value="#{post.body}" highlight="#{word}"/>

Siarhei Dudzin (JIRA) jira-events at lists.jboss.org
Fri Mar 9 20:17:52 EST 2007

     [ http://jira.jboss.com/jira/browse/JBSEAM-650?page=all ]

Siarhei Dudzin updated JBSEAM-650:

    Attachment: faces-config.xml.patch

Attached .diffs for adding highlight attribute to he s:formattedText

The example of the full syntax is:

				<s:formattedText id="#{id}" value="#{value}" 
					highlight="#{keyword}" highlightStyleClass="#{cssClass}" highlightStyle="color: red; font-weight: bold;"/>

Where highlight wraps the keyword in <span/> tag 
- highlight: keyword is the piece of the text to be highlighted,
- highlightStyleClass: css class for the highlighting
- highlightStyle: css style for the highlighting (decided not to name them style and styleClass in order to reserve these words in case if they will be used for applying css on the whole formatted text).

I tested this on MyFaces 1.1.5 (release). It would be nice if someone could check it with RI (I have a bad feeling about it).

> <s:formattedText value="#{post.body}" highlight="#{word}"/>
> -----------------------------------------------------------
>                 Key: JBSEAM-650
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-650
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>            Reporter: Gavin King
>         Assigned To: Gavin King
>            Priority: Minor
>             Fix For: 1.3.0.BETA1
>         Attachments: faces-config.xml.patch, UIFormattedText.java.patch
> Add highlighting

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


More information about the seam-issues mailing list