[richfaces-issues] [JBoss JIRA] (RF-11972) Rich select : cutomize the css on error by a filter - rendered implementation
Jean ANDRE (JIRA)
jira-events at lists.jboss.org
Thu Feb 9 11:03:49 EST 2012
[ https://issues.jboss.org/browse/RF-11972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean ANDRE updated RF-11972:
----------------------------
Attachment: HighlightComponentOnError.png
See the difference of UI behavior between th rich:select and the f:selectXXX or even the rich:calendar.
> Rich select : cutomize the css on error by a filter - rendered implementation
> -----------------------------------------------------------------------------
>
> Key: RF-11972
> URL: https://issues.jboss.org/browse/RF-11972
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.1.0.CR2
> Environment: Firefox 10 - Jsf 2.1.4 - cssparser-0.9.6 - guava-11.0.1 - sac-1.3 - Spring Core -3.0.6 - Windows 7 - WAS 8.0.0.1 - RAD 8.0.0.4 - hibernate-validator-4.2.0
> Reporter: Jean ANDRE
> Attachments: HighlightComponentOnError.png, PhaseListenerForError.java, searchClient.xhtml
>
>
> The way how the rich:select is rendered in HTML breaks the consistency with the JSF component h:selectXXX - It requires to know the detail implementation or it is impossible to achieve the goal.
> What we want to achieve is to highlight in red the border of the combo/list box when some validation rules failed.
> The problem is that the red border is not "close" to the component as a calendar is or as a h:select is. More over, it is impossible to retrieve the inner elements through the view root (UIViewRoot) or it force us to know the detail implementation of the rich:select to be able to achieve our goal.
> Actually, the implementation of rich:select is pretty complex - The problem comes from the first div - should be a span as rich:calendar ?
> After several years, I'm still surprising that there is no easy way to achieve the customization of a component based on error - Having a such attribute as "errorClass" will help or having a uniform way to indicate us when a component is in error or not. Can we expose the isValid (http://docs.oracle.com/javaee/6/api/javax/faces/component/UIInput.html) flag ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list