[seam-dev] seamfaces UIInputContainer problems

Brian Leathem bleathem at gmail.com
Mon May 23 15:26:42 EDT 2011


Thanks for bringing this up Jose,

The UIInputContainer component is indeed not useful as a result of this 
JSF bug [1].  As I see it, there are three options for how Seam Faces 
can deal with this problem:

1) Do nothing.  Wait until the issue is fixed upstream, with an 
appropriate FAQ entry

2) Modify the existing component to use facet's as per Jose's 
suggestion.  When upstream has been fixed, revert back to the less 
verbose syntax without facets.

3) Provide a new component that uses facets.  When upstream has been 
fixed, deprecate this component.

Personally I think (3) is the best option, but we would love to hear 
some feedback from the community on this.  Or, if you have an alternate 
solution even better!

Thanks,
Brian Leathem

[1] http://java.net/jira/browse/JAVASERVERFACES-1991



On 05/18/2011 12:14 PM, José Rodolfo Carrijo de Freitas wrote:
>
> Hello guys,
>
> I'm working on the issue https://issues.jboss.org/browse/SEAMFACES-93.
>
> I did some tests and it seems to be a problem with mojarra 
> implementation, there's a registered issue about that:
>
> http://java.net/jira/browse/JAVASERVERFACES-1991 which is linked to 
> http://java.net/jira/browse/JAVASERVERFACES-2040 that has a patch
>
> but was not applied yet.
>
> Brian suggested to use a workaround with facets as suggested in 1991 
> JSF issue, at least until we have an applied patch for that.
>
> I made a preliminary test and it seems to work but it changes (big 
> change I'd say) the way one uses the component
>
> From this:
>
> <sc:inputContainer label="Name" required="true">
> <h:inputText id="name" required="true" size="50" maxlength="50" 
> value="#{testBean.name}" label="Name"/>
> </sc:inputContainer>
>
> To this:
>
> <sc:inputContainer label="Name" required="true">
> <f:facet name="inputContainerFacet">
> <h:inputText id="name" required="true" size="50" maxlength="50" 
> value="#{testBean.name}" label="Name"/>
> </f:facet>
> </sc:inputContainer>
>
>
> Do you have any others suggestions or if you don´t have a suggestion, 
> what do you think about changing the component usage?
>
> Best Regards,
>
> José Freitas
>
>
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20110523/c4e785a7/attachment-0001.html 


More information about the seam-dev mailing list