-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

the following example is extremely simplified, but the underlying
problem is real.

I have a custom component with an optional parameter 'x'. If the
parameter is present, I want to render

<div myAttribute="${x}" t:id="abc">Hello</div>

otherwise I want the same thing but without the HTML attribute:

<div t:id="abc">Hello</div>



For technical reasons (I use a third-party JS framework) I do not want
to render an empty attribute but really remove the attribute from the
HTML output.

Using <t:if> with <p:else> requires the rendered <div> to have a
different t:id for both cases. I know why Tapestry introduces that
constraint, but it complicates stuff significantly in my situation.

So - any ideas or suggestions?

Thanks in advance

- - Arno

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlD1bZUACgkQbmZsMyUPuXR+rgCgzLVTUGUMQPT285dvEOS6sPUk
bNwAnjr9A+qpsmW/D3YcUoye85Dc0qLE
=BluL
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to