Re: [solved] DynaView doesn't work with #{resource['x']}

Splash Forums PrettyFaces Users [solved] DynaView doesn't work with #{resource['x']} Re: [solved] DynaView doesn't work with #{resource['x']}


<view-id>#{resource['javascript.xhtml']}</view-id> will not work. The view ID must be provided by an action method, not any other type of expression.

This is currently a limitation of the framework, but could possibly be enhanced.

Until that happens, you can do this instead:


Or something similar. The resource is still there, you just need to provide the path in a way that PrettyFaces understands.

/faces/resources/javascript.xhtml == #{resource['javascript.xhtml']}

I may not have the path exactly right, but that’s the idea.