On Mon, May 23, 2011 at 13:26, Brian Leathem <span dir="ltr"><<a href="mailto:bleathem@gmail.com">bleathem@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Thanks for bringing this up Jose,<br>
<br>
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:<br>
<br>
1) Do nothing. Wait until the issue is fixed upstream, with an
appropriate FAQ entry<br>
<br>
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.<br>
<br>
3) Provide a new component that uses facets. When upstream has been
fixed, deprecate this component.<br>
<br>
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!<br></div></blockquote><div><br></div><div>#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.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">
Thanks,<br>
Brian Leathem<br>
<br>
[1] <span style="font-size:10pt;color:black" lang="EN-US"></span><a href="http://java.net/jira/browse/JAVASERVERFACES-1991" target="_blank">http://java.net/jira/browse/JAVASERVERFACES-1991</a><div><div></div><div class="h5">
<br>
<br>
<br>
<br>
On 05/18/2011 12:14 PM, José Rodolfo Carrijo de Freitas wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:black">Hello
guys,</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black" lang="EN-US">I’m working on the issue <a href="https://issues.jboss.org/browse/SEAMFACES-93" target="_blank">https://issues.jboss.org/browse/SEAMFACES-93</a>.</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black" lang="EN-US">I did some tests and it seems to be a problem
with mojarra implementation, there’s a registered issue
about that:</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black" lang="EN-US"><a href="http://java.net/jira/browse/JAVASERVERFACES-1991" target="_blank">http://java.net/jira/browse/JAVASERVERFACES-1991</a>
which is linked to <a href="http://java.net/jira/browse/JAVASERVERFACES-2040" target="_blank">http://java.net/jira/browse/JAVASERVERFACES-2040</a>
that has a patch</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black" lang="EN-US">but was not applied yet.</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black" lang="EN-US">Brian suggested to use a workaround with facets
as suggested in 1991 JSF issue, at least until we have an
applied patch for that.</span></p>
<p><span style="font-size:10pt" lang="EN-US">I
made a preliminary test and it seems to work but it changes
(big change I'd say) the way one uses the component</span></p>
<p><span style="font-size:10pt" lang="EN-US">From
this:</span></p>
<p><span style="font-size:10pt" lang="EN-US"><sc:inputContainer
label="Name"
required="true"><br>
<h:inputText id="name" required="true" size="50"
maxlength="50" value="#{testBean.name}" label="Name"/><br>
</sc:inputContainer></span></p>
<p><span style="font-size:10pt" lang="EN-US">To
this:</span></p>
<p><span style="font-size:10pt" lang="EN-US"><sc:inputContainer
label="Name"
required="true"><br>
<f:facet name="inputContainerFacet"><br>
<h:inputText id="name" required="true" size="50"
maxlength="50" value="#{testBean.name}" label="Name"/><br>
</f:facet> <br>
</sc:inputContainer><br>
<br>
<br>
</span></p>
<p><span style="font-size:10pt" lang="EN-US">Do
you have any others suggestions or if you don´t have a
suggestion, what do you think about changing the component
usage?</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black" lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US">José Freitas</span></p>
</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
seam-dev mailing list
<a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jason Porter<br><a href="http://lightguard-jp.blogspot.com" target="_blank">http://lightguard-jp.blogspot.com</a><br><a href="http://twitter.com/lightguardjp" target="_blank">http://twitter.com/lightguardjp</a><br>
<br>Software Engineer<br>Open Source Advocate<br>Author of Seam Catch - Next Generation Java Exception Handling<br><br>PGP key id: 926CCFF5<br>PGP key available at: <a href="http://keyserver.net" target="_blank">keyserver.net</a>, <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>