Hi Atmeede,

if I understand your intention in the right way, you don't have to define a
new Tag.
You can use the parameter-Tag to provide data for the portlet.

...
<portlet ...>
   ...
   <parameter name="whatfor" value="somewhat" />
   ...
</portlet>

You can access this parameter with:

...
String whatforStr = getPortletConfig().getInitParameter("whatfor");
...

Bye

Jochen Berger

| -----Urspr�ngliche Nachricht-----
| Von: atmeede [mailto:[EMAIL PROTECTED]]
| Gesendet: Mittwoch, 25. Juli 2001 09:26
| An: [EMAIL PROTECTED]
| Betreff: new tag in jetspeed-config.jcfg - file
| 
| 
| Hi !
| 
| I�ve got a problem, which I don�t know how to solve...
| In the jetspeed-config.jcfg I would like to use a new
| tag. This tag should work pretty much as the
| <meta-info>-tag does. So in the jetspeed-config-file
| something like the following should be possible:
| 
| <portlet-entry type="ref" parent="HTML"
| name="myPortlet">
|       <url>theURL</url>
|       <meta-info>
|               <title>myPortlet</title>
|               <description>Description of myPortlet</description>
|       </meta-info>
|       <myNewTag>
|               <myNestedTag>data1</myNestedTag>
|               <myNestedTag>data2</myNestedTag>
|               <myNestedTag>data3</myNestedTag>
|       </myNewTag>
| </portlet-entry>
| 
| The "data1","data2",... should be available from a
| portlet.
| With "String description =
| portlet.getPortletConfig().getMetainfo().getDescription();"
| I can get the description of the Portlet. How can I
| get data1, data2,... ?
| 
| I found out, that in the jetspeed-config.xsd-file is
| described, which tags are allowed. So I added myNewTag
| there and created some classes with the castor
| SourceCodeGenerator. But the Generator doesn�t create
| a new PortletConfig.java, which I think I need because
| if everything worked fine there would be the method
| getMyNewTag() to reach data1, data2,... with
| "String data1 =
| portlet.getPortletConfig().getMyNewTag(). ...?".
| 
| So to sum up my question: How can I use a new tag in
| the jetspeed-config.jcfg-file?
| I�m using Jetspeed 1.3a1.
| 
| __________________________________________________________________
| Do You Yahoo!?
| Gesendet von Yahoo! Mail - http://mail.yahoo.de
| 
| ---------------------------------------------------------------------
| 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