[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

  • From: Leonardo Uribe <lu4242@...>
  • To: jsr344-experts@...
  • Subject: [jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues
  • Date: Tue, 15 Jan 2013 14:37:14 -0500
  • List-id: <jsr344-experts.javaserverfaces-spec-public.java.net>

Hi Frank

Ok, good to know that. Thanks for take a look into this.

Thinking about this, I think a good idea could be add a method to
Resource interface to get the last modified time. If you take a look
at Resource implementation, these two methods:

public boolean userAgentNeedsUpdate(FacesContext context)
public Map<String, String> getResponseHeaders()

requires to calculate the last modified time.

DefaultFaceletFactory requires calculate the last modified time in
order to refresh the facelet, so it has sense something like this:

public Long getLastModified()

return null if no lastModified time can be returned. In the case of
load a facelet from a database this method helps to isolate the
details involved in get the lastModified time from DefaultFaceletFactory
logic related to refresh facelet instances.

Maybe this is too much, but anyway I remember this comment from
Andy Schwartz long time ago:

(in [jsr-314-open] 490-XmlViews Processing JSPX files as Facelets)

AS >> ".... I wanted to mention an alternate to the
AS >> ViewDeclarationLanguageFactory approach, though I am not
AS >> sure whether it is an improvement.  In our case, we wouldn't
AS >> mind using the ResourceResolver generically across VDLs,
AS >> ie. we wouldn't mind seeing ResourceResolver promoted to
AS >> a first class/VDL-agnostic API.  Our ResourceResolver
AS >> implementation is used to serve up resources from the class
AS >> path as well as from remote repositories (eg. a database).
AS >> This ability could be useful not just for Facelets, but for
AS >> arbitrary VDLs.  It would be nice if we could implement this
AS >> behavior one time in a standard/portable way rather than
AS >> requiring a new solution for each VDL. ..."

What we are trying to do now in JSF 2.2, making facelets use
ResourceHandler API to load facelets is precisely that.

regards,

Leonardo Uribe

2013/1/15 Frank Caputo <frank@...>:
> Hi Leonardo,
>
> I recently provided a patch for Mojarra to solve this problem, which 
> Manfred merged into the trunk ( 
> http://java.net/projects/mojarra/sources/svn/diff/trunk/jsf-ri/src/main/java/com/sun/faces/facelets/impl/DefaultFacelet.java?rev1=11384&rev2=11385
>  ).
>
> I'll answer more detailed tomorrow.
>
> Ciao Frank
>
> Am 15.01.2013 um 00:32 schrieb Leonardo Uribe <lu4242@...>:
>
>> Right now, facelets derive the path using a call to:
>>
>> new URL(from, path)
>>
>
>
>
>
>


[jsr344-experts mirror] [jsr344-experts] PRD Review and pending issues

Leonardo Uribe 01/14/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Leonardo Uribe 01/14/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Frank Caputo 01/15/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Leonardo Uribe 01/15/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Frank Caputo 01/16/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Leonardo Uribe 01/16/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Leonardo Uribe 01/17/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Frank Caputo 01/20/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Leonardo Uribe 01/20/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Frank Caputo 01/23/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Leonardo Uribe 01/24/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Frank Caputo 01/20/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Edward Burns 01/16/2013

[jsr344-experts mirror] [jsr344-experts] Re: PRD Review and pending issues

Edward Burns 01/31/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close