Apparently you're getting too clever, since it looks like even in your posted example not all the characters are displaying.
It looks like what you're trying to use is some sort of CSS/JavaScript-based menu system. You might find it easier to work with an actual JSF menu component like one from Apache Tomahawk, RichFaces, or IceFaces.
As far as the actual character rendering goes, normally JSF will escape the "dangerous" ones automatically. However that also means that if you attempt to ram in HTML from a backing bean by brute force, you won't get the HTML, you'll get the escaped version of the HTML. The hutputText control is one of the few ways to actually inject raw HTML programmatically into a JSF view, since as a general rule, JSF prefers to enforce the separation of Model, View and Controller.
A lot the of modern-day software development platforms are designed to permit parcelling out work to those with the best aptitude for it. A lot of modern-day business is predicated on making one person do all the work, regardless of aptitude.
reubin haz
Ranch Hand
Joined: May 12, 2005
Posts: 287
posted
0
Thanks Tim.
I often use javascript to enforce some change on html, rather that to use some third party framework. I know it's not always the best way to do, but I think it's also not uncommon to have business logic, or control, in javascript in many populate websites.
But the page does not show up any html for icefaces tags, when I use firebug to look at them, the code are there, but its in grey color, looks like been hidden, and I found some code being inserted:
It looks like been added by icefaces. But why the <ice:menuBar>, <ice:menuItem> tags are not displayed at all?
This message was edited 1 time. Last update was at by reubin haz