Since you didn't have a problem with the auto save, I'm playing around with our setup to see if I could figure out what is going wrong.
I've customized the interface because I want the user to only get a subset
of the available options. To do this, I took the
doc\gui\gui\app\common.xxe_gui, renamed it to customize.xxe_gui and placed
it in the addon directory. Then I removed all the options that I did not
want the user to see. I've attached the customize.xxe_gui.
Is this the correct way to customize the interface? When I have the
customize.xxe_gui in the addon directory, the jnlp file that is created,
contains the following.
<property name="javaws.XXE.guiCustomizations"
value="addon:customize.xxe_gui;addon:mathml_config/common/customize.xxe_gui"
/>
When I change the jnlp to
<property name="javaws.XXE.guiCustomizations"
value="addon:mathml_config/common/customize.xxe_gui"/>
the automatic saves work fine. Can you tell me what is wrong with my
customization file?
Henry
-----Original Message-----
From: Hussein Shafie [mailto:[email protected]]
Sent: Thursday, July 29, 2010 3:58 AM
To: Henry Mok
Cc: [email protected]
Subject: Re: [XXE] automatically saving documents
Sorry but I didn't manage to reproduce the auto-save problem you
describe. Here's what I did to attempt to reproduce the problem.
[1] Unzipped the WebDAV add-on in XXE_install_dir/addon/
[2] Ran:
XXE_install_dir/bin/deploywebstart -applet editor2 -index
[3] Ran (our WebDAV server requires the user to authenticate
herself/himself):
java -cp xxe.jar com.xmlmind.netutil.SimpleAuthenticatorModule hussein
my_secret - "Document Repository"
CgpEb2N1bWVudCBSZXBvc2l0b3J5CgpodXNzZWluCm15X3NlY3JldA==
[4] Modified the generated XXE_install_dir/webstart/index.html as follows:
<html>
<head>
<title>XMLmind XML Editor Professional Edition 4.6.1</title>
</head>
<body bgcolor='white'>
<applet name="XXE" id="XXE" mayscript
code="com.xmlmind.xmleditapp.applet.Applet"
width="100%" height="600">
<param name="jnlp_href" value="xxe.jnlp">
<param name="appClass"
value="com.xmlmind.xmleditapp.applet.Editor2App">
<param name="separate_jvm" value="true">
<param name="classloader_cache" value="false">
<param name="argument0" value="-putpref">
<param name="argument1" value="autoSaveInterval">
<param name="argument2" value="300">
<param name="argument3" value="-putpref">
<param name="argument4" value="autoSaveTimeout">
<param name="argument5" value="30">
<param name="argument6" value="-auth">
<param name="argument7"
value="CgpEb2N1bWVudCBSZXBvc2l0b3J5CgpodXNzZWluCm15X3NlY3JldA==">
<param name="argument8"
value="http://localhost:8080/xdr/dav/xxe/docsrc/user/changes.html">
Sorry but XMLmind XML Editor requires the Java<sup>TM</sup> Plug-In
version 1.6.0_10 and above in order to run.
</applet>
</body>
</html>
[5] Opened "http://localhost/xxe/" (mapped to XXE_install_dir/webstart/
on my machine) in Firefox
[6] Modified something in changes.html. After waiting for 30s, the
document is automatically saved. Seen the corresponding status messages.
Also after typing more than 300 chars, the document is automatically saved.
Did that several times, it always worked.
Henry Mok wrote:
> Hello,
>
>
>
> I have a question about having the applet automatically save the edited
> document. I tried this feature using the application and it worked
> great. We are using the webdev plugin to save to a remote file.
>
>
>
> But when I deploy this to the applet, it doesn't seem to work. Neither
> the "Max modifications before saving" or "Idle time" triggers a save. I
> am running the applet with the following options.
>
>
>
> <param name="argument27" value="-putpref">
>
> <param name="argument28" value="autoSaveInterval">
>
> <param name="argument29" value="30">
>
> <param name="argument30" value="-putpref">
>
> <param name="argument31" value="autoSaveTimeout">
>
> <param name="argument32" value="30">
>
> <param name="argument33" value="-putpref">
>
> <param name="argument34" value="makeBackupFiles">
>
> <param name="argument35" value="true">
>
>
>
> Is this correct? Is there any problems with the save when dealing with a
> remote file (webdav)? Is there any way of triggering a save through
> applet scripting?
>
>
>
> Do the preferences that you set in the application carry over to the
> applet when you deploy it? If I set up the preferences the way I like
> it, do I still have to use the putprefs to make sure the applet and the
> application work the same way?
>
>
>
> Thanks for all your help,
>
> Henry
>
>
> ------------------------------------------------------------------------
>
>
> --
> XMLmind XML Editor Support List
> [email protected]
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
customize.xxe_gui
Description: Binary data
-- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

