Fabio Mancinelli wrote:

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

On Tue, 4 Mar 2003, Cedric Dumoulin wrote:



Hi,

It looks like your unlucky using Tiles ;-).



Thank you for your answers. I admit that some of my questions were a bit brain-damaged :) Anyway passing a definition to the vboxLayout via the <add beanName="..."/> doesn't work because all the passed attributes are inserted in the vboxLayout by using a <insert name="..."/>

I made it work by modifying the vboxLayout in this way:

...
<%
Iterator i = list.iterator();
while(i.hasMoreElement()) {
  String name = (String)i.next();
%>
<logic:present name="<%= name %>">
<%--A bean is present with the attribute name so it should be a definition--%
<tiles:insert beanName="<%= name %>"/>
</logic:present>
<logic:notPresent name="<%= name %>">
<%--Standard tiles insertion-->
<tiles:insert name="<%= name %>"/>
</logic:notPresent>
<%
 }
%>

So, when I insert that tile I alway use <add name="..."/> regardless if I am passing a definition (local or tile-config defined) or a path to another tile.This is necessary, I think, because <add beanName> doesn't work at all. Do you think this is a reasonable solution?

I think this is a good solution.

Cedric


However this solution fails for adding normal strings, but I agree with you (Cedric) that you should not compose body tiles with a list of small strings packed in a vboxLayout! :) So the lack of support for normal strings isn't really an issue!


A presto,
Fabio

- -- - -----------------------------------------------------------------------------
Fabio Mancinelli, PhD student EMail : [EMAIL PROTECTED]
Dipartimento di Informatica WWW : http://www.di.univaq.it/~mancinel
Universita' dell'Aquila - -----------------------------------------------------------------------------


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6

iD8DBQE+ZRG96dsQbk2R3cMRAhwpAKDE6JedQaXKz6I4sg4SjMVovJ2OOgCfb1HE
URKleHqTlaYkxtJS5p7izZg=
=PdU8
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
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]



Reply via email to