AnsweredAssumed Answered

Best practise for overriding JSPs

Question asked by damonrand on Apr 26, 2007
Hi,

   I have been adding a new panel to document-details.jsp.

I initially took the approach recommended in this forum and added new navigation rules to a faces-config.xml to have the system use my /extension/document-details.jsp.

However,  I can't see any benefits to this approach over just overwriting the /dialog/document-details.jsp

It doesn't give any extra portability. And the nav rules are getting complicated when I start writing other modules that then need to know I've changed the view.. eg.



   <navigation-rule>
      <from-view-id>/jsp/extension/enable-translation.jsp</from-view-id>
      <navigation-case>
         <from-outcome>cancel</from-outcome>
         <to-view-id>/jsp/extension/document-details.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>finish</from-outcome>
         <to-view-id>/jsp/extension/document-details.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>


Am I missing anything?

Damon.

Outcomes