Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ED7D10E45 for ; Tue, 9 Dec 2014 18:18:14 +0000 (UTC) Received: (qmail 78970 invoked by uid 500); 9 Dec 2014 18:18:12 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 78932 invoked by uid 500); 9 Dec 2014 18:18:12 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 78921 invoked by uid 99); 9 Dec 2014 18:18:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 18:18:12 +0000 Date: Tue, 9 Dec 2014 18:18:12 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4427) Converters no longer applied to values coming from the context MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14239778#comment-14239778 ] ASF GitHub Bot commented on WW-4427: ------------------------------------ Github user lukaszlenart commented on a diff in the pull request: https://github.com/apache/struts/pull/32#discussion_r21548312 --- Diff: xwork-core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java --- @@ -351,6 +351,8 @@ private Object tryFindValue(String expr, Class asType) throws OgnlException { value = getValue(expr, asType); if (value == null) { value = findInContext(expr); + final XWorkConverter conv = ((Container)getContext().get(ActionContext.CONTAINER)).getInstance(XWorkConverter.class); --- End diff -- Why do you looking for Converter instead of `@Inject` it? You can inject it with ```java private XWorkConverter conv; @Inject public void setXWorkConverter(XWorkConverter conv) { this.conv = conv; } ``` > Converters no longer applied to values coming from the context > -------------------------------------------------------------- > > Key: WW-4427 > URL: https://issues.apache.org/jira/browse/WW-4427 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.3.16.1 > Reporter: Przemek Bruski > Fix For: 2.3.x > > Attachments: struts_patch.diff > > > As a side effect of 4c45a9433bae5fe3fcad5acd95e4f437e548d075 , conversion is no longer applied to values coming directly from OGNL context. -- This message was sent by Atlassian JIRA (v6.3.4#6332)