Community
Participate
Working Groups
new a service in RUI project, new a RUI handler, input call and chose content assist, select "service invocation in Rich UI application", the generated code is "call serviceOrInterfaceReferance.functionName returning to callbackFunctionName onException ServiceLib.serviceExceptionHandler;ll" There are two errors: 1. There is no serviceExceptionHandler in serviceLib 2. There is a ll
Before I defer this, I would like to see the patch for this issue.
Created attachment 207513 [details] patch for this defect This is the problem of template. The ServiceLib does not contain serviceExceptionHandler function anymore. So the fix will just remove the onexception ServiceLib.serviceExceptionHandler .
Where is the 'll' mentioned in the description coming from?
I think it's because ServiceLib.serviceExceptionHandler does not exist and did not use ${}//template grammar. So the template engine cause some problem(which produce "ll"). After change the template. It works fine.
I think we should change the template from 'ServiceLib.serviceExceptionHandler' to 'exceptionHandlerFunctionName'
(In reply to comment #5) > I think we should change the template from 'ServiceLib.serviceExceptionHandler' > to 'exceptionHandlerFunctionName' Ok. customer could use quick fix to generate the fucntion.
Go ahead and update the patch, test it to make sure that the 'll' characters are not added, and that quick fix will add the functions for callbackFunctionName and onExceptionHandlerFunctionName, and then commit the change. I am allowing this fix for the .7 release because this is something new users will try to do when working with services for the first time, and creating this type of invalid code in content assist looks bad.
Ok, committed the code, and resolve the defect. The "ll" turns out to be the defect of calculating the cursor position, which exists in RBD. I will open another defect to track the problem of "ll".
https://bugs.eclipse.org/bugs/show_bug.cgi?id=364782 the new defect was opened.
verified in 0.7.0.v201111270901