how to include one page in another in gwt ui.xml
Asked Answered
I

1

8

I want to have some menu on all pages, and my idea is to create one page for that and include it in all other. Is it possible?

Indent answered 26/4, 2011 at 7:59 Comment(0)
F
9

Sure it is. Create your menu (lets say it's com.something.Menu together with Menu.ui.xml), then in the including component:

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
    xmlns:g='urn:import:com.google.gwt.user.client.ui'
    xmlns:my='urn:import:com.something'>

  <g:HTMLPanel>
    Hello world!
    <my:Menu />
  </g:HTMLPanel>
</ui:UiBinder>

here is other example

Falciform answered 26/4, 2011 at 13:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.