[JBoss-user] [JBoss Portal] - jbp 2.2.1 with Jboss AS 4.04 RC2

2006-05-09 Thread cpage
hello, i have problems with jbp 2.2.1 and Jboss AS 4.04 RC2. portal 2.2.1 works fine with JBoss AS 4.0.3. I first had an error with transactionManager, and i fixed it like said in this post : http://jboss.org/index.html?module=bb&op=viewtopic&t=79815&postdays=0&postorder=asc&start=0 now i have

[JBoss-user] [JBoss Portal] - Re: MyFaces portlet and windowstate ?

2006-04-26 Thread cpage
"[EMAIL PROTECTED]" wrote : So subclass the MyFaceGenericPortlet, and add this logic to your new render method. yes, this is what i have done. i override the render method and also, the processaction method, to access the actionresponse.setWindowState. i get the name of the view_ID (the name o

[JBoss-user] [JBoss Portal] - Re: MyFaces portlet and windowstate ?

2006-04-26 Thread cpage
it is not really my problem :p because i don't want to change the content of the page depending on the windowstate but i want to change the entire page. if portlet is in state normal: i render page1.jsp if portlet is in state maximized: i render page2.jsp (=> i realised this with a DefaultViewSe

[JBoss-user] [JBoss Portal] - MyFaces portlet and windowstate ?

2006-04-25 Thread cpage
hello, I'm developping MyFaces Portlets. but i have some problems with the windowstate of my jsf pages. in the navigation rules, we can set which pages to render from what outcome, but it is not possible to parameter their windowstate. I have made a ViewSelector to set a maximized view page wh

[JBoss-user] [JBoss Portal] - Re: change user role failed

2006-04-21 Thread cpage
what is your code source ? | The executeUpdate method must not return a result set. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938716#3938716 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938716

[JBoss-user] [JBoss Portal] - Re: UserImpl not mapped

2006-04-21 Thread cpage
i think you can inject the service in the portlet : in jboss-portlet.xml: | UserModule | org.jboss.portal.core.modules.UserModule | :service=Module,type=User | and get the usermodule in the portlet : userModule = (UserModule)getPortletContext().getAttribute("Us

[JBoss-user] [JBoss Portal] - Re: UserImpl not mapped

2006-04-21 Thread cpage
why don't use the UserModule ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938636#3938636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938636 --- Using Tomcat b

[JBoss-user] [JBoss Portal] - Fix logout bug in JBP 2.2

2006-04-21 Thread cpage
hello, i know there is a fix for the logout bug but it's for the 2.4 version. i search a way to fix this bug in version 2.2. i have a custom user portlet where i try to disconnect and redirect in the login page. i really don't know how to do it. if somebody can help me ;) thank you regards,

[JBoss-user] [JBoss Portal] - Re: custom layout for each user ?

2006-04-20 Thread cpage
liferay View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938343#3938343 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938343 --- Using Tomcat but need to do more? Nee

[JBoss-user] [JBoss Portal] - Re: Dynamic Role for portlets

2006-04-17 Thread cpage
you can add security constraints to the windows (which are link with an instance of a portlet) then, use a roleModule to check if the user has this role. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937762#3937762 Reply to the post : http://www.jboss.com/

[JBoss-user] [JBoss Portal] - Re: Change a user role dynamically

2006-04-14 Thread cpage
Subject comes from the javax.security package and SimpleGroup from org.jboss.security package when you retrieve the Subject, you can manipulate as you want, if it's not read only. in the portlet, it's not. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39374

[JBoss-user] [JBoss Portal] - Re: Change a user role dynamically

2006-04-13 Thread cpage
I have made a preference portlet where an user can change his context.( a context is a set of role) I get the Jaas subject and modify his simplegroup "roles" Subject sub = (Subject)PolicyContext.getContext("javax.security.auth.Subject.container"); if the SimpleGroup sg, contains the "ro

[JBoss-user] [JBoss Portal] - Re: Change a user role dynamically

2006-04-10 Thread cpage
there are two problems in fact. first, the role are changed with the role module but the jaas subject is not affected, so the roles will not be change until the user will reconnect. second, logout didn't work, so the user don't see the changes until his session goes down and he has to reconnect

[JBoss-user] [JBoss Portal] - Re: access httpsession from jaas loginmodule ?

2006-04-06 Thread cpage
it works fine ;) i can retrieve the jaas subject and my specific object too. thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935547#3935547 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935547 ---

[JBoss-user] [JBoss Portal] - Re: access httpsession from jaas loginmodule ?

2006-04-05 Thread cpage
ok, i'll take a look on what informations i can add to the subject. and after, how can i get these informations in the portal ? how can i retrieve the subject ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935273#3935273 Reply to the post : http://www.jb

[JBoss-user] [JBoss Portal] - Re: Change a user role dynamically

2006-04-05 Thread cpage
i tried to explain it last week in this post : http://jboss.org/index.html?module=bb&op=viewtopic&t=80165 but my english is quite bad, so :p i had the same problem. easy way to reproduce it: add a portlet with a security contraint, and a role like "myrole" connect as admin. add role "myrole" to

[JBoss-user] [JBoss Portal] - access httpsession from jaas loginmodule ?

2006-04-05 Thread cpage
hi, I've made my own implementation of the jaas loginmodule to authenticate my users. this loginmodule ask an LDAP to authenticate the user and then i ask the user's roles to an other service. after that, i build an user object which contains all informations about user identity and user role

[JBoss-user] [JBoss Portal] - Re: change role dynamically ?

2006-03-29 Thread cpage
sorry i forgot something. i say that i need to restart server to see the changes apply but it's because the logout() don't work ! :p what i need is to be able to changes roles and see the changes apply without logout. ty View the original post : http://www.jboss.com/index.html?module=bb&op

[JBoss-user] [JBoss Portal] - change role dynamically ?

2006-03-29 Thread cpage
I, i work with JBP 2.2.1RC1 i have a user with role admin and role1 i have a portlet "toto" with role "toto" in the main page. the user add himself the role "toto" with the roleportlet or the userportlet. i refresh the page/portal but the user don't see the portlet "toto". i have to restart the

[JBoss-user] [JBoss Portal] - Re: get portlet information from portletrenderer ?

2006-03-27 Thread cpage
ty mholzner for your response :p what i want to do : each portlet in my portal must have their own icon in the left side of their header. so, in my renderset, i have to render the right icon for the right portlet. to know which icon is set for a portlet, my first idea was to set an init-param f

[JBoss-user] [JBoss Portal] - Re: get portlet information from portletrenderer ?

2006-03-23 Thread cpage
hi, accessing window properties when portlet is rendering work, but i have to stop my server if i change the properties. am i the only one who wants to access portlet properties in the renderer when the portal and the portlets are rendering ? ty View the original post : http://www.jboss.

[JBoss-user] [JBoss Portal] - Re: get portlet information from portletrenderer ?

2006-03-22 Thread cpage
ok, i can have the icon of the portlet if i had a property "icon" to the portletwindow in the -portal.xml it's a little bitt dirty :p View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931923#3931923 Reply to the post : http://www.jboss.com/index.html?module=

[JBoss-user] [JBoss Portal] - Re: get portlet information from portletrenderer ?

2006-03-22 Thread cpage
up :p in the portletcontext, i have information about, the instance, the window, the region but nothing about the portlet itself. i want to read some of init-param, put in the portlet-xml for the portlet i'am rendering. for example: what icone is set to this portlet ? thanks for help ! View t

[JBoss-user] [JBoss Portal] - Re: get portlet information from portletrenderer ?

2006-02-21 Thread cpage
hi here is my class : public class CpagePortletRenderer implements PortletRenderer { | |/** | * @see PortletRenderer#render | */ |public void render(RenderContext renderContext, PortletContext state, WindowResult result) | throws RenderExcep

[JBoss-user] [JBoss Portal] - get portlet information from portletrenderer ?

2006-02-20 Thread cpage
hi, i've made my own renderset, based on the Divrenderer (window, portlet, decoration, region) i want to get some information from the render method about the portlets. i have a portletcontext, a windowresult and a rendercontext but i don't find information about portlets. i have their region

[JBoss-user] [JBoss Portal] - hot undeploy-depoy jboss-portal.sar

2006-02-16 Thread cpage
hi, I hot deploy a portletA in an external warn, my jboss server is running in the jboss-portal.sar/conf/data/default.object.xml file, i add the elements (window and instance) to add my PortletA to the default page of the default portal. but it doesn't hot deploy and i have to stop and run th

[JBoss-user] [JBoss Portal] - Re: JAASLoginModule

2006-02-03 Thread cpage
same problem with JBP 2.2.1 and Oracle 9i regards, Lionel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921412#3921412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921412 --

[JBoss-user] [JBoss Portal] - tag - IPC

2006-01-25 Thread cpage
Hi, I try the inter portlet communication I juste take the two portlets examples sources (Portlet A and Portlet B) of the portal-samples.war and i make a special war for it. it doesn't work. I have this error when I submit in portlet A : ERROR [org.jboss.portal.core.command.InvokeWindowActi

[JBoss-user] [JBoss Portal] - how to add security in a page ?

2006-01-25 Thread cpage
hi, i deploy a two portlets in a war file. the two portlets are in a page, testPage. when i deploy the war, i can see a tab with my testPage and the 2 portlets. but I want that this page is only visible for authenticated users. so in my file-object.xml i use the security-constraint tag like th

[JBoss-user] [JBoss Portal] - Re: portal 2.2.1rc1 + JBeclipse IDE

2006-01-25 Thread cpage
+1 ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919534#3919534 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919534 --- This SF.net email is sponsored by: Splun

[JBoss-user] [JBoss Portal] - Debug a Portlet with eclipse

2006-01-19 Thread cpage
Hi, I would like to run a portlet in debug mode in eclipse. i really don't know the best way to perform it ? can some one help me ? thanks regards, Lionel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918397#3918397 Reply to the post : http://www.jboss.

[JBoss-user] [JBoss Portal] - Re: Problem with jboss on oracle

2006-01-10 Thread cpage
i have the same problem. i gave up oracle for a while, and test functionnalities with the bundle portal and hsql. for CMS_XXX table, try to change the data CLOB in varchar, so that way, some tables are create. btw, i think the problem comes from the hibernate layer and the CLOBs datatype ! ma

[JBoss-user] [JBoss Portal] - Re: Create/Destroy portal instances

2006-01-05 Thread cpage
btw, i have a bug in the management portlet : when you create a new instance of portlet without specify a name for this instance, it's never more possible to destroy it when the instance with no name is added in a page. moreover, i ask myself where does the portal store this information ? i jus

[JBoss-user] [JBoss Portal] - Customize number of columns

2005-12-30 Thread cpage
hi, is it possible to customize the number of columns in the portal ? in JBP 2.0, there were 3 columns and in JBP2.2, there are 2. i think it's about the layout JSP and the layout strategy but i'don't find where and how to create other region than left, center, navigation is someone has a

[JBoss-user] [JBoss Portal] - Re: portal 2.2 deployement warning/error

2005-12-23 Thread cpage
i think it's a problem with hibernate, oracle and the CLOBs is anybody succeed with a combination Oracle 9i / JBP2.2 ? thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914122#3914122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[JBoss-user] [JBoss Portal] - Re: Failed to create folder for repository

2005-12-14 Thread cpage
I got the same error. Linux + Oracle9i. I give all the rights of writing, reading ... in the folder of deploy, but it didn't change anything. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912555#3912555 Reply to the post : http://www.jboss.com/index.htm

[JBoss-user] [JBoss Portal] - Re: portal 2.2 deployement warning/error

2005-12-09 Thread cpage
hi, 1) with jmx-console, i've destroyed and recreate the DB 2) wipe out the 3 dir. I still have this problem: 09:51:42,226 WARN [PortalDeployment] Cannot create portal object because the parent that the deployment descriptor references does not exist | 09:51:42,231 WARN [PortalDeployment]

[JBoss-user] [JBoss Portal] - portal 2.2 deployement warning/error

2005-12-08 Thread cpage
hi, I try to deploy the new version of jboss portal (2.2), with Jboss AS 4.03 RC2. I have no error in the log, just warning which tells : [PortalDeployment] Cannot create portal object because the parent that the deployment descriptor references does not exist | previous version worked fine

[JBoss-user] [JBoss Portal] - Re: HttpSession and PortletSession

2005-10-28 Thread cpage
"[EMAIL PROTECTED]" wrote : it is not possible because the sessions are not the same. => impossible to a portlet to get informations put in the httpsession of the portal ? so, what is the mecanism of that code in my portlet req.getAttribute(RenderRequest.USER_INFO ) ? "[EMAIL PROTECTED]" wrot

[JBoss-user] [JBoss Portal] - HttpSession and PortletSession

2005-10-27 Thread cpage
Hi, work this JBP 2.0 main question : how can I exchange informations between the portal and a portlet ? => I try to do an Hello User Portlet: an user connect to the portal and the portlet say Hello + UserName to do so, i have this code in my class and it works well : | public class HelloU

[JBoss-user] [JBoss Portal] - hot deploy portlet in an existing page of the portal

2005-10-26 Thread cpage
hi, I try to deploy the helloworld portlet in the default page of the default portal. if i take the basic helloworld portlet, it deploys, but not the way I want. Just an item in the menu portlet => I click and it opens a new page (helloworld) with the portlet and its content. I've modified the