i'm moving my first steps with gwt to create a simple website. i'm trying to use gwt platform and the gwt designer to create the layouts. the site is so simple that lots of pages have the same layout and differ only for what's in the middle, so i had a "brilliant" idea: why don't u create a general layout in the form of a composite and add in the middle of this composite a simplepanel, so u can add what's different in each page just there. i created the composite and i put a simplepanel in it, but even if i exposed the widget the gwt designer does not let me add any other widget inside this panel when i'm creating the other ui-binder views. am i forgetting something? thx a lot
how to create a composite with a working pane in it
234 Views Asked by user888284 At
2
There are 2 best solutions below
0
milan
On
If you want to have a Composite used in UiBinder that behaves like a panel, you'll have to create a custom element parser for it, but the problem is that there's no public API for doing this in GWT (as of 2.4.0). Maybe gwt-customuibinder can help with that. The alternative is to implement HasWidgets since there's a built-in parser for that.
Related Questions in GWT
- Set log4j.properties for GWT
- Grid with rows in anchor not visible in GWT (UIBinder)
- PlayN and Firefox issues
- Simulate Key Combinations by scanning bar code
- Server Side Implementation in GWT
- gwt 2.0.0 in Eclipse Luna & gwt plugin version 3.8.0
- Disabiling 'X mark' in IE11 compatibility mode
- GWT: Site layout with frames
- GWT Datagrid slow scroll due to css rendering
- GWT Eclipse: using classes from other projects cause "Server class ... could not be found in the web app, but was found on the system classpath
- Cannot read property removeChild of null in jsni
- Debugging GWT app in production by loading SourceMaps from local environment
- GWT DataGrid column width issue after removing columns
- How run several instances of GWT application in IntelliJIDEA
- How to deal with large multi-module applications on GWT
Related Questions in WIDGET
- Updating a widget every second with an AlarmManager and IntentService
- Kivy - Create new widget and set its position and size
- CSS styles for all instances of a WordPress widget
- how to display page's attachment image in wordpress custom widget
- Fetching query string parameters passed in a javascript file
- iOS widget not working on few iPhone5S
- Qt5 custom widget - Curved slider
- Orchard widgets triggered more than once
- Android widget- make it undeletable
- "Add" Button for Data Frame Editing GUI in R
- woocommerce - wrong widget bar on single product page
- Yammer OpenGraph commenting widget loading all feed, but not specific page messages
- Create new ttk widget from tkinter
- The following classes couldn't be found -include(fix build path)
- Wrong widget order using vbox layout PyQt
Related Questions in ADDITION
- I'm trying to make the "merge function" work by writing a Callback.
- Add comment to PowerPoint by macro
- VB.net: How to make original variable value fulfill 2 statements?
- VB.net: How to add different multipliers together?
- Add up numbers in files
- Why is this floating point addition result not correct?
- Adding a button dynamically with JQuery without using .append
- SQL Invalid ALTER TABLE option
- trying to delete automatically added and sorted answers from a VBA textbox into excel cells
- adding an unknown number of numbers in java
- sqlite add x days to date (x stored in table)
- how do you find the summation of elements in a set?
- dbo.aspnet_Users table is empty where it shouldn't be
- Multiple NULL addition into a List in Java
- Adding tags to mp3 with eyed3 results in no change
Related Questions in COMPOSITE
- Recursive iterator for composite pattern
- Composite C1 CMS Assign C# function result to a variable in Razor view
- How to make a SWT Composite selectable?
- Using composite key in AspNetUsers table in MVC 5 application
- Massive Parent-Child and delegate pattern
- Duplicate entry error in 1 column of a composite key
- How to make the children of a composite visible immediately after disposed them and loaded them again in SWT?
- (Java) Composite Pattern AND Visitor Pattern or only Visitor Pattern in use here?
- Composite Pattern, Private methods in both leaf and composite?
- Injecting a composite with Guice
- Meta Generic in Java
- How to open an XPage document data source in notes client using the selected Notes document
- foreign key must have same number of columns as referenced primary key
- How can I transform my Factor code into Prime and Composite Identifier?
- How to identify the input value if it is a prime or a composite number?
Related Questions in GWT-DESIGNER
- How do I tell GWT-Designer/windowBuilder where the UI is
- Why does GWT 2.7 discontinue the GWT Designer?
- Install GWT Designer plug-in in Eclipse Indigo from JAR
- GWT Wizards are not showing in the eclipse Wizards menu
- how to create a composite with a working pane in it
- Use a custom gwt component created with uiBinder in another uiBinder?
- GWT Design wont run
- GWT Designer can't find GWT module X in project
- "create new visual classes" button not clickable on eclipse
- GWT Designer for eclipse not working
- Why won't the GWT designer for eclipse work with GXT 3 widgets?
- How to use GWT designer with Eclipse GWT plugin?
- Custom widgets can't be added to GWT Designer palette
- GWT Designer Componentry
- GWT Designer and Cell Widgets for Performance
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I'm not sure you should be going the route of trying to create your own
Compositewidget for this purpose. What you described is exactly whatDockLayoutPanelwas created for. Basically, you want a (relatively) constantnorth(probably logo, possibly navigation),south(footer of some sort), and maybeeast/westfor side bars or what have you, and acenterwhich changes to display the "current page". There are a great deal of examples ofDockLayoutPanelbeing used in this manner- even the Javadoc has a great one. You could easily add a panel to thecenter, and use that panel as your "main panel".If you want to create your own
Compositewidget which can have some arbitrary children widgets and be used by GWT Designer, you've got a lot of work ahead of you.