Community
Participate
Working Groups
Build Identifier: 20110924 nightly build VE does not work when service binding code added Reproducible: Always Steps to Reproduce: 1. Create new Web Client with Service Project 2. Create a service and add the binding in DD editor 3. Create a RUIHandler, drag and drop some widgets into it. Make sure the design view and preview works well. 4. Add service binding declaration in source view "srv service1 {@Resource};" 5. Switch to design view and preview, no widgets can be shown
resource binding URI set as workspace://test1/server.service1 in DD editor
Reset component to JavaScriptGen Error message: Could not render UI [CRRUI3651E] no service binding "srv" in deployment descriptor "test1" [CRRUI2094E] ServiceBinder.ServiceBinder.loadBindFile() [native JavaScript] ServiceBinder.ServiceBinder.getBinding() [native JavaScript] Uncaught [type=eglx.services.ServiceInvocationException] test1/client/h1.html?contextKey=7:92
What name was used in the DD file when entering the binding for "workspace://test1/server.service1"? After Joe's change from last week, the binding name must now match the name of the Variable (e.g. srv in this case), and not the Type.
This is working for me, so long as you do what Brian said and use the correct binding name. If this is still a problem, please reopen and attach your project.
Thanks Brian & Justin, it works.
Some additional questions. In the add resource binding wizard, user browser the REST service/interface. Then the REST service binding name will set to the service/interface type by default, shall we add some message to inform user change the name to variable name? Just a thought in mind, thanks for your comments.
Yes, we have a bug opened for that suggestion - see bug 358659
Ok, thanks Justin