# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- Base (BASE) +++ Locally Modified (Based On LOCAL) @@ -105,6 +105,12 @@ private String nodeDataName; /** + * An extension to force instead of using default one ServerConfiguration.getInstance().getDefaultExtension() + * + * @see ServerConfiguration + */ + private String extension; + /** * link attributes, added using child tags. */ private transient List attributes; @@ -159,6 +165,16 @@ } /** + * Set extension to enforce. If not set server wide default will be used, most likely ".html" + * @param extensionToForce null value makes use of default extension + * @see ServerConfiguration + * @jsp.attribute required="false" rtexprvalue="true" + */ + public void setExtension(String extensionToForce) { + this.extension = extensionToForce; + } + + /** * Adds a link parameter. * @param name name of attribute to add to the a element * @param value value of attribute to add to the a element @@ -237,7 +253,7 @@ out.print(path); if (MgnlContext.getHierarchyManager(ContentRepository.WEBSITE).isPage(path)) { out.print("."); //$NON-NLS-1$ - out.print(ServerConfiguration.getInstance().getDefaultExtension()); + out.print(extension == null ? ServerConfiguration.getInstance().getDefaultExtension() : extension); } if (this.postHref != null) { out.print(this.postHref);