Something in your subdirectory context value is confusing Tapestry.  I
think it is the colon character.  Can you provide a complete URL
generated by Tapestry.

T5 does a simple toString() on your context values (in your case, they
start as Strings anyway).  This is to avoid the complexity and mangled
URLs seen with T4 ... but occasionally you'll get a URL that confuses
Tapestry.

On 6/9/07, Hilco Wijbenga <[EMAIL PROTECTED]> wrote:
Hi all,

I've got the following in my Init.html:

<t:loop source="directory.options" value="subdirectory">
<a t:type="ActionLink" t:context="subdirectory"
t:id="subdir">${subdirectory}</a><br/>
</t:loop>

which nicely generates a list of links. The subdirectory parameter is
a string (i.e. directory.options is a List<String>, a list of
subdirectories).

In Init.java I have

public void onActionFromSubdir(final String subdirectory) {
System.out.println("subdirectory='" + subdirectory + "'");
}

which gets called when I click on one of the above links. However, the
subdirectory parameter is always empty (""). In the T5 tutorial with
integers this worked perfectly. What am I doing wrong?

On top of that I'm getting a warning:

[WARN] ResourceCache Alias request of
'file:/...dirs.../src/main/webapp/init.subdir/the/sub/dir' for
'file:/...dirs.../src/main/webapp/init.subdir/the/sub/dir'

(when selecting /the/sub/dir link). How can I suppress this?

Cheers,
Hilco

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




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to