On Thu, 16 Dec 2010 13:05:31 -0200, Cucchietti Denis
<denis.cucchie...@atosorigin.com> wrote:
Hi all !
Hi!
I've a question : it is possible to write an actionLink with a
MarkupWriter ?
Technically speaking, no, because you can only declare component instances
in templates. In addition, you can't instantiate components yourself for
use in other components or pages.
On the other hand, you can get the URL genarated for an ActionLink or
EventLink @Inject'ing ComponentResources and using it
createEventLink(String eventType, Object... context) method.
writer.writeRaw("<a id='delete'
href='../view.delete/"+childLevel.getId()+"?t:ac="+childLevel.getOrganism().getId()+"'>");
Why are you using writeRaw() instead of element()? Anyway, using hardwired
URLs is a very bad practice.
What you're trying to accomplish?
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org