Presents a hierarchical tree browser of all PSML resources in the system. The browser supports the following actions:
Parameter that control the how the web page is converted into a portlet.
This element is optional.
Parameters common to many portlets.
Parameter Name | Description |
---|---|
sql | The SQL String. Can be any valid SQL Query for your configured database. However it is required that the query returns at least one column. All selected columns of are represented as columns in the grid. |
windowSize | The number of rows presented in the grid at one time. |
template | The Velocity template to layout the database grid HTML in view mode. For many cases the default template is sufficient. |
customizeTemplate | The Velocity templated to layout the database grid HTML in customize mode. For many cases the default template is sufficient. |
poolName | To use a different Torque database connection pool than the default Torque pool. See the Jakarta Torque project documentation for more information on database connection pools. |
<portlet-entry name="DatabaseBrowserTest" hidden="false" type="ref" parent="DatabaseBrowserPortlet" application="false"> <meta-info> <title>DatabaseBrowserTest</title> <description>Simple Test Database Browser Portlet Example</description> </meta-info> <parameter name="template" value="database-browser-portlet" hidden="false"/> <parameter name="customizeTemplate" value="database-browser-customize" hidden="false"/> <parameter name="action" value="portlets.browser.DatabaseBrowserAction" hidden="false"/> <parameter name="sql" value="select * from coffees" hidden="false"/> <!-- to use an alternate torque pool, set this parameter --> <!-- parameter name="poolname" value="otherpool" hidden="false"/--> <parameter name="windowSize" value="5" hidden="false"/> <media-type ref="html"/> </portlet-entry>