Jean ANDRE created RF-11972:
-------------------------------

             Summary: 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


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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to