You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Johnny Wey (JIRA)" <ji...@apache.org> on 2008/03/04 22:10:07 UTC

[jira] Created: (WW-2534) Parameters interceptor does not understand method chaining

Parameters interceptor does not understand method chaining 
-----------------------------------------------------------

                 Key: WW-2534
                 URL: https://issues.apache.org/struts/browse/WW-2534
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors
    Affects Versions: 2.0.11
            Reporter: Johnny Wey
            Priority: Minor


While using method chaining (see http://martinfowler.com/dslwip/MethodChaining.html) for our domain objects, we noticed that Struts doesn't seem to understand the object's return reference for automatic object population from the page's form parameters.  We get the following message when trying to set parameters in this domain objects:

ERROR ParametersInterceptor.setParameters()204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting '[domainProperty]' on 'class [our action]': Error setting expression '[ourExpression]' with value '[Ljava.lang.String;@81b051'

(The items in [ ] I have replaced with generic descriptions of the specific values)

Removing the returned reference value fixes the problem, and the interceptor runs as advertised.

Thanks!
Johnny Wey



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


[jira] Closed: (WW-2534) Parameters interceptor does not understand method chaining

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes Wannemacher closed WW-2534.
-------------------------------

    Resolution: Won't Fix

I agree with Dave, the method chaining pattern commonly used like in JQuery doesn't fit in well with simple JavaBeans. I'm closing this for now since no one else has weighed in with a good way to approach it. A patch would be welcome, but I think adding support for this would require quite a bit of refactoring.

> Parameters interceptor does not understand method chaining 
> -----------------------------------------------------------
>
>                 Key: WW-2534
>                 URL: https://issues.apache.org/struts/browse/WW-2534
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Interceptors
>    Affects Versions: 2.0.11
>            Reporter: Johnny Wey
>            Priority: Minor
>             Fix For: Future
>
>
> While using method chaining (see http://martinfowler.com/dslwip/MethodChaining.html) for our domain objects, we noticed that Struts doesn't seem to understand the object's return reference for automatic object population from the page's form parameters.  We get the following message when trying to set parameters in this domain objects:
> ERROR ParametersInterceptor.setParameters()204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting '[domainProperty]' on 'class [our action]': Error setting expression '[ourExpression]' with value '[Ljava.lang.String;@81b051'
> (The items in [ ] I have replaced with generic descriptions of the specific values)
> Removing the returned reference value fixes the problem, and the interceptor runs as advertised.
> Thanks!
> Johnny Wey

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


[jira] Updated: (WW-2534) Parameters interceptor does not understand method chaining

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2534:
--------------------------

    Fix Version/s: Future
       Issue Type: Improvement  (was: Bug)

> Parameters interceptor does not understand method chaining 
> -----------------------------------------------------------
>
>                 Key: WW-2534
>                 URL: https://issues.apache.org/struts/browse/WW-2534
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Interceptors
>    Affects Versions: 2.0.11
>            Reporter: Johnny Wey
>            Priority: Minor
>             Fix For: Future
>
>
> While using method chaining (see http://martinfowler.com/dslwip/MethodChaining.html) for our domain objects, we noticed that Struts doesn't seem to understand the object's return reference for automatic object population from the page's form parameters.  We get the following message when trying to set parameters in this domain objects:
> ERROR ParametersInterceptor.setParameters()204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting '[domainProperty]' on 'class [our action]': Error setting expression '[ourExpression]' with value '[Ljava.lang.String;@81b051'
> (The items in [ ] I have replaced with generic descriptions of the specific values)
> Removing the returned reference value fixes the problem, and the interceptor runs as advertised.
> Thanks!
> Johnny Wey

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


[jira] Commented: (WW-2534) Parameters interceptor does not understand method chaining

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43459#action_43459 ] 

Dave Newton commented on WW-2534:
---------------------------------

Method chaining doesn't follow the JavaBean spec; the expectation is that properties will follow the JavaBean convention.

I'm not closing this issue as another committer may want to add more, but this isn't a bug, it's expected behavior.

> Parameters interceptor does not understand method chaining 
> -----------------------------------------------------------
>
>                 Key: WW-2534
>                 URL: https://issues.apache.org/struts/browse/WW-2534
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.0.11
>            Reporter: Johnny Wey
>            Priority: Minor
>
> While using method chaining (see http://martinfowler.com/dslwip/MethodChaining.html) for our domain objects, we noticed that Struts doesn't seem to understand the object's return reference for automatic object population from the page's form parameters.  We get the following message when trying to set parameters in this domain objects:
> ERROR ParametersInterceptor.setParameters()204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting '[domainProperty]' on 'class [our action]': Error setting expression '[ourExpression]' with value '[Ljava.lang.String;@81b051'
> (The items in [ ] I have replaced with generic descriptions of the specific values)
> Removing the returned reference value fixes the problem, and the interceptor runs as advertised.
> Thanks!
> Johnny Wey

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