This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 121080 [details] Catalog, and xsd for test I have a gwt file like that : <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:gwt="urn:import:com.google.gwt.user.client.ui"> </ui:UiBinder> As I can't use the gwt4nb with 7.2 and I only need the completion, I have added in the User catalog (tools/DTD and Xml schema) the two reference to local files, using the systemId field, filled with 'urn:....' and so on. The completion is not working (<gwt:...). Then I tried to create a validated xml schema, the system don't see my schemas. I tried to make a catalog file : <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.1//EN" "http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="urn:import:com.google.gwt.user.client.ui" uri="com.google.gwt.user.client.ui.xsd"/> <system systemId="urn:ui:com.google.gwt.uibinder" uri="UiBinder.xsd"/> </catalog> This don't work...
Support for schemas with was broken for years; I partially fixed it before 7.1 freeze, but just for namespaces with HTTP protocol (was too late to UI change). The catalog UI has to change, to have a specific option for schemas. It seems that the completion processing has yet another issues with URN scheme; some hidden parameters are passed to catalog as query string, which is then not parsed back in Catalog implementation.
I think this is a really important to correct this. It's now a standard functionnality in the two other contestant IDE (eclipse and intellij) Do you think it will be possible to correct this for 7.2 ?
Not really, defective handling (or bad assumptions of) URIs crosses boundaries of several modules and sits there for a long time, so I fear destabilizing 7.2. It was rather hard to fix things in xml catalog & validation area wihtout breaking something, I wouldn't recommend to touch it at the start of RC cycle.
hmmm,ok. Any turnaround ? If we use a schemaLocation inside the xml ? I've to test if gwt is ok with that.
Ok, it works like that : <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "urn:ui:com.google.gwt.uibinder UiBinder.xsd urn:import:com.google.gwt.user.client.ui com.google.gwt.user.client.ui.xsd"> <g:HorizontalPanel> <g:Label>Keep your ducks</g:Label> <g:Button></g:Button> <g:Label>in a row</g:Label> </g:HorizontalPanel> </ui:UiBinder> And gwt is agree. Anyway, it's a basic feature. I'm proud to promote netbean but this is needed I think.
Hi, It is still not working in 8.0.2! Maybe in 8.1? Cheers, Tamas
Still not available in NetBeans 8.1. Please add code completion support into netbeans for followings. ui='urn:ui:com.google.gwt.uibinder' g='urn:import:com.google.gwt.user.client.ui' p='urn:import:com.vaadin.polymer.paper.widget' i='urn:import:com.vaadin.polymer.iron.widget'