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.

Bug 214486 - Local User Xml schema not working neither code completion nor validation
Summary: Local User Xml schema not working neither code completion nor validation
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-20 08:42 UTC by yblazart
Modified: 2015-12-22 13:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Catalog, and xsd for test (12.95 KB, application/zip)
2012-06-20 08:42 UTC, yblazart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yblazart 2012-06-20 08:42:00 UTC
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...
Comment 1 Svata Dedic 2012-06-20 11:54:44 UTC
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.
Comment 2 yblazart 2012-06-20 12:26:46 UTC
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 ?
Comment 3 Svata Dedic 2012-06-20 12:34:40 UTC
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.
Comment 4 yblazart 2012-06-20 12:53:02 UTC
hmmm,ok. Any turnaround ? If we use a schemaLocation inside the xml ? I've to test if gwt is ok with that.
Comment 5 yblazart 2012-06-20 13:17:49 UTC
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.
Comment 6 smil 2015-08-18 22:09:44 UTC
Hi,

It is still not working in 8.0.2! Maybe in 8.1?

Cheers,

Tamas
Comment 7 hjchanna 2015-12-22 13:01:20 UTC
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'