On 2/17/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> But I think you get the idea....
You're giving me far too much credit. I don't understand the
difference between what you said here and earlier :)
How does this look on an actual JSF page?
I tried sticking this in the <head> tags
<script type="text/javascript">
// <![CDATA[
var editorArgs = {
id:"theinternaldojoid",
items: ["textGroup", "blockGroup", "justifyGroup",
"colorGroup",
"listGroup", "indentGroup", "linkGroup"]
};
var editor = dojo.widget.fromScript("Editor", editorArgs,
dojo.byId("form:contentHtmlEditArea"));
// ]]>
</script>
And this on my form:
<h:inputTextarea id="contentHtmlEditArea"
styleClass="dojo-Editor"
required="#{true}"
value="#{createSimpleAnnouncementPage.text}"/>
but I keep ending up with two separate input editors -- one that looks
how I want it, but with no binding to a JSF component, and one that is
decorated wrong, but is bound to the JSF component.
If you can explain it to me in terms a non-javascript person can
understand, I can then update either the wiki and/or the dojo example
so others like myself can use it.
:-)