commandlink question
Hi,
I want to use commandlink with action attribute that is set by a condition and i want to set the condition using EL as follows. I am not able to set the "somestring". It gives me error saying -
Caused by: javax.faces.el.ReferenceSyntaxException: Expression: #{(defRepProjT1.defectID == "somestring") ? 'criteria' : 'navig'}
<h:commandLink id="showDetail" actionListener="#{personBean.viewD}" action="#{(defRepProjT1.defectID == \"somestring\") ? 'criteria' : 'navig'}">
<h:outputText value="#{defRepProjT1.defectID}" />
<f:param name="defectIDNumber" value="#{defRepProjT1.defectID}"/>
</h:commandLink>
does anyone know how can i set the action attribute with string ?

