myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Korhonen, Kalle" <>
Subject RE: Vote for new displayValueOnly attribute
Date Tue, 10 May 2005 19:07:16 GMT

> -----Original Message-----
> From: Grant Smith [] 
> Sent: Tuesday, May 10, 2005 11:30 AM
> To: MyFaces Development
> Subject: Re: Vote for new displayValueOnly attribute
> Korhonen, Kalle wrote:
> >For Grant.. Yeah, the component would render either an input 
> component 
> >or an output component, e.g. editableText would render 
> either inputText 
> >or outputText.
> >
> I would have to say that I would be very much against any 
> component that "mutates" into something else and can not be 
> manipulated consistently through binding. Unless someone can 
> assure me that this will not be the case, I'm veering in the 
> direction of a negative vote on both suggestions.

It doesn't mutate, it'd be an aggregate component conditionally
rendering either inputText or outputText as its children. There are
other aggregate component that implicitly render other components. The
idea with editable family of components was to avoid semantic problem
with x:inputText not directly mapped to/implementing HTML input (like
h:inputText) but of course, nothing says that x:inputText should be tied
to HTML component.

While discussing this has taken a long time, I don't see any wrong in
it. It's still cheap and easy compared to implementing different
components, then comparing their implementations, fixing possible bugs


View raw message