Thanks for the response Ate... I'll do R & D on that... :-)

Regards,
Balaji C

-----Original Message-----
From: Ate Douma [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 5:16 PM
To: Jetspeed Users List
Subject: Re: Problem adding portlets

Balaji Chandrasekaran wrote:
> Hello all.....I'm posting this question once again as there is no response so 
> far....where do I find the logic of portlets addition in Jetspeed. Since I 
> want to slightly change the behavior of portlets getting added from right to 
> left when added thro portlet selector.
> 
> Pls reply ASAP.....
Well, that's a tricky one.

A new portlet fragment is currently simply "added" to the list of (child) 
fragments of the target fragment with no location information.
Note: the implementation of this has changed a lot since 2.0 to properly 
support nested fragments (which really didn't work well in 2.0), but the logic 
remained the same.
Check the LayoutPortlet.addPortletToPage() method(s).
Now, this doesn't help you much yet as what you see happen (new portlets always 
shown to the right) is determined by the ColumnLayout implementation
(also part of the jetspeed-layout source tree) when rendering a page.
So, if you want to change this I think you have two options:
- Modify the portlet selector and the (Multi)LayoutPortlet to provide location 
information when adding one or more portlets.
   This means you will need to investigate the content and structure of the 
current (target) fragment to determine what the proper location of a new
   portlet should be (e.g. row/column position).
   Note: the portlet selector allows you to add multiple portlets at the same 
time which might complicate things a lot!!!
- Modify the ColumnLayout logic how it determines the position of portlets 
without location specification and probably persist that as well after
   doing so.
   Beware: the ColumnLayout implementation is *very* tricky code.

If you manage to create a proper (generic) implementation for this it would be 
great if you could contribute it back!

But noted again: the 2.1-dev implementation for this has been changed major, so 
I suggest you start with the current trunk source otherwise you're gonna need to
redo it after we release 2.1 (soon I hope).

Happy coding,

Ate


> 
> Regards,
> Balaji C
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Balaji Chandrasekaran [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 06, 2006 6:44 PM
> To: Jetspeed Users List
> Subject: RE: Problem adding portlets
> 
> Thanks for the response. I want to use two column but when I add a portlet I 
> want to have some location order...ie it should get added to left...now it is 
> adding to the right side of the window. :-)
> 
> Regards,
> Balaji C
> 
> -----Original Message-----
> From: Ruben Fragoso [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 06, 2006 5:38 PM
> To: 'Jetspeed Users List'
> Subject: RE: Problem adding portlets
> 
> That is due to the fact that you problaly have the Layout set to "Two
> Columns Layout Using Velocity", you have to set to "One Column....". Hope it
> helped you
> 
> 
> -----Original Message-----
> From: Balaji Chandrasekaran [mailto:[EMAIL PROTECTED] 
> Sent: terça-feira, 6 de Junho de 2006 13:01
> To: Jetspeed Users List
> Subject: Problem adding portlets
> 
> 
> 
> Hi all... I'm using Jetspeed 2.0 multi-Db version. Whenever I add portlet it
> is adding the portlet to right in the screen ...is this a default
> behavior....is it possible that whenever I add a portlet it should add the
> portlet to the left (When the page is blank)....I want to follow location
> order...if some portlets in left ...I want to add in right else in left..
> 
> 
> 
> 
> Hope I'm clear ...please respond with your comments as soon as possible
> 
> 
> 
> 
> 
> 
> 
> Regards,
> 
> Balaji C
> 
> 
> 
> ----------------------------------------------------------------------------
> -----------------
> This message, including any attachments, contains confidential information
> intended for a specific individual and purpose, and is intended for the
> addressee only. Any unauthorized disclosure, use, dissemination, copying, or
> distribution of this message or any of its attachments or the information
> contained in this e-mail, or the taking of any action based on it, is
> strictly prohibited. If you are not the intended recipient, please notify
> the sender immediately by return e-mail and delete this message.
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 
> ---------------------------------------------------------------------
> 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]


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

Reply via email to