Re: .jsp or .vm templates extension

2005-02-08 Thread Youssef Mohammed
Jetspeed as portal can work with either JSPs  or Velocity .vm
IMHO vm templates are much easier to customize especially if you need
only to customize the GUI elements.
Despite what will you use (vm or jsp) with Jetspeed as portal  you
still can write your own portlets in jsps or even vm  it is
irrelevant.
Regards,
   Youssef



On Tue, 8 Feb 2005 17:32:18 +0100, Stefano Bianchi
[EMAIL PROTECTED] wrote:
 
 Dear Archana,
 folder [TOMCAT]\webapps\jetspeed\WEB-INF\templates\vm contains folders
 control, emails, includes, whereas folder jsp does not.
 
 Anyway you seem to confirm my opinion: that's a mix (thank you!).
 I find .jsp are better for graphical layout since they seem to refresh
 immediately (e.g. default.jsp).
   
 I simply changed TurbineResource.properties to set jsp instead of vm.
 Maybe should I change all .vm templates also in
 JetspeedResources.properties?
 
 Any hint from tech guys?
 Thank you!
 Stefano
 
 - Original Message -
 From: Archana Turaga [EMAIL PROTECTED]
 To: Archana Turaga [EMAIL PROTECTED]; Jetspeed Users List
 jetspeed-user@jakarta.apache.org
 Sent: Tuesday, February 08, 2005 5:27 PM
 Subject: RE: .jsp or .vm templates extension
 
 By the way the answer to the question: should I use vm or jsp as
 templates
 extension?
 
 If you are more comfortable using jsps then set the template extension
 to jsp otherwise vm. Whatever you set the extension to the layout pages
 are still vm since that is not supported in jsp(read this in one of
 the postings). Ideally according if we set the template extension to jsp
 then even the layout templates should be jsp but that is not supported.
 
 Regards,
 Archana
 
 -Original Message-
 From: Archana Turaga
 Sent: Tuesday, February 08, 2005 10:24 AM
 To: 'Jetspeed Users List'
 Subject: RE: .jsp or .vm templates extension
 
 why the template\vm
 folder contains more folders and files... I do not understand this
 issue...can you elaborate.
 
 As far as I know (and I'm no expert) Jetspeed does use a mix or vm and
 jsp. You can still define vm templates even after setting the template
 extension to jsp and what that drives is rendering of some pages like
 the navigational jsps (top, bottom,left),the error pages (When there is
 a exception the error.jsp is invoked rather than the error.vm...Look at
 the jsp directory of jetspeed).
 
 Does that clarify anything?
 Regards,
 Archana
 -Original Message-
 From: Stefano Bianchi [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 08, 2005 10:00 AM
 To: Jetspeed Users List
 Subject: .jsp or .vm templates extension
 
 Dear ALL,
 maybe a silly question for a JS1.4b3 expert...
 
 I'm using JS1.5 and my question is: should I use vm or jsp as templates
 extension?
 
 I used jsp (I don't even remember in how many places I had to change the
 extension in properties files!) but I still ask myself why the
 template\vm
 folder contains more folders and files...
 
 That is: if I use jsp, will Jetspeed use a mix of vm and jsp to render
 its
 contents? And who does what?
 
 Thank you guys
 Stefano
 
 Ing. Stefano Bianchi
 Softeco Sismat S.p.A.
 Via De Marini, 1 - WTC Tower
 16149 Genoa (ITALY)
 e-mail: [EMAIL PROTECTED]
 tel: +39 010 60.26.368
 fax: +39 010 60.26.350
 
 -
 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]
 
 


-- 
Regards, Youssef

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



Re: Static content

2004-11-21 Thread Youssef Mohammed
you can put them outside jetspeed and use IFrame or the URL aggregator Portlets 


On Fri, 19 Nov 2004 16:48:28 -, lahsen abouenour
[EMAIL PROTECTED] wrote:
 That's what i need, the FileServerPortlet worked well but i want also that 
 the target (of the links that in the html page) is the portlet, because when 
 I try those links the content is displayed within the page of the portal and 
 not in the portlet .. do you have any idea ?
 
 -Message d'origine-
 De : Pe, Win {PI} [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 17 novembre 2004 22:13
 À : Jetspeed Users List
 Objet : RE: Static content
 
 
 
 I would assume what you want is static information like company information. 
 I did similarthing using html page and publish as a portlet. See the welcome 
 portlet under html.demo. It uses 
 org.apache.jetspeed.portal.portlets.FileServerPortletorg.apache.jetspeed.portal.portlets.FileServerPortlet
 
 If you need more information, please let me know.
 
 Win Pe
 
 -Original Message-
 From: Dan Moore [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 18 November 2004 02:16
 To: Jetspeed Users List
 Subject: Re: Static content
 
 http://portals.apache.org/jetspeed-1/portlet_config_HTML.html?
 
 Not sure what you mean by 'presentation of company'.
 
 Dan
 
 --- lahsen abouenour [EMAIL PROTECTED] wrote:
 
  Hi,
  What is the best way to display static content (presentation of
  company, ...) ?
  Thanks.
 
 
  -
  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]
 
 


-- 
Regards, Youssef

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



Re: performance slowdown for 100,000 users, all with same PSML

2004-11-17 Thread Youssef Mohammed
I don't mind at all :)  


On Tue, 16 Nov 2004 16:00:00 -0800, David Sean Taylor
[EMAIL PROTECTED] wrote:
 Youssef Mohammed wrote:
  I think it has nothing to do with the portlets since the only changes
  he (Dan) made was the number of users.
  I suggest to do some profiling (both IBM and Oracle stuff can help )
  to the jetspped instance to see what is going on.
  I used to work on J1 last year and I did found some scalability issues on 
  it.
  I donno if they still exist on not.
 
 
 If our resident performance expert doesn't mind, could I also recommend
 trying the delay rendering feature, which allows for J1 to render
 portlets in parallel.
 By default, J1 will render portlet sequentially, meaning that portlet 2
 doesnt start rendering until portet 1 completes and so on.
 
 --
 
 
 David Sean Taylor
 Bluesunrise Software
 [EMAIL PROTECTED]
 [office] +01 707 773 4646
 [mobile] +01 707 529 9194
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Regards, Youssef

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



Re: performance slowdown for 100,000 users, all with same PSML

2004-11-17 Thread Youssef Mohammed
Glad that u solved your problem. I also wonder if anyone has
explanation of what happened to Dan and other solution without turning
the SecuirtyAccessControl off.


On Wed, 17 Nov 2004 08:58:46 -0800 (PST), Dan Moore [EMAIL PROTECTED] wrote:
 Well folks, we found the issue with the 100,000 users problem.
 
 I used p6spy to grab all the SQL statements going to the database, and
 we saw this:
 
 1099788107943|13|1|statement||SELECT TURBINE_USER.USER_ID,
 TURBINE_USER.LOGIN_NA
 ME, TURBINE_USER.PASSWORD_VALUE, TURBINE_USER.FIRST_NAME,
 TURBINE_USER.LAST_NAME
 , TURBINE_USER.EMAIL, TURBINE_USER.CONFIRM_VALUE,
 TURBINE_USER.MODIFIED, TURBINE
 _USER.CREATED, TURBINE_USER.LAST_LOGIN, TURBINE_USER.DISABLED,
 TURBINE_USER.OBJE
 CTDATA, TURBINE_USER.PASSWORD_CHANGED FROM TURBINE_USER WHERE
 TURBINE_USER.LOGIN
 _NAME='17215'
 1099788107976|15|1|statement||SELECT TURBINE_USER_GROUP_ROLE.USER_ID,
 TURBINE_US
 ER_GROUP_ROLE.GROUP_ID, TURBINE_USER_GROUP_ROLE.ROLE_ID FROM
 TURBINE_USER_GROUP_
 ROLE WHERE TURBINE_USER_GROUP_ROLE.USER_ID='17215'
 1099788108002|10|1|statement||SELECT TURBINE_ROLE.ROLE_ID,
 TURBINE_ROLE.ROLE_NAM
 E, TURBINE_ROLE.OBJECTDATA FROM TURBINE_ROLE WHERE
 TURBINE_ROLE.ROLE_ID=1
 1099788108032|10|1|statement||SELECT TURBINE_GROUP.GROUP_ID,
 TURBINE_GROUP.GROUP
 _NAME, TURBINE_GROUP.OBJECTDATA FROM TURBINE_GROUP WHERE
 TURBINE_GROUP.GROUP_ID=1
 
 Many many times.  In fact, these four statements were repeated around
 60 times for one page load with 9 portlets.  I don't know why, since
 this property was set in JetspeedSecurity.properties:
 
 services.JetspeedSecurity.caching.enable=true
 
 This obviously slowed portlet rendering down quite a bit.  Since we are
 not using any of Jetspeed's authorization capabilities, we turned it
 off by setting this property:
 
 services.PortalAccessController.classname=org.apache.jetspeed.services.security.
 nosecurity.NoSecurityAccessController
 
 This helped a lot.  We saw no more of the statements mentioned above,
 and page load times go down dramatically.
 
 Thanks for all your help.
 
 Dan
 
 
 
 
 --- David Sean Taylor [EMAIL PROTECTED] wrote:
 
  Youssef Mohammed wrote:
   I think it has nothing to do with the portlets since the only
  changes
   he (Dan) made was the number of users.
   I suggest to do some profiling (both IBM and Oracle stuff can help
  )
   to the jetspped instance to see what is going on.
   I used to work on J1 last year and I did found some scalability
  issues on it.
   I donno if they still exist on not.
  
 
  If our resident performance expert doesn't mind, could I also
  recommend
  trying the delay rendering feature, which allows for J1 to render
  portlets in parallel.
  By default, J1 will render portlet sequentially, meaning that portlet
  2
  doesnt start rendering until portet 1 completes and so on.
 
 
  --
  David Sean Taylor
  Bluesunrise Software
  [EMAIL PROTECTED]
  [office] +01 707 773 4646
  [mobile] +01 707 529 9194
 
  -
  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]
 
 


-- 
Regards, Youssef

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



Re: performance slowdown for 100,000 users, all with same PSML

2004-11-15 Thread Youssef Mohammed
I think it has nothing to do with the portlets since the only changes
he (Dan) made was the number of users.
I suggest to do some profiling (both IBM and Oracle stuff can help )
to the jetspped instance to see what is going on.
I used to work on J1 last year and I did found some scalability issues on it. 
I donno if they still exist on not. 

Regards , 


On Mon, 15 Nov 2004 18:15:49 -0800, David Sean Taylor
[EMAIL PROTECTED] wrote:
 Hi Dan,
 
 Try  having zero portlets on the default page, and see if it makes a
 difference...
 
 Then start adding your portlets in and see where the bottleneck starts.
 
 
 
 
 Dan Moore wrote:
 
  Hi folks,
 
  I have an application I'm building on top of Jetspeed 1.5--I just
  grabbed the WAR from portals.apache.org.  The back end is an Oracle
  database.
 
  I end up having around 100,000 users in the turbine_user table.  All of
  these users have the same PSML and they all have the same role; we're
  using the role fallback mechanism.  The PSML is stored on the
  filesystem, under role/user/language/country; right now I'm only
  using English and the US.
 
  I was seeing a massive slowdown in our application when we went from
  the 3 sample users to the full 100,000, so I'm trouble shooting that.
  The average page draw went from 4 seconds to 18 seconds (this is with 4
  simulated users hitting the home page at once).  I was able to get
  response times of around 4 seconds on my box (it's old and slow) with
  the default jetspeed setup (just as downloaded from the site:
  hypersonic db, only logging in as an anonymous user).
 
  I modified the JetspeedSessionValidator to log folks in with a cookie,
  but that's the only code change I've made to the vanilla jetspeed war
  I'm benchmarking (I profiled it and that method only adds 300
  milliseconds or so).  I did make two configuration changes:
 
  automatic.logon.enable=true
 
  database.default.maxConnections=20
 
  I took a look at this page:
  http://nagoya.apache.org/wiki/apachewiki.cgi?JetspeedPerformanceTips
  but didn't really notice any huge gains (I did up the number of
  connections allowed in TurbineResources.properties and
  Torque.properties).  In addition, it seems that many of the suggestions
  have been incorporated into the defaults.
 
  The turbine_user and turbine_user_group_role tables have their standard
  indices.
 
  I'm trying to figure out where the extra 15 seconds comes from.  I
  guess I'm not so concerned about the absolute time it takes (we're
  going to deploy on much faster hardware), but I do want to get the
  ratio down.
 
 From just watching the page draw, it seems that the top gets drawn
  quickly, then the actual portlets themselves are slow.  I see warnings
  in the logs about the specific psml files not being found for a given
  user--are these a significant slowdown?  Should I change
  services.Profiler.fallback.country
  and
  services.Profiler.fallback.language
  to be false?
 
  For one PSML file, is db based PSML a better choice?  Is there some
  caching that I can turn on that isn't on by default?  Is simpler PSML
  going to cause any kind of speed up?
 
  I also searched the mailing list for performance related issues.  I saw
  this
  (http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1640251)
  which I plan to try tomorrow morning, but didn't see any other things I
  should be doing.
 
  Any help would be most appreciated.
 
  Thanks,
  Dan
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 --
 David Sean Taylor
 Bluesunrise Software
 [EMAIL PROTECTED]
 [office] +01 707 773 4646
 [mobile] +01 707 529 9194
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Regards, Youssef

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



Re: How to wrap-up Horrible Exception.

2004-09-21 Thread Youssef Mohammed
Did you try to add error page in the web.xml ? 
This is the standard way AFAIK 
Regards


On Tue, 21 Sep 2004 09:23:44 -0700, Sunil Sheshadri [EMAIL PROTECTED] wrote:
 Hi,
 When ever jetspeed throws any kind of horrible Exception we need to wrap it
 up and redirect it to a common error page. Any idea, how to redirect it?
 
 Does jetspeed provides any facility to handle these exceptions?
 
 Regards,
 Sunil
 
 -
 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: Right navigation bar?

2004-02-23 Thread Youssef Mohammed


 -Original Message-
 From: Manish Kumar [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 22, 2004 9:53 PM
 To: 'Jetspeed Users List'
 Subject: RE: Right navigation bar?
 
 
 Thanks. That helps. Can I just add something like this as well in
 JetspeedResources.properties
 
 rightnav.enable=false
 rightnav.vm=right.vm
 rightnav.width=10%

 And then an if condition in default.vm
 
 #if ($config.getBoolean(rightnav.enable) == true)
  td width=$config.getString(rightnav.width) valign=top
 bgcolor=#ff   
  $jnavigation.setTemplate($config.getString(rightnav.vm))
  /td
 #end
 

Yess sure this is much better organization .  Just like the left menu . 

 The question is - will JetSpeed recognize new properties without any
 code change?
 
Yes , but you have to restart it . 
 Rgds.
 
 
 -Original Message-
 From: Youssef Mohammed [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, February 22, 2004 3:58 AM
 To: Jetspeed Users List
 Subject: RE: Right navigation bar?
 
 
 yess it is simple 
 just add  your html code in new file right.vm  under
 \webapp\templates\vm\navigations\html\  directory  
 and add its include code in the layout page . That is in the page
 \webapp\templates\vm\layouts\html\default.vm 
 add   $jnavigation.setTemplate(right.vm) where you want to 
 display it 
 
 hope this helps 
 
 my regards 
 
 
  
 
 -Original Message-
 From: Manish Kumar [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 22, 2004 9:59 AM
 To: [EMAIL PROTECTED]
 Subject: Right navigation bar?
 
 
 Is it possible to have right navigation bar in JetSpeed home page? I
 just see top, left and bottom navigation in most 
 documentation. Any work
 around?
 
 -
 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: Right navigation bar?

2004-02-22 Thread Youssef Mohammed
But this is a limitation for the menu since you can only add links to some portlets in 
the menus and nothing all 


-Original Message-
From: Stijn de Witt [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 22, 2004 3:38 PM
To: Jetspeed Users List
Subject: Re: Right navigation bar?


Another easy way of playing with navigations is just setting leftnav.enable
to false and use a MenuController.

-Stijn

- Original Message -
From: Youssef Mohammed [EMAIL PROTECTED]
To: Jetspeed Users List [EMAIL PROTECTED]
Sent: Sunday, February 22, 2004 12:57 PM
Subject: RE: Right navigation bar?


yess it is simple
just add  your html code in new file right.vm  under
\webapp\templates\vm\navigations\html\  directory
and add its include code in the layout page . That is in the page
\webapp\templates\vm\layouts\html\default.vm
add   $jnavigation.setTemplate(right.vm) where you want to display it

hope this helps

my regards




-Original Message-
From: Manish Kumar [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 22, 2004 9:59 AM
To: [EMAIL PROTECTED]
Subject: Right navigation bar?


Is it possible to have right navigation bar in JetSpeed home page? I
just see top, left and bottom navigation in most documentation. Any work
around?

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



ChangePassword Problem

2004-02-12 Thread Youssef Mohammed
Hi 
When I change the password throw the Change Password action It successfully 
changed it but it logged the user off !! 
I traced into the code and I found that in the JLogin action executed after 
the ChangePassword . when It comes to the line 
 try
{
user = JetspeedSecurity.login(username, password);
   }

the user object is the one we want but after execution this line the user 
variable in the Rundata object is changed to the anon use 
This seems to be a strange behavior and I donno how to fix this 
Any Idea ?!!! 

Thanks 


-
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: Rundata removing session attributes?

2004-02-04 Thread Youssef Mohammed
when anon user logs in into jetspeed ... turbine delete all the session attributes 

-Original Message-
From: Michael Klaene [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 9:19 PM
To: Jetspeed Users List
Subject: Rundata removing session attributes?


I've got a SessionListener object which sets a couple of session attributes (getting 
current session from HttpSessionEvt) upon creating a new session.
 
In buildNormalContext of a portlet, I'm trying to retrieve those same attributes from 
the session but all I get is NULL.  I'm using something like String s = 
(String)rundata.getSession().getAttribute(s);
 
I've confirmed (by checking session id's) that the session is the same in both 
methods.  Also, the attribute names would not not conflict with other Jetspeed 
attributes so is it possible that somewhere rundata or someother object is removing 
these attributes?
 
Any help would be appreciated,
Thanks,
Mike





-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

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



RE: Jetspeed and Serializable configuration

2004-01-29 Thread Youssef Mohammed
Yess u must make any class to impliment Serializable 
We did it in our project . 


-Original Message-
From: Garrett James [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 3:17 PM
To: [EMAIL PROTECTED]
Subject: Jetspeed and Serializable configuration


I am using Jetspeed 1.4 in conjunction with an Oracle9iAS Application Server
and need to have it setup as part of a cluster of app servers.  One of the
requirements for Oracle9iAs is that all objects stored/retrieved from the
HttpSession must be Serializable.  When I attempt to use Jetspeed in a
clustered environment I get error messages back from the app server stating
that the Session Objects in Jetspeed are not Serializable.  Here is the
stack trace I receive:

[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/html/Home.vm: Invocation of method 'setMode' in  class
org.apache.jetspeed.services.rundata.DefaultJetspeedRunData threw exception
class java.lang.IllegalArgumentException : Only java.io.Serializable,
javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound to a
session in a distributable web-application, not:
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
[EMAIL PROTECTED] (class
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
ateEntry)
[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/ShowError: Unable to find resource 'screens/ShowError'
[29 Jan 2004 07:36:59 ERROR] -
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'screens/ShowError'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
ceManagerImpl.java:501)
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
eManagerImpl.java:384)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:814)
at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:355)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:482)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)

Has anyone encountered this before?  Is there any workaround in Jetspeed to
make this work.  Would using the JSP implementation work instead of using
Velocity?  Any help you could give is greatly appreciated.

Thanks

Jim Garrett


-
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: Jetspeed and Serializable configuration

2004-01-29 Thread Youssef Mohammed
this is an extract from document we made to resolve this issues 
hope it helps 


Purpose Run Jetspeed on Clustering configuration and make sure it is working, but some 
technical problems was found and solved  
Affected Components Jetspeed-1.4-b3, turbine-2.2
Solution Criteria   
1. Check that all turbine  Jetspeed objects inserted into session scope are 
serializable 
On the way most of the calls to deprecated APIs like (Session.getValue(), 
Session.putValue(), Session.removeValue() are replaced with the correspondent 


\java\org\apache\turbine\modules\actions\AccessController.java
\ java\org\apache\turbine\services\rundata\DefaultTurbineRunData.java
 java\org\apache\turbine\Turbine.java
\java\org\apache\turbine\modules\actions\LogoutUser.java
\java\org\apache\turbine\services\rundata\DefaultTurbineRunData.java
\java\org\apache\turbine\services\velocity\TurbineVelocityService.java
\java\org\apache\jetspeed\services\statemanager\JetspeedHttpStateManagerService.java 
Make class StateEntry Serializable


-Original Message-
From: Garrett James [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 3:17 PM
To: [EMAIL PROTECTED]
Subject: Jetspeed and Serializable configuration


I am using Jetspeed 1.4 in conjunction with an Oracle9iAS Application Server
and need to have it setup as part of a cluster of app servers.  One of the
requirements for Oracle9iAs is that all objects stored/retrieved from the
HttpSession must be Serializable.  When I attempt to use Jetspeed in a
clustered environment I get error messages back from the app server stating
that the Session Objects in Jetspeed are not Serializable.  Here is the
stack trace I receive:

[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/html/Home.vm: Invocation of method 'setMode' in  class
org.apache.jetspeed.services.rundata.DefaultJetspeedRunData threw exception
class java.lang.IllegalArgumentException : Only java.io.Serializable,
javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound to a
session in a distributable web-application, not:
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
[EMAIL PROTECTED] (class
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
ateEntry)
[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/ShowError: Unable to find resource 'screens/ShowError'
[29 Jan 2004 07:36:59 ERROR] -
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'screens/ShowError'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
ceManagerImpl.java:501)
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
eManagerImpl.java:384)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:814)
at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:355)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:482)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)

Has anyone encountered this before?  Is there any workaround in Jetspeed to
make this work.  Would using the JSP implementation work instead of using
Velocity?  Any help you could give is greatly appreciated.

Thanks

Jim Garrett


-
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 get member of a group or users who have a role?

2004-01-22 Thread Youssef Mohammed
unfortunately yes AFAIK 

 -Original Message-
 From: Chamberlain James O. CONTR J9C998 
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 21, 2004 10:33 PM
 To: [EMAIL PROTECTED]
 Subject: How to get member of a group or users who have a role?
 
 
 Is there a way in Jetspeed to get all the members of a group 
 or users in
 a particular role. The only way I can see to do this is to iterate
 through every user and check whether or not they have the 
 role or are a
 member of the group. Is this in fact the only way?
 
 Thanks for the help.
 
 Regards,
 
 James
 
 -
 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: New account creation - Login - Logout

2004-01-22 Thread Youssef Mohammed
This is not a known behavous of jetspeed 
what is the version u r woriking with ? 
did u make any modification to the code ? 

 -Original Message-
 From: Pramod Jain [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 22, 2004 4:43 PM
 To: Jetspeed Users List
 Subject: New account creation - Login - Logout
 
 
 We are having problems in the following scenario:
 Create a new user, the user is created properly, the user is 
 automatically
 logged in.
 
 Then some portlets do not respond at all, some behave erratically
 Logout link does not work, it just refreshes the page.
 
 If user closes the browser and logs back in, then all 
 portlets and logout
 work fine.
 
 Has any one found a solution to this?
 
 I am considering exploring these options, let me know if any 
 one has tried
 these:
 1.  Look at the new account creation method and forcing a 
 logout after user
 is created and logged in
 2.  Disable the logging in after user is created
 
 thanks
 
 pramod
 
 
 -
 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: Auto login with URL

2004-01-21 Thread Youssef Mohammed
just add action=JLoginUser to the request parameters 

http://localhost:8080/jetspeed/portal??action=JLoginUserusername=totopassword=tata 

 -Original Message-
 From: Fabien Guibert [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 21, 2004 1:29 PM
 To: Jetspeed Users List
 Subject: Auto login with URL
 
 
 Hi all
 
 Does anyone know how to log into Jetspeed with login/password 
 in the URL ?
 
 perhaps something like : 
 My aim is to provide a welcome page, different from the 
 anon profile, 
 with input areas for login and password
 Thx a lot in advance, any help greatly appreciated
 

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



RE: Tutorial step 5 problem

2003-12-31 Thread Youssef Mohammed
Well Mazin basha , 

it says in the top page of the tutorial that 
Note: This tutorial applies to the Jetspeed 1.4b4 release 

Soo there are not guarantee it will work with 1.4  as i think 

 -Original Message-
 From: Mazin Mustafa [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 30, 2003 10:41 PM
 To: [EMAIL PROTECTED]
 Subject: Tutorial step 5 problem
 
 
 Hello,
 I managed to setup Jetspeed 1.4 with Tomcat 4.1.29 on Red Hat 
 9. The tutorial was working fine until I reached step 5. As I 
 bring up the customizer, I do get the same screen for the 
 portlets. Instead, I see a list of 1,2,3,4. When I click on 
 any of them, I get a Tomcat error message stating:
 HTTP Status 404 - /jportal/$jslink.getAction(
 The requested action is not available.
 I tried to debug with my very limited knowledge and noticed 
 that the same action works on tutorial 1. I tried the 
 customizer with tutorial 2 and got the same error.
  
 The archives didn't seem anything resembling this issue at 
 least not that I can find.
  
 Mazin
 


smime.p7s
Description: S/MIME cryptographic signature


RE: / /OREF:CPT1C41D Custom Layout

2003-12-09 Thread Youssef Mohammed
Yes , 
Just customize your psml as multi-pane layout and for every pane
customize it as u with ( say the first one as 50/50 and the second as
single colum ) 
After that change the layout to one to one colum and u should get the
layout you want 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 11:04 AM
 To: [EMAIL PROTECTED]
 Subject: / /OREF:CPT1C41D Custom Layout
 
 
 
 
 
 
 Hi There,
 
 Is there a way to layout portlets in Jetspeed, as is, on a pane as my
 example below?
 So, I may wish for some of my portlets to display as full length (one
 column) and some 50/50.
 If so, can it be done via the UI or must one modify this manually?
 If not, I presume I could create my own controller.
 
 (P1 = portlet 1, P2 = portlet 2, etc.)
 
 #=#
 #  ---   ---  #
 #  | |   | |  #
 #  | P1  |   |  P2 |  #
 #  | |   | |  #
 #  ---   ---  #
 # #
 #  -  #
 #  |   |  #
 #  |  P3   |  #
 #  |   |  #
 #  -  #
 #=#
 
 Thanks,
 --Alen
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


smime.p7s
Description: S/MIME cryptographic signature


RE: drag and drop customizer

2003-12-09 Thread Youssef Mohammed
I can't find 
 Enhanced Three columns (25/50/25)
 Enhanced Three columns (33/34/33)
 Enhanced Two columns (25/75)
 Enhanced Two columns (50/50)
 Enhanced Two columns (75/25)
I just have the latest code from CVS .  


 -Original Message-
 From: David Sean Taylor [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2003 1:03 PM
 To: 'Jetspeed List'
 Subject: drag and drop customizer
 
 
 I committed a set of new drag and drop controllers.
 With these controllers, you can customize your page with drag 
 and drop 
 on the client side.
 To try it out, go to the page customizer, and from the layout drop 
 down, you have 5 new choices:
 
 Enhanced Three columns (25/50/25)
 Enhanced Three columns (33/34/33)
 Enhanced Two columns (25/75)
 Enhanced Two columns (50/50)
 Enhanced Two columns (75/25)
 
 Once you select one of the layouts above, you can then customize by 
 dragging and dropping portlets
 
 In addition, there is a Delay-rendering feature added to the 
 GenericMVCPortlet.
 There is one new demo portlet: Delay-rendered Stock 
 Portfolio, which is 
 an example of delay rendering a portlet.
 Delay rendering of a portlet means that you can get the 
 content back to 
 the client more quickly.
 Very useful if you have a portlet that takes more time than others to 
 generate its content.
 This effectively gives us multi-threaded aggregation with a 
 very simple 
 solution.
 The portlet uses Javascript to get its content from the portal.
 A small message is sent as the original content, and then when the 
 content is ready, the actual content is sent and the page is updated.
 
 Please try out these new features and let us know if they work for you
 
 Both of these features were written and contributed by Jun Yang.
 
 --
 David Sean Taylor
 Bluesunrise Software
 [EMAIL PROTECTED]
 +01 707 773-4646
 +01 707 529 9194
 +44 (0)79 8538 6471
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


smime.p7s
Description: S/MIME cryptographic signature


RE: forced portlets / non-portlet pages

2003-11-10 Thread Youssef Mohammed
For the second question you can it in turbine screens just like the
CreateNewAccount.vm and EditAccount.vm screens 


-Original Message-
From: Brian Kapellusch [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 2:59 PM
To: [EMAIL PROTECTED]
Subject: forced portlets / non-portlet pages


Hello,
 
  I've recently begun converting my site to jetspeed, since it's become
apparent that it's turning more into a portal than a normal site.
However, there are some things that really aren't pure portal-ish that
I'd like to resolve:
 
1)   I'd like to force the user to have a home page with one or two
particular portals on it (but letting them customize the rest of the
page).  I know I can stop a user from modifying a particular page, but
I'd like to allow the user to modify MOST of the page (and not move the
locked portals around).
2)   There are certain pages on the site that really don't fit into
the portlet way of doing things.  These pages are detail pages that a
user arrives at when clicking on various links on the site.  I could
just link them to a normal dynamic page, but I'd like the portlet
navigation sidebar, header, and footer to remain.  Is there an easy way
to do this?
 
Thanks for any help you can provide,
 
Brian Kapellusch
Brewerfan.net 
 


smime.p7s
Description: S/MIME cryptographic signature


RE: User authentication

2003-10-29 Thread Youssef Mohammed
The login action is a turbine action and u need not to define any
portlet for login. All what you need to do is to write the client-side
script that will get the userid ( throw your ActiveX or whateveer ) and
then submit the this form 

form method=POST 
  input name=action type=hidden value=JLoginUser
  input value= name=username 
  input value= name=password 
/form


You can also make the username and password hidden 


-Original Message-
From: Thavutam, Prashanth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 5:39 PM
To: Jetspeed Users List
Subject: User authentication


We are currently using an Active X control to get the user Id from
Windows,
which is used for authentication and for authorization also. No
passwords
are used. We want to implement the same with portal and found a variable
topnav.user_login.enable in JetspeedResources.properties, I understood
from
the documentation, when it is set to false, logging will be done through
login portlet, which I think I can implement it in my own way. I
couldn't
figure out if there is a portlet existing that I can use or if I need to
write a new portlet, how do I configure it. Thanks for any help.

Prashanth




This email message is for the sole use of the intended recipient (s) and
may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message. To reply to our email administrator directly,
send
an email to [EMAIL PROTECTED] 
Toys R Us, Inc.

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



smime.p7s
Description: S/MIME cryptographic signature


RE: Difference Pluto - Jetspeed

2003-10-28 Thread Youssef Mohammed
Well I have a question 
Turbine is the security management system for jetspeed1  ...
So what is it for Jetspeed2 ?



-Original Message-
From: Ramiro Rinaudo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 5:55 AM
To: Jetspeed Users List
Subject: Re: Difference Pluto - Jetspeed


Pluto is a portlet container, as tomcat is a servlet container. Turbine
is a
J2EE web development framework. Jetspeed1 uses lots of services of
turbine,
but it is not a portlet container. Jetspeed2 uses pluto to manage
portlets
lifecycle, and tomcat to manage Jetspeed2 servlet lifecycle.
Hope this clear your view about this.

Ramiro

- Original Message - 
From: Celeste Haseltine [EMAIL PROTECTED]
To: 'Jetspeed Users List' [EMAIL PROTECTED]
Sent: Monday, October 27, 2003 5:16 PM
Subject: RE: Difference Pluto - Jetspeed


 Gerald,

 That is my understanding.  Jetspeed currently uses Turbine, but will
use
 Pluto in version 2.0.  Pluto has just gone final as version 1.0 (if I
 understood what was on the boards last week correctly), and will
become
the
 underlying container or framework by which Jetspeed 2.0 will be
 developed on top of.  Pluto is JSR 168 compliant, but the currently
beta
 release of Jetspeed is not 169 compliant(if I understand correctly).
 Someone correct me if I am wrong on this.

 Celeste
 -Original Message-
 From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 27, 2003 1:53 PM
 To: Jetspeed Users List
 Subject: Re: Difference Pluto - Jetspeed


 So, Turbine is the portlet container of Jetspeed 1.

 True?

 -
 Gerald Stampfel
 [EMAIL PROTECTED]

 - Original Message - 
 From: Roger Ruttimann [EMAIL PROTECTED]
 To: Jetspeed Users List [EMAIL PROTECTED]
 Sent: Monday, October 27, 2003 5:11 PM
 Subject: RE: Difference Pluto - Jetspeed


  This is correct. Jetspeed-2 uses pluto as the portlet container not
 Jetspeed.
  ROger
 
  -Original Message-
  From: Celeste Haseltine [EMAIL PROTECTED]
  Sent: Oct 27, 2003 7:41 AM
  To: 'Jetspeed Users List' [EMAIL PROTECTED]
  Subject: RE: Difference Pluto - Jetspeed
 
  I thought the current beta version of Jetspeed was built on top of
 Turbine,
  and that the new yet to be released version of Jetspeed (2.0) would
be
 built
  on top of Pluto.  Do I have this wrong?
 
  Celeste
 
  -Original Message-
  From: Youssef Mohammed
 
[mailto:[EMAIL PROTECTED]
  Sent: Monday, October 27, 2003 3:28 AM
  To: Jetspeed Users List
  Subject: RE: Difference Pluto - Jetspeed
 
 
  Pluto is a portlet container.  Jetspeed 2 is the actual portal.
Jetspeed
 2
  uses Pluto as its container.
 
   -Original Message-
   From: Youssef Mohammed
  
[mailto:[EMAIL PROTECTED]
   Sent: Sunday, October 19, 2003 8:38 AM
   To: Jetspeed Users List (E-mail)
   Subject: J2 and Pluto ?
  
   Hi
 any body knows the defference between jakarta-pluto and jakarta-
   jetspeed2 projects ?
  
   thkns
  
  
  
-
   To unsubscribe, e-mail:
[EMAIL PROTECTED]
   For additional commands, e-mail:
[EMAIL PROTECTED]
 
  -Original Message-
  From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
  Sent: Saturday, October 25, 2003 11:52 AM
  To: [EMAIL PROTECTED]
  Subject: Difference Pluto - Jetspeed
 
 
  Hi you gods :)
 
  simple question: what's the difference between pluto and jetspeed,
the
  readme files of these both apache projects read like they're doing
almost
  the same .. ?
 
  I know jetspeed and i would be surprised, if there are two Apache
projects
  existing for exactly the same purpose. So what's the difference ?
 
  Thanks!
 
  -
  Gerald Stampfel
  [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]

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



smime.p7s
Description: S/MIME cryptographic signature


RE: how to call buildNormalContext manually

2003-10-28 Thread Youssef Mohammed
buildNormalContext sends the HTTP Response to the client ( e.g. the
browser )  and It is called when by an HTTP Request by the client . 
So how can you do this Server Side ?!! 
You can't push your data to the client !! 

The work around for that it to refresh your portlet every X seconds and
check for your thread status 



-Original Message-
From: Anuraag Sarangi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 3:17 AM
To: Jetspeed Users List
Subject: how to call buildNormalContext manually 


Hi,

I have a portlet that spawns a thread and waits for
notification from a service.  After the notification,
I want to call the buildNormalContext again from the
thread, or refresh the portlet from the thread.  How
can I do that?!  

Thanx in advance,
Anuraag

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



smime.p7s
Description: S/MIME cryptographic signature


RE: How to determine language in a portlet?

2003-10-23 Thread Youssef Mohammed

Will this temp variable associated with the user will be passed from the
user anon to the registered user when the user logs in and vise versa ? 



-Original Message-
From: Michael Burschik [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:04 AM
To: 'Jetspeed Users List'
Subject: AW: How to determine language in a portlet?




 -Ursprüngliche Nachricht-
 Von: Youssef Mohammed
 [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 22. Oktober 2003 12:26
 An: Jetspeed Users List
 Betreff: RE: How to determine language in a portlet?
 
 
 Try 
 org.apache.turbine.services.localization.LocalizationTool.getL
 ocale( ) 
 And/or 
 org.apache.turbine.services.localization.LocaleDetector.getLcale() 
 
 one of them sould be working AFAIK 

According to the documentation, these to methods also refer to the
Accept-Language header of the Request, which will not change when the
user
selects a language by means of the select language portlet, which simply
adds something like js_language=en to the query data.

A look at JetspeedSessionValidator.java finally reveals that the
language
and locale data is stored in the user object, so what I actually want is
rundata.getUser().getTemp( locale ).

Thanks to everyone who replied to my queries.

Regards

Michael Burschik



smime.p7s
Description: S/MIME cryptographic signature


RE: Velocity and Action Events?

2003-10-23 Thread Youssef Mohammed
Can u give more clarification and and example of what is going wrong
with you ? 


-Original Message-
From: Sloan Bowman [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 5:14 AM
To: Jetspeed Mailing List
Subject: Velocity and Action Events?


Have anybody else had problems with Velocity and Action events? Is 
there a good resource to learn more about this. I am looking to 
display a form asking for a name. When the form is submitted it calls 
my Action class then using the ActionEvent eventSubmit_{method name} 
and runs the method. My problem is it I dont' understand the flow of 
how to get the data from one method to the other. I thought I 
understood from the example in the tutorial. Can anyone guide me in 
the right direction? Thanks.

-- 

Sloan Bowman

Never fear failure if you are doing the right thing. Fail your way to
success

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



smime.p7s
Description: S/MIME cryptographic signature


RE: Customize layout from Portlet?

2003-10-23 Thread Youssef Mohammed
I had the same problem and spent some time to solve it But I finally
decided to do it my own way 
I added in the velocity context a vairable layout and in the default
layout template I simple parse this variable so I will get the same
functionality 
if the variable is null i simply parse the original default layout 
I know this is somehow 'a violation' to the turbine framework but this I
had to do it due time constrains 


-Original Message-
From: Tim Colson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 12:34 AM
To: 'Jetspeed Users List'
Subject: RE: Customize layout from Portlet?


I dug around in rundata and found the setLayoutTemplate() method, tried
it but with no luck. I then found in mail-archive this post:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg04736.ht
ml
Has anyone noticed that RunData.setLayoutTemplate() does not work when
using
(the default in 1.3a3) settings VelocityDirectLayout and
VelocityDirectScreen in TR.props.  I switched to using the
VelocityScreen/VelocityOnlyLayout and it works correctly.
---
services.VelocityService.default.screen=VelocityScreen
#services.VelocityService.default.screen=VelocityDirectScreen
services.VelocityService.default.layout = VelocityOnlyLayout
#services.VelocityService.default.layout = VelocityDirectLayout
services.VelocityService.default.navigation=VelocityNavigation

I made the changes too, and now the setLayoutTemplate() does work from
buildConfigureContext()... but the portlets are rendered at the top of
the page, and then the layout is rendered 'below' them on the page. 

Weird and not in a good way. 

Am I barking up the right tree at least? Is this a known issue that has
been resolved? 

Thanks,
Tim



 -Original Message-
 From: Tim Colson [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 12:03 PM
 To: [EMAIL PROTECTED]
 Subject: Customize layout from Portlet?
 
 
 Howdy folks -
   Is it possible to change the overall layout using context variables
 set in a portlet buildConfigureContext() ?
 
   When customizing, I want the portlet to either select a different
 layout, or tell the standard layout to display differently  - ex. no
 left navigation.
 
 Thanks,
 Timo
 
 
 -
 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]



smime.p7s
Description: S/MIME cryptographic signature


RE: Customize layout from Portlet?

2003-10-23 Thread Youssef Mohammed
 Well I didn't have to set them in the porterl action . I did that in a
the turbine actions ( e.g.  JLoginUser ) and thought it would be the
same for the portlet actions but it seems not !! 

I am sorry that this didn't help you much 



-Original Message-
From: Tim Colson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 6:23 PM
To: 'Jetspeed Users List'
Subject: RE: Customize layout from Portlet?


 From: Youssef Mohammed 
 I added in the velocity context a vairable layout and in the default
 layout template I simple parse this variable so I will get the same
 functionality 

Hey Youssef -  
 I tried that solution first actually. :-) But items added to the
context in buildConfigureContext()  did not show up in default.vm. 

It was as if the context was not the same, or as if default.vm was
parsed before buildConfigureContext() was called.

Where did you set your context variables?

Thanks, Tim




 -Original Message-
 From: Tim Colson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 12:34 AM
 To: 'Jetspeed Users List'
 Subject: RE: Customize layout from Portlet?
 
 
 I dug around in rundata and found the setLayoutTemplate() 
 method, tried
 it but with no luck. I then found in mail-archive this post:
 
 http://www.mail-archive.com/[EMAIL PROTECTED]/m
 sg04736.ht
 ml
 Has anyone noticed that RunData.setLayoutTemplate() does not 
 work when
 using
 (the default in 1.3a3) settings VelocityDirectLayout and
 VelocityDirectScreen in TR.props.  I switched to using the
 VelocityScreen/VelocityOnlyLayout and it works correctly.
 ---
 services.VelocityService.default.screen=VelocityScreen
 #services.VelocityService.default.screen=VelocityDirectScreen
 services.VelocityService.default.layout = VelocityOnlyLayout
 #services.VelocityService.default.layout = VelocityDirectLayout
 services.VelocityService.default.navigation=VelocityNavigation
 
 I made the changes too, and now the setLayoutTemplate() does work from
 buildConfigureContext()... but the portlets are rendered at the top of
 the page, and then the layout is rendered 'below' them on the page. 
 
 Weird and not in a good way. 
 
 Am I barking up the right tree at least? Is this a known 
 issue that has
 been resolved? 
 
 Thanks,
 Tim
 
 
 
  -Original Message-
  From: Tim Colson [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, October 22, 2003 12:03 PM
  To: [EMAIL PROTECTED]
  Subject: Customize layout from Portlet?
  
  
  Howdy folks -
Is it possible to change the overall layout using context 
 variables
  set in a portlet buildConfigureContext() ?
  
When customizing, I want the portlet to either select a different
  layout, or tell the standard layout to display differently  - ex. no
  left navigation.
  
  Thanks,
  Timo
  
  
  
 -
  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]



smime.p7s
Description: S/MIME cryptographic signature


RE: How to determine language in a portlet?

2003-10-22 Thread Youssef Mohammed
Try 
org.apache.turbine.services.localization.LocalizationTool.getLocale( ) 
And/or 
org.apache.turbine.services.localization.LocaleDetector.getLcale() 

one of them sould be working AFAIK 

my regards 


-Original Message-
From: Holger Dewes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 12:10 PM
To: 'Jetspeed Users List'
Subject: RE: How to determine language in a portlet?



 -Original Message-
 From: Michael Burschik [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 12:02 PM
 To: 'Jetspeed Users List'
 Subject: AW: How to determine language in a portlet?
 
 
  I don't know if Jetspeed provides any methods for that, but you can 
  get it from the request (which is also used by Jetspeed to 
 decide the
  localization):
  runData.getRequest().getLocale()
 
  From the javadoc:
  Returns the preferred Locale that the client will accept 
 content in, 
  based on the Accept-Language header. If the client request doesn't 
  provide an Accept-Language header, this method returns the default 
  locale for the server.
 
 Thanks for the reply. But unfortunately, that does not seem 
 to be what I need either, since the Accept-Language header of 
 the client does not change when the user selects a language 
 using a select language portlet.
 

No, the Accept-Language header only specifies the preferred languages of
the user as specified by the client (i.e. the browser). So it cannot be
changed by the portal framework. I don't know what the select language
portlet does. But when I played around with localization and I changed
the preferred languages using my browser, it always worked as expected.
I never used the select language portlet.

Cheers,

Holger


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



smime.p7s
Description: S/MIME cryptographic signature


RE: How to forward to different psml in the JLoginUser action

2003-10-21 Thread Youssef Mohammed
Here you are what worked with me 

// forward to the favorites.psml desktop
DynamicURI  drui  = new DynamicURI(rundata);
 
rundata.setRedirectURI(drui.addPathInfo(page,favorites.psml).toStrin
g());

Hope it will help you 


-Original Message-
From: Boyd, David [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 10:26 PM
To: 'Jetspeed Users List'
Subject: RE: How to forward to different psml in the JLoginUser action 


I tried your suggestion below, but it does not seem to work.

Now granted I was trying it in a portlet of my own and not in
JLoginUser.

I created an action called doTest.  From the jsp page, I placed a submit
button on it.  Selecting the button, does cause the action doTest to be
fired.  The action creates an uri for another .psml file, but, instead
of
being redirected to the new URI it just redisplays the same portlet.  I
am
using 1.4b-3.

I would like more information on how one can have an action forward the
user
to a different portlet.
...
 




This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com

-Original Message-
From: yael malka [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2003 10:45 AM
To: Jetspeed Users List
Subject: Re: How to forward to different psml in the JLoginUser action 

You have to do so :

DynamicURI duri;

to set the ood uri int dury and to exexcute it :

rundata.setRedirectURI(duri.toString());

- Original Message -
From: Youssef Mohammed
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 12:36 PM
Subject: How to forward to different psml in the JLoginUser action


Hi
 I need to forward to another psml (desktop) rather than the default
after
the user logs in .

If thinkiIt has to be in the JLoginUser action class  
  I understand that data.setScreenTemplate( ) used to forward to any
screens
but I can't figure out how to to forward to psml ?!

any suggestions ?





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



smime.p7s
Description: S/MIME cryptographic signature


RE: How to forward to different psml in the JLoginUser action

2003-10-21 Thread Youssef Mohammed
I didn't try it within a portlet but your code seems working ! 

Well If you wnat a quick work around u can do it client-side 

-Original Message-
From: Boyd, David [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 3:42 PM
To: 'Jetspeed Users List'
Subject: RE: How to forward to different psml in the JLoginUser action 


Well I tried the suggestion and the same thing happens, the
buildNormalContext method is called in the same action class.

I am currently in the MyActionClas and I want to go to the
document_detail.psml.

Here is what I have:

MyActionClass

public void doTest(RunData rundata, Portlet portlet)
{
  DynamicURI duri = new DynamicURI(rundata)
 
rundata.setRedirectURI(drui.addPathInfo(page,document_detail.psml).
toString());
}

Now in the jsp I have something like the following:

script
function processAction(action)
{
var frmObj = document.form;
var e = frmObj.elements[eventSubmit];
e.name=eventSubmit_ + action;
frmObj.submit();
}
/script

form name='form' action='' method='post'
input type='hidden' name='eventSubmit' value=''

a href='Javascript:processAction(doTest);'Test/a
/form




This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com

-Original Message-
From: Youssef Mohammed
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 4:59 AM
To: Jetspeed Users List
Subject: RE: How to forward to different psml in the JLoginUser action 

Here you are what worked with me 

// forward to the favorites.psml desktop
DynamicURI  drui  = new DynamicURI(rundata);
 
rundata.setRedirectURI(drui.addPathInfo(page,favorites.psml).toStrin
g());

Hope it will help you 


-Original Message-
From: Boyd, David [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 10:26 PM
To: 'Jetspeed Users List'
Subject: RE: How to forward to different psml in the JLoginUser action 


I tried your suggestion below, but it does not seem to work.

Now granted I was trying it in a portlet of my own and not in
JLoginUser.

I created an action called doTest.  From the jsp page, I placed a submit
button on it.  Selecting the button, does cause the action doTest to be
fired.  The action creates an uri for another .psml file, but, instead
of
being redirected to the new URI it just redisplays the same portlet.  I
am
using 1.4b-3.

I would like more information on how one can have an action forward the
user
to a different portlet.
...
 




This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com

-Original Message-
From: yael malka [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2003 10:45 AM
To: Jetspeed Users List
Subject: Re: How to forward to different psml in the JLoginUser action 

You have to do so :

DynamicURI duri;

to set the ood uri int dury and to exexcute it :

rundata.setRedirectURI(duri.toString());

- Original Message -
From: Youssef Mohammed
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 12:36 PM
Subject: How to forward to different psml in the JLoginUser action


Hi
 I need to forward to another psml (desktop) rather than the default
after
the user logs in .

If thinkiIt has to be in the JLoginUser action class  
  I understand that data.setScreenTemplate( ) used to forward to any
screens
but I can't figure out how to to forward to psml ?!

any suggestions ?





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



smime.p7s
Description: S/MIME cryptographic signature


Jetspeed2 and Pluto

2003-10-19 Thread Youssef Mohammed
Hi 
  any body knows the defference between jakarta-pluto and jakarta-jetspeed2 projects ? 

thkns 


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



J2 and Pluto ?

2003-10-19 Thread Youssef Mohammed
Hi 
  any body knows the defference between jakarta-pluto and jakarta-jetspeed2 projects ? 

thkns 


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



RE: Problems with portlet parameter customization (bug?)

2003-10-15 Thread Youssef Mohammed
let you network admin to open the port 2401 for you 


-Original Message-
From: Holger Dewes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 9:56 AM
To: 'Jetspeed Users List'
Subject: RE: Problems with portlet parameter customization (bug?)



 -Original Message-
 From: Mark Orciuch [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 14, 2003 4:36 PM
 To: Jetspeed Users List
 Subject: RE: Problems with portlet parameter customization (bug?)
 
 
 Please pull down the latest sources from CVS and try it 
 again. If it's still a problem, please log a Bugzilla bug. Thanks!

Hi Mark,

the problem is that I am sitting behind a firewall and cannot access the
CVS server directly. And the latest packaged version is from 9. Sept.
2003. Is that really up-to-date? If not so, how can I get the current
version?

Cheers
-- 
Holger Dewes


-
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 change the Layout in turbine action

2003-10-14 Thread Youssef Mohammed
Hi 
 I tried to change the Layout in the JLoginUser action but i failed 
I tried both setLayout and setLayoutTemplate methods but now changes are done in the 
Layout . I still get the default layout 

Also I found in the class org.apache.jetspeed.portal.portlets.PreviewPortlet  that it 
does uses the method rundata.setLayout(preview) and the layout is changed 

when i do the same in the JLoginUser I got that Horrbile Exception 

Horrible Exception: java.lang.ClassNotFoundException: 
Requested Layout not found: /html/preview.vm 
Turbine looked in the following modules.packages path: [org.apache.jetspeed.modules, 
org.apache.turbine.modules, com.rsw.jetspeed.modules] 

Any suggestions  ?


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



RE: How to change the Layout in turbine action

2003-10-14 Thread Youssef Mohammed
thanks 
 but this not help me much I am using the same call and i got Expection 

-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: How to change the Layout in turbine action


When the PreviewPortlet uses rundata.setLayout(preview), you'll notice 
that there are 2 preview.vm's.  One is in layout/html/preview.vm and the 
other is screens/html/preview.vm.  First, the preview.vm in 
layout/html/preview.vm will be rendered.  Within that template, you'll see 
$screen_placeholder, which inserts screen/html/preview.vm.  Hope this helps.

Jeremy Ford


From: Youssef Mohammed 
[EMAIL PROTECTED]
Reply-To: Jetspeed Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: How to change the Layout in turbine action
Date: Tue, 14 Oct 2003 15:33:27 +0200

Hi
  I tried to change the Layout in the JLoginUser action but i failed
I tried both setLayout and setLayoutTemplate methods but now changes are 
done in the Layout . I still get the default layout

Also I found in the class 
org.apache.jetspeed.portal.portlets.PreviewPortlet  that it does uses the 
method rundata.setLayout(preview) and the layout is changed

when i do the same in the JLoginUser I got that Horrbile Exception

Horrible Exception: java.lang.ClassNotFoundException:
Requested Layout not found: /html/preview.vm
Turbine looked in the following modules.packages path: 
[org.apache.jetspeed.modules, org.apache.turbine.modules, 
com.rsw.jetspeed.modules]

Any suggestions  ?


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


_
Concerned that messages may bounce because your Hotmail account has exceeded 
its 2MB storage limit? Get Hotmail Extra Storage! 
http://join.msn.com/?PAGE=features/es


-
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 change the Layout in turbine action

2003-10-14 Thread Youssef Mohammed
I did ,, but it didn't work 
 It didn't throw exception but the layout didnot change and this is why i am thinking 
that the layout is set in other place to the default atfer the turbine action 
 

-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 4:28 PM
To: [EMAIL PROTECTED]
Subject: RE: How to change the Layout in turbine action


Also, try using setScreenTemplate instead of setLayout.  I believe that the 
layout method refers to classes such as 
org.apache.jetspeed.modules.layouts.JetspeedLayout and others.

Jeremy Ford


From: Youssef Mohammed 
[EMAIL PROTECTED]
Reply-To: Jetspeed Users List [EMAIL PROTECTED]
To: Jetspeed Users List 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: RE: How to change the Layout in turbine action
Date: Tue, 14 Oct 2003 16:23:10 +0200

thanks
  but this not help me much I am using the same call and i got Expection

-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: How to change the Layout in turbine action


When the PreviewPortlet uses rundata.setLayout(preview), you'll notice
that there are 2 preview.vm's.  One is in layout/html/preview.vm and the
other is screens/html/preview.vm.  First, the preview.vm in
layout/html/preview.vm will be rendered.  Within that template, you'll see
$screen_placeholder, which inserts screen/html/preview.vm.  Hope this 
helps.

Jeremy Ford


 From: Youssef Mohammed
 [EMAIL PROTECTED]
 Reply-To: Jetspeed Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: How to change the Layout in turbine action
 Date: Tue, 14 Oct 2003 15:33:27 +0200
 
 Hi
   I tried to change the Layout in the JLoginUser action but i failed
 I tried both setLayout and setLayoutTemplate methods but now changes are
 done in the Layout . I still get the default layout
 
 Also I found in the class
 org.apache.jetspeed.portal.portlets.PreviewPortlet  that it does uses the
 method rundata.setLayout(preview) and the layout is changed
 
 when i do the same in the JLoginUser I got that Horrbile Exception
 
 Horrible Exception: java.lang.ClassNotFoundException:
 Requested Layout not found: /html/preview.vm
 Turbine looked in the following modules.packages path:
 [org.apache.jetspeed.modules, org.apache.turbine.modules,
 com.rsw.jetspeed.modules]
 
 Any suggestions  ?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Concerned that messages may bounce because your Hotmail account has 
exceeded
its 2MB storage limit? Get Hotmail Extra Storage!
http://join.msn.com/?PAGE=features/es


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


_
Never get a busy signal because you are always connected  with high-speed 
Internet access. Click here to comparison-shop providers.  
https://broadband.msn.com


-
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 forward to different psml in the JLoginUser action

2003-10-13 Thread Youssef Mohammed
Hi 
 I need to forward to another psml (desktop) rather than the default after the user 
logs in . 

If thinkiIt has to be in the JLoginUser action class   
  I understand that data.setScreenTemplate( ) used to forward to any screens  but I 
can't figure out how to to forward to psml ?! 

any suggestions ? 





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



How to forward to different psml in the JLoginUser action

2003-10-13 Thread Youssef Mohammed





Hi 

I need to forward to another psml (desktop) rather than the default after the user logs in . 

If thinkiIt has to be in the JLoginUser action class  

 I understand that data.setScreenTemplate( ) used to forward to any screens but I can't figure out how to to forward to psml ?! 

any suggestions ? 





smime.p7s
Description: S/MIME cryptographic signature