google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

Add support for <ui:text> usage in the UiBinder layout definition #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use <ui:text> in the UiBinder for he component that is targeted with the 
test 
<g:Label addStyleNames="{style.label}" ui:field="labelMatchingItems">
    <ui:text from="Label: " />
</g:Label>

What is the expected output? What do you see instead?
No errors or exception excepted but the following exception is thrown:
com.googlecode.gwt.test.exceptions.GwtTestUiBinderException: Found unexpected 
child element : <urn:ui:com.google.gwt.uibinder:text>

What version of the product are you using? On what operating system?
gwt-test-utils-0.39, Window Vista 32bit

Stack trace:
Caused by: com.googlecode.gwt.test.exceptions.GwtTestUiBinderException: Found 
unexpected child element : <urn:ui:com.google.gwt.uibinder:text> in 
com.google.gwt.user.client.ui.Label
    at com.googlecode.gwt.test.uibinder.UiObjectTag.appendElement(UiObjectTag.java:185)
    at com.googlecode.gwt.test.uibinder.UiObjectTag.addElement(UiObjectTag.java:64)
    at com.googlecode.gwt.test.uibinder.UiTagBuilder.endTag(UiTagBuilder.java:116)
    at com.googlecode.gwt.test.uibinder.UiXmlContentHandler.endElement(UiXmlContentHandler.java:41)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.googlecode.gwt.test.uibinder.UiBinderParser.createUiComponent(UiBinderParser.java:54)
    at com.googlecode.gwt.test.uibinder.UiBinderInvocationHandler.createAndBindUi(UiBinderInvocationHandler.java:86)
    at com.googlecode.gwt.test.uibinder.UiBinderInvocationHandler.invoke(UiBinderInvocationHandler.java:35)
    at com.ericsson.itk.framework.client.gui.components.listbuilder.$Proxy28.createAndBindUi(Unknown Source)
    at com.ericsson.itk.framework.client.gui.components.listbuilder.ListBuilderWidget.<init>(ListBuilderWidget.java:85)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at com.googlecode.gwt.test.utils.GwtReflectionUtils.instantiateClass(GwtReflectionUtils.java:500)
    at com.googlecode.gwt.test.uibinder.UiBinderInstanciator.instanciate(UiBinderInstanciator.java:158)
    ... 50 more

Original issue reported on code.google.com by tomislav...@gmail.com on 27 Aug 2012 at 1:26

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 27 Aug 2012 at 1:27

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 25 Nov 2012 at 4:25

GoogleCodeExporter commented 9 years ago
I just deployed a new 0.44-SNAPSHOT (for GWT 2.5) with a fix for <ui:text> 
support. Could you please give it a try and post some feedback so I could close 
the related issues (https://github.com/gwt-test-utils/gwt-test-utils/issues/14) 
?
Thanks !

Original comment by gael.laz...@gmail.com on 25 Nov 2012 at 4:26

GoogleCodeExporter commented 9 years ago
Will give it a try. Thanks.

Original comment by tomislav...@gmail.com on 28 Nov 2012 at 12:50