You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Rogier Schaaf <rs...@e-id.nl> on 2001/03/08 17:29:15 UTC

portlet visual elements

I wanted to tweak all possible UI element of a portlet. After experimenting with TitlePortletControl and BorderPortletControl, I concluded that I would end up with probably an very huge list of control classes. Now I have created a CssPortletControl which generates CLASS= entries on the portlet table tags, the title tags and the actual content tags. Through the <parameter> tag in the PSML you can assign a style prefix to which you can hookup the different portlet styles.

For example (in DEFAULT.PSML):

<entry type="ref" parent="CompanyProfile">
    <control name="nl.eid.jetspeed.portal.controls.CssPortletControl">
        <parameter name="style" value="Blue"/>
    </control>
</entry>

would generate in the <TABLE> of the portlet:

<table align="center" cellspacing="0" width="100%" class="Blue" cellpadding="0">

You then can assign whatever you please to this class through the CSS.

I was wondering why such a feature was not yet in Jetspeed. Is this because this is a totally stupid way to achieve what I want (I looked at the <skin> parameters, but they are not elaborate enough for my purpose).

I would appreciate opinions on this approach...

Rogier


Re: portlet visual elements

Posted by Rogier Schaaf <rs...@e-id.nl>.
Ingo,

I just mailed you my prototype CssPortletControl. It has a flaw in it (I
explain this in my mail to you). Maybe we can work on a more elaborate
implementation.

Cheers,
Rogier

----- Original Message -----
From: "ingo schuster" <in...@web.de>
To: <je...@jakarta.apache.org>
Sent: Friday, March 09, 2001 16:13
Subject: Re: portlet visual elements


> Hi Rogier,
>
> I like your idea. There is nothing like this in Jetspeed yet. Do you have
> this already implemented? If yes, please send patches, I'd check it into
> CVS. If not, we should develop it...
>
> ingo.
>
> At 17:29 03/08/01, Rogier Schaaf wrote:
> >I wanted to tweak all possible UI element of a portlet. After
> >experimenting with TitlePortletControl and BorderPortletControl, I
> >concluded that I would end up with probably an very huge list of control
> >classes. Now I have created a CssPortletControl which generates CLASS=
> >entries on the portlet table tags, the title tags and the actual content
> >tags. Through the <parameter> tag in the PSML you can assign a style
> >prefix to which you can hookup the different portlet styles.
> >
> >For example (in DEFAULT.PSML):
> >
> ><entry type="ref" parent="CompanyProfile">
> >     <control name="nl.eid.jetspeed.portal.controls.CssPortletControl">
> >         <parameter name="style" value="Blue"/>
> >     </control>
> ></entry>
> >
> >would generate in the <TABLE> of the portlet:
> >
> ><table align="center" cellspacing="0" width="100%" class="Blue"
> >cellpadding="0">
> >
> >You then can assign whatever you please to this class through the CSS.
> >
> >I was wondering why such a feature was not yet in Jetspeed. Is this
> >because this is a totally stupid way to achieve what I want (I looked at
> >the <skin> parameters, but they are not elaborate enough for my purpose).
> >
> >I would appreciate opinions on this approach...
> >
> >Rogier
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: portlet visual elements

Posted by ingo schuster <in...@web.de>.
Hi Rogier,

I like your idea. There is nothing like this in Jetspeed yet. Do you have 
this already implemented? If yes, please send patches, I'd check it into 
CVS. If not, we should develop it...

ingo.

At 17:29 03/08/01, Rogier Schaaf wrote:
>I wanted to tweak all possible UI element of a portlet. After 
>experimenting with TitlePortletControl and BorderPortletControl, I 
>concluded that I would end up with probably an very huge list of control 
>classes. Now I have created a CssPortletControl which generates CLASS= 
>entries on the portlet table tags, the title tags and the actual content 
>tags. Through the <parameter> tag in the PSML you can assign a style 
>prefix to which you can hookup the different portlet styles.
>
>For example (in DEFAULT.PSML):
>
><entry type="ref" parent="CompanyProfile">
>     <control name="nl.eid.jetspeed.portal.controls.CssPortletControl">
>         <parameter name="style" value="Blue"/>
>     </control>
></entry>
>
>would generate in the <TABLE> of the portlet:
>
><table align="center" cellspacing="0" width="100%" class="Blue" 
>cellpadding="0">
>
>You then can assign whatever you please to this class through the CSS.
>
>I was wondering why such a feature was not yet in Jetspeed. Is this 
>because this is a totally stupid way to achieve what I want (I looked at 
>the <skin> parameters, but they are not elaborate enough for my purpose).
>
>I would appreciate opinions on this approach...
>
>Rogier
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org