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 ?

[754 byte] By [kal132a] at [2007-11-27 5:56:58]
# 1
Use single quotes.action="#{defRepProjT1.defectID == 'somestring' ? 'criteria' : 'navig'}" I wonder you already have applied it correctly on the 'criteria' and 'navig'.
BalusCa at 2007-7-12 16:29:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...