Skip to main content

Description

PageContent is activated by supplying the name of the class in a command

Example for the codeunit MySpecialPage

http://..../.../main?com.acme.samples.MySpecialPage

Note that is is only possible invoke classes that inherits the CodeunitPagecontent class

Supported methods are

public String execute( Command command, Security user, Hashtable parameters );

The resulting string is the inner part of the page. Wrappers, menus etc. are added to the output.

Example

package com.acme.samples;

import com.tsnocode.codeunit.CodeunitPagecontentPublic;

public class MySpecialPage extends CodeunitPagecontentPublic {
  @Override
  public String execute() {
    return "<h1>Hello world !</h1>";
  }
}