Tuesday, August 30, 2011

StackLayoutPanel throws IndexOutOfBoundsException in design mode with GEP

Hi all,

as simple as this:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
</ui:style>
<g:HTMLPanel>
<g:StackLayoutPanel width="178px" height="217px">
<g:stack>
<g:customHeader size="20">
<g:Label>HEADER 1</g:Label>
</g:customHeader>
<g:Label>content 1</g:Label>
</g:stack>
</g:StackLayoutPanel>
</g:HTMLPanel>
</ui:UiBinder> 

This simple UiBinder throws IndexOutOfBoundsException when I switch from XML Source to Design mode in Eclipse plugin.

Internal Error

GWT Designer encountered unexpected internal error.

This could be caused by a GWT Designer bug or by a misconfiguration issue, conflict, partial update, etc.

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

I'm using Indigo up to date and GWT SDK 2.4.0 rc1 and GWT Designer 2.4.0 r37

But tested with Helios and GWT SDK 2.3.0 r36 with same results.

On the other hand there is no problem with <g:header> and when used in runtime mode, works well.

I've attached one report zip from GWT Designer.

Thanks

Daniel


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zUzwLVNUMBMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment