[
https://issues.apache.org/jira/browse/MYFACES-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850783#action_12850783
]
Mark Li commented on MYFACES-2628:
----------------------------------
this is my suggestion:
orginal:
public final class ServletExternalContextImpl extends ExternalContext
implements ReleaseableExternalContext
{
.....
@Override
public URL getResource(final String path) throws MalformedURLException
{
checkNull(path, "path");
return _servletContext.getResource(path);
}
}
to
public final class ServletExternalContextImpl extends ExternalContext
implements ReleaseableExternalContext
{
.....
@Override
public URL getResource(final String path) throws MalformedURLException
{
checkNull(path, "path");
FaceletsResolver resolver = ....;
URL url = resolver.resolveUrl(path);
return url;
}
}
Of cource, the DefaultFaceletsResolver class should not use
context.getExternalContext().getResource(url) any more.
> Facelets ResourceSolver cant work
> ---------------------------------
>
> Key: MYFACES-2628
> URL: https://issues.apache.org/jira/browse/MYFACES-2628
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.0-beta-3
> Environment: tomcat 6.0.20, java 1.6(mac osx),
> Reporter: Mark Li
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> In facelets 1.1.14, I can load page from classpath via ResourceSolver,
> by in myfaces 2.0.0-beta-3, I cant do this, because
> 'DefaultRestoreViewSupport.checkResourceExists' method check the resource
> exists using 'servletContext.getResource(path);', should do some delegate.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.