Re: Jetspeed Access Control

2003-01-29 Thread kristian . weissmann
Unfortunately, there is a confusing typo in my last paragraph:

And, some portlets on the SomethingElse pane should not be visible for a 
one
ROLE [not group!] (let´s say for the ProjectInfo role). Is this possible?
I could not manage this with security definitions in security.xreg
and security references in the psml files...







Kristian Weissmann [EMAIL PROTECTED]
28.01.2003 21:50
Please respond to Jetspeed Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Jetspeed Access Control


Hi Jetspeed-Community,

I have some problems configuring access control for jetspeed and really 
hope
someone can help, :(

- I need to make some tab-panes non editable, e.g. 

| MyHome[X] | CustomerInfo | ProjectInfo | SomethingElse |

only the home tab should have the edit button and the others should not be
allowed to be editable.
The same goes with the edit-button on the right side (where one can add 
new
panes etc.) - how can I
disable this button?

- Via the MyHome tab the user can reach user-specific portlets, which can 
be
added, removed, minimized
etc. as the user likes it. Portlets behind the CustomerInfo and 
ProjectInfo
are role-based portlets
which can be included in the user-psml with the psml-reference mechanism
quite nicely. The SomethinElse
has portlets based on a group. This Pane is accessible by both roles
(customerInfo, ProjectInfo).

And, some portlets on the SomethingElse pane should not be visible for a 
one
group (let´s say for the
ProjectInfo role). Is this possible? I could not manage this with security
definitions in security.xreg
and security references in the psml files...

Thanks,
Kris

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


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






Re: Portlet Change the language

2003-01-29 Thread Massimiliano Dessi
Jetspeed use l10n to change the language,
in the portlet .vm (Velocity),
you found  $l10n.variableName in the velocity portlet.
Jetspeed substitute variableName with the variableName in the
JetspeedLocalizatio_language(it, en ,es,jp, fr de, ..).properties
if the variableName don't exist and if the portlet don't use this system,
the content of the portlet
can't change the language because the content it's in the only language.

Scuse me for my bad english

Massimiliano Dessì

- Original Message -
From: Matthieu DELAHAIS [EMAIL PROTECTED]
To: Jetspeed Users List [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 4:51 PM
Subject: Re: Portlet Change the language


 It works! Thank you very much!
 But, your portlet just changes the titles. I didn't
 success to redirect the PSML. Is there something else
 to parameter? For the moment, my URL is always the
 english one...
 Thanks in advance!
 Matthieu

  --- Massimiliano Dessi
 [EMAIL PROTECTED] a écrit :  It
 is necessary  comment  in tr.properties
 
 

#services.LocalizationService.classname=org.apache.turbine.services.localiza
  tion.TurbineLocalizationService
  and put
 

services.LocalizationService.classname=org.apache.jetspeed.services.customlo
  calization.JetspeedLocalizationService
 
  and
 

#tool.request.l10n=org.apache.turbine.services.localization.LocalizationTool
  with
 

tool.request.l10n=org.apache.jetspeed.services.customlocalization.CustomLoca
  lizationTool
 
  This portlet change the language with refresh
  (reload) of the page .
 
  I implement a new velocity portlet to change the
  language witout refresh
  ,I submit the code to David Taylor to test with a
  cvs code.
  If you need the code  i submit the code in this
  mailing list .
 
  Massimiliano
 
  - Original Message -
  From: Matthieu DELAHAIS [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, January 27, 2003 4:11 PM
  Subject: Portlet Change the language
 
 
   Hi all,
  
   First, I thank very much the person who help me to
   understand where the language is determined.
   Second, I'm tying to change the language with the
   portlet Change the Language. But, when I click
  on
   another language (ES, DE, EN...), nothing appends.
  Is
   there something to configure before using these
   portlet.
   Thank you very much in advance.
  
   Matthieu
  
  
 
 ___
   Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
  et en français !
   Yahoo! Mail : http://fr.mail.yahoo.com
  
   --
   To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
 
 
 
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

 ___
 Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
 Yahoo! Mail : http://fr.mail.yahoo.com

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






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




services.JetspeedSecurity.secure.passwords=true

2003-01-29 Thread Weßling, Achim
Hallo,

I just tried to set the property
'services.JetspeedSecurity.secure.passwords' to true. I changed the
password-field in the DB (MySQL) to the SHA-encoded password. I restarted
jetspeed (1.4 B3 on tomcat 4.1.18 LE jdk1.4) and tried to login the admin.
But I only get an exception! If I change everything back and try to login
everything is nice.
I also recognized, that the version 1.4 B3 throws an exception when I have a
typo in the password!!!
How can I solve this problems?
Thanks!

Mit freundlichem Gruß

Achim Weßling


**
INFOKOM Gütersloh
Fachbereich Technische Anwendungen / Zentrale Anwendungen
Tel.: 05241/85-2926
[EMAIL PROTECTED]
http://www2.infokom-gt.de/produkte


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




Re: JSP vs Velocity

2003-01-29 Thread Andrew C. Oliver
I suggest you will find that Velocity performs better in Jetspeed. 
Furthermore, you'll find that JSP's integration is largely a kludge.  I 
would suggest that JSP is not appropriate for outputting binary files.

-Andy

Wei Guan wrote:
I like Velocity. However, there are lots of JSP tags, such as JSP output stream buffer cache tag I could use, I had hard time to find similiar Velocity library.

Which do you prefer? Any serious JetSpeed Velocity development and deployment?

How is the popularity of JetSpeed? 




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




Re: JSP vs Velocity

2003-01-29 Thread Andrew C. Oliver
I found turbine pretty easy to deal with myself.

[EMAIL PROTECTED] wrote:

Hi,

I think the popularity could be much better if the underlying turbine would
not be such a high learning curve. With turbine 3 it may be much better,
since then people can bet on horses, which they already know (especially
EJB). IMHO, What also could give jetspeed a real boost is if it would rely
on struts(*) - but I guess that is impossible, since turbine has its own
mcv-model ...

(*) maybe struts does not have such a sophisticated mvc model as turbine,
but it definitively has much more familiarity and pervasion (just look at
all these struts books and articles). for me it is a quasi-standard for
web-based mvc.

Kris


-
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: JSP vs Velocity

2003-01-29 Thread kristian . weissmann
Lucky guy! Write a book about it and share your knowledge - struts books 
we have enough!
BTW, since your mail ends with apache.org - how much and how long are you 
involved in
jetspeed / turbine? I am since 4 days and don` t think jetspeed is one of 
the
vanilla frameworks to understand in a few days. 








Andrew C. Oliver [EMAIL PROTECTED]
29.01.2003 14:33
Please respond to Jetspeed Users List

 
To: Jetspeed Users List [EMAIL PROTECTED]
cc: 
Subject:Re: JSP vs Velocity


I found turbine pretty easy to deal with myself.

[EMAIL PROTECTED] wrote:
 Hi,
 
 I think the popularity could be much better if the underlying turbine 
would
 not be such a high learning curve. With turbine 3 it may be much better,
 since then people can bet on horses, which they already know (especially
 EJB). IMHO, What also could give jetspeed a real boost is if it would 
rely
 on struts(*) - but I guess that is impossible, since turbine has its own
 mcv-model ...
 
 (*) maybe struts does not have such a sophisticated mvc model as 
turbine,
 but it definitively has much more familiarity and pervasion (just look 
at
 all these struts books and articles). for me it is a quasi-standard for
 web-based mvc.
 
 Kris
 
 
 -
 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]






Customzing the Anon page

2003-01-29 Thread BARDE, CEDRIC
Hi all,

I am working with Jetspeed 1.4b3 and a MySQL database. Everything is
configured properly and works fine.
My question is: how can I change the portlets that appear on the anon page
of my portal? Before using a database, I used to change the PSML files. But
now, how does it work?

Thanx a lot in advance.
Ced

__
Cédric BARDE
Disneyland Resort Paris - Information Services
Bâtiment Robin Hood - BP 100
7 Marne-La-Vallée
Tél : 01 64 74 65 49
Fax : 01 64 74 65 65
Email : [EMAIL PROTECTED]


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




JSP localization (l10n) taglib

2003-01-29 Thread Fabio Latrofa
I'm trying to 'localize' Jetspeed using JSP templates and jetspeed:l10n
taglib; I noticed that setting the
services.TemplateService.default.extension property to jsp

services.TemplateService.default.extension=jsp

Jetspeed get only the default locale strings.

Is there something else that I have to configure?

Regards,

Fabio Latrofa
SIVA S.p.A
Mail: [EMAIL PROTECTED]
Tel. +39 0654220452
Fax +39 0654220484


Questa e-mail e' stata verificata dal sistema di antivirus della Siva S.P.A.


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




Language of the user

2003-01-29 Thread Matthieu DELAHAIS
Hi all,

In my user table, I have the language of the user. So,
I would like that Jetspeed uses automaticaly the
language of the connect user. Any idea?
I look at the portlet change the language, but it
doesn't work as I want...
Thanks in Advance

Matthieu

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: Is Jetspeed a good solution?

2003-01-29 Thread jasenj1
IMHO, Jetspeed is only a good solution if you have a dedicated staff or
contractor(s) willing to get VERY intimate with the code - and who are very
smart on the Jetspeed supporting technologies.  Numerous people have
requested examples of real portals being hosted under Jetspeed and I think
the best we've seen are one in Australia and one in... Indonesia? (Check the
Jetspeed home page.)  I've seen several queries related to more than trivial
security control receive no replies on this list.

Certainly the technologies underlying Jetspeed - Java servlets, relational
DBs, etc. - are well understood and proven.  As you mentioned, Jetspeed code
(at least an old version) is incorporated in IBM's Websphere, and you can't
get much more industrial strength than that.  However, the Jetspeed
documentation is spotty at best; there are NO books available on Jetspeed,
so expect to spend a LOT of time deciphering the code, structure,
interrelationship of the various config files, whether or not various config
parameters actually work, etc.

Other open source portal solutions that might be worth looking at include
uPortal (http://mis105.mis.udel.edu/ja-sig/uportal/) which is developed and
controled by a consortium of universities, or Zope (http://www.zope.org/) if
you're willing to step out of a Java-centric product.

I think Jetspeed is going through a lot of growing pains.  It is a 1.x
product after all.  There is certainly a lot of good work being done on the
product, but I think once you get into more sophisticated needs - reasonably
complex security for example - you'll find it requires a lot of tweaking and
development of custom code to get your work done.  If you're not afraid of
that, then go for it.

 - Jasen.



How can i share common files and portlets between two jetspeed portals?

2003-01-29 Thread Sangam Dash
Hi

I need some guidelines as to how can i share the common portlets and jsp 
and html files between two jetspeed portals as their jetspeed_home 
folders are different.
Please help me
Thanks
sangam dash


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



Getting a java.lang.NoClassDefFoundError

2003-01-29 Thread Tino Dai
Hi!

   I am running a weblogic 5.1sp12 server with jetspeed and turbine on a
rh 8.0 After moving the web application from one server to another, I'm
getting an exception thrown when somebody hits the login page. I have
not changed anything except machines. Here is the error that I am
getting:

   java.lang.NoClassDefFoundError:
org/apache/jetspeed/turbine/layouts/JetspeedLayout
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
org.apache.turbine.modules.LayoutLoader.getInstance(LayoutLoader.java:137)
at
org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:111)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:134)
at org.apache.turbine.modules.Page.build(Page.java:81)
at
org.apache.turbine.modules.PageLoader.exec(PageLoader.java:111)
at Turbine.handleException(Turbine.java:479)
at Turbine.doGet(Turbine.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:945)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:909)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)

Also, it is an old version of jetspeed and turbine. Thanks in advance!

-Tino



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




Re: services.JetspeedSecurity.secure.passwords=true

2003-01-29 Thread David Sean Taylor

On Wednesday, January 29, 2003, at 05:23  AM, Weßling, Achim wrote:


Hallo,

I just tried to set the property
'services.JetspeedSecurity.secure.passwords' to true. I changed the
password-field in the DB (MySQL) to the SHA-encoded password. I 
restarted
jetspeed (1.4 B3 on tomcat 4.1.18 LE jdk1.4) and tried to login the 
admin.
But I only get an exception! If I change everything back and try to 
login
everything is nice.
I also recognized, that the version 1.4 B3 throws an exception when I 
have a
typo in the password!!!
How can I solve this problems?
Thanks!


Your going to have to encrypt your passwords that are currently in the 
database.
I can send you an action to do so if you'd like.
Be careful to only run it only once

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
+01 707 773-4646




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



Re: Customzing the Anon page

2003-01-29 Thread David Sean Taylor

On Wednesday, January 29, 2003, at 06:01  AM, BARDE, CEDRIC wrote:


Hi all,

I am working with Jetspeed 1.4b3 and a MySQL database. Everything is
configured properly and works fine.
My question is: how can I change the portlets that appear on the anon 
page
of my portal? Before using a database, I used to change the PSML 
files. But
now, how does it work?

Login  as Admin and go to the PSML Browser, and select the anonymous 
page from there and customize it using the Jetspeed customizer

Thanx a lot in advance.
Ced

__
Cédric BARDE
Disneyland Resort Paris - Information Services
Bâtiment Robin Hood - BP 100
7 Marne-La-Vallée
Tél : 01 64 74 65 49
Fax : 01 64 74 65 65
Email : [EMAIL PROTECTED]


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





--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
+01 707 773-4646




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




Re: Language of the user

2003-01-29 Thread David Sean Taylor

On Wednesday, January 29, 2003, at 08:48  AM, Matthieu DELAHAIS wrote:


Hi all,

In my user table, I have the language of the user. So,
I would like that Jetspeed uses automaticaly the
language of the connect user. Any idea?
I look at the portlet change the language, but it
doesn't work as I want...
Thanks in Advance

Matthieu


I have a patch here to fix the Language portlet - it needs some testing 
- hopefully I can commit it by the weekend.
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
+01 707 773-4646




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



Re: JSP vs Velocity

2003-01-29 Thread Andrew C. Oliver
I have been using Jetspeed since November.  I had no prior Turbine 
knowledge and Velocity knowledge was limited to editing a couple 
templates during contribution to site documentation.

The best way to do it is to just do it, dive in, make it work.  As you 
do it write documentation.  Submit it as patches.  You'll find others 
will correct them and expand upon them.  In the end, the documentation 
is improved and the project improves.  Your understanding improves and 
your time investment is limited due to the contribution of others.

Or at least that usually works for me.  (BTW, thats kinda part of how I 
got that @apache.org address)

-Andy


[EMAIL PROTECTED] wrote:
Lucky guy! Write a book about it and share your knowledge - struts books 
we have enough!
BTW, since your mail ends with apache.org - how much and how long are you 
involved in
jetspeed / turbine? I am since 4 days and don` t think jetspeed is one of 
the
vanilla frameworks to understand in a few days. 








Andrew C. Oliver [EMAIL PROTECTED]
29.01.2003 14:33
Please respond to Jetspeed Users List

 
To: Jetspeed Users List [EMAIL PROTECTED]
cc: 
Subject:Re: JSP vs Velocity


I found turbine pretty easy to deal with myself.

[EMAIL PROTECTED] wrote:

Hi,

I think the popularity could be much better if the underlying turbine 

would


not be such a high learning curve. With turbine 3 it may be much better,
since then people can bet on horses, which they already know (especially
EJB). IMHO, What also could give jetspeed a real boost is if it would 

rely


on struts(*) - but I guess that is impossible, since turbine has its own
mcv-model ...

(*) maybe struts does not have such a sophisticated mvc model as 

turbine,


but it definitively has much more familiarity and pervasion (just look 

at


all these struts books and articles). for me it is a quasi-standard for
web-based mvc.

Kris


-
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 using JSPAction

2003-01-29 Thread Mark Orciuch
If you're using Jetspeed 1.4b4-dev check out from CVS today, then it should
work. I just checked in a fix to make setTemplate work in JspPortlet
yesterday.

Best regards,

Mark Orciuch - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/

 -Original Message-
 From: Damle, Nikhil [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 1:04 PM
 To: 'Jetspeed Users List'
 Subject: setTemplate using JSPAction


 Hi,

 When I use the setTemplate method, ( ex. setTemplate(rundata,
 somefile.jsp) ), under what folder should this somefile.jsp
 file reside.
 Seems like jetspeed is not able to find this file. I have it under the
 templates/jsp/portlets/html folder.

 Thanks


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


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




Re: JSP vs Velocity

2003-01-29 Thread Shan Gopalakrishnan
I have one point to share.
I had a prototype created using 1.4a and trying to port to 1.4b3, but went 
through slightly tough time
in porting the code to 1.4b3 as I had done some good amount of 
customization changes to jetspeed 1.4a templates.

The velocity templates has a lot of macros coded in it and any changes to 
the templates for customization
heavily affects the upgrade to new version.  wondering what is the general 
opinion on this.

Another one , wondering how the content management tools will deal with 
Velocity templates now as it looks
not a clean tag oriented template.

Lastly we observed the velocity templates are consuming more time in some 
areas while rending the page.

- Shan

At 11:37 PM 1/29/2003 -0500, Andrew C. Oliver wrote:
I have been using Jetspeed since November.  I had no prior Turbine 
knowledge and Velocity knowledge was limited to editing a couple templates 
during contribution to site documentation.

The best way to do it is to just do it, dive in, make it work.  As you do 
it write documentation.  Submit it as patches.  You'll find others will 
correct them and expand upon them.  In the end, the documentation is 
improved and the project improves.  Your understanding improves and your 
time investment is limited due to the contribution of others.

Or at least that usually works for me.  (BTW, thats kinda part of how I 
got that @apache.org address)

-Andy


[EMAIL PROTECTED] wrote:
Lucky guy! Write a book about it and share your knowledge - struts books 
we have enough!
BTW, since your mail ends with apache.org - how much and how long are you 
involved in
jetspeed / turbine? I am since 4 days and don` t think jetspeed is one of the
vanilla frameworks to understand in a few days.



Andrew C. Oliver [EMAIL PROTECTED]
29.01.2003 14:33
Please respond to Jetspeed Users List
 To: Jetspeed Users List [EMAIL PROTECTED]
cc: Subject:Re: JSP vs Velocity

I found turbine pretty easy to deal with myself.
[EMAIL PROTECTED] wrote:

Hi,

I think the popularity could be much better if the underlying turbine

would


not be such a high learning curve. With turbine 3 it may be much better,
since then people can bet on horses, which they already know (especially
EJB). IMHO, What also could give jetspeed a real boost is if it would

rely


on struts(*) - but I guess that is impossible, since turbine has its own
mcv-model ...

(*) maybe struts does not have such a sophisticated mvc model as

turbine,


but it definitively has much more familiarity and pervasion (just look

at


all these struts books and articles). for me it is a quasi-standard for
web-based mvc.

Kris


-
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]




Some Quetions on jetspeed

2003-01-29 Thread Shiva Kumar T
Hi,

1.What is the purpose of Associating Roles with permissions in JetSpeed,when we 
already have security references?

2.When i log in as admin In the content tab's Customize , you can add a reference 
,after which it is updating the PSML file of the admin and the refered PSML's panes 
are coming in the Content Pane, then if i remove the just added reference then it is 
not showing the removed pane in the Content pane (Still this point it is fine), but it 
is not updating the admin's PSML (Ideally it should remove the reference from the 
admin PSML).If i log out and login then still it is not showing the removed reference 
in the Content Pane.
But if i restart the Tomcat server then it is again showing the removed Reference 
inside the Content pane.
What is the work around for this?


Thanx
Shiva




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




RE: JSP vs Velocity

2003-01-29 Thread Mark Orciuch
 Furthermore, you'll find that JSP's integration is largely a kludge.

How so? No, I'm not trying to start a Velocity vs. JSP war but I'm
interested in any shortcomings with the JSP integration.

Best regards,

Mark Orciuch - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/



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




RE: JSP localization (l10n) taglib

2003-01-29 Thread Mark Orciuch
Hmmm, not sure about this one. Could these settings in tr.props help:

locale.default.language=en
locale.default.country=US

If Velocity is the default, does it properly localize the strings?


 -Original Message-
 From: Fabio Latrofa [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 29, 2003 10:37 AM
 To: 'Jetspeed Users List'
 Subject: JSP localization (l10n) taglib
 
 
 I'm trying to 'localize' Jetspeed using JSP templates and jetspeed:l10n
 taglib; I noticed that setting the
 services.TemplateService.default.extension property to jsp
 
 services.TemplateService.default.extension=jsp
 
 Jetspeed get only the default locale strings.
 
 Is there something else that I have to configure?
 
 Regards,
 
 Fabio Latrofa
 SIVA S.p.A
 Mail: [EMAIL PROTECTED]
 Tel. +39 0654220452
 Fax +39 0654220484
 
 
 Questa e-mail e' stata verificata dal sistema di antivirus della 
 Siva S.P.A.
 
 
 -
 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: JSP vs Velocity

2003-01-29 Thread Michael Rothrock
I would say that it works perfectly well for my strategy, but I believe
there's still an issue over how JSPs handle actions.  I've been pushing that
one off, but I will eventually reach a point where I can't ignore it.

FWIW, my strategy is to prototype in JSP, then move the code into a class
that inherits from AbstractInstancePortlet.  For the most part, my approach
has been to have that class generate what amounts to a List of objects
which are placed into the request.  The JSP is then limited to iterating
through the list and simply displaying the getXXX attributes of each object.
My JSP files are nothing more than iterators, and this works pretty well for
me.  If this is a radically incorrect approach, I'd appreciate the feedback
now!!!

Once you reach this level of isolation, it really doesn't matter if you
choose JSP or Velocity.  My rational behind choosing JSPs is as follows:
1) Its faster (for me, but YMMV) to prototype my Java code in JSPs
2) Dreamweaver understands JSPs
3) If I need to contract out, JSP-savvy designers are far more common (and
hence cheaper) than Velocity-savvy ones
4) Thus far, I have the CPU cycles to spare on JSP, though this may change
once I go live

-- Michael


On 1/29/03 8:53 PM, Mark Orciuch [EMAIL PROTECTED] wrote:

 Furthermore, you'll find that JSP's integration is largely a kludge.
 
 How so? No, I'm not trying to start a Velocity vs. JSP war but I'm
 interested in any shortcomings with the JSP integration.
 
 Best regards,
 
 Mark Orciuch - [EMAIL PROTECTED]
 Jakarta Jetspeed - Enterprise Portal in Java
 http://jakarta.apache.org/jetspeed/
 
 
 
 -
 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]




How to set Security for Portlets ?

2003-01-29 Thread Sunil Sheshadri
Hi,
I have two new roles defined in my application. role1 and role2

I have 4 portlets.
role1 has to access only 1 and 2 portlets.
but role2 has to have access to all 1,2,3,4 portlets. How to sent the roles
for the portlets ?


Regards,
Sunil P S.
Off: 5010261 (extn :2261)
Res: 3329038


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




Re: JSP vs Velocity

2003-01-29 Thread Shan Gopalakrishnan
But wondering the overall templates need to be still velocity in jetspeed 
framework.
the portlets can be jsp.  remember that context object is always null in 
jsp :-)

At 10:40 PM 1/29/2003 -0800, Michael Rothrock wrote:
I would say that it works perfectly well for my strategy, but I believe
there's still an issue over how JSPs handle actions.  I've been pushing that
one off, but I will eventually reach a point where I can't ignore it.

FWIW, my strategy is to prototype in JSP, then move the code into a class
that inherits from AbstractInstancePortlet.  For the most part, my approach
has been to have that class generate what amounts to a List of objects
which are placed into the request.  The JSP is then limited to iterating
through the list and simply displaying the getXXX attributes of each object.
My JSP files are nothing more than iterators, and this works pretty well for
me.  If this is a radically incorrect approach, I'd appreciate the feedback
now!!!

Once you reach this level of isolation, it really doesn't matter if you
choose JSP or Velocity.  My rational behind choosing JSPs is as follows:
1) Its faster (for me, but YMMV) to prototype my Java code in JSPs
2) Dreamweaver understands JSPs
3) If I need to contract out, JSP-savvy designers are far more common (and
hence cheaper) than Velocity-savvy ones
4) Thus far, I have the CPU cycles to spare on JSP, though this may change
once I go live

-- Michael


On 1/29/03 8:53 PM, Mark Orciuch [EMAIL PROTECTED] wrote:

 Furthermore, you'll find that JSP's integration is largely a kludge.

 How so? No, I'm not trying to start a Velocity vs. JSP war but I'm
 interested in any shortcomings with the JSP integration.

 Best regards,

 Mark Orciuch - [EMAIL PROTECTED]
 Jakarta Jetspeed - Enterprise Portal in Java
 http://jakarta.apache.org/jetspeed/



 -
 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: portlet object in doUpdate()

2003-01-29 Thread Pierre Henry
I would say it is ok without action. If you want buildNormalContext to be
called after doUpdate, you still can call it explicitely from there...

 -Original Message-
 From: Wei Guan [mailto:[EMAIL PROTECTED]]
 Sent: mercredi, 29. janvier 2003 08:00
 To: Jetspeed Users List
 Subject: Re: portlet object in doUpdate()
 
 
 Pierre:
 
 I tested your workaround. I used velocity. I used POST. Here is the
 behavior.
 if I removed action, I could get portlet in doUpdate(), however,
 buildNormalContext is never got called.
 if I keep the action, the portlet is null in doUpdate(),
 buildNormalContext is called after doUpdate().
 
 Is it a bug?
 
 Thanks.
 
 - Original Message -
 From: Pierre Henry [EMAIL PROTECTED]
 To: Michael Rothrock [EMAIL PROTECTED]
 Cc: Jetspeed User List (E-mail) [EMAIL PROTECTED]
 Sent: Tuesday, January 28, 2003 2:26 AM
 Subject: RE: portlet object in doUpdate()
 
 
  I got them to work with GET, but it only works with 
 Internet Explorer, It
  doesn't work with Mozilla, the buildNormalContext action is 
 called, not
 the
  actions... (I tried MSIE 5 and 6 and Mozilla 1.2)
 
  Pierre
 
   -Original Message-
   From: Michael Rothrock [mailto:[EMAIL PROTECTED]]
   Sent: lundi, 27. janvier 2003 19:21
   To: Jetspeed Users List; Pierre Henry
   Subject: Re: portlet object in doUpdate()
  
  
   Since I'm about to be working on this, let me ask a related
   question: has
   anyone gotten JSP actions to work with GET?
  
   Thanks!
  
   -- Michael
  
   On 1/27/03 1:09 AM, Pierre Henry [EMAIL PROTECTED] wrote:
  
Hi Wei,
   
I had the same problem last week (see my mail with title
   Tricky behavior
with JSP portlet and forms).
   
what I found out :
   
- the form in the JSP doesn't need any action attribute
   
- the ony needed hidden field is js_peid which contains the
portlet's ID.
   
   
When I put a hidden field for the action :
INPUT TYPE=hidden name=action
value=CustomizableXsqlPortlet1Action
the right method was called  but the portlet argument of the
doUpdatefilter
method was null, so the action class couldn't do much.
   
So try to remove the action field...
   
I hope it helps !
   
Pierre
   
-Original Message-
From: Wei Guan [mailto:[EMAIL PROTECTED]]
Sent: lundi, 27. janvier 2003 07:49
To: [EMAIL PROTECTED]
Subject: portlet object in doUpdate()
   
   
I have a doUpdate in an VelocityAction class:
   
VelocityPortlet portlet = (VelocityPortlet) 
 context.get(portlet);
   
the portlet is null.
   
Is this a bug?
   
Wei
   
   
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: How to set Security for Portlets ?

2003-01-29 Thread Shiva Kumar T
Add a security reference for Portlets (someportlet.xreg)with the parent as the 
reference defined in security.xreg .


Please find the example below.

Say for portlet1 only role1 and admin have got all the rights and others does n't have 
any rights.


This is for portlet1 done in portlets.xreg

portlet-entry name=Portlet1 hidden=false type=ref
parent=CustomizerVelocity application=false

security-ref parent=role1-Only/

meta-info
titleWeather/title
descriptionCurrent weather conditions for a city/description
/meta-info

classnameorg.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet/classname
category group=Jetspeedweather/category
/portlet-entry

In security.xreg define the security reference as below.

security-entry name=role1-Only
meta-info
titlerole1-only/title
descriptionFull access to user with the manager role./description
/meta-info
access action=*
allow-if role=admin
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:type=java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow/
/access
access action=*
allow-if role=role1
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:type=java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow/
/access
/security-entry




So role1 will have all the access to portlet1.

In the same way you can do for all other portlets by modifying your security.xreg and 
portlet.xreg.


Thanx
Shiva






-Original Message-
From: sunil_ps(INT) 
Sent: Thursday, January 30, 2003 12:30 PM
To: 'Jetspeed Users List'
Subject: How to set Security for Portlets ?


Hi,
I have two new roles defined in my application. role1 and role2

I have 4 portlets.
role1 has to access only 1 and 2 portlets.
but role2 has to have access to all 1,2,3,4 portlets. How to sent the roles
for the portlets ?


Regards,
Sunil P S.
Off: 5010261 (extn :2261)
Res: 3329038


-
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: JSP vs Velocity

2003-01-29 Thread Pierre Henry
 How so? No, I'm not trying to start a Velocity vs. JSP war but I'm
 interested in any shortcomings with the JSP integration.
 
 Best regards,
 
 Mark Orciuch - [EMAIL PROTECTED]

Hi Mark!

I described some problems I met with JSP's and actions in the Tricky
behavior with JSP portlet and forms thread of this mailing list, and Wei
and Michael met similar problems, see portlet object in doUpdate().


Pierre



Re: How to set Security for Portlets ?

2003-01-29 Thread kristian . weissmann
Since I am quite a jetspeed newbie I do not know whether this is a good 
solution, but it should work:

-  define your group like mygroup
-  define a psml under WEB-INF/psml/group/mygroup/html/defaul.psml with 
portlets 1 and 2
-  define your roles like role1 and role2
-  define  a psml under WEB-INF/psml/role/role2/html/defaul.psml with 
portlets 3 and 4
-  define  a psml under WEB-INF/psml/role/role1/html/defaul.psml with 
nothing (see next step)
-  use a psml locator 
[http://jakarta.apache.org/jetspeed/site/psml.html] to include portlets 1 
and 2 in the psml of role 2
-  use a psml locator 
[http://jakarta.apache.org/jetspeed/site/psml.html] to include portlets 1 
and 2 in the psml of role 1

- If you use the profiler mechanism which automatically checks the 
browsers language, you probably need to
change the path from e.g. WEB-INF/psml/group/mygroup/html/defaul.psml
WEB-INF/psml/group/mygroup/html/DE/CH/defaul.psml (for switzerland). Or 
simply switch the profiler off in
turbine.properties for the first try-outs.

- tell me, whats the effect if a user has both roles? Does he have portlet 
1 and 2 twice?

HTH,
Kris

jetspeed-gurus: Is this a proper solution?







Sunil Sheshadri [EMAIL PROTECTED]
30.01.2003 08:00
Please respond to Jetspeed Users List

 
To: 'Jetspeed Users List' [EMAIL PROTECTED]
cc: 
Subject:How to set Security for Portlets ?


Hi,
I have two new roles defined in my application. role1 and role2

I have 4 portlets.
role1 has to access only 1 and 2 portlets.
but role2 has to have access to all 1,2,3,4 portlets. How to sent the 
roles
for the portlets ?


Regards,
Sunil P S.
Off: 5010261 (extn :2261)
Res: 3329038


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