[
https://issues.apache.org/jira/browse/WOOKIE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925302#action_12925302
]
Paul Sharples commented on WOOKIE-44:
-------------------------------------
I've checked in a fix for IE9 beta which resolves the problem, but most IE
users still will be on version 8 unfortunately.
I tried to implement something to warn the user at runtime of the possible
problem, in the 'wookie-wrapper.js file'. I did this by using the try/catch
block to trap if the definition of the getter/setter failed.
Widget.preferences.name=value; // is legal syntax so can't trap it at runtime
However, I'm inclined not to do it this way as the warning would appear on each
widget whether its using the syntax or not. Also If several widgets are loaded
into a container application this could result in several alert boxes opening -
not very nice. As it stands the wookie-wrapper.js will remain silent on the
issue.
I've added an entry for this on the FAQ page, if users want more information.
As far as as doing a compatibilty check the only other thing I can think of is
to parse every .js file on import of a widget zip file into the wookie server
and try to replace any of the' Widget.preferences.foo=bar' type syntax with the
'Widget.preferences.setItem('foo','bar')' syntax.
> 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.9.0
>
> 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.