On Mon, 07 Jul 2014 09:41:35 -0300, squallmat . <squall...@gmail.com> wrote:

here's my code to be more clear :

In EnvoiFichiers.java :
.....
// Client sending files form
@Component(id = "sendFilesClientForm")
private Form formClient;

If you use @Component, you're declaring the component in the class, not in the template. If you want to just inject the component, you should use @InjectComponent instead. Otherwise, you should remove the parameters from the template and pass them using the @Component annotation. From your template, it seems you should be using @InjectComponent.

<t:if test="${userConnected.isClient()}">

Never, never, never eve use ${} expansions in component parameters. In 100% of the time, it's either wrong or useless. It should be <t:if test="userConnected.isClient()">

<t:Form id="sendFilesClientForm">

You haven't declared the Tapestry id (t:id) for the component, just the client-side HTML one, and they're different. It would work if you used <t:Form t:id="sendFilesClientForm"> instead.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply via email to