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?

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.