You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-dev@incubator.apache.org by Adam Winer <aw...@gmail.com> on 2006/12/08 04:06:08 UTC
partialTriggers and naming containers
Currently, partialTriggers works great within a naming container, but
not so great across naming containers:
<f:subview id="first">
<... id="foo"/>
</f:subview>
<f:subview id="second">
<.... partialTriggers="???"/>
</f:subview>
The only syntax that'll work in this case is partialTriggers=":first:foo".
But that's brittle - add another level of naming container that
both are in, and it breaks - you'd have to switch to
":somethingNew:first:foo". All a major pain when you're trying
to write reusable blocks of content.
So, to fix this, I'd like to support some extra syntax like ".."
in file paths. I'm thinking "::" to go up a level. Maybe ":::"
to go up two, etc.? So, partialTriggers="::first:foo" would work.
How's this sound?
-- Adam
Re: partialTriggers and naming containers
Posted by venkata guddanti <ve...@gmail.com>.
+1 to "::" syntax.
Can we also enhance the partialTriggers such that if we do not find a
component inside the naming container, we automatically look
for it using the parent component?
Of course "::" syntax is more predictable.
Regards,
Venkata
On 12/8/06, Matthias Wessendorf <ma...@apache.org> wrote:
>
> > So, to fix this, I'd like to support some extra syntax like ".."
> > in file paths. I'm thinking "::" to go up a level. Maybe ":::"
> > to go up two, etc.? So, partialTriggers="::first:foo" would work.
> >
> > How's this sound?
>
> Interesting idea. A ".." like approach for sorta navigation inside the
> component tree sounds good for me.
>
> I think the problem is the same with the for attribute (like on
> <message />) when refering to a UIComponent outside of the current NC.
>
> To make it short => +1
>
> -M
>
> > -- Adam
> >
>
>
> --
> Matthias Wessendorf
> http://tinyurl.com/fmywh
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>
Re: partialTriggers and naming containers
Posted by Matthias Wessendorf <ma...@apache.org>.
> So, to fix this, I'd like to support some extra syntax like ".."
> in file paths. I'm thinking "::" to go up a level. Maybe ":::"
> to go up two, etc.? So, partialTriggers="::first:foo" would work.
>
> How's this sound?
Interesting idea. A ".." like approach for sorta navigation inside the
component tree sounds good for me.
I think the problem is the same with the for attribute (like on
<message />) when refering to a UIComponent outside of the current NC.
To make it short => +1
-M
> -- Adam
>
--
Matthias Wessendorf
http://tinyurl.com/fmywh
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com