Em Thu, 26 Nov 2009 20:41:59 -0200, CarmenG <car...@synect.com> escreveu:
Sorry Uli that doesn't help me as the onSelected event cannot return a
value, the download file in my case. Can you elobarate a bit more?
onSelect() cannot, but onSuccess() can return a StreamResponse containing
your PDF file.
In my case onSelectedFromDownload and onSuccess are in 2 different
classes, how do I get onSuccess from the page class to notify the custom
component to download the file?
They could be in the component class. I can't see why not.
I would have a hidden TextField that would have its value copied from your
select tag using JavaScript. In this case, all you need is an onSuccess()
method in your component that uses the value and then returns the
StreamResponse.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, 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