PanelPage edited by Knut PapeAdded a simpler variant of example, improved existing exampleTable of contents ScopeComponentBackground | componentJavadoc=Panel BackgroundA Panel is a reusable component that holds markup and other components. If you want to reuse a component without copying its markup into each page markup, extend the class Panel: You can use Markup inheritance with Panels too. See Panels and borders to see the difference between Panels and Borders and Fragment to see how to use 'in-line' panels. Panels can be used to create dynamic markup hierarchies. FAQExamplesTypical usageUserPanel.java:
public class UserPanel extends Panel {
public UserPanel(String id, User user) {
super(id);
add(new Label("username", user.getUsername()));
add(new Label("lastLogin", user.getLastLogin()));
}
}
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
