Is there a way to check freemarker <#if> condition inside the <@s.select tag>?
for example i need sometething like
<@s.select id="myId"
name="travellerModif[2].type"
value="${modifiedTraveller.type}"
list="personTypeOpt" listKey="code" listValue="label"
<#if modifiedTraveller.modifType == "SUPPRESS">cssClass="hidden"</#if>/>
But this is gicing me error:
Encountered: "#" (35), after : "" in
Thanks
If the default of
cssClassis""(or whatever known value), you could utilize boolean-formatting:Otherwise you have to use two @s.select calls and put them into an #if/#else.