Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D0F294E7 for ; Fri, 30 Dec 2011 17:46:55 +0000 (UTC) Received: (qmail 65558 invoked by uid 500); 30 Dec 2011 17:46:54 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 65494 invoked by uid 500); 30 Dec 2011 17:46:54 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 65487 invoked by uid 99); 30 Dec 2011 17:46:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2011 17:46:54 +0000 X-ASF-Spam-Status: No, hits=-2001.3 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2011 17:46:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A608C1317E9 for ; Fri, 30 Dec 2011 17:46:30 +0000 (UTC) Date: Fri, 30 Dec 2011 17:46:30 +0000 (UTC) From: "Charlie Mordant (Commented) (JIRA)" To: dev@myfaces.apache.org Message-ID: <1866539509.54223.1325267190681.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1625338908.13526.1320829671585.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MYFACES-3396) Make an helper class to configure Myfaces validator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-3396?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 177710#comment-13177710 ]=20 Charlie Mordant commented on MYFACES-3396: ------------------------------------------ Forget this, I just tested the injection on the servletConetxt and it's Ok = ;). Thank you so much! =20 > Make an helper class to configure Myfaces validator > --------------------------------------------------- > > Key: MYFACES-3396 > URL: https://issues.apache.org/jira/browse/MYFACES-3396 > Project: MyFaces Core > Issue Type: New Feature > Environment: equinox/Felix > Reporter: Charlie Mordant > > Hi, > I made bean validation working well in an osgi environment.=20 > The problem is that it need to export the validator 'by hand'. > As myfaces detects Hibernate validator automatically detected Hibernate i= mplementation, I'm not able to wire these two framework. > It would be cool to make and helper class allowing to manually wire jsr 3= 03 implementation and Myfaces. > I made an example of a running bean validation implementation in an osgi = environment: > http://hudson.osgiliath.net/job/orthank-sample%20Tag/ws/ > In order to compile, you juste need to have maven 3 and run: mvn clean in= stall -DskipTests=3Dtrue (integration tests are not stable for now). > then, in order to launch run: mvn pax:provision -Dframework=3Dequinox (or= -Dframework=3Dfelix) and point your browser to http://localhost:8080/net.o= sgiliath.orthank-sample.java.web.simple_1.0.1.SNAPSHOT > You'll be able to say hello with web services. > You can d=C3=A9sactivate ws client module to run it without ws. > To test validation, try to enter an empty text in the input, you'll be re= directed to an error page. > If Myfaces had this helper, a validation message could be shown to the us= er. > Regards, Charlie (tcharl on twitter, cmordant1@gmail.com on gtalk)=20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira