Using With JSF

Use with JSF is mostly the same as with JSP tags, however care must be taken when setting the

textComponentID attribute;

With RapidSpellWInlineTextBox - set textComponentID to the “id” of the text box

With regular text areas - set textComponentID to the “id” of the text box as rendered in HTML

(typically “formID:textBoxID”)

Code Example With RapidSpellWInlineTextBox

<?xml version="1.0" encoding="UTF-8"?>

<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"

xmlns:ors="http://www.keyoti.com/"

<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>

<f:view>

<webuijsf:page binding="#{Page1.page1}" id="page1">

<webuijsf:html binding="#{Page1.html1}" id="html1">

<webuijsf:head binding="#{Page1.head1}" id="head1">

<webuijsf:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>

</webuijsf:head>

<webuijsf:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">

<webuijsf:form binding="#{Page1.form1}" id="form1">

<ors:rapidSpellWInlineTextBox id="rswitb" width="300" height="300"/>

<ors:rapidSpellWInline id="rswi" textComponentID="rswitb"/>

</webuijsf:form>

</webuijsf:body>

</webuijsf:html>

</webuijsf:page>

</f:view>

</jsp:root>

Code Example With Standard TextBox

(as above example, except with this change)

<webuijsf:form binding="#{Page1.form1}" id="form1">

<h:inputTextarea id="ta"/>

<ors:rapidSpellWInline id="rswi" textComponentID="form1:ta"/>

</webuijsf:form>