Portlet Factory, Version 6.1.2

 

Create a new model

 

+

Search Tips   |   Advanced Search

 

Use an IBM WebSphere Portlet Factory Designer wizard to create a new model.

  1. Click...

    New () | WebSphere Portlet Factory Model

  2. In Choose Project, select a project in which to create a new model and click Next.

  3. In Select Model, under Model Type, select one of the listed model types and click Next.

    Model type Description
    Empty

    Has no builder calls. You must add all the necessary application functionality.
    Main and Page (recommended) Includes a Page builder call named page1 and an Action List builder called main that presents that page when the application runs.
    List and Detail Service Consumer

    Uses the View and Form builder to display data from a data service. It can create tables and detailed views of data. You specify a portlet name that is also used to name the builder calls in the model. You indicate the service provider model that defines the operations to be used and the service operation that provides the main view.
    Database Service Provider Provides the interface to operations corresponding to SQL statements executed against a J2EE data source. Your project must have a valid deployment configuration. You can expose this service as a Web service. You define SQL datasources and SQL statements to run.

    Note: If you have optional packages in your project, you can see the following additional entries under Model type.

    Sample Main and Page

    Part of the Builders sample. Used to build a custom new model wizard.

    Domino Service Provider

    Enables creation of services from Domino data. The wizard connects to a Domino database using a specified view and creates a data service model that provides access to view, create, edit, and delete documents.

    Note: Before you run this wizard, declare your Domino server host name and credentials in a properties file (located in WEB-INF/config/domino_config). Modify a copy of a sample file that is provided.

    You can make the service exportable as a WSDL service.

    If the model type that you select includes a page, the Page Settings window opens. For other model types, answer other questions that are particular to the service being used or defined.

  4. Optional: In Page Settings, select one of the following options about the HTML code and click Next.

    • Imported page

      Use an external file for the HTML and JSP code to build the page. This is preferred practice.

      In Page to import, you can specify your own file or use the default file.

    • Simple page

      Lets you enter the HTML and JSP code to build the page. This is useful for rapid prototyping.

  5. In Save New Model, enter or select the directory to store the new model.

    Models must be stored in directories under...

    WEB-INF/models

  6. In Model name, specify a name for the new model and click Finish.

 

Parent topic

About creating and opening models