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

I want to have some kind of menu on all pages, and my idea is to create one page for him and include it in all the rest. Is it possible?

+6
source share
1 answer

Of course. Create your own menu (say com.something.Menu along with Menu.ui.xml), and then in the composite 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 another example

+8
source

Source: https://habr.com/ru/post/886682/


All Articles