[seam-dev] seamfaces UIInputContainer problems

Jason Porter lightguard.jp at gmail.com
Wed Jun 1 00:29:46 EDT 2011


On Mon, May 23, 2011 at 13:26, Brian Leathem <bleathem at gmail.com> wrote:

>  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!
>

#3 certainly seems like a good route to go to me. Yes it duplicates things a
little, but it also makes it easier for the end user. You could also tell
them how to fix it in their app and tell them to vote for the bug, maybe
things will get moving a bit faster.


> 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 listseam-dev at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/seam-dev
>
>
>
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev
>
>


-- 
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp

Software Engineer
Open Source Advocate
Author of Seam Catch - Next Generation Java Exception Handling

PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20110531/588cd2d0/attachment-0001.html 


More information about the seam-dev mailing list