public void index() throws WebPagesException { if (isXMLTemplateUsed()) { indexForm(null); } else { WysiwygController.index(getComponentId(), getComponentId()); } }
/** @return vrai s'il existe un fichier wysiwyg pour l'instance de composant */ public boolean haveGotWysiwygNotEmpty() { boolean returnValue = false; if (WysiwygController.haveGotWysiwyg(this.getSpaceId(), getComponentId(), getComponentId())) { try { String contenuWysiwyg = WysiwygController.loadFileAndAttachment( getSpaceId(), getComponentId(), getComponentId()); if ((contenuWysiwyg != null) && (contenuWysiwyg.length() != 0)) { returnValue = true; } } catch (WysiwygException ex) { SilverTrace.error("webPages", "WebPagesSessionController.haveGotWysiwyg()", "root.", ex); } } return returnValue; }