[jsr-314-open] DRY and form with JSF 2

Martin Marinschek mmarinschek at apache.org
Thu Oct 8 20:46:31 EDT 2009


FWIW, MyFaces originally implemented a solution for this, but then
dropped it from the IMPL and moved it to Tomahawk, to remain
compatible.

regards,

Martin

On Tue, Sep 15, 2009 at 3:24 PM, Dan Allen <dan.j.allen at gmail.com> wrote:
> +1. Exactly what I was thinking.
>
> It appears we have two correlated issues here. I've found a need for the
> backreference in the past. It can be linked at build time. Of course,
> programmatic access would need to be aware of it if the tree is modified in
> a way that breaks the reference. That should be mentioned in the issue
> report, not necessarily solved here.
>
> - Dan Allen
>
> Sent from my Android-powered G1 phone:
> An open platform for carriers, developers
> and consumers.
>
> On Sep 15, 2009 7:49 AM, "Norbert.Truchsess at t-online.de"
> <Norbert.Truchsess at t-online.de> wrote:
>
> it would be way less overhead, if there would be a reference back from
> the inputText to the outputLabel that is actually stored with the
> inputText and not just logically defined by the 'for' attribute of
> label. If a reference to the outputLabel would be stored in a collection
> with the inputText by setting the 'for'-attribute on outputLabel it
> could be just taken from there and wouln't require runtime-walk of the
> component-tree to be retrieved.
>
> Such a mechanism to define (and resolve) inter-component-relationships
> more efficiently would be helpfull in many other cases where components
> logically belonging together are not in a parent-child (or parent-facet)
> relationship. A good (and recently discussed) example is form-based
> validation by a custom-validator where the validator would have to get
> access to (logically, but not nessesary hirarchically) related
> components as well.
>
> - Norbert
>
> -----Original Message----- > Date: Mon, 14 Sep 2009 21:17:22 +0200 >
> Subject: Re: DR...
>
>>    On Mon, Sep 14, 2009 at 1:03 PM,  wrote:
>
>>              i think that could be a good enhancement.
>
>>  Le 14 sept. 2009 à 18:39, Dan Allen  a écrit :
>
>> >                            I've run into the same problem every time > I
>> > get to polishing a JSF...
>
>>        On Sat, Sep 12, 2009 at 9:24 AM, Damien Gouyette  wrote:
>
>>                 Hello,         >                   I have a lot of forms
>> to do and i don't unders...
>
>>                   if i don't set label on inputText, i have an error >
>> message like :         >  ...
>
>> a date. Example: 12/09/2009 instead of _
>>                            CLIENT\'S BIRTHDATE : 'a' could not be
>
>> understood as a date. Example: 12/09/2009         >                   Can
>> you reuse outputLabel v...
>
>>        http://mojavelinux.com [4]
>>        http://mojavelinux.com/seaminaction [5]
>>        http://www.google.com/profiles/dan.j.allen [6]
>
>> >  -- >  Dan Allen >  Senior Software Engineer, Red Hat | Author of Seam
>> > in Action >  Registered...
>
>>    http://mojavelinux.com [7]
>>    http://mojavelinux.com/seaminaction [8]
>>    http://in.relation.to/Bloggers/Dan [9]
>>
>>
>> Links:
>> ------
>> [1] mailto:damien.gouyette at gmail.com
>> [2] mailto:dan.j.allen at gmail.com
>> [3] mailto:damien.gouyette at gmail.com
>> [4] http://mojavelinux.com
>> [5] http://mojavelinux.com/seaminaction
>> [6] http://www.google.com/profiles/dan.j.allen
>> [7] http://mojavelinux.com
>> [8] http://mojavelinux.com/seaminaction
>> [9] http://in.relation.to/Bloggers/Dan
>>
>
>
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces




More information about the jsr-314-open-mirror mailing list