Hi List,

I think I've got add resource problems, but I'm not familiar enough with it to know how to correct it... some help would be appreciated.

After changing the t:inputHtml (which doens't work in several browsers) with tinyMCE (a nice tip from Matthias Wessendorf), I have these problems as I do this in my page:

In the header of my JSP page, I have:

<script language="JavaScript" type="text/javascript" src="../js/ tinymce/jscripts/tiny_mce/tiny_mce.js"/>
        <script language="JavaScript" type="text/javascript">
                                 tinyMCE.init({
                                 theme : "advanced",
                                 mode : "textareas",
                                 width : "640",
                         height : "480",
plugins : "fullscreen, insertdatetime,forecolor, backcolor, separator",
                                 theme_advanced_buttons1_add : 
"fontselect,fontsizeselect",
theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3", theme_advanced_buttons3_add :"fullscreen,separator,insertdate,inserttime ,separator, forecolor, backcolor,separator", fullscreen_settings : {theme_advanced_path_location : "top"},
                                 plugin_insertdate_dateFormat : "%d-%m-%Y",
                     plugin_insertdate_timeFormat : "%H:%M:%S"
                                        });
        </script>

In the body itself, I have

<h:inputTextarea value="#{regcalbean.currentEvent.metaInput}" rows="15" cols="50" style="padding:8px;border-style:solid;font-size: 11pt;width:95%;" />

This only works in Safari on OSX. In Firefox/IE on PC, the rich- editing buttons won't show up. My guess is it has to do with the <script src="../js/tinymce/jscripts/ tiny_mce/tiny_mce.js" .../> I have this in my web.xml: (found this on mthe myfaces site; to accomodate the add resources - without to much effect though)

 <!-- Extensions Filter -->
    <filter>
        <filter-name>extensionsFilter</filter-name>
<filter- class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
                        <init-param>
                        <param-name>uploadMaxFileSize</param-name>
                        <param-value>6m</param-value>
                        </init-param>

                        <init-param>
                        <param-name>uploadThresholdSize</param-name>
                        <param-value>10k</param-value>
                </init-param>

                <init-param>
            <param-name>uploadRepositoryPath</param-name>
            <param-value>/temp</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
                <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>

        <filter-mapping>
                <filter-name>extensionsFilter</filter-name>
            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
        </filter-mapping>

----------
Any ideas on how I could make this work anyway??
Thanks,
Wolf

Reply via email to