Browser widget and LocationListener [message #37218] |
Thu, 12 July 2007 09:50 |
Eclipse User |
|
|
|
Originally posted by: mehow.infogenia.pl
Hi there,
I tried to use a workaround described in this post:
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg00238.html
(as well as two other) to add a file upload functionality to my RAP
application. What I don't know however is how to let the RAP part of the
application know that the file has been uploaded (or in general that the
form has been submitted). I tried to add LocationListener to the Browser
widget but the events don't fire unless the url is set directly in the
code. Is it possible to fix that? If not, what are other possible ways
to react upon the change?
Thanks in advance,
Michał
|
|
|
Re: Browser widget and LocationListener [message #37596 is a reply to message #37218] |
Mon, 16 July 2007 07:44 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
I am not sure whether the original browser widget reacts on url changes in
the browser, we 'll have to check that and if so think about a solution.
Unfortunately the browser widget isn't realy on our top priority list, so
this may take a while. One possible solution for your problem I could think
of is to use the background process functionality available since M4. You
could start a Job as soon as you are opening the browser widget that checks
whether a upload is in progress and inform the RAP UI about the progress.
After the browser widget is disposed of you could also finish the job.
Ciao
Frank
"Micha
|
|
|
Re: Browser widget and LocationListener [message #37697 is a reply to message #37596] |
Mon, 16 July 2007 08:30 |
Eclipse User |
|
|
|
Originally posted by: mehow.infogenia.pl
Frank Appel pisze:
> Hi,
>
> I am not sure whether the original browser widget reacts on url changes in
> the browser, we 'll have to check that and if so think about a solution.
It definitely does, as can be seen with this snippet:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet128.java?view=co
Would you like me to file a bug report?
> Unfortunately the browser widget isn't realy on our top priority list, so
> this may take a while. One possible solution for your problem I could think
> of is to use the background process functionality available since M4. You
> could start a Job as soon as you are opening the browser widget that checks
> whether a upload is in progress and inform the RAP UI about the progress.
> After the browser widget is disposed of you could also finish the job.
Thanks, I might try that. Or since the browser is going to be displayed
in the RAP pop-up I might just let the user close it himself, by giving
him no other option when the upload is finished :)
Michał
> Ciao
> Frank
>
>
> "Michał Tkacz" <mehow@infogenia.pl> schrieb im Newsbeitrag
> news:f74tgg$57r$1@build.eclipse.org...
>> Hi there,
>>
>> I tried to use a workaround described in this post:
>> http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg00238.html
>> (as well as two other) to add a file upload functionality to my RAP
>> application. What I don't know however is how to let the RAP part of the
>> application know that the file has been uploaded (or in general that the
>> form has been submitted). I tried to add LocationListener to the Browser
>> widget but the events don't fire unless the url is set directly in the
>> code. Is it possible to fix that? If not, what are other possible ways to
>> react upon the change?
>>
>> Thanks in advance,
>>
>> Michał
>
>
|
|
|
|
Re: Browser widget and LocationListener [message #38566 is a reply to message #38299] |
Tue, 17 July 2007 09:02 |
Eclipse User |
|
|
|
Originally posted by: mehow.infogenia.pl
Here it is: https://bugs.eclipse.org/bugs/show_bug.cgi?id=196787
Michał
Frank Appel pisze:
> Hi,
>
> a bug report would be a good reminder, thx.
>
> Ciao
> Frank
>
> "Michał Tkacz" <mehow@infogenia.pl> schrieb im Newsbeitrag
> news:f7fabv$cq2$1@build.eclipse.org...
>> Frank Appel pisze:
>>> Hi,
>>>
>>> I am not sure whether the original browser widget reacts on url changes
>>> in the browser, we 'll have to check that and if so think about a
>>> solution.
>> It definitely does, as can be seen with this snippet:
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet128.java?view=co
>> Would you like me to file a bug report?
>>
>>> Unfortunately the browser widget isn't realy on our top priority list, so
>>> this may take a while. One possible solution for your problem I could
>>> think of is to use the background process functionality available since
>>> M4. You could start a Job as soon as you are opening the browser widget
>>> that checks whether a upload is in progress and inform the RAP UI about
>>> the progress. After the browser widget is disposed of you could also
>>> finish the job.
>> Thanks, I might try that. Or since the browser is going to be displayed in
>> the RAP pop-up I might just let the user close it himself, by giving him
>> no other option when the upload is finished :)
>>
>> Michał
>>
>>> Ciao
>>> Frank
>>>
>>>
>>> "Michał Tkacz" <mehow@infogenia.pl> schrieb im Newsbeitrag
>>> news:f74tgg$57r$1@build.eclipse.org...
>>>> Hi there,
>>>>
>>>> I tried to use a workaround described in this post:
>>>> http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg00238.html
>>>> (as well as two other) to add a file upload functionality to my RAP
>>>> application. What I don't know however is how to let the RAP part of the
>>>> application know that the file has been uploaded (or in general that the
>>>> form has been submitted). I tried to add LocationListener to the Browser
>>>> widget but the events don't fire unless the url is set directly in the
>>>> code. Is it possible to fix that? If not, what are other possible ways
>>>> to react upon the change?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Michał
>
|
|
|
Powered by
FUDForum. Page generated in 0.03667 seconds