OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exo-portlet-container List | August 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[[exo-portlet-container]] Re: [[exo-portlet-container]] RE: [[exo-portlet-container]] _ctx object


Hello,

This object is present in groovy files, and is org.exoplatform.webui.core.lifecycle.WebuiBindingContext. It is present in all gtmpl.

Romain

2008/8/14 POISSEROUX Hugues <hugues.poisseroux@xxxxxx>

Hello,

 

In fact this object is call without be define in gtmpl, i supposed that this object come from of portlet how call my gtmpl.

If you look some gtmpl of exo platform you meet this.

 

Here's some example i found.

 

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UIItemSelector.gtmpl' :              

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UIPageIterator.gtmpl' :              

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UIPopupMessages.gtmpl' :             

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UIPopupWindow.gtmpl' :               

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UIRightClickPopupMenu.gtmpl' :       

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UISitemap.gtmpl' :                   

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UITabPane.gtmpl' :                   

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UITabSelector.gtmpl' :                

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UIToolbar.gtmpl' :                   

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UITree.gtmpl' :                      

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\core\UIWizard.gtmpl' :                    

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIForm.gtmpl' :                      

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormInputIconSelector.gtmpl' :     

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormInputItemSelector.gtmpl' :     

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormInputThemeSelector.gtmpl' :    

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormTabPane.gtmpl' :               

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormTableInputSet.gtmpl' :         

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormTableIteratorInputSet.gtmpl' : 

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormUploadInput.gtmpl' :           

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIFormWithTitle.gtmpl' :             

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIItemThemeSelector.gtmpl' :         

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UISearchForm.gtmpl' :                

EXOPROJECTS\portal\tags\2.1\web\portal\src\main\webapp\groovy\webui\form\UIVTabInputSet.gtmpl' :              

 

The first example is given by exo support.

 

Regards.

Hugues.

 


De : Alexey Zavizionov [mailto:alexey.zavizionov@xxxxxxxxx]
Envoyé : jeudi 14 août 2008 8:39


À : POISSEROUX Hugues
Cc : exo-portlet-container@xxxxxxx
Objet : Re: [[exo-portlet-container]] _ctx object

 

Hello,

what is a class of that source?

Regards,
Alexey.

On Thu, Aug 14, 2008 at 9:30 AM, POISSEROUX Hugues <hugues.poisseroux@xxxxxx> wrote:

Hello Alexey,

 

It's call in a gtmpl, here's a example…

 

import org.exoplatform.services.organization.OrganizationService;
import org.exoplatform.services.organization.User;
import org.exoplatform.portal.application.PortalRequestContext;
...
def prContext = _ctx.getRequestContext().getParentAppRequestContext();
OrganizationService service =  uicomponent.getApplicationComponent(OrganizationService.class);
  User user = service.getUserHandler().findUserByName(prContext.getRemoteUser()) ;
 ...
String firstName = user.getFirstName().toLowerCase();
 String lastName = user.getLastName().toLowerCase();

 

 

Regards.

Hugues.

 


De : Alexey Zavizionov [mailto:alexey.zavizionov@xxxxxxxxx]
Envoyé : mercredi 13 août 2008 19:06
À : POISSEROUX Hugues
Cc : exo-portlet-container@xxxxxxx
Objet : Re: [[exo-portlet-container]] _ctx object

 

Hello,

Hm...
I never heard about it.

Regards,
Alexey.

On Wed, Aug 13, 2008 at 4:28 PM, <hugues.poisseroux@xxxxxx> wrote:

Hello all,

What's class is hidden behind _ctx ?
I supposed that this is a hashmap class but in example i see other method is
called with _ctx.

I questioned _ctx to have Key and i see this.

_CTX|---OUT
      |---Decarator
      |---_CTX
      |---UIApplication
      |---UIComponent

Some one can give me the light ? :)

Thanks
Regards.


--
You receive this message as a subscriber of the exo-portlet-container@xxxxxxx mailing list.
To unsubscribe: mailto:exo-portlet-container-unsubscribe@xxxxxxx
For general help: mailto:sympa@xxxxxxx?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

 

 



--
You receive this message as a subscriber of the exo-portlet-container@xxxxxxx mailing list.
To unsubscribe: mailto:exo-portlet-container-unsubscribe@xxxxxxx
For general help: mailto:sympa@xxxxxxx?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.