[jsr-314-open] DRY and form with JSF 2
Dan Allen
dan.j.allen at gmail.com
Tue Sep 15 09:24:54 EDT 2009
+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: [jsr-314-open] 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jsr-314-open-mirror/attachments/20090915/7def8080/attachment.html
More information about the jsr-314-open-mirror
mailing list