not exactly what I was looking for. I've got a customized DBBrowser
portlet working already (thanks to immense mysql config help from this
list).

I want to pre-populate a pane with an arbitrary number of portlets,
based on a database query -- not seed a pane with two portlets that can
do database queries.



On Tue, 2002-11-26 at 16:37, David Sean Taylor wrote:
> Take a look at the Coffee db portlet in the demo-portlets.xreg:
> 
>     <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"/>
>         <category>database</category>
>     </portlet-entry>
> 
> 
> and then place a couple like these on a psml page with the customizer
> 
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml";>
> 
>     <metainfo>
>         <title>Welcome Page</title>
>     </metainfo>
>     <control name="TabControl"/>
>     <controller name="CardPortletController"/>
> 
>     <portlets id="101">
>         <metainfo>
>             <title>Basic Tutorials</title>
>         </metainfo>
>         <controller name="OneColumn"/>
> 
>         <entry parent="DatabaseBrowserTest"/>
>         <entry parent="SomeotherDatabaseBasedPortlet"/>
> ...
>     </portlets>
> 
> 
> 
> > -----Original Message-----
> > From: Eric White [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 1:59 PM
> > To: Jetspeed Users List
> > Subject: dynamic pane population upon startup?
> >
> >
> > I'd like to define a single portlet then, upon startup, dynamically
> > populate a pane with several instances of the aforementioned portlet,
> > each driven with different configuration data (most likely driven from a
> > database).
> >
> > Can anybody point me to reference material (or, better yet, example
> > code) for how to do this?
> >
> > thanks
> >
> > eric
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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

Reply via email to