Hi Leonardo,
Am 15.01.2013 um 20:37 schrieb Leonardo Uribe <lu4242_at_gmail.com>:
> Thinking about this, I think a good idea could be add a method to
> Resource interface to get the last modified time.
>
> public Long getLastModified()
>
> return null if no lastModified time can be returned.
This method would be really helpful, but I wouldn't allow null to be returned, so I'd use the primitive long as return value.
There will be an issue with decorating existing resources and overwriting only getLastModified. userAgentNeedsUpdate and getResponseHeaders won't call the decorated version of getLastModified. So on decorated resources all 3 methods must be implemented, which is not very comfortable.
Ciao Frank
> 2013/1/15 Frank Caputo <frank_at_frankcaputo.de>:
>> 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 ).
Does this answer obsolete your older comments on resource library contracts?
Ciao Frank
>>
>> I'll answer more detailed tomorrow.
>>
>> Ciao Frank
>>
>> Am 15.01.2013 um 00:32 schrieb Leonardo Uribe <lu4242_at_gmail.com>:
>>
>>> Right now, facelets derive the path using a call to:
>>>
>>> new URL(from, path)
>>>
>>
>>
>>
>>
>>
>