You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Philippe Lamote <ph...@mac.com> on 2006/04/18 11:09:24 UTC

HTML Editor - JSF 1.2 roadmap

Hi,

I've got 2 less-related questions:

1/ I've seen various HTML editor pass the revue (Dojo, TinyMCE, Kupu)
--> Any advice on which to use best? Apparently Kupu has Win IE  
integration issues, yet I guess it was chosen for Tomahawk over some  
others for a good reason(s)? (perhaps valid back then anymore but not  
anymore?)
Also, if one of the core devs is listening: which one will future  
Tomahawk releases embrace? Will T stick to Kupu and improve it, or  
switch to one of the others?

2/ Is there a (more or less vague, unofficial) timeframe for a  
MyFaces impl release in line ith JSF 1.2? (June/...?)

Thx for advice,
Philippe


Re: HTML Editor - JSF 1.2 roadmap

Posted by Werner Punz <we...@gmx.at>.
Werner Punz schrieb:
> Matthias Wessendorf schrieb:
>>> Actually the easiest replacement currently probably is to use the
>>> dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
>>> and the editor can be reached via a textarea and the dojo initializer
>> Philippe-
>>
>> you may also take a look at [1]
>>
>> -Matthias
>>
>> [1] http://tinyurl.com/cp9jm
>>
> Well one warning though, with this method you cannot adjust the buttons
> the better way currently is to use the dojoinitilizer for the requires
> statements and then use standard javascripts for initializing the editor.
> AFAIR there is an example in the somewhat hidden dojo subdir of the
> myfaces-sandbox examples where exactly that is done.
> If not please drop a message here and I will post some code.
> 
> 
Sorry to answer here again, the affected file can be found in
myfaces-examples-sandbox/dojo/textareatestjsfonly.jsp (jsf)


this is a small demo on how to initialize the editor

http://wuerg.kicks-ass.net:8080/myfaces-example-sandbox/dojo/textareatestjsfonly.jsf

here is a small demo.
If you need the text edtor limited into a smaller area, wrap it into a div.

Note it is important that you use a textarea as a starting base, due to
the form handling, if you use a div as a starting base for the dojo
editor the form values will be lost.

here is a general description:
http://dojotoolkit.org/docs/rich_text.html



Re: HTML Editor - JSF 1.2 roadmap

Posted by Werner Punz <we...@gmx.at>.
Matthias Wessendorf schrieb:
>> Actually the easiest replacement currently probably is to use the
>> dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
>> and the editor can be reached via a textarea and the dojo initializer
> 
> Philippe-
> 
> you may also take a look at [1]
> 
> -Matthias
> 
> [1] http://tinyurl.com/cp9jm
> 
Well one warning though, with this method you cannot adjust the buttons
the better way currently is to use the dojoinitilizer for the requires
statements and then use standard javascripts for initializing the editor.
AFAIR there is an example in the somewhat hidden dojo subdir of the
myfaces-sandbox examples where exactly that is done.
If not please drop a message here and I will post some code.


Re: HTML Editor - JSF 1.2 roadmap

Posted by Wolf Benz <eu...@gmail.com>.
M Wessendorf,

I had problems with t:htmlInput and found your post back by searching  
for hml & editor.
This tinyURL was very easy to integrate, and it works fine in my  
brower (Safari on OSX), but not in my Firefox; the buttons just don't  
render. (for Bold, Italics etc)
Any way to correct this?
Thanks,
Wolf

Ps My setup:

In the header:
<script src="../js/tinymce/jscripts/tiny_mce/tiny_mce.js"  
language="JavaScript"/>
   				<script type="text/javascript">
        				 tinyMCE.init({
        	 			 mode : "textareas",
        	 			 theme : "advanced",
        	 			 theme_advanced_buttons1_add : "fontselect,fontsizeselect",
			      	 width : "640",
       	  			 height : "480",
       	  			 auto_reset_designmode : true
  					});
	</script>


  & in the page:

<div id="RichTextArea" align="center" style="background-image:url('../ 
pics/metal.jpg');padding:8px;border-style:outset;font-size:11pt;width: 
95%;">
			<h:outputLabel value="#{labels.regCal_metaSubtitle}"  
styleClass="regCalSmallItalic" /> <br/>
             <h:inputTextarea value="# 
{regcalbean.currentEvent.metaInput}" rows="10" cols="50"/>
</div>



On 18 Apr 2006, at 11:20, Matthias Wessendorf wrote:

> Actually the easiest replacement currently probably is to use the
> dojoInitializer to get it, the tomahawk sandbox has a full dojo in  
> there
> and the editor can be reached via a textarea and the dojo initializer

Philippe-

you may also take a look at [1]

-Matthias

[1] http://tinyurl.com/cp9jm


Re: HTML Editor - JSF 1.2 roadmap

Posted by Werner Punz <we...@gmx.at>.
Philippe Lamote schrieb:
> Hi Werner,
> 
> Did I understood well that the timeframe to promote it from the
> sandbox(s:) to t:(plain Tomahawk) is about 2 weeks?
> 
No sorry I was unclear, the timeframe for the pagelet component to hit
the sandbox will be around two weeks, depending on how much time I can
spend on it.

The promotion of dojo from the sandbox to Tomahawk is not decided yet.
I probably will wait for the dojo 0.3 release and the component fixup
which has to be done before we move forward with that one, unless there
are imminent reasons for doing that sooner.

The main reason why I am holding off, besides the obvious lack of time
(and the myfaces 1.1.2 release), is that we have some very complicated
components in the sandbox which rely on some dojo internals which might
be broken. And the 0.3 release should have a stable enough API so that
we do not run into those issues in the immediate future once we start to
move core code towards dojo, tomahawk wise.


Re: HTML Editor - JSF 1.2 roadmap

Posted by Werner Punz <we...@gmx.at>.
Another thing I forgot, you can use the dojo rich edit as is, I doubht
anything will be broken in this regard.
As long as you use the initializer apis and do not start to mess around
with some internals, like I had to do, you are safe anyway.


Re: HTML Editor - JSF 1.2 roadmap

Posted by Philippe Lamote <ph...@mac.com>.
Hi Werner,

Did I understood well that the timeframe to promote it from the  
sandbox(s:) to t:(plain Tomahawk) is about 2 weeks?

Philippe
On 18 Apr 2006, at 12:43, Werner Punz wrote:

Philippe Lamote schrieb:
> Thanks Matthias & Werner,
>
> Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ?
> (this currently is the main problem - Kupu just doesn't work on IE)
> Phil
>
The dojo editor at least works on mozilla and ie, I think also on
safari, there might be some issues with opera though.



Re: HTML Editor - JSF 1.2 roadmap

Posted by Werner Punz <we...@gmx.at>.
Philippe Lamote schrieb:
> Thanks Matthias & Werner,
> 
> Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ?
> (this currently is the main problem - Kupu just doesn't work on IE)
> Phil
> 
The dojo editor at least works on mozilla and ie, I think also on
safari, there might be some issues with opera though.


Re: HTML Editor - JSF 1.2 roadmap

Posted by Philippe Lamote <ph...@mac.com>.
Thanks Matthias & Werner,

Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ?
(this currently is the main problem - Kupu just doesn't work on IE)
Phil

On 18 Apr 2006, at 11:20, Matthias Wessendorf wrote:

> Actually the easiest replacement currently probably is to use the
> dojoInitializer to get it, the tomahawk sandbox has a full dojo in  
> there
> and the editor can be reached via a textarea and the dojo initializer

Philippe-

you may also take a look at [1]

-Matthias

[1] http://tinyurl.com/cp9jm


Re: HTML Editor - JSF 1.2 roadmap

Posted by Matthias Wessendorf <ma...@apache.org>.
> Actually the easiest replacement currently probably is to use the
> dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
> and the editor can be reached via a textarea and the dojo initializer

Philippe-

you may also take a look at [1]

-Matthias

[1] http://tinyurl.com/cp9jm

Re: HTML Editor - JSF 1.2 roadmap

Posted by Werner Punz <we...@gmx.at>.
Philippe Lamote schrieb:
> Hi,
> 
> I've got 2 less-related questions:
> 
> 1/ I've seen various HTML editor pass the revue (Dojo, TinyMCE, Kupu)
> --> Any advice on which to use best? Apparently Kupu has Win IE
> integration issues, yet I guess it was chosen for Tomahawk over some
> others for a good reason(s)? (perhaps valid back then anymore but not
> anymore?)
> Also, if one of the core devs is listening: which one will future
> Tomahawk releases embrace? Will T stick to Kupu and improve it, or
> switch to one of the others?
> 
Actually the easiest replacement currently probably is to use the
dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
and the editor can be reached via a textarea and the dojo initializer

In the long run there will be a full blown dojo html editor, it is just
a matter of personal time why this thing has not been implemented
(crossported, there is at least one other attempt at it)

I think being able to settle down on the dojo editor currently is our
best option licenswise. Most html editors (TinyMCE for instance) are
either LGPL or GPL.

Also really soon now there will be a pagelet editor available as tag
which I had to develop for another project (and the main reason why the
dojo integration has stalled somewhat from my side)

This can serve as full html editor replacement.
I am speaking of a checkin timeframe of within the next two weeks.

http://wuerg.kicks-ass.net:8080/spellchecker/example.jsf

works best in ie, but it works with some glitches in moz already