First glimpse at the Oracle Forms HTML Rich Text Editor

28

Posted by Hafed | Posted in Forms, oracle, PJCs/Javabeans | Posted on 23-01-2009

Glad to be reporting that I am almost done with the Oracle Forms rich text editor. Some issues with outputting the rich text item thru reports and deciding how to save the contents. For the time being, I checked query and insert modes and the set_custom_property and get_item_property are working fine without any loss.

I am using a text item to store the contents and that’s the column that is physically tied to the table. I think that’s the best way to manage the rich text item. I checked Degrelle’s HTMLPane and that’s how it is being managed.

The JAR file stands now at 170 Kb which is not that big given that I have about 30 Kb for png images (used in the toolbar). However, I am doing now a refactoring and trying to slim the jar down to about 100 Kb. I am not too worried about the size since the file itself is cached the first time the user accesses the module.

The features that already passed testing:

Basic toolbar: in this mode, the user can opt to use only the top bar.

  • Basic text styling: bold, italic and underline
  • unordered and ordered lists
  • Text alignment
  • Indent and outdent

Advanced toolbar: more features with most having passed the test

  • Cut, copy and paste
  • Text Search and replace
  • Horizontal rule (HR), break (BR)
  • Special Characters insertion
  • Adding and removing a hyperlink
  • Adding an image (working but some issues)
  • Inserting Table, rows and cells
  • Font selection, size and color. Foreground property
  • Text highlighting color property
  • HTML source code editing (working but some issues)
  • HTML preview mode

Because of the limited screen real estate available for the rich text item, there are other features that can’t be accessed thru the toolbar buttons. I am using accelerator keys to let the user action them. Some of those are:

  • Undo
  • Redo
  • Deleting table rows
  • Deleting table cells

As I mentionned, adding images is a snap. However, I am still pondering about whether to let the user insert an image from a URL or from a drive. The only option I see working for the general case is allowing an image to be referenced fom a URL.

The editor uses a default cascading style sheet. However, there is going to be a way for the developer to assign a company mandated stylesheet.

Likewise, there are a number of properties that can be set from Forms.

That’s the status right now and I think the editor should be out by the end of January 2009.

Last, I am still undecided about the name. May be frmEd. I welcome your suggestions.

Similar Posts:

Comments (28)

I would suggest BenteForm or Bent-a-Form. :)

Good stuff !
I propose : Forms Rich TextItem
Francois

Could you provide the URL where we could download the necessary Bean, Forms Demo, source & any Technical doc files for this? Appreciate this very much.

@Bob: Not yet released as of Jan 30,09. The HTML source code editing feature was a bit buggy. I am almost done with the testing part and all material will be available for download here very soon.

Hafed,

I am looking for some kind of editor of forms 10g that will support all kind of formating and will be saved in database as HTML data and can be transferred to email server and can be used on web pages. Will your text editor will be saved as HTML data in DB.
Could you please guide me a little bit?
Thanks,
Nancy

@Nancy: Yes, the data is HTML and will be saved as such. From there, you can use it wherever HTML can be used. I have a forms module that show the process.

Very good add to Forms controls.
Does it support Arabic language?

@Mohammad: It should be but I will have to make some tests to make sure bidirectional support works as expected.
If you are interested, you can beta-test it. Let me know.

Hello Hafed,

where can I download the javabean? i have a form application and i would like to test it

Thanks in advance,
Jose.

@Jose: Please check this link: http://www.degenio.com/frite/

hi
I have tested bidirectional support .
I am using hebrew rtl .
font is displayed in squares .
cna you help
Eran

@Eran: There are some instructions I have to change in the code to make it work with languages such as Arabic and Hebrew. I will update as soon as I get a satisfactory result. Should not take that long.

Good new form me, sometime i wish oracle forms as web base

Could the developer disable options such as changing font and size?

@Will: yes, the developper can disable those options.

Dear Hafed,
Frite is a very nice bean. I have tested it
with my Form and it’s given very nice result.

I need the Source code of Frite Java Bean
so that I can modify it according my requirement.

Could you please send me the source code??

Thank you.

Partha Sarathi Paul
parthaspaul@gmail.com

Hi Hafed,

We have compiled the source and when we are using the jar we are getting the following error:

Opening http://localhost:8891/forms/java/resources/lang/lang_en.properties
Connecting http://localhost:8891/forms/java/resources/lang/lang_en.properties with no proxy
Opening http://localhost:8891/forms/java/resources/images/disk.png
Connecting http://localhost:8891/forms/java/resources/images/disk.png with no proxy
java.lang.NullPointerException
at javax.swing.ImageIcon.(Unknown Source)
at com.degenio.frite.RteBean.(RteBean.java:189)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)

How could we resolve this??

@Paul: It seems that it was not properly jared and you are missing the resources within the /resources folder.

Dear Hafed,
Thanks a lot for sending source code.
It will help me lots

I am planning to use FRITE in one of ma
the my project. As per project
requirement I need to generate output
in PDF format (using oracle report).
Could you please guide me / give me
some solution how this can be done.

hey..
can you mail me the code to make this editor in jsp plz..

From where i can download jar file
and how i can sign jar file

Dear Hafed,
Frite is a very nice bean. I have tested it
with my Form and it’s given very nice result.

I need the Source code of Frite Java Bean
so that I can modify it according my requirement.

Could you please send me the source code through email ?
atijahurul@gamil.com

Thank you.

rite is a very nice bean. I have tested it
with my Form and it’s working fine.

Please send me the source to @shumonkhan@gmail.com for any Modification.

Dear Hafed,
Frite is a very good bean. I have tested it
with my Form and it’s given very good result.

I need the Source code of Frite Java Bean
so that I can modify it according my requirement.

Could you please send me the source code??

Thank you.
MD.Jahurul Islam

Dear Hafed,

i am trying to use the insert image property but i can not copy the path into the image url, its like copy from outside frite is not allowed.
is there a way to change this?
and even if i insert the path manually it, frite is not able to read it
are we stuck to a specific type and size, and is frite able to read any image that is on the local host.
how is it saved on the DB?

thanks

Hello Sir

Can you show me how did you do that please?

Please i need the source code and the the java bean for rich text editor.

Where can i find it?

Quisiera probar el editor ..

Gracias

Write a comment