--
 
Met vriendelijke groet,
 
Sebastien BLANC,  E-ID! Internet Strategies
06 11 00 37 65


-----Original Message-----
From: Sebastien BLANC [mailto:[EMAIL PROTECTED] 
Sent: woensdag 22 december 2004 14:22
To: 'Jetspeed Users List'
Subject: RE: Write a my personal GenericMVCPortlet


Hi,
For 2)
You can use your portlet by putting a reference to it in the psml file
(or psml database), use the <entry> tag : <portlets> 
...
<entry id="101" parent="Link Farm Portlet">
            <metainfo>
                <title>put here some info</title>
            </metainfo>
   <-- you can also add  a control tag,a skin tag and a security tag -->
        <control name="FarmControl"/>
        <skin name="FarmSkin"/>  
        <security-ref parent="MySecurity"/>        
 </entry>
...
</portlets>



-----Original Message-----
From: angeloimm [mailto:[EMAIL PROTECTED] 
Sent: woensdag 22 december 2004 13:55
To: Jetspeed Jetspeed
Subject: Write a my personal GenericMVCPortlet


Hi all.. i'm newbie in jetspeed..... i have not understood two things:


1) I want to use Jetspeed 1.5 under JBoss 3.2.5.... how can i use JBoss
datasources? I think i must change the file Torque.properties... but
how?

2) I want to write a my portlet that has as parent a GenericMVC; by
starting from a sample found on javaworld, i have written some java
classes; i have written my vm files, merge files and xreg files; the
xreg file is:

<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-entry name="Link Farm Portlet" hidden="false" type="ref"
parent="GenericMVCPortlet" application="false">
        <meta-info>
            <title>Link Farm Portlet</title>
            <description>Create and maintain lists of URL's for quick
links</description>
        </meta-info>
 
<classname>org.apache.jetspeed.portal.portlets.GenericMVCPortlet</classn
ame>
        <parameter name="template" value="linkFarm1-view" hidden="true"
cachedOnName="true" cachedOnValue="true"/>

        <parameter name="viewtype" value="Velocity" hidden="true"
cachedOnName="true" cachedOnValue="true"/>
        <parameter name="action" value="portlets.MyLinkFarmAction"
hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="columns" value="4" type="int" hidden="false"
cachedOnName="true" cachedOnValue="true"/>
        <parameter name="editable" value="true" type="boolean"
hidden="false" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="view" value="condensed" type="style"
hidden="false" cachedOnName="true" cachedOnValue="true">
            <meta-info>
                <title>View</title>
                <description>View links in condensed, expanded or
JavaScriptPowered view.</description>
            </meta-info>
        </parameter>
        <parameter name="view.style" value="ListBox" hidden="true"
cachedOnName="true" cachedOnValue="true"/>
        <parameter name="view.style.items" value="condensed,expanded,
JavaScriptPowered" hidden="true" cachedOnName="true"
cachedOnValue="true"/>
        <parameter name="view.style.layout" value="$combo" hidden="true"
cachedOnName="true" cachedOnValue="true"/>
        <parameter name="view.style.sort" value="true" hidden="true"
cachedOnName="true" cachedOnValue="true"/>

        <media-type ref="html"/>
        <url cachedOnURL="true"/>

        <category group="Jetspeed">example</category>
    </portlet-entry>
</registry>

Now how can i use it?
What must i do in order to use my Portlet and my classes? Thanks



____________________________________________________________
Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega
di musica, film, video e sport. 
Abbonati subito senza costi di attivazione su http://www.libero.it




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


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

Reply via email to