Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 692357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:38:32+00:00 2026-05-14T02:38:32+00:00

… <g:VerticalPanel styleName={style.mainVerticalPanel}> <g:SplitLayoutPanel> <g:north size=700> <g:VerticalPanel> <g:ScrollPanel styleName={style.conversationPanelContainer}> <g:FlexTable ui:field=conversationPanel styleName={style.conversationPanel}></g:FlexTable> </g:ScrollPanel> <g:HorizontalPanel

  • 0
...
<g:VerticalPanel styleName="{style.mainVerticalPanel}">
    <g:SplitLayoutPanel>
    <g:north size="700">
        <g:VerticalPanel>
                <g:ScrollPanel styleName="{style.conversationPanelContainer}">
                    <g:FlexTable ui:field="conversationPanel" styleName="{style.conversationPanel}"></g:FlexTable>
                </g:ScrollPanel>
                <g:HorizontalPanel styleName="{style.messageTextAndSendPanel}">
                    <g:TextBox ui:field="messageText" styleName="{style.messageText}"></g:TextBox><g:Button ui:field="sendButton">Send</g:Button>
                </g:HorizontalPanel>
        </g:VerticalPanel>
    </g:north>
    <g:south size="300">
    <g:button>TestButton</g:button>
    </g:south>
    </g:SplitLayoutPanel>
</g:VerticalPanel>
...

Anything look wrong with this? All I’m trying to do is make a simple split panel but whenever I run this all I get is a blank page. Without any of the SplitPanel stuff, it works fine. The same happens with DockLayoutPanel.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:38:33+00:00Added an answer on May 14, 2026 at 2:38 am

    OK, got it working (see older versions of this answer for previous attempts ;)).

    My solution is based on Mail example.
    The working code:

    public class SplitTest implements EntryPoint {
    
        private static TestUiBinder uiBinder = GWT.create(TestUiBinder.class);
    
        interface TestUiBinder extends UiBinder<SplitLayoutPanel, SplitTest> {
        }
    
        /**
         * This is the entry point method.
         */
        public void onModuleLoad() {
            SplitLayoutPanel outer = uiBinder.createAndBindUi(this);
    
            RootLayoutPanel.get().add(outer);
        }
    }
    

    UiBinder *.ui.xml:

    <!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>
        .conversationPanelContainer, .conversationPanel, .messageTextAndSendPanel, .messageText {
          font-weight: bold;
        }
      </ui:style>
        <g:SplitLayoutPanel>
        <g:north size="700">
            <g:VerticalPanel>
                    <g:ScrollPanel styleName="{style.conversationPanelContainer}">
                        <g:FlexTable ui:field="conversationPanel" styleName="{style.conversationPanel}"></g:FlexTable>
                    </g:ScrollPanel>
                    <g:HorizontalPanel styleName="{style.messageTextAndSendPanel}">
                        <g:TextBox ui:field="messageText" styleName="{style.messageText}"></g:TextBox><g:Button ui:field="sendButton">Send</g:Button>
                    </g:HorizontalPanel>
            </g:VerticalPanel>
        </g:north>
        <g:south size="300">
        <g:Button>TestButton</g:Button>
        </g:south>
        </g:SplitLayoutPanel>
    </ui:UiBinder> 
    

    Note a number of things:

    • First of all: you had an error in your UiBinder XML template: it’s <g:Button>, not <g:button> (case sensitive)
    • The use of RootLayoutPanel instead of the usual RootPanel
    • I’m still a bit confused about the whole LayoutPanels thingy – in the Mail example they use a SplitLayoutPanel nested in a DockLayoutPanel, yet only the DockLayoutPanel is explicitly added to the RootLayoutPanel – am I to understand that the SplitLayoutPanel automagically also gets added (so that it can receive resize events, etc)? How about some other Widgets nested in the main LayoutPanel – do they have to be explicitly added to the RootLayoutPanel or only if they are the root of that Widget/Composite or is that not even possible? I don’t really have time atm to pursue this further – I’ll leave it as a homework for someone else 😉

    BTW: I’ve checked this code under Quirks mode and Standards mode – I don’t see a difference, both work O_o (though, this is a simple use of the SplitLayoutPanel – more complex examples will probably result in some weird behavior in Quirks mode and/or rendering errors)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so I did $subject = 'sakdlfjsalfdjslfad <a href=something/8230>lol is that true?</a> lalalala'; $subject =
I have an element like this: <span class=tool_tip title=The full title>The ful&#8230;</span> This seems
I have this xml <entry id=1008 section=articles> <excerpt><p>&#8230; in Richtung „Aus für Tierversuche. Kosmetik-Fertigprodukte
Why does the Android system throw this Exception? 05-18 12:33:44.169 W/System.err( 8230): java.io.IOException: Is
I have a form, one of the fields is a select field, with 5
CGI.escapeHTML is pretty bad, but CGI.unescapeHTML is completely borked. For example: require 'cgi' CGI.unescapeHTML('&#8230;')
what about this one: I want to format the currentTime displayed by a videoPlayer
English is not my native language. I need a software to spellcheck and correct
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I have been making a wordpress template. i got stuck at some place... the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.