Creation of PSML files

2005-04-07 Thread Deep Kumar
Hi Guys,
   We have coded to add the users in jetspeed as below

   String userName = Sample, password = Sample1;
   JetspeedUser user =
JetspeedSecurity.getUserInstance();

user.setUserName(JetspeedSecurity.convertUserName(userName));
   user.setPassword(password);
   System.out.println(Password : +password);
   user.setLastName(lastName);
   user.setFirstName(firstName);
   user.setEmail([EMAIL PROTECTED]);

   Date now = new Date();
   user.setCreateDate(now);
   user.setLastLogin(now);
   user.setConfirmed(JetspeedResources.CONFIRM_VALUE);
   //JetspeedSecurity.addUser(user); tried with this
also but not working
   JetspeedUserManagement.addUser(user);


However with this piece of code user Sample1 is being created in
jetspeed, but the PSML files are not being created for the user. Am i
missing somthing in this code. ?

Any help would be much appreciated..


Regards
Deep Kumar
Chief Architect, ComCreation


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



Re: Creation of PSML files

2005-04-07 Thread Deep Kumar
Hi All,
I got the solution, I was missing three lines of code...  Here is the
new code.


String userName = Sample, password =
Sample1;
JetspeedUser user =
JetspeedSecurity.getUserInstance();

   ServletConfig config = getServletConfig();
   RunData runData =
RunDataFactory.getRunData(request, response, config);
   runData.getParameters().setProperties(user);

user.setUserName(JetspeedSecurity.convertUserName(userName));
   user.setPassword(password);
   System.out.println(Password : +password);
   user.setLastName(lastName);
   user.setFirstName(firstName);
   user.setEmail([EMAIL PROTECTED]);

   Date now = new Date();
   user.setCreateDate(now);
   user.setLastLogin(now);

user.setConfirmed(JetspeedResources.CONFIRM_VALUE);
   JetspeedSecurity.addUser(user);



Regards
Deep Kumar
Chief Architect, ComCreation



- Original Message -
From: Deep Kumar [EMAIL PROTECTED]
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Sent: Monday, February 07, 2005 12:48 PM
Subject: Creation of PSML files


 Hi Guys,
We have coded to add the users in jetspeed as below

String userName = Sample, password = Sample1;
JetspeedUser user =
 JetspeedSecurity.getUserInstance();

 user.setUserName(JetspeedSecurity.convertUserName(userName));
user.setPassword(password);
System.out.println(Password : +password);
user.setLastName(lastName);
user.setFirstName(firstName);
user.setEmail([EMAIL PROTECTED]);

Date now = new Date();
user.setCreateDate(now);
user.setLastLogin(now);
user.setConfirmed(JetspeedResources.CONFIRM_VALUE);
//JetspeedSecurity.addUser(user); tried with
this
 also but not working
JetspeedUserManagement.addUser(user);


 However with this piece of code user Sample1 is being created in
 jetspeed, but the PSML files are not being created for the user. Am i
 missing somthing in this code. ?

 Any help would be much appreciated..


 Regards
 Deep Kumar
 Chief Architect, ComCreation


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



R: XSL portlet and namespaces (Jetspeed 1.5)

2005-04-07 Thread Cristina Lissoni
In case anybody else need to know:
this can be fixed by modifying file
XSLViewProcessor.java as follows:

after the statement:
   final DocumentBuilderFactory docfactory = 
 DocumentBuilderFactory.newInstance();

add the statement:
   docfactory.setNamespaceAware(true);

(tested on Jetspeed 1.4)

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



getContent in CacheableStatefulPortletWrapper threw exception, cannot inherit from final class

2005-04-07 Thread Emilda Sindhu
Hi,

I got the following error in jetspeed. Can anybody help me to solve this error.
Error message is given below.

org.apache.turbine.util.TurbineException: Error rendering Velocity template:
/controls/html/jetspeed.vm: Invocation of method 'getContent' in class
org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWrapper
threw exception class java.lang.VerifyError : Cannot inherit from final class

Thanks !
Emilda.


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



evenSubmit question

2005-04-07 Thread Roel van Dijk

I'm using the eventSubmit mechanism to call functions in the portlet from
the HTML. For example:
  input type=submit value=Edit name=eventSubmit_doEdit

and in my code:
  public void doEdit( RunData rundata, Portlet portlet ) throws Exception
{ }

This works fine.

However, when I do this:
  input type=submit value=Edit name=eventSubmit_doEditCommit

The following function is NOT being called:
  public void doEditCommit( RunData rundata, Portlet portlet ) throws
Exception { }

This is probably due to the capital 'C' of Commit? (I tried inserting an
underscore, but to no avail) Is there any proper documentation about the
eventSubmit mechanism? I couldn't find anything with Google..

Roel



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



Re: evenSubmit question

2005-04-07 Thread Hema Menon
AFAIK, atleast in Jetspeed 1.5, this would not work due to the 'C.
Change the method to doEditcommit and try it out.

Hema

On Apr 7, 2005 3:52 AM, Roel van Dijk [EMAIL PROTECTED] wrote:
 
 I'm using the eventSubmit mechanism to call functions in the portlet from
 the HTML. For example:
   input type=submit value=Edit name=eventSubmit_doEdit
 
 and in my code:
   public void doEdit( RunData rundata, Portlet portlet ) throws Exception
 { }
 
 This works fine.
 
 However, when I do this:
   input type=submit value=Edit name=eventSubmit_doEditCommit
 
 The following function is NOT being called:
   public void doEditCommit( RunData rundata, Portlet portlet ) throws
 Exception { }
 
 This is probably due to the capital 'C' of Commit? (I tried inserting an
 underscore, but to no avail) Is there any proper documentation about the
 eventSubmit mechanism? I couldn't find anything with Google..
 
 Roel
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 


~~
Hema Menon

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



Re: evenSubmit question

2005-04-07 Thread Hema Menon
It is related to the action handling in Turbine. The documentation is
available here
http://jakarta.apache.org/turbine/turbine/turbine-2.3/howto/action-event-howto.html

HTH,
Hema

On Apr 7, 2005 4:04 AM, Hema Menon [EMAIL PROTECTED] wrote:
 AFAIK, atleast in Jetspeed 1.5, this would not work due to the 'C.
 Change the method to doEditcommit and try it out.
 
 Hema
 
 On Apr 7, 2005 3:52 AM, Roel van Dijk [EMAIL PROTECTED] wrote:
 
  I'm using the eventSubmit mechanism to call functions in the portlet from
  the HTML. For example:
input type=submit value=Edit name=eventSubmit_doEdit
 
  and in my code:
public void doEdit( RunData rundata, Portlet portlet ) throws Exception
  { }
 
  This works fine.
 
  However, when I do this:
input type=submit value=Edit name=eventSubmit_doEditCommit
 
  The following function is NOT being called:
public void doEditCommit( RunData rundata, Portlet portlet ) throws
  Exception { }
 
  This is probably due to the capital 'C' of Commit? (I tried inserting an
  underscore, but to no avail) Is there any proper documentation about the
  eventSubmit mechanism? I couldn't find anything with Google..
 
  Roel
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 --
 
 ~~
 Hema Menon
 


-- 


~~
Hema Menon

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



RE: evenSubmit question

2005-04-07 Thread Roel van Dijk
Thanks for the link, it is clearly described there. It works fine now with
all lower case characters.

Roel

 -Oorspronkelijk bericht-
 Van: Hema Menon [mailto:[EMAIL PROTECTED]

 It is related to the action handling in Turbine. The documentation is
 available here
 http://jakarta.apache.org/turbine/turbine/turbine-2.3/howto/action
 -event-howto.html




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



parse error for ocs.xsl

2005-04-07 Thread Roel van Dijk
I'm using Resin as my application server, which has a different (stricter?)
XML parser than Tomcat. It gives this error when Jetspeed 1.6-dev is
restarted:

com.caucho.xsl.XslParseException: /WEB-INF/xsl/ocs.xsl:22: `aocs' must be a
namespace prefix

Lines 17-22 :

xsl:stylesheet xmlns:xsl = http://www.w3.org/1999/XSL/Transform;
xmlns:rdf = http://www.w3.org/1999/02/22-rdf-syntax-ns#;
xmlns:ocs = http://alchemy.openjava.org/ocs/ocs-syntax#;
xmlns:dc  = http://purl.org/dc/elements/1.0/;
exclude-result-prefixes=rdf ocs aocs dc
version   = 1.0

The 'aocs' in exclude-result-prefixed is not defined, maybe this line should
be added:

xmlns:aocs= http://alchemy.openjava.org/ocs/ocs-syntax#;

Roel



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



Adding new user with the admin portlet

2005-04-07 Thread Sven Richter
Hello,
I'm using Jetspeed 1.5 with the Maven-plugin. I used the admin portlet to  
add a new user. Now I don't know where the information for the new user is  
stored (I thought in the psml-directory; so I copied it into the  
src/webapp/WEB-INF - directory of my application). After I did a 'maven  
clean', followed by a 'maven jetspeed:deploy' the new user is gone again  
(I can't login as the new user and the new user isn't shown in the  
admin-portlet anymore). So which files do I have to save before 'maven  
clean'?

Thanks a lot,
Sven.

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


J2 - Maximize a portlet by default

2005-04-07 Thread Shah Amit
Hi all,
Is it possible that all my portlets are maximized by default? I tried to 
search the mailing list but could not find this particular topic ...

Thanks,
Amit

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