Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 84179 invoked from network); 2 Jun 2010 10:18:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jun 2010 10:18:48 -0000 Received: (qmail 48187 invoked by uid 500); 2 Jun 2010 10:18:48 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 48161 invoked by uid 500); 2 Jun 2010 10:18:47 -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 48152 invoked by uid 99); 2 Jun 2010 10:18:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 10:18:47 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Why-Deeps@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Jun 2010 10:18:41 +0000 Received: (qmail 31573 invoked by uid 0); 2 Jun 2010 10:18:19 -0000 Received: from 145.228.201.80 by www081.gmx.net with HTTP; Wed, 02 Jun 2010 12:18:17 +0200 (CEST) Content-Type: text/plain; charset="utf-8" Date: Wed, 02 Jun 2010 12:18:16 +0200 From: "Rene Stehr" In-Reply-To: Message-ID: <20100602101816.173190@gmx.net> MIME-Version: 1.0 References: <03B4D020E5904E3492EFA7DBACAED42F@b266er> <20100602080840.173190@gmx.net> <20100602092216.140060@gmx.net> Subject: Re: ExtVal: ELHelper composite component problem To: "MyFaces Discussion" X-Authenticated: #6438705 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX19YpxoHnCNY12lu0djLxYw7LUd8cevpdoKtgZ/8LR vG6rOt525Z/q1gdO30GJjg/iPJA4Dh2iGilA== Content-Transfer-Encoding: 8bit X-GMX-UID: vkp0bMMieSEqbVBcCXQh2uJ+IGRvbwCZ X-FuHaFi: 0.47999999999999998 Hi Gerhard, thank you for your support. I will check the recommended solutions. Regards, Rene -------- Original-Nachricht -------- > Datum: Wed, 2 Jun 2010 11:55:40 +0200 > Von: Gerhard Petracek > An: MyFaces Discussion > Betreff: Re: ExtVal: ELHelper composite component problem > hi rene, > > in addition to the suggestion of my previous e-mail: > > you can also use a custom ProcessedInformationRecorder to create a > (request > scoped) storage which provides the required information. > > regards, > gerhard > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > > > > 2010/6/2 Rene Stehr > > > > > Hello, > > > > I need for each UIInput object the backing bean and the attribute name > that > > are bound to this component. > > > > A simple example: > > > > // sample Backing Bean > > @ManagedBean(name="person") > > class Person{ > > private String name; > > private String surname; > > private Address address; > > ... > > } > > > > // sample xhtml-page > > > > > > > > > > > > > > > > > > The information I need is the value binding at runtime. > > For this example, that would be: > > 1. inputField1 => base object: person, attribute name:name > > 2. inputField2 => base object: person, attribute name:surname > > 3. inputField3 => base object: address, attribute name:zipcode > > > > If a have such a map, I am able to map the backend event "error occured > at > > 'Person.address.zipcode'" to the corresponding UIComponent. > > > > The simplest way to get this data is the method > > ELHelper.getPropertyDetailsOfValueBinding(), which unfortunately does > not > > work for the inputField3. > > > > I hope that descibes my concern in more detail. > > > > Regards, > > Rene > > > > > > -------- Original-Nachricht -------- > > > Datum: Wed, 2 Jun 2010 03:36:27 -0500 > > > Von: Leonardo Uribe > > > An: MyFaces Discussion > > > Betreff: Re: ExtVal: ELHelper composite component problem > > > > > Hi > > > > > > It could be good to have more information about what you are trying to > > do. > > > In myfaces there is a special code that handles "#{cc}" resolution, > using > > > the Location object to identify the right composite component from the > > > composite component stack, so in theory mojarra could have something > > > similar > > > and that could be the source of the problem. > > > > > > regards, > > > > > > Leonardo Uribe > > > > > > 2010/6/2 Rene Stehr > > > > > > > > > > > Dear Gerhard, > > > > > > > > thank you for the quick reply. I am using the ExtVal library in my > > > custom > > > > code to get further information about the value binding in order to > map > > > > errors (from our backend) that occur at the Invoke Application phase > to > > > the > > > > corresponding UIInput-fields. That means, I need to know for each > > > > UIInput-object the bound backing bean object and the attribute name, > > > both > > > > are described by the EL expression in the value-attribute of the > > UIInput > > > > (e.g., #{cc.attrs.person.name} -> Backing Bean object is > > > "person1:Person", > > > > attribute name is "name"; person1 is just an example of an existing > > > object > > > > at runtime). > > > > > > > > If the ELHelper is not able to resolve "cc.attrs" expressions, I > would > > > be > > > > grateful if you could recommend me another solution. > > > > > > > > Regards, > > > > Rene > > > > > > > > -------- Original-Nachricht -------- > > > > > Datum: Wed, 2 Jun 2010 00:39:17 +0200 > > > > > Von: Gerhard Petracek > > > > > An: MyFaces Discussion > > > > > Betreff: Re: ExtVal: ELHelper composite component problem > > > > > > > > > hi rene, > > > > > > > > > > are you using the implementation provided by extval for your > custom > > > code? > > > > > or > > > > > are you just using extval and the problem occurs during the > > validation > > > > > process? > > > > > > > > > > regards, > > > > > gerhard > > > > > > > > > > http://www.irian.at > > > > > > > > > > Your JSF powerhouse - > > > > > JSF Consulting, Development and > > > > > Courses in English and German > > > > > > > > > > Professional Support for Apache MyFaces > > > > > > > > > > > > > > > 2010/6/2 Rene Stehr > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > > > > > I am using the ELHelper class in order to achieve information > about > > > the > > > > > > value binding of UIComponents (the binded attribute and the > > > > > corresponding > > > > > > backing bean). This information can be received by the method > > > > > > „ELHelper.getPropertyDetailsOfValueBinding(UIComponent)“, > which > > > > > returns a > > > > > > PropertyDetails-object that contains the data I need. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here is the code: > > > > > > > > > > > > ELHelper helper = ExtValUtils.getELHelper(); > > > > > > > > > > > > PropertyDetails details = > > > > helper.getPropertyDetailsOfValueBinding(comp); > > > > > // > > > > > > The comp-Object is an instance of UIInput. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This solution works very well, however, if the comp-object is > part > > > of a > > > > > > custom Composite Component, the details-object is always null. I > > > have > > > > > > started to debug the ELHelper but until now I have no clue how > it > > > works > > > > > in > > > > > > detail. I suppose that the problem is caused by the > “cc.attrs” > > > > > expression > > > > > > in > > > > > > the value-binding of the composite components, e.g., > > > > > > #{cc.attrs.person.name}, that probably can not be resolved. > > > > > > > > > > > > I also tried to use the ValueExpression directly but this did > not > > > work > > > > > as > > > > > > well. > > > > > > > > > > > > > > > > > > > > > > > > Does anyone understand that problem or even have a solution? > > > > > > > > > > > > > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > Regards, > > > > > > > > > > > > Rene > > > > > > > > > > > > > > > > > > > > > > > > ----------------- > > > > > > > > > > > > Facts: > > > > > > > > > > > > JSF: mojarra 2.0.2 > > > > > > > > > > > > ExtVal: 2.0.4 Snapshot > > > > > > > > > > > > Server: Apache Tomcat 6.0.26 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > > > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > > > > > > > > -- > > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > > -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01