• 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

<verbatim>

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm studying JSF technology now and i'm looking through some examples. Here is one with <outputLink>:



why do they use <verbatim> tag? isn't it ok just to write plain text as outputLink's direct child? why do they use intermediar <verbatim> tag?
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what content do you want to put into the outputLink. In your example, there is no need to include verbatim. But if you want to include html code, of jstl or other things, you have to you verbatim. You can think to verbatim like a container which helps you to put something into the JSF control hierarchy something which is not JSF.
 
Saloon Keeper
Posts: 27763
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
Failure to use the verbatim tag can result in the items in question either being rendered in the wrong place on the page or not at all. Since the JSF page is constructed from a directed graph of elements, the verbatim tag provides an "element" where one would otherwise not exist.

The need for the verbatim tag is reduced in more recent versions of JSF and when you're using the Facelets framework, but it's still occasionally necessary.
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic