Portlet Factory, Version 6.1.2
Imported Page builder
The Imported Page builder adds an existing HTML or JSP page to the current model.
By using Imported Page builders, you can develop your HTML or JSP code in your favorite editor and then import the results into the IBM® WebSphere Portlet Factory Designer. Once you import a page into the WebSphere Portlet Factory Designer, you can use builders to modify those pages.
Quick tips
- Override the JavaScript for browser events using a HTML Event Action builder.
- To modify or remove the JavaScript for the browser events (for example, onClick and onMouseOver), use a HTML Event Action builder to replace the value of these event attributes with a new JavaScript string.
- To keep HTML pages and images for each project in a self-contained file system, select the following inputs:
- Create Absolute URLs
- Import when builder Call is Saved (design time only)
When the page is imported, the builder modifies the code so that the URLs become absolute. Because the builder directly modifies the HTML for the URLs, the page only needs to be imported at design time.
- After a page is imported, you can activate any of its HTML elements by using one of the Action Control builders in the WebSphere Portlet Factory Designer.
- When using control builders, match the name tag attribute from the original HTML file. The name attribute must be used for all activated elements. Use the WebSphere Portlet Factory Designer page location attribute to associate a control with a page element.
- Store the HTML pages and images at or below the servable_content_root directory level.
- If the files are stored elsewhere and you select Create Absolute URLs, the absolute URLs are not guaranteed to work. To import an HTML file in another directory or in a mapped or mounted drive use the "file:///" form of the URL. For example, to import a file on a mapped drive, T:, the URL would be:
file:///T:/html_files/MyFile.html- To maximize performance, it is better to import an HTML page at design-time rather than at model generation time.
- Importing pages at design-time can speed up model generation.
Parent topic: Builder help
- About using the builder call editor
The builder call editor allows you to specify all the input values to a builder call.
- Imported Page builder inputs
This topic describes the inputs for the Imported Page builder.
- Inserting an imported page
If you plan to insert the page you are importing into another page, you need to take measures to ensure that links on the imported page remain intact once the page is inserted into the other page.
- Modifying imported JavaScript
When you import a page, you usually want to work with the HTML. However, many of the pages you import will also contain JavaScript that is imported along with the HTML. There is a handy way to rid yourself of unwanted JavaScript that comes with the HTML on an imported page.
- Importing HTTPS pages
You can configure your IDE to use JSSE to support SSL when importing a page that uses the HTTPS protocol.
- Overview: creating pages
Pages in IBM WebSphere Portlet Factory models can be obtained from outside the model or created as you work in the model.
Library | Support |