Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C611A1017F for ; Tue, 22 Oct 2013 13:24:42 +0000 (UTC) Received: (qmail 15939 invoked by uid 500); 22 Oct 2013 13:24:42 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 15915 invoked by uid 500); 22 Oct 2013 13:24:42 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 15842 invoked by uid 99); 22 Oct 2013 13:24:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 13:24:42 +0000 Date: Tue, 22 Oct 2013 13:24:42 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5351) Support @DefaultValue with @Multipart 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/CXF-5351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801800#comment-13801800 ] Sergey Beryozkin commented on CXF-5351: --------------------------------------- Actually, @FormParam should work with simple multiparts, can you double check please ? If so then we'd consider this issue being resolved > Support @DefaultValue with @Multipart > ------------------------------------- > > Key: CXF-5351 > URL: https://issues.apache.org/jira/browse/CXF-5351 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Affects Versions: 2.7.7 > Reporter: Fabien Thouny > Priority: Minor > > It would be nice to be able to use @DefaultValue with @Multipart like we do other @*Param > {code} > @POST > @Consumes("multipart/form-data") > @Produces("application/xml") > Response someResource( > @DefaultValue("default value") @Multipart(value = "someParam", required = "false") String someParam); > {code} > I'm not sure if "required=false" should be mandatory. Perhaps it should be implied by @DefaultValue ? -- This message was sent by Atlassian JIRA (v6.1#6144)