Label userInfo = new Label();\r
Link portletEdit = new Link();\r
Link portletMax = new Link();\r
+ Link someAction = null;\r
\r
public void init() {\r
main = new Window();\r
public void handleActionRequest(ActionRequest request,\r
ActionResponse response) {\r
\r
- getMainWindow().showNotification("Action received");\r
+ main.addComponent(new Label("Action received"));\r
\r
}\r
\r
portletMax.setEnabled(false);\r
}\r
\r
+ if (someAction == null) {\r
+ url = response.createActionURL();\r
+ try {\r
+ someAction = new Link("An action", new ExternalResource(url\r
+ .toString()));\r
+ main.addComponent(someAction);\r
+ } catch (Exception e) {\r
+ // Oops\r
+ System.err.println("Could not create someAction: " + e);\r
+ }\r
+\r
+ }\r
+\r
}\r
}\r
}\r