how to use a group
Version: Jetspeed 1.4 I've searched the mailing list, tutorials, and jetspeed website, but I'm still confused as to how to use a Group. From what I understand (please correct me if I'm wrong): 1. A group is NOT a group of users but a group of resources/pages. 2. You define a group psml file in the psml/group//... directory. This psml contains (or references) portlet sets that pertain to the group. An given example was an HR group with portlets of interest to HR users. 3. You can access the group psml file directly through the browser url, or as a reference from another psml. What confuses me about groups is: 1. Regardless of their group associations, as long as the user has the correct role they can access the group page (via url, or another psml reference). If this is correct, then why bother assigning a user to a group, as no group related security checks seem to be involved when accessing the page? 2. How would a user without the admin role (more specifically, the ability to add a reference when customizing a pane) be able to reference the group psml? 3. Likewise, how does an admin modify a user's psml file when they can't access it due to security restrictions? Is it something along the lines of having the user's default security-ref configuration have owner AND admin? 4. If a new group profile is created, how do I force it appear as a tab to users? 5. Am I expecting too much from Jetspeed's default functionality? i.e. are these custom features that I'll need to add myself? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setTemplate in VelocityPortletAction gives InvocationTargetException
Have you tried $jslink.addPathInfo($jslink.ActionKey,"portlets.myAction").addQueryData( "eventSubmit_...")" ? /A -Original Message- From: Henrik W. Hansen [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 1:15 PM To: Jetspeed Users List Subject: Re: setTemplate in VelocityPortletAction gives InvocationTargetException Hi all I have discovered that linking from the template in another way "resolves" my problem. The link that fails is the following + This results in the InvocationTargetException. But if I execute the action the following way: and + everything works perfectly. Seems that $jslink.setAction does not work the way I expected. Thank for your fast responses. Best regards Henrik Jeremy Ford wrote: > Could you try this is the latest version of Jetspeed? Thanks. I seem > to recall that there was a similar issue that was fixed for b4/release. > > Jeremy Ford > > >> From: "Henrik W. Hansen" <[EMAIL PROTECTED]> >> Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]> >> To: [EMAIL PROTECTED] >> Subject: setTemplate in VelocityPortletAction gives >> InvocationTargetException >> Date: Thu, 06 Nov 2003 20:55:15 +0100 >> >> Hi all >> This should be a trivial question. But i have been struggeling with >> it for a while now. >> >> When executing the following action : >> public void doAddmonitor(RunData data, Context context) { >>setTemplate(data, "webmonitor/createMonitorParam.vm"); >> } >> >> I get the following excetion: >> >> Horrible Exception: java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> >> >> I am running Jetspeed 1.4b3. >> If i set the template from within i.e "protected void >> buildNormalContext" everything works fine. >> What can i be doing wrong?? >> /Henrik >> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > _ > >> From Beethoven to the Rolling Stones, your favorite music is always >> playing > > on MSN Radio Plus. No ads, no talk. Trial month FREE! > http://join.msn.com/?page=offers/premiumradio > > > - > 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]
Re: setTemplate in VelocityPortletAction gives InvocationTargetException
Hi all I have discovered that linking from the template in another way "resolves" my problem. The link that fails is the following + This results in the InvocationTargetException. But if I execute the action the following way: and + everything works perfectly. Seems that $jslink.setAction does not work the way I expected. Thank for your fast responses. Best regards Henrik Jeremy Ford wrote: Could you try this is the latest version of Jetspeed? Thanks. I seem to recall that there was a similar issue that was fixed for b4/release. Jeremy Ford From: "Henrik W. Hansen" <[EMAIL PROTECTED]> Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: setTemplate in VelocityPortletAction gives InvocationTargetException Date: Thu, 06 Nov 2003 20:55:15 +0100 Hi all This should be a trivial question. But i have been struggeling with it for a while now. When executing the following action : public void doAddmonitor(RunData data, Context context) { setTemplate(data, "webmonitor/createMonitorParam.vm"); } I get the following excetion: Horrible Exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I am running Jetspeed 1.4b3. If i set the template from within i.e "protected void buildNormalContext" everything works fine. What can i be doing wrong?? /Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ From Beethoven to the Rolling Stones, your favorite music is always playing on MSN Radio Plus. No ads, no talk. Trial month FREE! http://join.msn.com/?page=offers/premiumradio - 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]
Re: How to handle self-ending Tags in HTMLRewriter?
Yes, the the images tag like get parsed correctly. but problem comes only when image tag is self ending like . If it's jdk html parser feature then I think this problem must be coming for all other tags that are self ending (I had not tested this one). Is there any way we can rectify this problem... ? rajendra - Original Message - From: "Stuart Belden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 07, 2003 6:58 AM Subject: Re: How to handle self-ending Tags in HTMLRewriter? > It is probably a feature of the jdk html parser. Do image tags that end like get parsed correctly? > > >>> [EMAIL PROTECTED] 11/05/03 02:19PM >>> > Hi, > > Right now I'm using Websurf Portlet which uses HTMLRewriter to rewrite the urls so that they will be displayed in given Portlet window. > > Websurf Portlet works just fine. But I have some other issue. > If the url which I'm fetching has self-ending tags > for eg. > In this case, the rewritten url contains one more closing bracket ">" so in after rewriting url, the resulting image tag looks like > > > Since my image tags carry url links with them, this extra closing tag gets visible. After debuggin' thru code found that in case of such tags only handleStartTag() gets called. And another thing that I noted is once parser finds / during processing, parser immediately puts the closing bracket itself. > > Can anybody pls guide me in how to set the HTMLRewriter so that it will handle such self-ending tags in correct way to avoid appending of extra closing brackets ? > > thanks, > j > > > - > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help with role based PSML usage
Thank you for your reply, please see comments in-line. > Make sure the following two properties are set in > JetspeedResources.properties:services.Profiler.rolefallback=true > services.Profiler.newuser.template= Both of the above are set. > If user_xyz has a psml page defined, you may try deleting it. I > think the way the profiler works, it will pick up user-based psml > FIRST, and then look for role-based psml if no user psml exists. If in JetspeedResource.properties automatic.logout.save = true, when this new user logs out, new psml is created for the user and saved on file system. This psml is cloned from role_abc with all new unique portlet IDs generated by Jetspeed. I delete the user psml file in psml browser in this case. These are the steps and observed results of new user creation: Pre-condition: role_abc exists with role specific psml in place. in JetspeedResource.properties automatic.logout.save = false. In admin interface create new user. Keep it as disabled at the time of creation. >From user browser edit user roles. By default, Jetspeed asigns role user, editor opens with this role selected. Uncheck default role user, check role role_abc, save. Check psml browser, there is no psml entry for new user. Open new browser instance, login as new user. Page displayed after user login represents correct layout for role_abc, BUT it appears that Jetspeed cloned psml layout defined for ROLE role_abc as USER layout, because all URLs on the page represent references to portlets with new unique portlet IDs that represent user URLS like: Menu Item URL: http://localhost:8080/abc/portal/media-type/html/user/user_xyz/page/default.psml/js_pane/P-f8ad89196e-10006 If at this point I put in browser URL: http://localhost:8080/abc/portal/media-type/html/role/role_abc and refresh browser, the desired psml for ROLE role_abc is used to render the page and all URLs use pane and portlet IDs defined in role_abc psml file. I would like this behavior of loading role based psml layout to occur for the first page rendered for logged in user. Is it possible to do it? Any suggestions/recommendations are welcome. Thank you, Alex Kadyshevich - Original Message - From: Stuart Belden Date: Friday, November 7, 2003 7:39 am Subject: Re: Please help with role based PSML usage > Make sure the following two properties are set in > JetspeedResources.properties:services.Profiler.rolefallback=true > services.Profiler.newuser.template= > > If user_xyz has a psml page defined, you may try deleteing it. I > think the way the profiler works, it will pick up user-based psml > FIRST, and then look for role-based psml if no user psml exists. > > Your initial form submit action doesn't get called because it's > calling a portlet that, at the time, doesn't exist in Jetspeed's > mind. It seems counterintuitive, but I believe that's the case. > > > >>> [EMAIL PROTECTED] 11/05/03 05:13PM >>> > Hello, > > I know it is a pretty long post, but I really tried to > compress it to bare minimum. > > We would like to implement role based security and layout for our > portal. > We auto generate xreg and psml files based on information > defined in a document of a certain structure, with base Portlet > IDs in xreg file and instance Portlet IDs in psml files > generated based on some rule. We use instance portlet IDs > from PSML files to construct URLs in JSP based portlets > for form submit, etc. Majority of links reference OTHER portlets! > > The current setup: > - user account user_xyz exists that has only one role role_abc > - a psml file defined in WEB-INF/psml/role/role_abc/html/default.psml > > When user user_xyz logs in, the picture is: > - rendered page with the proper layout defined in default.psml for > role role_abc. > > - all links of tabs and menu items reference unique (generated by > JetSpeed) portlet > IDs instead of the ones that are defined in default.psml for > role_abc.(This is a problem for us!) > > - browser (IE) URL: http://localhost:8080/abc/portal > > It looks like all links on the page are user URLs, not ROLE URLs. > As example, TAB URL: > http://localhost:8080/abc/portal/media- > type/html/user/user_xyz/page/default.psml/js_pane/P-f8ad89196e- > 10016 > Menu Item URL: > http://localhost:8080/abc/portal/media- > type/html/user/user_xyz/page/default.psml/js_pane/P-f8ad89196e- > 10006 > > Clicking on menu item brings properly rendered portlet with our > HARDCODED links > in html body that reference portlet IDs that we created and placed > into PSML file. > Form submit URL that we construct looks like: > > Inst1PortletName is portlet name in our generated file > .../role/role_abc/html/default.psml. > Form submit leads to page reload (without executing expected > action) with all URLs > on reloaded page being from WEB- > INF/psml/role/role_abc/html/default.psml > - as we would like it to be. > > The other way to achieve loading of the main page with links as
Applying Skins According to Data Mode?
Hi, Does anyone know if there is a way to change the skin of a portlet if its mode changes? We want to have one skin when $data.mode=0, and change to another when $data.mode=1. Thanks much for any help/suggestions -- Liz Young
Re: How to handle self-ending Tags in HTMLRewriter?
It is probably a feature of the jdk html parser. Do image tags that end like get parsed correctly? >>> [EMAIL PROTECTED] 11/05/03 02:19PM >>> Hi, Right now I'm using Websurf Portlet which uses HTMLRewriter to rewrite the urls so that they will be displayed in given Portlet window. Websurf Portlet works just fine. But I have some other issue. If the url which I'm fetching has self-ending tags for eg. In this case, the rewritten url contains one more closing bracket ">" so in after rewriting url, the resulting image tag looks like > Since my image tags carry url links with them, this extra closing tag gets visible. After debuggin' thru code found that in case of such tags only handleStartTag() gets called. And another thing that I noted is once parser finds / during processing, parser immediately puts the closing bracket itself. Can anybody pls guide me in how to set the HTMLRewriter so that it will handle such self-ending tags in correct way to avoid appending of extra closing brackets ? thanks, j - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setTemplate in VelocityPortletAction gives InvocationTargetException
Could you try this is the latest version of Jetspeed? Thanks. I seem to recall that there was a similar issue that was fixed for b4/release. Jeremy Ford From: "Henrik W. Hansen" <[EMAIL PROTECTED]> Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: setTemplate in VelocityPortletAction gives InvocationTargetException Date: Thu, 06 Nov 2003 20:55:15 +0100 Hi all This should be a trivial question. But i have been struggeling with it for a while now. When executing the following action : public void doAddmonitor(RunData data, Context context) { setTemplate(data, "webmonitor/createMonitorParam.vm"); } I get the following excetion: Horrible Exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I am running Jetspeed 1.4b3. If i set the template from within i.e "protected void buildNormalContext" everything works fine. What can i be doing wrong?? /Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ From Beethoven to the Rolling Stones, your favorite music is always playing on MSN Radio Plus. No ads, no talk. Trial month FREE! http://join.msn.com/?page=offers/premiumradio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Submitting Left.jsp
We have created a menu (list of hyperlinks) in left.jsp and onclick of the hyperlink wish to update a parameter value in rundata. What we want to do is then use this new parameter in rundata to change some of the JSP pages delivered in a pane. Is this possible? Any help would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help with role based PSML usage
Make sure the following two properties are set in JetspeedResources.properties: services.Profiler.rolefallback=true services.Profiler.newuser.template= If user_xyz has a psml page defined, you may try deleteing it. I think the way the profiler works, it will pick up user-based psml FIRST, and then look for role-based psml if no user psml exists. Your initial form submit action doesn't get called because it's calling a portlet that, at the time, doesn't exist in Jetspeed's mind. It seems counterintuitive, but I believe that's the case. >>> [EMAIL PROTECTED] 11/05/03 05:13PM >>> Hello, I know it is a pretty long post, but I really tried to compress it to bare minimum. We would like to implement role based security and layout for our portal. We auto generate xreg and psml files based on information defined in a document of a certain structure, with base Portlet IDs in xreg file and instance Portlet IDs in psml files generated based on some rule. We use instance portlet IDs from PSML files to construct URLs in JSP based portlets for form submit, etc. Majority of links reference OTHER portlets! The current setup: - user account user_xyz exists that has only one role role_abc - a psml file defined in WEB-INF/psml/role/role_abc/html/default.psml When user user_xyz logs in, the picture is: - rendered page with the proper layout defined in default.psml for role role_abc. - all links of tabs and menu items reference unique (generated by JetSpeed) portlet IDs instead of the ones that are defined in default.psml for role_abc. (This is a problem for us!) - browser (IE) URL: http://localhost:8080/abc/portal It looks like all links on the page are user URLs, not ROLE URLs. As example, TAB URL: http://localhost:8080/abc/portal/media-type/html/user/user_xyz/page/default.psml/js_pane/P-f8ad89196e-10016 Menu Item URL: http://localhost:8080/abc/portal/media-type/html/user/user_xyz/page/default.psml/js_pane/P-f8ad89196e-10006 Clicking on menu item brings properly rendered portlet with our HARDCODED links in html body that reference portlet IDs that we created and placed into PSML file. Form submit URL that we construct looks like: Inst1PortletName is portlet name in our generated file .../role/role_abc/html/default.psml. Form submit leads to page reload (without executing expected action) with all URLs on reloaded page being from WEB-INF/psml/role/role_abc/html/default.psml - as we would like it to be. The other way to achieve loading of the main page with links as defined in psml file that we generate is to change browser URL to (and refresh): http://localhost:8080/abc/portal/media-type/html/role/role_abc/ There are 2 questions: 1. Is it a proper way to construct site layout and links when using JetSpeed? 2. How to configure JetSpeed to load default ROLE based layout after login with links as they are defined in psml file that we create? Thank you for your help! Alex - 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]
Re: Newbie Design Question
I just recently went through a similar process trying to integrate a new design (not done myself) with Jetspeed. It was a beneficial process to fight my way through the Turbine/Jetspeed rendering jungle. Just as an example, here are a couple screens of the layout (only about 85% done). They're not mockups; Jetspeed did draw these and it does all work. :)http://stumod.com/jetspeed/public.png http://stumod.com/jetspeed/staff.png You will :probably: not have to write your own controller(s), but that'll depend a lot on what sort of layout you're trying to accomplish. Here are a couple tips: - layouts/default.vm draws the tag; start here. - controls/jetspeed.vm gets called for each portlet on the page. - controllers.xreg and controls.xreg can tell you what templates get called when you're using a particular control/controller. To answer a few of your questions: - putting a nav portlet drawn by the framework up in the top nav area may be a challenge. I would bet there is a solution that would work w/o using a portlet, though. (a simple vm with $jslink()'s to other templates or psml for instance) - Changing the menu from L to R is trivial. I ended up having write a control to handle the left-hand submenu and a controller to handle the nested tabs. Both were pretty simple deals, really. I'd also really recommend gutting all of the table tags Jetspeed comes with and use css. It will makes things a thousand times easier in the long run. hth, stu >>> [EMAIL PROTECTED] 11/06/03 02:42PM >>> I have followed the Jetspeed tutorial, wrote my first portlet, and have a basic understanding of how things are working. Now I want to expand on that knowledge and start making some pretty big changes. For example, do I have to write a new controller to change the layout to something other than the ones that come with Jetspeed, or is it as easy as modifying a velocity template somewhere? What if I'd like to replace the top navigation with a navigation portlet, can I do that easily or do I have to write something new to do it? I know how to turn off the left navigation but what if instead I'd like it on the right side? I'd really like to work with what Jetspeed provides but at the same time I'm not sure of all it can provide and don't want to reinvent the wheel. As a proof of concept, I'd like to start with changing the layout to mirror our corporate intranet. I thought it would be as easy as changing a few velocity templates but it seems there is quite an interplay between turbine, velocity, and a number of other Jakarta components making understanding things a little more challenging. I'd also like to provide LDAP authentication Can someone point me to hints on how I could go about customizing Jetspeed's presentation without ending up writing my own portal? Thanks - Tod - 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]
RE: setTemplate in VelocityPortletAction gives InvocationTargetException
I think your method signature should be public void doAddmonitor(RunData rundata, Portlet portlet) greg -Original Message- From: Henrik W. Hansen [mailto:[EMAIL PROTECTED] Sent: jeudi 6 novembre 2003 20:55 To: [EMAIL PROTECTED] Subject: setTemplate in VelocityPortletAction gives InvocationTargetException Hi all This should be a trivial question. But i have been struggeling with it for a while now. When executing the following action : public void doAddmonitor(RunData data, Context context) { setTemplate(data, "webmonitor/createMonitorParam.vm"); } I get the following excetion: Horrible Exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I am running Jetspeed 1.4b3. If i set the template from within i.e "protected void buildNormalContext" everything works fine. What can i be doing wrong?? /Henrik - 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]
Doubt
If I decide use another Portal Server that is JSR168 compliant, when the jetspeed2 release will I have a lot of problems to migrate to jetspeed ? No problems with the portlets because of JSR168, but with skins, security and others parts, Will I have problems ? Sorry my bad english and thanks _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie Question
Hello, I've a portlet that shows some records (like database browser portlet ) and when click on a row I need to load that data in a separate portlet. Each time someone click on a row it should load that record to the second portlet. I tried setTemplete within the action class and it is successful but within the same portlet. can some one point me on how could I design such portlets. Thanks Sameera - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]