• Problems on Domino 9 with Rich Text Editor

    By Carlos de Luna Saenz 4 years ago

    I have a Domino 9 server, a database with the following xpage:

    <xp:this.data>
        <xp:dominoDocument computeWithForm="both" formName="Articulo"
            var="articulo"/>
        <xp:dominoView var="viveros" viewName="ViverosDelValle"></xp:dominoView>
    </xp:this.data>
    
    <xp:this.resources>
        <xp:script src="/twitter.js" clientSide="true"></xp:script>
        <xp:dojoModulePath loaded="false"></xp:dojoModulePath>
    </xp:this.resources>
    <xp:div id="header" align="center"
        style="background-color:rgb(255,255,255)">
        <xp:link value="http://www.yobuscoen.com/">
            <xp:image id="logo" alt="Yo Busco En" url="/logo.png"/>
        </xp:link>
        <xp:table
            style="background-color:rgb(255,255,255);width:100%">
            <xp:tr>
                <xp:td></xp:td>
                <xp:td style="font-size:14pt;color:rgb(255,128,0);font-weight:bold;font-style:italic">
                    <xp:inputText value="#{articulo.Titulo}"
                        id="titulo1" style="font-size:14pt;color:rgb(255,128,0);font-weight:bold;font-style:italic">
                    </xp:inputText>
                </xp:td>
            </xp:tr>
            <xp:tr>
                <xp:td style="width:149.0px">
    
                    <xp:link escape="true" value="/comerViveros"
                        id="link1">
                        <xp:image url="/Comer.png" id="image1"></xp:image>
                    </xp:link>
                    <xp:br></xp:br>
                    <xp:link escape="true" id="link2"
                        value="comprarViveros">
                        <xp:image url="/Comprar.png" id="image2"></xp:image>
                    </xp:link>
                    <xp:br></xp:br>
                    <xp:link escape="true" id="link3"
                        value="divertirseViveros">
                        <xp:image url="/Divertirse.png" id="image3"></xp:image>
                    </xp:link>
                    <xp:br></xp:br>
                    <xp:link escape="true" id="link4"
                        value="saludViveros">
                        <xp:image url="/Salud.png" id="image4"></xp:image>
                    </xp:link>
                </xp:td>
                <xp:td style="width:539.0px" rowspan="2">
                <xp:span style="font-size:12pt;font-weight:bold;font-style:italic;color:rgb(0,0,160)">
                    <xp:inputText value="#{articulo.Categoria}"
                        id="categoria">
                    </xp:inputText>
                    </xp:span>
    
                    <xp:inputRichText id="ArticuloControl"
                        value="#{articulo.Contenido}"/>
                    <xp:br></xp:br>
                    <xp:button value="Guardar" id="button1" styleClass="profilesButtonSubmit" rendered="#{javascript:currentDocument.isEditable()}"><xp:eventHandler event="onclick" submit="true" refreshMode="complete" immediate="false" save="true">
    <xp:this.action>
        <xp:openPage name="/Articulo.xsp" target="openDocument"
            documentId="#{javascript:currentDocument.getUniversalID()}">
        </xp:openPage>
    </xp:this.action></xp:eventHandler></xp:button></xp:td>
            </xp:tr>
            <xp:tr>
                <xp:td>
                    <xp:div align="left"
                        style="background-color:rgb(255,255,255)">
                        <xp:viewPanel value="#{viveros}" id="viewPanel1"
                            viewStyle="background-color:rgb(255,255,255);width:100%;background-attachment:fixed;background-position:center right"
                            rows="10">
                            <xp:this.facets>
                                <xp:pager partialRefresh="true"
                                    layout="Previous Group Next" xp:key="headerPager"
                                    id="pager1">
                                </xp:pager>
    
                                <xp:pager partialRefresh="true"
                                    layout="Previous Group Next" xp:key="footerPager"
                                    id="pager2">
                                </xp:pager>
                            </xp:this.facets>
    
    
                            <xp:viewColumn columnName="Categoria"
                                id="viewColumn2">
                                <xp:this.facets>
                                    <xp:viewColumnHeader
                                        value="Categoria" xp:key="header" id="viewColumnHeader2">
                                    </xp:viewColumnHeader>
                                </xp:this.facets>
                            </xp:viewColumn>
                            <xp:viewColumn columnName="Titulo"
                                id="columnaTitulo" displayAs="link"
                                style="font-weight:bold;font-style:italic;font-family:Arial Narrow;font-size:14pt;color:rgb(128,64,64)"
                                openDocAsReadonly="true">
                                <xp:this.facets>
                                    <xp:viewColumnHeader value="Titulo"
                                        xp:key="header" id="viewColumnHeader1">
                                    </xp:viewColumnHeader>
                                </xp:this.facets>
                            </xp:viewColumn>
    
                        </xp:viewPanel>
                    </xp:div>
                </xp:td>
    
            </xp:tr>
            <xp:tr>
                <xp:td></xp:td>
                <xp:td></xp:td>
            </xp:tr>
        </xp:table>
    </xp:div>
    <xp:this.navigationRules>
        <xp:navigationRule outcome="xsp-success"
            viewId="/comerViveros.xsp">
        </xp:navigationRule>
    </xp:this.navigationRules>
    


    and when loading i get a 404 errors for the javascript files…
    Any ideas?
    Thanks in advance

    • By Carlos de Luna Saenz 4 years ago

      On xsp.properties files i put the following line:

      xsp.client.resources.uncompressed=true
      an that did it.