Hey folks,

I'm trying to put my own parameter style to use.  I created a style
'DBListBox'  It inherits from the existing ListBox style, and executes a
sql statement (which is set through a parameter) against a database to
retrieve the items rather than taking the list of items as a parameter.
 My code is pretty simple, especially if you're familiar with ListBox
already; it just overrides the getItems function to do the DB call
rather than parse through the items parameter.  However, it does not
appear to be executing the class.  In the spot on the customizer where
the parameter should show up i'm seeing this:

$jetspeed.getPortletParameter($data, $portlet, $param.Name)

Is there anything I have to do/configure in Jetspeed to make it aware of
my new style?  Here's the exerpt from my .xreg file that specifies it
for use:

        <parameter name="link_id" value="1" hidden="false" type="style"
            cachedOnName="true" cachedOnValue="true">
            <meta-info>
                <title>Page ID</title>
                <description>This parameter controls which item is
selected from the database.</description>
            </meta-info>
        </parameter>
        <parameter name="link_id.style" value="DBListBox" hidden="true"/>
        <parameter name="link_id.style.sql" value="select id from
static_html" hidden="true"/>
        <parameter name="link_id.style.layout" value="$combo"
hidden="true"/>

I couldn't find any documentation on how to create a new parameter style
in the tutorial or on the lists.  If there's a process maybe we could
flush it out and append it to the tutorial (similar to the way the
VelocityPortlet is discussed).

Thanks,

Seth Weiner
Automated Document Systems, Inc.
1324 Locust Street
Philadelphia, PA

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to