2008/10/6 dcosio <[EMAIL PROTECTED]>:
>
> Ah, I tried that and it did fail. This is quite a change from tiles 1.

I don't think so, it is a change from "Tiles 2.0.3" where there was a
bug (or an "unintended feature").

> I
> guess I will have to go through and redefine these. So, there is no way to
> get the current context values out to use them in the putAttribute tags? I
> did try "useAttribute tags .. and that didn't work.. This seems strange that
> I loose the values

You don't loose them, they are available to an "outer" context.
In the e-mail with the 3 options, the first was this:

<snip>
1. Use <tiles:importAttribute> to import attributes and then use it in
<tiles:putAttribute>

For example:

<tiles:importAttribute name="pageContent">
...
<tiles:insertAttribute name="pageContent">
      <tiles:putAttribute name="pageContent"  value="${pageContent}" />
</snip>

So you have to use the <tiles:importAttribute> tag (or
<tiles:useAttribute>) *outside* of <tiles:insertAttribute>.

Antonio

Reply via email to