[ 
http://www.stripesframework.org/jira/browse/STS-767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-767.
----------------------------

    Resolution: Fixed

Fixed for 1.5.4. Changed so it only logs the message for names that are not in 
the set StripesConstants.SPECIAL_URL_KEYS.

> Showing an error message when the parameter name is _eventName
> --------------------------------------------------------------
>
>                 Key: STS-767
>                 URL: http://www.stripesframework.org/jira/browse/STS-767
>             Project: Stripes
>          Issue Type: Bug
>    Affects Versions: Release 1.5.3
>            Reporter: Samuel Santos
>             Fix For: Release 1.5.4
>
>
> When a form is submitted via JavaScript, we need to add a hidden field with 
> the name {{_eventName}} and the value equal to the name of the handler we 
> want to be executed.
> This causes an info message to be logged. Unfortunately this message looks 
> like an error:
> {quote}
> Could not locate property of name [_eventName] on ActionBean. 
> <add_the_ExpressionException_error_message_here>
> {quote}
> Depending on the population strategy you are using, this message is logged on 
> line 130 of the DefaultPopulationStrategy class, or on line 65 of the 
> BeanFirstPopulationStrategy class (revision 1270):
> {code}
> log.info("Could not locate property of name [" + tag.getName() + "] on 
> ActionBean.", ee);
> {code}
> A quick fix would be to check the parameter name, and only log a WARNING 
> message when them name is different from {{_eventName}}:
> {code}
> if (StripesConstants.URL_KEY_EVENT_NAME.equals(tag.getName())) {
>     log.warn("Could not locate property of name [" + tag.getName() + "] on 
> ActionBean.", ee);
> }
> {code}

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

        

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to