[ http://mc4j.org/jira/browse/STS-156?page=comments#action_10411 ] 
            
Tim Fennell commented on STS-156:
---------------------------------

Not that I've really done anything on this, but I thought you'd like to know 
that the DefaultActionBeanPropertyBinder now has a isBindingAllowed() method 
that is a good hook for any custom extensions you might want to make to 
prohibit binding of certain properties.

> Allow intentional @In, @Out, @NoBinding annotations on ActionBean 
> variables/properties
> --------------------------------------------------------------------------------------
>
>                 Key: STS-156
>                 URL: http://mc4j.org/jira/browse/STS-156
>             Project: Stripes
>          Issue Type: New Feature
>          Components: Validation
>            Reporter: Jeppe Cramon
>         Assigned To: Tim Fennell
>
> Text changed slightly from stripes-users thread about this issue:
> Allowing users to use @NoBinding, @In and @Out to ActionBean 
> properties/variables would be good, as long as the default is that if nothing 
> is specified then it's both @In and @Out.
> @Out is cool for when you provide pure output data (like a view). It doesn't 
> really make sense to perform binding on it. It also makes the intent of 
> variables more clear IMO.
> For larger ActionBeans (often large because they have 2-3 event handlers) it 
> starts to get messy, because some properties/variables are for Spring 
> binding, some are output data, some are pure input data and then some are 
> both ways.
> For Spring bindings are want to be absolutely sure that no binding can occur. 
> Worst case is a configurable service which have setters/getters for 
> configuration, that normally only is accessed during application 
> initialization, but now suddenly gets overridden by accident or by bad 
> intent, however this is not  likely to happen.
> For a readonly view bean I actually would like to state to Stripes that it 
> shouldn't try to bind data back. If data is submitted that would have 
> resulted in databinding, but the property/variable is strictly @Out, then 
> Stripes to flag that as an info, etc. It might be a mistake that data gets 
> submitted back or it might be a mistake that it was only @Out.
> What I like about @In,@Out,@NoBinding is that they can be used to show the 
> intent of the variables/properties. Kind of documentation which also serves a 
> purpose (like catching binding to properties you never intended to bind to)  
> :-)
> /Jeppe

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

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to