BBjspWidget::open (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, this method is called to initialize BBJSP Widget objects.

Syntax

Return Value

Method

void

open(BBjspPageContext context)

Parameters

Variable

Description

context

the BBjspPageContext in which this widget instance is present.

Return Value

None.

Remarks

A simple Widget that stores a BBjVector in the BBjspPageContext.

Example

rem '===
rem '=== A simple BBjspWidget that puts a BBjVector in the BBjspPageContext.
rem '===

class public SimpleWidget implements BBjspWidget

    field public BBjVector MyVector!
    field public BBjString Test$="Test Widget"

    method public void open(BBjspPageContext context!)
        #MyVector!=BBjAPI().makeVector()
        #MyVector!.add("Hello World")
        #MyVector!.add("This in a Vector")
    methodend

classend

See Also

BBJSP

BBjspPageContext

BBJSP Widget Overview