[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re[3]: doing post request to a tapestry page
From:       Yury Luneff <bitterman () ya ! ru>
Date:       2009-02-27 12:22:38
Message-ID: 1221800235.20090227152238 () ya ! ru
[Download RAW message or body]

>> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic