You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Yury Luneff <bi...@ya.ru> on 2009/02/27 13:22:38 UTC
Re[3]: doing post request to a tapestry page
>> Yuri,
>> instead of using the /FIleReceiver URL, do construct a URL by using
>> component resources in your page, e.g.
>> FileReceiver...:
>> public String getUploadUrl() {
>> return
>> componentResources.createEventLink("fileUploaded").toAbsoluteURI();
>> }
>> in your page template, use something like this to pass the URL to your
>> applet:
>> <applet .....>
>> <param name="uploadUrl" value="${uploadUrl}" />
>> </applet>
> URL("http://localhost:8080" + getParameter("uploadUrl"), where
> uploadUrl is "/addfiles:fileUploaded" and passed as you proposed,
> triggers just addfiles page (at least, onActivate), but not the event
> fileUploaded. I don't know why.
> Actually, it is no difference in URLs, as the one i did was the same, but
> sure that's more appropriate way.
Sorry, after few more tries, it worked. Thanks for help and
attention!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org