try:

<s:a theme="ajax" href="%{copyImageGallery}"
targets="dataImageDiv%{id}"/>">Copy</s:a>


if id is on the stack, you can get it with OGNL

On Thu, Mar 13, 2008 at 10:49 AM, matthieu martin <[EMAIL PROTECTED]> wrote:
> Hi all !
>
>  I have a little issue and I find no clues on the web, so i'm turning myself
>  to you.
>
>  I have a piece of code like this :
>
>
>  <div id="menu_image_gallerys<s:property value='id'/>">
>
>           <s:property id="<s:property value='id'/>" value="id"/>
>
>           <s:a theme="ajax" href="%{EditImageGallery}"
>  targets="dataImageDiv<s:property value='id'/>">Edit</s:a>
>
>           <s:a theme="ajax" href="%{MoveImageGallery}"
>  targets="dataImageDiv<s:property value='id'/>">Move</s:a>
>
>           <s:a theme="ajax" href="%{copyImageGallery}"
>  targets="dataImageDiv<s:property value='id'/>">Copy</s:a>
>
>  </div>
>
>  <div id="dataImageDiv<s:property value='id'/>" />
>
>
>
>  this piece of code is placed in a loop, and creates a small menu for each
>  images I have in galleries. The dataImageDiv is used to contain whatever
>  form I need.
>
>  The problem is that my <s:property> tags contained in my <s:a> tags aren't
>  interpreted. After few manipulations, I observed that the <s:property> tag
>  is interpreted only if it's not contained in a struts tag. For instance :
>
>  <div id="dataImageDiv<s:property value='id'/>" />
>
>  produces
>
>  <div id="dataImageDiv1" />
>
>  BUT
>
>  <s:div id="dataImageDiv<s:property value='id'/>" />
>
>  produces
>
>  <div id="dataImageDiv<s:property value='id'/>" />
>
>
>
>  Thus, my piece of code produces :
>
>  <div id="menu_image_gallerys1">
>
>           1
>
>           <s:a theme="ajax" href="%{EditImageGallery}"
>  targets="dataImageDiv<s:property value='id'/>">Edit</s:a>
>
>           <s:a theme="ajax" href="%{MoveImageGallery}"
>  targets="dataImageDiv<s:property value='id'/>">Move</s:a>
>
>           <s:a theme="ajax" href="%{copyImageGallery}"
>  targets="dataImageDiv<s:property value='id'/>">Copy</s:a>
>
>  </div>
>
>  <div id="dataImageDiv1/>
>
>
>
>  As I'm using this in a loop, it's obviously not working, the targets and the
>  divs not matching.
>
>  This is driving me nuts. Do I do something wrong ? Would you have an idea ?
>  The <s:head theme="ajax"/> is well included in my header.
>
>  Thanks in advance,
>
>
>
>  Matthieu
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to