bug: readonly upload controls not disabled

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug: readonly upload controls not disabled

Adrian Baker
I found that although you could disable upload controls in the model on the server, the browser control was not getting disabled. Fix was to add a clause to disable the xforms-upload-select control:

    handleResponse: function(o)
            ...
            // Handle readonly
           
            ...

            } else if(ORBEON.util.Dom.hasClass(documentElement, "xforms-upload")) {
                 setReadonlyOnFormElement(
                    ORBEON.util.Dom.getChildElementByClass(documentElement, "xforms-upload-select"), isReadonly);
            } else {
                // Other controls
                setReadonlyOnFormElement(documentElement, isReadonly);
            }
        }



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: bug: readonly upload controls not disabled

Alessandro Vernet
Administrator
Adrian,

On 9/6/07, Adrian Baker <[hidden email]> wrote:
>
>  I found that although you could disable upload controls in the model on the
> server, the browser control was not getting disabled. Fix was to add a
> clause to disable the xforms-upload-select control:
>  [...]

Thank you for the fix. It is now checked in. For reference the bug is:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=307524&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws