users@javaserverfaces.java.net

Re: SelectItem and hyper links

From: Gurkan Erdogdu <gurkanerdogdu_at_yahoo.com>
Date: Wed, 12 Sep 2007 14:08:58 -0700 (PDT)

Hi, use of escape SelectItem item = new SelectItem(i,"<a href=\"top\">" + i + "</a>")); item.setEscape(false); ----- Original Message ---- From: Arinté <jamarijr@gmail.com> To: users@javaserverfaces.dev.java.net Sent: Wednesday, September 12, 2007 10:31:39 PM Subject: SelectItem and hyper links I have a backing bean that is trying to populate a selectmany checkbox. But I want the checkbox to have links next to them instead of just plain text so I did this: is.add(new SelectItem(i,"<a href=\"top\">" + i + "</a>")); But when I run it through the server it shows up in IE/Firefox with this as the source code ...&lt;a href="top"&gt;2&lt;/a&gt;</label> So jsf is eating it spitting out something up. How can I get jsf to show the text as hyperlinks and not eat the <...> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@javaserverfaces.dev.java.net For additional commands, e-mail: users-help@javaserverfaces.dev.java.net ____________________________________________________________________________________ Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow