You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by "Paul Sharples (JIRA)" <ji...@apache.org> on 2010/03/22 12:33:27 UTC

[jira] Commented: (WOOKIE-44) Default widget returns js "error" when loaded into a browser

    [ https://issues.apache.org/jira/browse/WOOKIE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848088#action_12848088 ] 

Paul Sharples commented on WOOKIE-44:
-------------------------------------

As Scott stated above, IE8 does not support __defineGetter__ and __defineSetter__ prototypes.  Instead it uses the following syntax...

Object.defineProperty(domObjectOnly + propName, {
                                get: getMethod(){// code here},
                                set: setMethod(param){ code here}
                        });

There appears to be no way to define setters/getters on user defined objects in IE. (only DOM objects).  If you try to do it, you get the "unsupported method" alert.   According to Microsoft, they intend to open up the Object.defineProperty mechanism to include user objects in IE9 (which is not until next summer unfortunately)

I have checked in a partial fix for this and the error box now does not appear in IE8. I have used object assignment to get around the problem, so we can read the initial values into the preferences okay. However any updates to the preferences in the session are not persisted back to the wookie backend because the  WidgetPreference.setItem() method is not being called and in turn neither is Widget.setPreferenceForKey(key, value);


> Default widget returns js "error"  when loaded into a browser
> -------------------------------------------------------------
>
>                 Key: WOOKIE-44
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-44
>             Project: Wookie
>          Issue Type: Bug
>          Components: Server
>         Environment: Windows Vista sp2, mysql 5.0, tomcat 5.5. (IE 8 & FF 3.5)
>            Reporter: Paul Sharples
>             Fix For: 0.8.1
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Default widgets return js "error"  when loaded into a browser
> (1) Navigate to http://localhost:8080/wookie
> (2) Click "instantiate a widget"
> (3) Use the default form data, click submit
> (4) Copy/paste the url found between the <url></url> tags into another browser window
> (5) Js error message appears
> This also happens for instances of the discussion & vote widgets

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.