<HTML dir=ltr><HEAD><TITLE>Re: More spec issues</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText16451 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I'm working on MyFaces. Alright for the other comments.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>~ Simon</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New"></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> JSR 314 Open Mailing list on behalf of Ed Burns<BR><B>Sent:</B> Fri 3/27/2009 9:55 PM<BR><B>To:</B> JSR-314-OPEN@JCP.ORG<BR><B>Subject:</B> Re: More spec issues<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>&gt;&gt;&gt;&gt;&gt; On Fri, 27 Mar 2009 11:15:08 -0400, Simon Lessard &lt;Simon_Lessard@DMR.CA&gt; said:<BR><BR>SL&gt; Hi all,<BR>SL&gt; I have a couple more issues I found while implementing the latest<BR>SL&gt; spec:<BR><BR>Thanks.&nbsp; Can you share with the EG if you're doing a complete new Impl?<BR>This would be big news for me because AFAIK, Sun and Apache are the only<BR>ones doing new JSF2 impls.<BR><BR>SL&gt; * ViewHandler.FACELETS_VIEW_MAPPINGS_PARAM_NAME: The doc says that<BR><BR>I'll let others chime in on that one.&nbsp; The behavior as specified seems<BR>useful to me.<BR><BR>SL&gt; * ViewHandler.getPageDeclarationLanguage(): JavaDoc gives two<BR>SL&gt; default implementations, one invoking the factory from FactoryFinder<BR>SL&gt; (useful) and the throws UnsupportedOperationException<BR>SL&gt; one. Personally, I'd keep only the real method here as the<BR>SL&gt; processing doesn't involve any private/non standard API;<BR><BR>I see your point, but we did it this way to allow JSF 1.2 ViewHandlers<BR>to easily be detected, so we'll leave this the same as well.<BR><BR>SL&gt; * AjaxBehavior.getHints(): JavaDoc says it should return an emprt<BR>SL&gt; Set (like ClientBehaviorBase), making the method declaration in<BR>SL&gt; AjaxBehavior useless. However Mojarra returns a Set containing<BR>SL&gt; SUBMITTING, so I assume the code is right and the JavaDoc wrong<BR>SL&gt; here;<BR><BR>Roger integrted this one.<BR><BR>SL&gt; * UIComponentBase.initialStateMarked(): This method is not defined<BR>SL&gt; in the JavaDoc while the two others from PartialStateHolder are.<BR><BR>I think this one's ok as is.<BR><BR>SL&gt; * ExternalContext.getRequestCookieMap(): Can the return value be<BR>SL&gt; changed from Map&lt;String,Object&gt; to Map&lt;String, Cookie&gt; please?<BR><BR>We can't do that because Cookie is declared in the Servlet spec, and<BR>Portlet people wouldn't be happy if we added that to our API.<BR><BR>SL&gt; * PageDeclarationLanguageFactory.getPageDeclarationLanguage(String<BR>SL&gt; viewId): The JavaDoc says that ClassNotFoundException should be<BR>SL&gt; thrown when no valid PLD can be found. However,<BR>SL&gt; ClassNotFoundException is a checked exception and the method does<BR>SL&gt; not that this exception in its throws clause. The doc should either<BR>SL&gt; says to wrap it in a FacesException or add ClassNotFoundException to<BR>SL&gt; the throws clause;<BR><BR>I've removed the @throws ClassNotFoundException<BR><BR>SL&gt; * ExceptionHandler.handle(): The spec specifies that this method<BR>SL&gt; should only throw a FacesException if an internal error occurs while<BR>SL&gt; handling the exception. However, it also says to throw either<BR>SL&gt; ServletException or PortletException depending on the environment<BR>SL&gt; and those are checked exception not declared in the throws<BR>SL&gt; clause. Mojarra wrap them in a FacesException, so the spec mighth<BR>SL&gt; ave to be ajusted to reflect that.<BR><BR>SL&gt; That's all for now,<BR><BR><BR><BR>SL&gt; ~ Simon<BR><BR><BR><BR><BR>SL&gt; ________________________________<BR><BR>SL&gt; From: JSR 314 Open Mailing list on behalf of Ed Burns<BR>SL&gt; Sent: Fri 3/27/2009 10:30 AM<BR>SL&gt; To: JSR-314-OPEN@JCP.ORG<BR>SL&gt; Subject: Rename: PDL-&gt;VDL<BR><BR><BR><BR>SL&gt; We have "View" everywhere else, so we should rename<BR>SL&gt; PageDeclarationLanguage to ViewDeclarationLanguage.<BR><BR>SL&gt; I'm taking care of this now.<BR><BR>SL&gt; Ed<BR>SL&gt; --<BR>SL&gt; | ed.burns@sun.com&nbsp; | office: 408 884 9519 OR x31640<BR>SL&gt; | homepage:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <A href="http://ridingthecrest.com/">http://ridingthecrest.com/</A><BR><BR><BR>SL&gt; &lt;HTML dir=ltr&gt;&lt;HEAD&gt;&lt;TITLE&gt;Rename: PDL-&gt;VDL&lt;/TITLE&gt;<BR>SL&gt; &lt;META http-equiv=Content-Type content="text/html; charset=unicode"&gt;<BR>SL&gt; &lt;META content="MSHTML 6.00.6000.16674" name=GENERATOR&gt;&lt;/HEAD&gt;<BR>SL&gt; &lt;BODY&gt;<BR>SL&gt; &lt;P&gt;&lt;FONT face=Arial size=2&gt;Hi all,&lt;/FONT&gt;&lt;/P&gt;<BR>SL&gt; &lt;P&gt;&lt;FONT face=Arial size=2&gt;I have a couple more issues I found while implementing the latest spec:&lt;/FONT&gt;&lt;/P&gt;<BR>SL&gt; &lt;UL&gt;<BR>SL&gt; &lt;LI&gt;&lt;FONT face=Arial size=2&gt;ViewHandler.FACELETS_VIEW_MAPPINGS_PARAM_NAME: The doc says that the implementation should also read original Facelets' param for the purpose of defining mappings. I don't think that's a good idea. Facelets was not a standard up to that point and users shouldn't really expect no migration effort at all. I know that enforcing that param would allow xisting applications using facelet.jar to be deployed in 2.0 environment, but to my knòwledge, no other spec read some non standard context params (I may be wrong though). If we do enforce the original parameters, then we'll be stuck with it forever so at least let use only that one and not define a new one;&lt;/FONT&gt;&lt;/LI&gt;<BR>SL&gt; &lt;LI&gt;&lt;FONT face=Arial size=2&gt;ViewHandler.getPageDeclarationLanguage(): JavaDoc gives two default implementations, one invoking the factory from FactoryFinder (useful) and the throws UnsupportedOperationException one. Personally, I'd keep only the real method here as the processing doesn't involve any private/non standard API;&lt;/FONT&gt;&lt;/LI&gt;<BR>SL&gt; &lt;LI&gt;&lt;FONT face=Arial size=2&gt;AjaxBehavior.getHints(): JavaDoc says it should return an emprt Set (like ClientBehaviorBase), making the method declaration in AjaxBehavior useless. However Mojarra returns a Set containing SUBMITTING, so I assume the code is right and the JavaDoc wrong here;&lt;/FONT&gt;&lt;/LI&gt;<BR>SL&gt; &lt;LI&gt;&lt;FONT face=Arial size=2&gt;UIComponentBase.initialStateMarked(): This method is not defined in the JavaDoc while the two others from PartialStateHolder are.&lt;/FONT&gt;&lt;/LI&gt;<BR>SL&gt; &lt;LI&gt;&lt;FONT face=Arial size=2&gt;ExternalContext.getRequestCookieMap(): Can the return value be changed from Map&amp;lt;String,Object&amp;gt; to Map&amp;lt;String, Cookie&amp;gt; please?&lt;/FONT&gt;&lt;/LI&gt;<BR>SL&gt; &lt;LI&gt;&lt;FONT face=Arial size=2&gt;PageDeclarationLanguageFactory.getPageDeclarationLanguage(String viewId): The JavaDoc says that ClassNotFoundException should be thrown when no valid PLD can be found. However, ClassNotFoundException is a checked exception and the method does not that this exception in its throws clause. The doc should either says to wrap it in a FacesException or add ClassNotFoundException to the throws clause;&lt;/FONT&gt;&lt;/LI&gt;<BR>SL&gt; &lt;LI&gt;&lt;FONT face=Arial size=2&gt;ExceptionHandler.handle(): The spec specifies that this method should only throw a FacesException if an internal error occurs while handling the exception. However, it also says to throw either ServletException or PortletException depending on the environment and those are checked exception not declared in the throws clause. Mojarra wrap them in a FacesException, so the spec mighth ave to be ajusted to reflect that.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;<BR>SL&gt; &lt;P&gt;&lt;FONT face=Arial size=2&gt;That's all for now,&lt;/FONT&gt;&lt;/P&gt;<BR>SL&gt; &lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;<BR>SL&gt; &lt;P&gt;&lt;FONT face=Arial size=2&gt;~ Simon&lt;/FONT&gt;&lt;/P&gt;<BR>SL&gt; &lt;P&gt;&lt;BR&gt;&lt;/P&gt;<BR>SL&gt; &lt;DIV dir=ltr&gt;<BR>SL&gt; &lt;HR tabIndex=-1&gt;<BR>SL&gt; &lt;/DIV&gt;<BR>SL&gt; &lt;DIV dir=ltr&gt;&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; JSR 314 Open Mailing list on behalf of Ed Burns&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Fri 3/27/2009 10:30 AM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; JSR-314-OPEN@JCP.ORG&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Rename: PDL-&amp;gt;VDL&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;<BR>SL&gt; &lt;DIV&gt;<BR>SL&gt; &lt;P&gt;&lt;FONT size=2&gt;We have "View" everywhere else, so we should rename&lt;BR&gt;PageDeclarationLanguage to ViewDeclarationLanguage.&lt;BR&gt;&lt;BR&gt;I'm taking care of this now.&lt;BR&gt;&lt;BR&gt;Ed&lt;BR&gt;--&lt;BR&gt;| ed.burns@sun.com&amp;nbsp; | office: 408 884 9519 OR x31640&lt;BR&gt;| homepage:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &lt;A href="<A href="http://ridingthecrest.com/">http://ridingthecrest.com/</A>"&gt;<A href="http://ridingthecrest.com/">http://ridingthecrest.com/</A>&lt;/A&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;<BR><BR>--<BR>| ed.burns@sun.com&nbsp; | office: 408 884 9519 OR x31640<BR>| homepage:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <A href="http://ridingthecrest.com/">http://ridingthecrest.com/</A><BR></FONT></P></DIV></BODY></HTML>