BTW, there's a little known feature of tacos, the template binding.
With it, you can do:
title="template:${appTitle} - ${sectionTitle}"
Mark wrote:
Weird, now it works.
I got some crazy error which I can not remember any more just now. I
had already taken it out and just tried this one:
<html jwcid="@Shell" title="ognl: {appTitle+ ' - ' +sectionTitle}"
stylesheet="asset:mainCss">
Then I got your email and took the { and } off again, but I can not
reproduce the problem I had earlier... Maybe something didn't
reload/propagade properly.
Oh well... better this way than the other way around.
Thank you for the response.
MARK
Schulte Marcus wrote:
That should work just fine - which error do you get?
-----Original Message-----
From: Mark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 09, 2006 8:16 AM
To: Tapestry users
Subject: Concatenating strings in OGNL
Hi,
how can I concatenate strings using OGNL?
What I would like to do is something like this:
<html jwcid="@Shell" title="ognl:appTitle + ' - ' + sectionTitle"
stylesheet="asset:mainCss">
The resulting title should look like this: "My Application -
Admin Section".
Is there a way to do this in OGNL or do I need to add a Java
function to
the page/component?
Thanks,
MARK
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]