Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » FileDialog - filter behavior not as expected
FileDialog - filter behavior not as expected [message #732109] Mon, 03 October 2011 22:34 Go to next message
Ryan Donnelly is currently offline Ryan DonnellyFriend
Messages: 35
Registered: July 2009
Member
Hi,

A question about the incubator FileDialog. I am using it successfully
out of the box (using the 1.4 update site) with no modifications as
described here

http://eclipsesource.com/blogs/2011/06/23/uploading-files-with-rap-14/

However, the file extension filter does not behave as expected
The filter(s) shown in FileDialog are not passed to the browser's file
selection dialog (I am using Firefox 7.0.1). They are merely used to
validate the selection afterwards, turning it yellow with a ToolTip
"Warning: Selected file does not match filter" if it does not pass the
filter.

However, this is only a warning - if you hit OK, it uploads the file
anyway. It seems to me it should not allow the upload. Could you
please comment?

I assume that you didn't pass the filter through to the browser file
selection dialog for a good reason (not possible to do it across all
browsers?) Could you please explain?

I didn’t find any open RAP issue for either of my questions here. If
there is not one and you agree these are valid, I'll open one.


Thanks,

Ryan Donnelly
Re: FileDialog - filter behavior not as expected [message #732277 is a reply to message #732109] Tue, 04 October 2011 11:47 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Ryan,

as you already assumed, there is no way to tell the client-side file
dialog to filter the files that are displayed.

Regards,
Rüdiger


On 04.10.2011 00:34, Ryan Donnelly wrote:
> Hi,
>
> A question about the incubator FileDialog. I am using it successfully
> out of the box (using the 1.4 update site) with no modifications as
> described here
>
> http://eclipsesource.com/blogs/2011/06/23/uploading-files-with-rap-14/
>
> However, the file extension filter does not behave as expected
> The filter(s) shown in FileDialog are not passed to the browser's file
> selection dialog (I am using Firefox 7.0.1). They are merely used to
> validate the selection afterwards, turning it yellow with a ToolTip
> "Warning: Selected file does not match filter" if it does not pass the
> filter.
>
> However, this is only a warning - if you hit OK, it uploads the file
> anyway. It seems to me it should not allow the upload. Could you please
> comment?
>
> I assume that you didn't pass the filter through to the browser file
> selection dialog for a good reason (not possible to do it across all
> browsers?) Could you please explain?
>
> I didn’t find any open RAP issue for either of my questions here. If
> there is not one and you agree these are valid, I'll open one.
>
>
> Thanks,
>
> Ryan Donnelly

--
Rüdiger Herrmann

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: FileDialog - filter behavior not as expected [message #753388 is a reply to message #732277] Thu, 27 October 2011 00:50 Go to previous message
Ryan Donnelly is currently offline Ryan DonnellyFriend
Messages: 35
Registered: July 2009
Member
Thanks. For anyone on the newsgroup interested, a further discussion
can be found in this issue:

#361001 FileDialog accepts filtered file name extension
https://bugs.eclipse.org/bugs/show_bug.cgi?id=361001


-Ryan

On 04/10/2011 08:47, Rüdiger Herrmann wrote:
> Ryan,
>
> as you already assumed, there is no way to tell the client-side file
> dialog to filter the files that are displayed.
>
> Regards,
> Rüdiger
>
>
> On 04.10.2011 00:34, Ryan Donnelly wrote:
>> Hi,
>>
>> A question about the incubator FileDialog. I am using it successfully
>> out of the box (using the 1.4 update site) with no modifications as
>> described here
>>
>> http://eclipsesource.com/blogs/2011/06/23/uploading-files-with-rap-14/
>>
>> However, the file extension filter does not behave as expected
>> The filter(s) shown in FileDialog are not passed to the browser's file
>> selection dialog (I am using Firefox 7.0.1). They are merely used to
>> validate the selection afterwards, turning it yellow with a ToolTip
>> "Warning: Selected file does not match filter" if it does not pass the
>> filter.
>>
>> However, this is only a warning - if you hit OK, it uploads the file
>> anyway. It seems to me it should not allow the upload. Could you please
>> comment?
>>
>> I assume that you didn't pass the filter through to the browser file
>> selection dialog for a good reason (not possible to do it across all
>> browsers?) Could you please explain?
>>
>> I didn’t find any open RAP issue for either of my questions here. If
>> there is not one and you agree these are valid, I'll open one.
>>
>>
>> Thanks,
>>
>> Ryan Donnelly
>
Previous Topic:Problem with VIRTUAL TableViewer and selection
Next Topic:Change TreeItem height in RAP v1.4
Goto Forum:
  


Current Time: Fri Apr 19 16:41:12 GMT 2024

Powered by FUDForum. Page generated in 0.01722 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top