aspose file tools*
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
Author

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

Dheeman Basu
Greenhorn

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

Now let's say table is defined like following:

<rich:dataTable
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:columnGroup>
</f:facet>

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


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
Greenhorn

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>
</rich:dataTable>

Hope this Helps
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to stop Richfaces replace <> with &lt; and &gt;