css file and the source code of the rendered page (where you can see
which styles are used for what) as your starting point.
But let me show you one more very useful component.
FCKEditor Component
Quite often, we might want to give the users of our application an opportunity
not only to enter a message, but also to format it similarly to how they would do
this in a familiar word processor. There are JavaScript-enabled rich text editors
available for this purpose, the most famous of them is perhaps FCKEditor
(http://www.fckeditor.net/), but integrating such an editor into a web
application might require additional knowledge and effort.
Chapter 5
[ 151 ]
Thankfully, there is a custom Tapestry 5 component developed by Ted Steen and
Olof Naessen that wraps FCKEditor. As a result, we can use this excellent rich text
editor in the same way like any other Tapestry component. The component can
be downloaded from http://code.google.com/p/tapestry5-fckeditor/ as a
JAR file (make sure you pick the version, 1.0.2 or later). The name of the file will be
similar to tapestry5-fckeditor-1.0.2.jar. Please put it into the WEB-INF/lib
subfolder of our web application. In Eclipse, you might want to press F5 to make
sure that the IDE has noticed the addition.
Pages:
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201