Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
The Console Page Plugin is used to add a menu to the admin console and render the added menu page.
Common use cases:
String getName()
Unique identifier of the page without spaces.
String getPluginIcon()
The icon used for menu rendering.
String getLabel()
The label used for menu rendering.
int getOrder()
The order of the menu. The original page menu has an order with position x 100. eg 100, 200, 300.
Location getLocation()
The location to render the menu. Either DIRECTORY, MONITOR, or SETTINGS.
boolean isAuthorized()
Used to decide whether the current user has permission to see this menu.
String render(HttpServletRequest request, HttpServletResponse response)
Return the HTML of the page rendering.
Here are examples of how to use the annotations:
@Path({"/form", "/form/{id}"}) public String renderForm(ModelMap map, HttpServletRequest request, HttpServletResponse response, @PathParam("id") String id) throws IOException { //your logic here map.addAttribute("content", content); return "console/popupTemplate"; }
@Path("/list") public void renderListJsonData(HttpServletRequest request, HttpServletResponse response) throws IOException { String callback = request.getParameter("callback"); JSONObject jsonObject = new JSONObject(); //your logic here AppUtil.writeJson(response.getWriter(), jsonObject, null); }