|The curious RAP FileDialog [message #838080]
||Fri, 06 April 2012 14:38
| Georges Bachelier
Registered: May 2010
Hello Everybody !|
I have successfully and easily converted a simple RCP application to a RAP one.
Encouraged by this first success, I started to convert a second simple application of mine which reads an input file from the file-system, encrypts it and writes the encrypted file to the file-system.
The GUI is very simple: a Text widget and a Browse button for the input file; the same couple of widgets for the encrypted output file. I use the FileDialog widget from RAP 1.4 Incubator to specify the input and output files pathnames.
The current FileDialog behavior does not suit my needs: it contains its own Browse button, which means the user has to click two Browse buttons before the file selection dialog pops up. This is the first issue. The second problem is that the dialog only displays the selected file name, not its full pahname on the user's file system. The third issue arises when I update the Text widget with FileDialog.getFileName() which displays a strange file pathname including a \Temp folder and adds a series of numbers to the file name ,like in util.2624504061871153546.jar.
Is there a chance that the RAP FileDialog behavior evolves in the future, making it usable the same way than the regular SWT one, or is my request absolutely ridiculous ?
In others words, should I wait for the June release (or more), or abandon RAP (which would be really disappointing).
Thanks a lot in advance for your time !
|Re: The curious RAP FileDialog [message #840579 is a reply to message #840535]
||Tue, 10 April 2012 09:02
| Ivan Furnadjiev
Registered: July 2009
Location: Sofia, Bulgaria
save and reload of the user settings is done on the server, not on the
client. See RWT#getSettingsStore for more details.
On 4/10/2012 10:52 AM, Georges Bachelier wrote:
> Hi Ivan!
> Thanks a lot for your reply. Everything is perfectly clear now, but I
> foresee an issue with the file selection mechanism in RAP. In many
> applications, we save user's entries from dialogs and wizards to a
> settings file. Settings are then loaded during the next session.
> Since I cannot get local files pathnames selected by the user, I am
> afraid RAP applications cannot fully support saving and reloading
> user's settings. Am I right? Can you see a workaround to this?
> Many thanks in advance for your time,
Professional services for RAP and RCP?
Powered by FUDForum
. Page generated in 0.01871 seconds