From users-return-60439-apmail-myfaces-users-archive=myfaces.apache.org@myfaces.apache.org Tue Jan 29 23:28:56 2013 Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63865E48C for ; Tue, 29 Jan 2013 23:28:56 +0000 (UTC) Received: (qmail 305 invoked by uid 500); 29 Jan 2013 23:28:55 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 244 invoked by uid 500); 29 Jan 2013 23:28:55 -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 Delivered-To: moderator for users@myfaces.apache.org Received: (qmail 99966 invoked by uid 99); 29 Jan 2013 11:11:43 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) X-TM-IMSS-Message-ID:<28bdc96400003892@mail.soreco.ch> From: Reto Weiss To: "users@myfaces.apache.org" Subject: ExtVal with multiple RenderKit's (Primeface + Primeface Mobile) does not work correctly Thread-Topic: ExtVal with multiple RenderKit's (Primeface + Primeface Mobile) does not work correctly Thread-Index: Ac3+EVd37rYLm4cFQmW9LnmtyJcoBQ== Date: Tue, 29 Jan 2013 11:11:10 +0000 Message-ID: <4DFB27460A8D284FA2FAC5FCA5E6D85221CAC36C@SWBNTSRV26.soreco.wan> Accept-Language: de-DE, de-CH, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.3.45] Content-Type: multipart/alternative; boundary="_000_4DFB27460A8D284FA2FAC5FCA5E6D85221CAC36CSWBNTSRV26sorec_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_4DFB27460A8D284FA2FAC5FCA5E6D85221CAC36CSWBNTSRV26sorec_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I'm using MyFaces (2.1.10) with ExtVal (2.0.6). As RenderKit's I use Primef= aces and Primefaces Mobile. This does not work because the class org.apache.myfaces.extensions.validator.core.renderkit.DefaultRenderKitWrap= perFactory is not able to handle more than one RenderKit. This is because the method c= reateWrapper caches the first RenderKit it wrappes. After that it returns t= he cached RenderKit even if the RenderKit to wrap is another one than the c= ached one. I have fixed this in my project by providing my own RenderKitWrapperFactory= : class IvyExtValRenderKitWrapperFactory extends AbstractRenderKitWrapperFact= ory { private HashMap wrappers =3D new HashMap(); @Override protected synchronized RenderKit createWrapper(RenderKit renderKit) { ExtValRenderKit wrapper =3D wrappers.get(renderKit); if (wrapper =3D=3D null) { wrapper =3D new ExtValRenderKit(renderKit); wrappers.put(renderKit, wrapper); } return wrapper; } } Do I make something wrong or is this a bug? Should I report an issue? Regards Reto Weiss Product Owner / Developer Xpert.ivy ivyTeam AG Alpenstrasse 9 6300 Zug --_000_4DFB27460A8D284FA2FAC5FCA5E6D85221CAC36CSWBNTSRV26sorec_--