I have the following xhtml:
<s:fragment
rendered="#{selectCat.categoryTypes.contains('unclickable')}">
<h:outputText value="DONT CLICK #{selectCat.webName}" />
</s:fragment>
<s:fragment rendered="#{selectCat.categoryTypes eq null}">
<a href="/category/#{_category.fullName}"> #{selectCat.webName}</a>
</s:fragment>
And I am trying to read whether the type is unclickable..
The backend bean reads:
@ManyToMany(fetch = FetchType.LAZY, targetEntity = C_Type.class)
@JoinTable(name = "Category_Type", joinColumns = @JoinColumn(name = "CategoryId"), inverseJoinColumns = @JoinColumn(name = "TypeId"))
@XmlTransient
public Set<C_Type> getCategoryTypes() {
for (C_Type cc : categoryTypes) {
System.out.println("=============="+cc.getC_type()+"==============");
}
return categoryTypes;
}
What am I doing wrong, or what do I need to do to show a link as unclickable? IN the front-end? Thanks