Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to include one page in another in gwt ui.xml

Tags:

gwt

uibinder

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?

like image 353
Radna Odela Avatar asked Apr 26 '11 07:04

Radna Odela


1 Answers

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

like image 52
mabn Avatar answered Nov 15 '22 13:11

mabn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!