I know this thread is a little old but maybe someone will find this useful.
The variable in this case, listEditEnabled, has to do with enabling editing
of an ajaxified list of items.
<c:set var="listEditEnabled">
<sitemesh-decorator:getProperty property="meta.listEditEnabled" />
</c:set>
<c:if test="${empty listEditEnabled}">
<c:set var="listEditEnabled" value="true"/>
</c:if>
I added a metatag to pages that I don't want listEditEnabled with a content
value of false, otherwise the value is true.
Randy Burgess
> From: Christian Priebe <[email protected]>
> Reply-To: Struts Users Mailing List <[email protected]>
> Date: Sat, 10 Jan 2009 20:30:32 +0100
> To: Struts Users Mailing List <[email protected]>
> Subject: Re: [S2] Avoiding nested tags / Using Sitemesh properties within
> Struts 2 tags
>
> Thanks Dave für your answer!
>
> That's what I thought of first :) But I haven't found a solution yet.
>
> Unfortunately there apparently isn't an accepted notation like <s:set
> name="dynInc" scope="request"><decorator:getProperty
> property="paramName" /></set>.
> The value can only be set by the value-attribute, right?
>
> I hope there is another possibility. I didn't thought I'm the only one
> with such a need.
>
> Thanks,
> Christian
>
>
> Dave Newton schrieb:
>> Christian Priebe wrote:
>>> <s:include value="<decorator:getProperty property="paramName" />" />
>>>
>>> won't work. Now my question:
>>> What alternative do I have to achieve what I want (if there is a
>>> possibility at all)?
>>
>> Is there a way to put the decorator properties into a JEE scope? If
>> so, you can just use OGNL.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]