Howdi !

How are you all today ? fine. I hope. Dear all, I'm having this
annoying problem that has already taken 18 hours from me. I have this
Widget that used to be working, then I just added a new Panel
correctly nested (informationPanel) in my .ui.xml file. Now when I
click on a button to do what the Widget used to do, I get the
following error, only visible through FireBug...

 java.lang.IllegalStateException: SimplePanel can only contain one
child widget

Here's the file where the problem is supposed to be.

<!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"
        
xmlns:tns="urn:import:com.techandsolve.bonificacionesc.web.client.base.widgets">
        <ui:style>
        </ui:style>
        <g:VerticalPanel ui:field="container">

        <tns:TNSInformationPanel ui:field="informationPanel"/>

        <g:HorizontalPanel styleName="tns-ButtonsBarHolder">
                <g:HorizontalPanel styleName="tns-ButtonsBar">
                        <g:Label 
styleName="tns-ButtonsBarSpacer">[&nbsp;</g:Label>
                                <tns:TNSButton ui:field="assignButton" />
                        <g:Label 
styleName="tns-ButtonsBarSpacer">&nbsp;|&nbsp;</g:Label>
                                <tns:TNSButton ui:field="calculateButton" />
                        <g:Label 
styleName="tns-ButtonsBarSpacer">&nbsp;|&nbsp;</g:Label>
                                <tns:TNSButton ui:field="saveAsButton" />
                        <g:Label 
styleName="tns-ButtonsBarSpacer">&nbsp;]</g:Label>
                </g:HorizontalPanel>
        </g:HorizontalPanel>
                <g:Label styleName="tns-PanelTitle" ui:field="sucursalLabel" />
                <g:Label styleName="tns-HelpText">
                        Seleccione una plantilla
                        de asignacion o una de las opciones a continuacion
                </g:Label>
                <g:Label styleName="tns-DottedLine">&nbsp;</g:Label>
                <g:HorizontalPanel>
                        <g:Label ui:field="pointsLabel" />
                        <tns:TNSTextBox 
ui:field="pointsToAsignTextBox"></tns:TNSTextBox>
                </g:HorizontalPanel>

                <g:HTMLPanel styleName="{style.html-panel}"
ui:field="employeesPanel">
                        <table>
                                <tr>
                                        <td>
                                                <g:Label styleName="tns-Label" 
ui:field="templateLabel" />
                                        </td>
                                        <td>
                                                <tns:TNSListBox 
ui:field="templatesList" />
                                        </td>
                                </tr>
                        </table>
                </g:HTMLPanel>
                <g:Label styleName="tns-PanelTitle" ui:field="employeesLabel" />
                <g:Label styleName="tns-HelpText">El siguiente formulario 
permite
asignar
                        puntos a las entidades que tiene a cargo</g:Label>
                <g:Label styleName="tns-DottedLine">&nbsp;</g:Label>
                <g:HTMLPanel>
                        <g:Grid ui:field="orgsGrid" />
                        <g:Grid ui:field="employeesGrid" />
                </g:HTMLPanel>
        </g:VerticalPanel>
</ui:UiBinder>

Could somebody please help me visualize what I'm possibly missing or
doing wrong ? I'm blind here, and I think I'm not even using a Panel
that extends from SimplePanel.

Help Me !

Sincerely,

Jose

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to