PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
Tag Information

rich:insert component allows to insert and, optionally, format the file from the application context into the page. The context relative path to the file is specified with src attribute.

highlight attribute defines the type of a syntax highlighting. If this attribute is specified, inserting text is formated and keywords are colorized using jhighlight open source library. You need to have jhighlight.jar in the classpath to have this feature enabled. The following example shows the groovy code snippet inserted and highlighted:

Groovy code snippet page integration example
double[] values = new double[8]

= 0
[1, 2, 3, 4, 5, 6, 7, 8].each {
  println it
  values[i++] = it
  // uncomment the next line and it works fine!!
  //println it

View Source

errorContent attribute defines the alternative content that will be shown in case rich:insert cannot read the resource defined with 'src' attribute. If errorContent attribute is not defined, the component shown the actual error message in the place where the content is expected.

RichFaces Wiki RichFaces Project Site