File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes How to stop Richfaces replace <> with < and > Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to stop Richfaces replace <> with &lt; and &gt;" Watch "How to stop Richfaces replace <> with &lt; and &gt;" New topic

How to stop Richfaces replace <> with &lt; and &gt;

Dheeman Basu

Joined: Mar 17, 2009
Posts: 12
I want to show a hyperlinks in Richface datatable.
Say for simplicity all my links are: <a href=""> Click Here </a>

Now let's say table is defined like following:

var="rec" value="#{beanList.records}"
rowClasses="jsf-table-odd, jsf-table-even">

<f:facet name="header">
<rich:columnGroup id="dataHeaderColGrp">
<rich:column> <h:outputText value="Links"/></rich:column>

<rich:column title="Links">
<h:outputText value="#{rec.text}" /></rich:column>

What should be the content of rec.text? In other words what must bean's getText() method return?
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
Have you looked at output link component(h: outputLink) ??
Rohit Boorugu

Joined: Oct 06, 2009
Posts: 14
hey why don't you do this

you can also use target="_blank" to open in a new window.
instead of this
<rich:column title="Links">
<hutputText value="#{rec.text}" /></rich:column>

Hope this Helps
I agree. Here's the link:
subject: How to stop Richfaces replace <> with &lt; and &gt;
It's not a secret anymore!