users@woodstock.java.net

Re: Woodstock and ICEfaces integration

From: Felipe Jaekel <fkjaekel_at_gmail.com>
Date: Mon, 15 Sep 2008 14:39:05 -0300

TinyMCE worked fine. Thanks!

In case someone else needs it, here is a sample(copy tinymce folder to your
web folder):

<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="
> http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page"
> xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
> <jsp:directive.page contentType="text/html;charset=UTF-8"
> pageEncoding="UTF-8"/>
> <f:view>
> <webuijsf:page id="page1">
> <webuijsf:html id="html1">
> <webuijsf:head id="head1">
> <webuijsf:link id="link1"
> url="/resources/stylesheet.css"/>
> <webuijsf:script type="text/javascript"
> url="tinymce/jscripts/tiny_mce/tiny_mce.js"/>
> <webuijsf:script type="text/javascript">
> tinyMCE.init({
> mode : "textareas"
> });
> </webuijsf:script>
> </webuijsf:head>
> <webuijsf:body id="body1">
> <webuijsf:form id="form1">
> <h:inputTextarea binding="#{Page1.textArea1}"
> cols="50" id="textArea1" rows="10" value="#{Page1.teste}"/>
> </webuijsf:form>
> </webuijsf:body>
> </webuijsf:html>
> </webuijsf:page>
> </f:view>
> </jsp:root>
>

2008/9/15 wahu123 <wahu123_at_gmail.com>

>
> To use a rich text input component in Netbeans Visual Web, you can use
> TinyMCE (http://tinymce.moxiecode.com/).
>
> I use it in many Netbean visual web projects. However, tt works well with
> stanrdard JSF "h:inputTextarea" component, not woodstock
> "webuijsf:textarea" component
> But as we know, we can mix standard JSF components & woodstock components
> in
> Netbeans visual web projects.
>
> Here is some related information.
>
> http://markmail.org/message/zp5j53362m3styz7?q=TinyMCE+rich+text+editor+VWP&page=1&refer=snw4fjxc3fr2ydqn
>
>
>
> Felipe Jaekel (FkJ) wrote:
> >
> > Ok
> >
> > Is it possible to integrate Woodstock with another component library,
> like
> > RichFaces for example?
> >
> > I need a rich text input component. I've tried jMaki Yahoo's editor, but
> > its
> > complicated to get value from the component and the Yahoo CSS messed up
> > Woodstock CSS (big fonts).
> >
> > Thanks for any help,
> > Felipe
> >
> > 2008/9/8 Alex Sherwin <alex.sherwin_at_acadiasoft.com>
> >
> >> It's very unlikely that you will be able to use ICEFaces components in
> a
> >> Woodstock WAR. ICEFaces uses different impl classes for the standard
> JSF
> >> lifecycle, because they've drastically modified the implementation of
> it.
> >> It no longer uses the same full GET/POST submit to a Servlet back-end,
> >> they've instead created a AJAX "bridge" that basically intercepts a form
> >> submit, and rather then submitting it normally, it submits it via an
> >> async
> >> xmlhttprequest, which gets back DOM updates from the back end in JSON
> >> format, and then are applied to the current DOM via the AJAX bridge.
> >>
> >>
> >>
> >> It may be possible to setup a project to include pages that use only
> >> Woodstock, or pages that use only icefaces, but I highly doubt you will
> >> be
> >> able to mix/match on a single page. If this were to work, you would
> need
> >> to
> >> setup the ICEFaces persistent Servlet and have it mapped to a context
> >> that
> >> Woodstock would not recognizes (i.e. /faces/* for Woodstock Servlet,
> >> /ifaces/* for ICEFaces Servlet, etc).
> >>
> >>
> >>
> >> Your best bet is to read the ICEFaces developer guide to better
> >> understand
> >> how their implementation works
> >>
> >>
> >>
> >>
> >>
> >> Alex Sherwin
> >>
> >> alex.sherwin_at_acadiasoft.com
> >>
> >>
> >>
> >> *From:* Felipe Jaekel [mailto:fkjaekel_at_gmail.com]
> >> *Sent:* Monday, September 08, 2008 8:00 AM
> >> *To:* users_at_woodstock.dev.java.net
> >> *Subject:* Woodstock and ICEfaces integration
> >>
> >>
> >>
> >> I use Woodstock as main component library. I'd like to use at my pages
> >> some
> >> components from ICEFaces that it doesn't have.
> >>
> >> I've installed the ICEfaces plugin at NetBeans put it simply doesn't
> work
> >> when I mix their components.
> >>
> >> What JARs I need and what has to be configured at web xml and
> >> faces-config.xml?
> >>
> >> Thanks a lot,
> >> Felipe
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Woodstock-and-ICEfaces-integration-tp19370584p19491544.html
> Sent from the Project Woodstock - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>