[gatein-issues] [JBoss JIRA] (GTNPORTAL-2167) GateIn - Wicket Portlet Javascript Error

kien nguyen (JIRA) jira-events at lists.jboss.org
Thu May 3 03:36:22 EDT 2012


    [ https://issues.jboss.org/browse/GTNPORTAL-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689917#comment-12689917 ] 

kien nguyen commented on GTNPORTAL-2167:
----------------------------------------

Why/how it raised the bug with 'bind' function. Could you please give how to reproduce the bug!
you also try the example here: http://portletsinaction-gatein.googlecode.com/svn/trunk/wicket-example. It contains function using ajax requests.

I tested it with Gatein 3.2.0-GA.
                
> GateIn - Wicket Portlet Javascript Error
> ----------------------------------------
>
>                 Key: GTNPORTAL-2167
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-2167
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: User Interface
>    Affects Versions: 3.1.0-GA, 3.2.0-M01
>            Reporter: Ronny Pscheidl
>            Assignee: kien nguyen
>              Labels: portal-s66
>             Fix For: 3.3.0.CR01
>
>         Attachments: Util.js-patched_for_wicket_protlet
>
>
> If you use wicket-portlet ajax requests doesn't be submitted, because of the bind function in Util.js. You get errors like undefined when using bind function. new browser javascript egines already have this function, so it hasn't to be overwriten. wicket-ajax use this function a lot. Please update the javascript file in line 251 like this:
> /**
>  * @author jeremi joslin
>  * 
>  * Function util
>  */
> if (Function.prototype.bind == null) {
> 	Function.prototype.bind = function(object) {
> 	  var method = this;
> 	  return function() {
> 		method.apply(object, arguments);
> 	  }
> 	}
> }
> path: web\eXoResources\src\main\webapp\javascript\eXo\core

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list