Hi Matthias,
Forst of all, thanks for taking the time to reply.
As for Dojo, it just didn't work. What showed up is a plain textarea
without any buttons. The difference is TinyMCE works in Safari, but
in nothing else. Dojo didn't work anywhere. ( & I've tried with the
initializer imperative at various places: in the header, just before
& after the form tag & just before the textarea element itself)
The page did not give any probs, nor did I get a error msg.
But I've seen there are often probs whenever there's a script with an
import of a external file in the header. (... src="..")
This is why I followed the "add resource" additions from the MyFaces
site.
Should I follow the Add "Streaming" Resource directions instead?
(they are different) When to follow which of these 2?
(btw my eclipse validates xml ns's & didn't give my any trouble in
sandbox/dojo, nor with tinyMCE)
& any idea what html input might be incorporated into MyFaces in
the future? Or will Kupu get a serious upgrade?
Thanks again,
Wolf
On 07 Jul 2006, at 20:30, Matthias Wessendorf wrote:
Wolf-
you may take a look at [1]. Mario did some nice stuff regarding
AddResouce.
Btw. what's wrong with the dojo based editor ? the invalid XHTML issue ?
You can register xml based namespaces (<dojo:something>).
-Matthias
[1] http://wiki.apache.org/myfaces/StreamingAddResource
On 7/7/06, Wolf Benz <[EMAIL PROTECTED]> wrote:
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,insertti
me
,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
--
Matthias Wessendorf
futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com