On 10/6/10 12:01 PM, Leonardo Uribe wrote:
2010/10/6 Blake Sullivan <blake.sullivan@oracle.com>
On 10/6/10 11:35 AM, Leonardo Uribe wrote:HiNo. While the VDL may have a preferred extension, the authors should be free to route whatever content they want to the VDL. For example, in the particular case of running JSPX content through Facelets, .jspx would not be a preferred mapping for Facelets.
In theory, shouldn't the vdl be responsible to indicate which prefix/suffix pattern is used to identify if a physical viewId should be handled by an specific vdl?.
Ok, I see, that is for backward compatibility with apps that uses JSPX content for jsp. But in such case, which one is responsible to define such mapping?. Note right now it is not possible to create another vdl without break RestoreView algorithm. In theory, the ViewDeclarationLanguageFactory should do it (I did some attempts on this issue and finally I added some methods there).
If a particular JAR contains .jspx content that it wants to run through the facelets engine in a compatibility mode, that JAR would contain the mapping in its faces-config.xml and an application using that JAR wouldn't have to concern itself with that implementation detail.