I have a URL as a string stored as an attribute in a class, and I am trying to retrieve it through EL in the outputLink like below:
<h:dataTable value="#{flagData.countries}" var="country"
styleClass="table table-striped table-hover" border="1">
<h:column>
<f:facet name="header">Name</f:facet>
#{country.name}
</h:column>
<h:column>
<f:facet name="header">Flag</f:facet>
<h:outputLink value="#{country.flag}"></h:outputLink>
#{country.flag}
</h:column>
</h:dataTable>
But this isn't working.
I want the URL stored in #{country.flag}
to be a clickable URL link. How do I do this?
EDIT:
This is the generated html:
<td>
Argentina
</td>
<td><a href="http://www.flags-and-anthems.com/flag-argentina.html" class="btn btn-link"></a>
http://www.flags-and-anthems.com/flag-argentina.html
</td>