Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 94047 invoked from network); 21 Jul 2010 13:10:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jul 2010 13:10:45 -0000 Received: (qmail 50701 invoked by uid 500); 21 Jul 2010 13:10:44 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 50366 invoked by uid 500); 21 Jul 2010 13:10:42 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 50358 invoked by uid 99); 21 Jul 2010 13:10:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 13:10:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gerhard.petracek@gmail.com designates 209.85.214.181 as permitted sender) Received: from [209.85.214.181] (HELO mail-iw0-f181.google.com) (209.85.214.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 13:10:34 +0000 Received: by iwn42 with SMTP id 42so8325917iwn.12 for ; Wed, 21 Jul 2010 06:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=0vbI08O1vW3SD4qGGi9sDKn9ayY2jXfoa83IP2L2Kac=; b=Tde9iWy35ry8OzAqC77ieO/fmZF8b1SZsjcYfvwmhbMPl3PGmETovq3UO8n+tflZPE YP2BBJOx8+CFZG5rUWyFb+XE0amjc5Aoqx0zKYZmkwnwYSbRSKz9ekfuDbvC8y3BKIh9 xyED7L71n8fqxBQw3aZyGEFZCt57/qH4RFz2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=TXIsbdPqUj6/SAHmvI+TrykSw5ivvVqHEpMnnPy6vjP61c5ueFyvaB8Pwy4bysUE87 Z2AxDclAOmB7R88/AyY33OLZA3MAvYateRsnMpaTR97XqKECiEhhd91HR5wHi2Qklznp QCUx5mKr7jNyF03xJMIBjmWBVeow2zBi0zoBw= Received: by 10.231.77.155 with SMTP id g27mr79496ibk.195.1279717752395; Wed, 21 Jul 2010 06:09:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.152.194 with HTTP; Wed, 21 Jul 2010 06:08:52 -0700 (PDT) In-Reply-To: <4C46E7CB.1030302@gmail.com> References: <4C437CA3.3050702@gmail.com> <4C46E7CB.1030302@gmail.com> From: Gerhard Petracek Date: Wed, 21 Jul 2010 15:08:52 +0200 Message-ID: Subject: Re: validateBean and java.lang.InstantiationException: org.apache.myfaces.extensions.validator.beanval.interceptor.BeanValidatorWrapper To: MyFaces Discussion Content-Type: multipart/alternative; boundary=000e0cd254140b6b6e048be5828a X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd254140b6b6e048be5828a Content-Type: text/plain; charset=ISO-8859-1 hi simon, ok - great to hear! yes - please file a jira issue. (as mentioned before: >please file a jira issue (new feature) for the support of f:validateBean.) regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2010/7/21 Simon Zambrovski > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Gerhard! > > thanks for the excellent job. The exception is gone. > > Should I help you to follow the community process? So should I file > the JIRA bug for it? > > Kind regards, > > Simon > > > Am 19.07.2010 07:04, schrieb Gerhard Petracek: > > i've uploaded the current snapshot to [1]. please try this new > > version. > > > > regards, gerhard > > > > [1] http://people.apache.org/~gpetracek/myfaces/extval/snapshots/ > > > > http://www.irian.at > > > > Your JSF powerhouse - JSF Consulting, Development and Courses in > > English and German > > > > Professional Support for Apache MyFaces > > > > > > 2010/7/19 Gerhard Petracek > > > >> short addition: > >> > >> with ExtVal 2 f:validateBean is ~supported. It's more a feature > >> which is prepared for the next version of ExtVal. I know what's > >> the issue here. Please file a jira issue (new feature) for the > >> support of f:validateBean. > >> > >> regards, gerhard > >> > >> > >> http://www.irian.at > >> > >> Your JSF powerhouse - JSF Consulting, Development and Courses in > >> English and German > >> > >> Professional Support for Apache MyFaces > >> > >> > >> 2010/7/19 Gerhard Petracek > >> > >> hi simon, > >>> > >>> by default extval doesn't use tags. so f:validateBean isn't > >>> supported. the typesafe alternative for using group > >>> validation,... is @BeanValidation. > >>> > >>> if you really need a tag, it's quite simple to impl. it. [1] > >>> illustrates an implementation which provides all features of > >>> @BeanValidation via a tag. > >>> > >>> regards, gerhard > >>> > >>> [1] > >>> > > http://code.google.com/p/os890/source/browse/#svn/trunk/java/web/jsf/extval.bv/tag_based_extval-bv_meta-data > >>> > >>> > >>> > http://www.irian.at > >>> > >>> Your JSF powerhouse - JSF Consulting, Development and Courses > >>> in English and German > >>> > >>> Professional Support for Apache MyFaces > >>> > >>> > >>> 2010/7/19 Simon Zambrovski > >>> > >>> Hi Folks, > >>>> > >>>> I observe a strange exception by that appears inside of the > >>>> BeanValidatorWrapper in a very specific scenario. Here is how > >>>> it goes: > >>>> > >>>> I use PrimeFaces 2.0.2 running on Mojarra JSF and using > >>>> ExtVal for Bean Validation (especially to support @Valid). It > >>>> works perfect, except for one case. If I open a popup > >>>> (p:dialog) and use a link (p:commandButton) which submits a > >>>> form which contains a f:validateBean tag setting a Bean > >>>> Validation group - an exception is thrown during an attempt > >>>> to access an non-existent default constructor in > >>>> BeanValidatorWrapper. If I remove the f:validateBean tag, > >>>> everything works fine, and if I use it not from the popup > >>>> too. Here is the VDL: > >>>> > >>>> >>>> header="Customer Search" modal="true" close="false"> >>>> id="PopupDialogForm" prependId="false"> >>>> globalOnly="true" errorClass="error" fatalClass="fatal" > >>>> infoClass="info" warnClass="warn" /> >>>> header="Customer Search"> > >>>> >>>> value="Name:" /> >>>> value="#{searchController.search.name}" > >>>> label="#{msgs.label}"> >>>> validationGroups="de.techjava.web.popup.validation.SearchGroup" > >>>> /> >>>> id="name_msg" /> >>>> action="#{searchController.doSearch}" onsuccess="if (args) { > >>>> var isValid = args.isValid; if (isValid) { > >>>> PopupDialog.hide();}}" update="@form" process="@form" /> > >>>> >>>> value="#{searchController.result}" var="item"> > >>>> > >>>> > >>>> >>>> action="#{searchController.doCancel}" > >>>> onsuccess="PopupDialog.hide()" update="@none" process="@this" > >>>> /> > >>>> > >>>> > >>>> > >>>> Any ideas? > >>>> > >>>> Kind regards, > >>>> > >>>> Simon > >>>> > >>> > >>> > >> > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkxG58sACgkQwNq/QDsDo2u+xwCeOqGDaTDYG5vJAYgNbwFZR+eS > rHgAn19a0eNFVR2z6jo1KwjfpUMNgTF8 > =Xh/9 > -----END PGP SIGNATURE----- > > --000e0cd254140b6b6e048be5828a--