Sorry, I guess an example is the best way to show my problem:
<tr jwcid="@For" source="ognl:riddleList" value="ognl:model" element="tr">
<td class="texto2"><span jwcid="@Insert" value="ognl:model.riddle"/></td>
   <td width="65">
       <a href=javascript:alert(1)>
           <img height=40 alt="" src="imagens/IAdv.gif" width=63 border=0>
       </a>
       <a href="">&nbsp;</a>
   </td>
</tr>

I want my want to be generated dinamically. The number comes from the
database, inside an object called Model. How can I place it there?



On 8/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

Yes, also don't forget the power of "this" and how it changes depending on
context. I'd have to see your code but it's quite possible that you can
navigate from "this" to any dom node in your browser if "this" points to a
dom node.

On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote:
>
> i guess i'm not too clear what you want to achieve:
>
> i suppose you can have an informal parameter onclick=ognl:clickAction
and
> then create the javascript in the getClickAction which forms the string
> based on the current ID
>
> On 8/4/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
> >
> > Hi all
> >
> > I need to pass a parameter to a JS alert(). This is repeated in
several
> > rows
> > of a table created with a @For component, and the parameter is the id
of
> > the
> > elements of the current row. Passing <span> will of course break the
JS
> > function and the HTML its in.
> >
> > Can anyone please sugest a different solution?
> >
> > --
> > Cumprimentos,
> > Rui Pacheco
> >
> >
>
>
> --
> Thanks, Karthik
>
>


--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.




--
Cumprimentos,
Rui Pacheco

Reply via email to