myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (EXTVAL-92) Ext-Script+Ext-Val Validation list changes, do not refresh while constraint validation changes are refreshed
Date Mon, 19 Apr 2010 14:51:49 GMT
Ext-Script+Ext-Val Validation list changes, do not refresh while constraint validation changes
are refreshed
------------------------------------------------------------------------------------------------------------

                 Key: EXTVAL-92
                 URL: https://issues.apache.org/jira/browse/EXTVAL-92
             Project: MyFaces Extensions Validator
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.3
         Environment: OSX 10.6
            Reporter: Werner Punz
            Priority: Minor


I am currently integrating Ext-Scripting and Ext-Val, so that both frameworks work together
as expected.
So far things look good, but the issue I face is that while the Constraint changes are picked
up following is not


    
    @BeanValidation.List({
            @BeanValidation(useGroups = Default.class),
            @BeanValidation(viewIds = "/beanValidation.xhtml", useGroups = User.class),
            @BeanValidation(viewIds = "/groupValidation02.jsp", useGroups = Admin.class),
            @BeanValidation(viewIds = "/modelValidation01.jsp", useGroups = Admin.class),
            @BeanValidation(viewIds = "/modelValidation01.jsp", useGroups = Name.class,
                    modelValidation = @ModelValidation(isActive = true))
    })
    private Person person = new Person();


when I change anything in the ValidationList nothing changes, as it seems the Validation list
is cached overaggressively, so that on object reloads
it is not udpated.
There are two solutions to the problem

a) Either provide me a cache clear callback interface which I can trigger via reflection from
the core (and later from my event system)
b) Disable the cache in development mode so that no caching happens at all

Thanks Gerhard for providing me the feedback, I am just filing this issue so that it does
not get lost

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message