Hi Alan,You should use the "disabled" parameter of @DirectLink component instead of a @Conditional:
<ul>
<span jwcid="[EMAIL PROTECTED]"
source="ognl:appMenuNames"
value="ognl:eachAppName"
>
<li jwcid="@Any"
class="ognl:eachAppName == thisAppName ? 'selected' : ''">
<a href"#"
jwcid="@DirectLink"
listener:"listener:selectApp"
disabled="ognl:eachAppName == thisAppName"
>
<span jwcid="@Insert" value="ognl:appTitle">
App Title
</span>
</a>
</li>
</span>
</ul>
Hope this helps.
-Filip
Alan Chandler wrote:
I am trying to do a list of items in a list, with a condition that means that in certain circumstances a @Directlink would not get thrown. This gives a parse error exception because it is not allowed to have dynamic components which are not called. What is the standard way of working around such an issue?The following (excuse the word wrap) is my attempt at this which is not working<ul><span jwcid="[EMAIL PROTECTED]" source="ognl:appMenuNames" value="ognl:eachAppName"> <li jwcid="@If" condition="ognl:eachAppName == thisAppName" class="selected"> <a href"#"> <span jwcid="@Insert" value="ognl:appTitle >App Title</span></a></li><li jwcid="@Else" condition="ognl:eachAppName == thisAppName"><a jwcid="@DirectLink" listener="listener:selectApp" parameters="ognl:eachAppName"><span jwcid="@Insert" value="ognl:appTitle">App Title</span> </a> </li> </span> </ul>
smime.p7s
Description: S/MIME Cryptographic Signature
