• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

adding font formatting features to jsp

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am new to j2ee, and i have to make a page where the text area for a field has a certain aspect. If we select some portion of the sentences that will be written in it,and click on the bold option(much like the one i am using here),that portion will be in bold letters and will be saved accordingly in database.

I have no idea about javascript and i am new to jsp.So can you give me a little outline for how to do it? i don't want spoonfeeding,just a liitle idea as i am very short on time for this one.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSP will be of no help to you. You'll need to use a JavaScript rich text editor.
 
Sankha Ray
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
may i know which rich text editor is used in javaranch?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We don't have a rich text editor here at the Ranch. We have a plain HTML textarea along with a bunch of UBB style tags/buttons that work with pure JavaScript.
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could check for Primefaces that it is a component of JSF. It has a text editor.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another JSF solution is to use the RichFaces Editor control.

But for non-JSF pages, there's tinyMCE, which is what RichFaces builds on. There's also several other rich text editor components available, but for those I'll just have to recommend your favourite search engine.
 
reply
    Bookmark Topic Watch Topic
  • New Topic