AW: CSS with TwoColumnLayout

2005-04-13 Thread Dulisch, Martin
Hi Mike,

I added my CSS to the html layout. Have a look at decorator-top.vm.

Martin


 -Ursprüngliche Nachricht-
 Von: Mike R. [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 12. April 2005 16:48
 An: jetspeed-user@jakarta.apache.org
 Betreff: CSS with TwoColumnLayout
 
 
 Hello again -  
 
 We are using the jetspeed-layout:VelocityTwoColumns layout 
 successfully
 with JSPs on J2 M2.  We have a CSS which defines styles for 
 heading titles,
 etc.  Can someone tell me where the CSS should be specified, 
 given the 
 HTML HEAD, BODY, etc. restrictions?  Tried putting it in the JSP but 
 that did not work. 
 
 Should it go in a layout or decorator definition somewhere?
 Sample code would be much appreciated; not a Velocity guru... 
 
 
 
 
 -
 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]



AW: User Prefernces

2005-04-13 Thread Dulisch, Martin
Hi Amit,

dont know if this solves your problem, but have a look on chapter 17 in the
portlet spec (User Information). It says available user attributs must be
defined in the protlet.xml.

Martin


 -Ursprüngliche Nachricht-
 Von: Shah Amit [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 12. April 2005 15:58
 An: jetspeed-user@jakarta.apache.org
 Betreff: User Prefernces
 
 
 Hi all,
 
 How do I add user Preferences directly in the database? I 
 know that we can 
 add it from the administrative portlets, but it is not 
 feasible for me 
 because I have an existing system with hudreds of users, and I cannot 
 manually do that.
 
 I tried to enter records into PREFS_PROPERTY_KEY, and 
 PREFS_PROPERTY_VALUE, 
 and I used the node of /usr/admin/userinfo from the 
 PREFS_NODE table when 
 inserting in the PREFS_PROPERTY_VALUE table. Then I tried to login as 
 admin/admin, but I only see user.name.given and 
 user.name.family. I tried to 
 change the values of tasteDudely to somethingElse and that 
 something else 
 does show up on the webpage. So it reads the DB, but doesn't 
 show up the 
 preference that I wrote in the DB. I think I am missing 
 something else, but 
 not sure what ...
 
 Thanks,
 Amit
 
 
 
 -
 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: possibility to have jslink give relative URIs ?

2005-04-13 Thread Fabrice Dewasmes


 Agreed, it's a pain in those situations when your host name is meaningless.

YES !


  Is there a simple way to change this behaviour or do I have to rewrite
  DynamicURI class and simply replace it within turbine jar ? (kind of
  brute force patch isn't it ;) ?)
 

 Luckily for you we have better options :)

 $jslink is actually a reference to class
 org.apache.jetspeed.util.template.BaseJetspeedLink

 as configured in the TurbineResources.properties


Yes, I saw this.

 So you can subclass the above class,
 rewrite the toString() method not to output the host part of the URL and
 use your subclass as jslink instead of the default one
 by overiding the Turbine tool definition in your my.properties file.

 your toString() may look like this:

 public String toString()
 {
   String url= super.toString();

   return base.substring(url.indexOf('/',url.indexOf(//)+1),url.length);

 }

Unfortunately this is wrong. The toString method called is the DynamicURI object
one not the link object one. So what I did is very special and wanted to have
your point of view.

I've subclassed DynamicURI and FusionJetspeedLink. MyFusionJetspeedLink
overrides the getRoot method from BaseJetspeedLink so that it returns a
RelativeURI class (which extends DynamicURI). The toString method from
RelativeURI does not make use of serverScheme, name and port.

This works but i'm unsure about the way i'm constructing RelativeURI object as I
simply use the super constructor from DynamicURI DynamicURI(ServerData data).
This gives the following getRoot method in MyFusionJetspeedLink :

protected getRoot(){
  DynamicURI uri = super.getRoot();
  RelativeURI relative = new RelativeURI(uri.getServerData();
  return relative;
}

Does the newly created object
have all the information from the originating DynamicURI object ? I guess not,
because the PathInfo and several other private variables will be lost... Have
you other ideas to improve what I did ?

thanks for your help

Fabrice

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



J1.5 - JSP portlet rendering error

2005-04-13 Thread Stefano Bianchi
Dear ALL,
I have a Jsp portlet in J1.5 defined as:

?xml version=1.0 encoding=UTF-8?
registry
portlet-entry name=MyContentRepository hidden=false type=ref
parent=JSP application=false
security-ref parent=anon-view_admin-all/
meta-info
titleContent Repository/title
descriptionContent Repository (Perl based, in a pop up
window!)/description
image/image
/meta-info

classnameorg.apache.jetspeed.portal.portlets.JspPortlet/classname
parameter name=template value=ContentRepository.jsp
hidden=false cachedOnName=true cachedOnValue=true
security-ref parent=admin-only/
/parameter
media-type ref=html/
url cachedOnURL=false/
category group=JetspeedMy_content_repository/category
/portlet-entry
/registry

and ContentRepository.jsp in
[TOMCAT]\webapps\my_site\WEB-INF\templates\jsp\portlets\html

But I get this on the portal:

JSPViewProcessor: Could not include the following JSP Page:
[ContentRepository.jsp,Customize,Customize] : null

No way in editing the parameters through the admin interface, nor re-editing
the xreg file - ,Customize,Customize is not there!
Where does this come from? Any idea? Any known bug?

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



Jetspeed 2 - deployment

2005-04-13 Thread Sascha Glass
Hello,

Does anyone know more detailed information about deploying portlets to
Jetspeed 2 than
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets ?

Thank you!


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



Re: possibility to have jslink give relative URIs ?

2005-04-13 Thread Raphaël Luta
Fabrice Dewasmes wrote:
Agreed, it's a pain in those situations when your host name is meaningless.

YES !

Is there a simple way to change this behaviour or do I have to rewrite
DynamicURI class and simply replace it within turbine jar ? (kind of
brute force patch isn't it ;) ?)
Luckily for you we have better options :)
$jslink is actually a reference to class
org.apache.jetspeed.util.template.BaseJetspeedLink
as configured in the TurbineResources.properties

Yes, I saw this.

So you can subclass the above class,
rewrite the toString() method not to output the host part of the URL and
use your subclass as jslink instead of the default one
by overiding the Turbine tool definition in your my.properties file.
your toString() may look like this:
public String toString()
{
String url= super.toString();
return base.substring(url.indexOf('/',url.indexOf(//)+1),url.length);
}

Unfortunately this is wrong. The toString method called is the DynamicURI object
one not the link object one. So what I did is very special and wanted to have
your point of view.
The above will work for cases where you just use $jslink in your 
templates but will indeed fail if you use $jslink.getAction() or other 
calls that return a new DynamicURI instead of the BaseJetspeedLink.


I've subclassed DynamicURI and FusionJetspeedLink. MyFusionJetspeedLink
overrides the getRoot method from BaseJetspeedLink so that it returns a
RelativeURI class (which extends DynamicURI). The toString method from
RelativeURI does not make use of serverScheme, name and port.
This works but i'm unsure about the way i'm constructing RelativeURI object as I
simply use the super constructor from DynamicURI DynamicURI(ServerData data).
This gives the following getRoot method in MyFusionJetspeedLink :
protected getRoot(){
  DynamicURI uri = super.getRoot();
  RelativeURI relative = new RelativeURI(uri.getServerData();
  return relative;
}
Does the newly created object
have all the information from the originating DynamicURI object ? I guess not,
because the PathInfo and several other private variables will be lost... Have
you other ideas to improve what I did ?
Since there no RelativeURI(DynamicURI) constructor and you need a 
RunData object to correctly initialize a *URI Turbine object, you can't 
really rely on the super.getRoot() results. I guess the easiest way is 
just to cut/paste the BaseJetspeedLink.getRoot() and replace all 
DynamicURI with RelativeURI in here.

You'll also have to modify the Porfiler service so that the 
makeDynamicURI returns a RelativeURI when needed. I guess the best way 
to do this is to subclass the JetspeedProfiler implementation, add a new
config parameter that specifies whether you want RelativeURI or 
DynamicURI and rewirte the makeLink() method to use this parameter as 
necessary.

--
Raphaël Luta - [EMAIL PROTECTED]
Apache Portals - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: possibility to have jslink give relative URIs ?

2005-04-13 Thread Raphaël Luta
Fabrice Dewasmes wrote:
Unfortunately this is wrong. The toString method called is the DynamicURI
object
one not the link object one. So what I did is very special and wanted to have
your point of view.
I finally found a quite elegant solution which is :
override JetspeedProfilerService and its method makeDynamicURI()
override getRoot method from BaseJetspeedLink
make both these classes use my RelativeURI class which extends DynamicURI and
overrides everything to delegate to super class and overrides the toString
method to get rid of server name, port and scheme
Agreed :)
But the very best way to do this would have been a patch to turbine in order to
have the DynamicURI beeing abstract and have a concrete implementation
configurable This would allow to have an abstract generateURI method which
everyone could implement to have its own behaviour...
Turbine 2.3 has already changed how URI are built to something called 
TurbineURI that can output either type of URIs. If you're willing to 
convert all of J1 to this new API and update our dependency to Turbine 
2.3 or 2.4, be our guest. Your patches are welcome :)

--
Raphaël Luta - [EMAIL PROTECTED]
Apache Portals - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Jetspeed 2 - deployment

2005-04-13 Thread Benjamin Bratkus
hello sascha,

could you please specify your questions?

ben



-Ursprungliche Nachricht-
Von: Sascha Glass [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. April 2005 14:40
An: jetspeed-user@jakarta.apache.org
Betreff: Jetspeed 2 - deployment


Hello,

Does anyone know more detailed information about deploying portlets to
Jetspeed 2 than
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets ?

Thank you!


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



AW: Jetspeed 2 - deployment first steps

2005-04-13 Thread Benjamin Bratkus
Hello Sascha,

here is a little howto for your first portlet in jetspeed2, additional i
want to invite you to the jax - conference,
where a associate of mine talks about this topic:
http://www.jax.de/konferenzen/psecom,id,269,nodeid,,.html#E27.

here is my first portlet:

public class FirstPortlet extends GenericPortlet{

Writer writer;

/* (non-Javadoc)
 * @see javax.portlet.GenericPortlet#doView(javax.portlet.RenderRequest,
javax.portlet.RenderResponse)
 */
protected void doView(RenderRequest renderRequest, RenderResponse
renderResponse)
throws PortletException, IOException {
renderResponse.setContentType(text/html);
writer = renderResponse.getWriter();
writer.write(Hello I am a portlet and I am trapped in a 
Portal!);
String jspName = /jsp/firstportlet.jsp;

//writer.write(renderResponse.encodeURL(renderRequest.getContextPath()));
writer.write(IMG
SRC=+renderResponse.encodeURL(renderRequest.getContextPath()+/pics/oio.gif
)+);
PortletRequestDispatcher rd = 
getPortletContext().getRequestDispatcher(
jspName);
rd.include(renderRequest, renderResponse);
}

/* (non-Javadoc)
 * @see javax.portlet.GenericPortlet#doHelp(javax.portlet.RenderRequest,
javax.portlet.RenderResponse)
 */
protected void doHelp(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
response.setContentType(text/html);
writer = response.getWriter();
response.setTitle(Helpsite of +super.getTitle(request));
writer.write(Hier kann man Informationen uber die Benutzung 
des Portlets
hinterlgen.);
}


/* (non-Javadoc)
 * @see javax.portlet.GenericPortlet#doEdit(javax.portlet.RenderRequest,
javax.portlet.RenderResponse)
 */
protected void doEdit(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
response.setContentType(text/html);
writer = response.getWriter();
writer.write(Hier konnen Eigenschaften die -modifiable- sind 
von den
Benutzern geandert werden);
writer.write(Man hat beispielsweise die Moglichkeit den Title 
zu andern,
neben der Moglichkeit in der portlet.xml );
writer.write(Das +super.getTitle(request)+ war der alte 
Titel);
response.setTitle(Edit of +super.getTitle(request));
}

}
Additional there is a jsp and a pic which are included in the portlet. For
Example:
firstportlet.jsp
HTML
HEAD
TITLEOrientation in Objects GmbH/TITLE
/HEAD
BODY
H3Welcome !/H3




!--INPUT TYPE=submit name=save value=Speichern/--
/BODY
/HTML

The Structure of the first steps looks like this:
I've got a Project which has a source folder and following subfolders
/src
/src/java - for the java scources
/src/webapp/jsp - for the jsps
/src/webapp/pics - ^^
/src/webapp/WEB-INF/ here are my web.xml and my portlet.xml

You need also a maven.xml, a project.properties for Maven and a project.xml,
which is a descriptor and the descriptors web.xml and portlet.xml. The
portlet.xml describes your portlets with mime type, modes, etc., the web.xml
is the descriptor for your web application for example.:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-namefirst steps/display-name
/web-app

After all, you can create your war-archive via Maven and put into the
deploy-folder of your jetspeed2. The last step you've to do is to write a
statement for your portlet in one of the site.psml. have a look at the
default-page.psml in your pages-folder of your jetspeed2.

best regards,

Benjamin Bratkus

--
Orientation in Objects GmbH
Weinheimerstr. 68
D-68309 Mannheim
http://www.oio.de
Tel +49(0)621-71839-0
Fax. +49(0)621-71839-50


-Ursprungliche Nachricht-
Von: Sascha Glass [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. April 2005 14:40
An: jetspeed-user@jakarta.apache.org
Betreff: Jetspeed 2 - deployment


Hello,

Does anyone know more detailed information about deploying portlets to
Jetspeed 2 than
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets ?

Thank you!


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



deploy my own instance portal

2005-04-13 Thread Ajonjolis
someone could tell me the way i could deploy my own instance portal. Y could 
deploy the jetspeed. but now i´d like to work in my own portal in eclipse .
any ideas, i´m a bit worried about this. 
thanks 
Alfonsina

RE: deploy my own instance portal

2005-04-13 Thread Shah Amit
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets
This briefly explains how to do it. See if that helps. It is a little bit 
old, meaning, it applies for prior to Milestone 2 release. But I think even 
after M2, only the undeploy mechanism might have changed. I am not 100% sure 
because I am using the version prior to that.

Amit
Original Message Follows
From: Ajonjolis [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: deploy my own instance portal
Date: Wed, 13 Apr 2005 12:19:40 -0300
someone could tell me the way i could deploy my own instance portal. Y could 
deploy the jetspeed. but now i´d like to work in my own portal in eclipse .
any ideas, i´m a bit worried about this.
thanks
Alfonsina


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


Re: deploy my own instance portal

2005-04-13 Thread Ajonjolis
and so ...the idea is this ?  I deploy de jetspeed in a Tomcat, then i
started to deploy my own portlets, and when i wanted to change the skin or
any other customisation of my portal, i need to modified the archives in the
jetspeed folder
i`m in the rigth way ?




- Original Message - 
From: Shah Amit [EMAIL PROTECTED]
To: jetspeed-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 12:37 PM
Subject: RE: deploy my own instance portal


 http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets

 This briefly explains how to do it. See if that helps. It is a little bit
 old, meaning, it applies for prior to Milestone 2 release. But I think
even
 after M2, only the undeploy mechanism might have changed. I am not 100%
sure
 because I am using the version prior to that.

 Amit

 Original Message Follows
 From: Ajonjolis [EMAIL PROTECTED]
 Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 Subject: deploy my own instance portal
 Date: Wed, 13 Apr 2005 12:19:40 -0300

 someone could tell me the way i could deploy my own instance portal. Y
could
 deploy the jetspeed. but now i´d like to work in my own portal in eclipse
.
 any ideas, i´m a bit worried about this.
 thanks
 Alfonsina



 -
 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: deploy my own instance portal

2005-04-13 Thread Shah Amit
- If you want to just deploy your portals, make war files as you normally do 
with J2EE and deploy them in the deploy Directory of jetspeed -- 
XXX:\jakarta-tomcat-5.0.28\webapps\jetspeed\WEB-INF\deployand 
jetspeed will pick it up and take care of rest.
- Now if you want your portlets to show up on a web-page, you either have to 
change the psml's that come with jetspeed distro, or write your own. I 
suggest first make your own portlet, deploy it, and then see default.psml in 
XXX:\jakarta-tomcat-5.0.28\webapps\jetspeed\WEB-INF\pages directory. You 
should be able to modify the code so that your own portlet also shows up on 
the main page. Once you get a little more xperience, you can start writing 
your own psmls.
- If you want to change look and feel and customizations like that, you 
would need to write your own decorators. Again, decorators can be just 
deployed in the deploy directory of jetspeed and jetspeed will pick it up.

I suggest you read all the documentation thats provided on the jestpeed 
website. I know it is not much but that will help you get started.

HTH
Amit
Original Message Follows
From: Ajonjolis [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: deploy my own instance portal
Date: Wed, 13 Apr 2005 12:48:41 -0300
and so ...the idea is this ?  I deploy de jetspeed in a Tomcat, then i
started to deploy my own portlets, and when i wanted to change the skin or
any other customisation of my portal, i need to modified the archives in the
jetspeed folder
i`m in the rigth way ?

- Original Message -
From: Shah Amit [EMAIL PROTECTED]
To: jetspeed-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 12:37 PM
Subject: RE: deploy my own instance portal
 http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets

 This briefly explains how to do it. See if that helps. It is a little bit
 old, meaning, it applies for prior to Milestone 2 release. But I think
even
 after M2, only the undeploy mechanism might have changed. I am not 100%
sure
 because I am using the version prior to that.

 Amit

 Original Message Follows
 From: Ajonjolis [EMAIL PROTECTED]
 Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 Subject: deploy my own instance portal
 Date: Wed, 13 Apr 2005 12:19:40 -0300

 someone could tell me the way i could deploy my own instance portal. Y
could
 deploy the jetspeed. but now i´d like to work in my own portal in eclipse
.
 any ideas, i´m a bit worried about this.
 thanks
 Alfonsina



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


AW: deploy my own instance portal

2005-04-13 Thread Benjamin Bratkus
If you're interested in changing the color our the layout of a existing
portal you can edit the existing layouts which you can find in the folder
decorations for example
D:\tomcatz\jakarta-tomcat-5.0.28-jetspeed2-oio\webapps\jetspeed\WEB-INF\deco
rations\layout\html\tigris
here you can change the appearance of the tigris layout or if you even want
to chance the design of the portlets on the portal pages try:
D:\tomcatz\jakarta-tomcat-5.0.28-jetspeed2-oio\webapps\jetspeed\WEB-INF\deco
rations\portlet\html\tigris
both folders have subfolders which contain the css data for the pages. You
can change the values without any restart.

best regards

Benjamin Bratkus

--
Orientation in Objects GmbH
Weinheimerstr. 68
D-68309 Mannheim
http://www.oio.de
Tel +49(0)621-71839-0
Fax. +49(0)621-71839-50


-Ursprüngliche Nachricht-
Von: Ajonjolis [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. April 2005 17:49
An: Jetspeed Users List
Betreff: Re: deploy my own instance portal


and so ...the idea is this ?  I deploy de jetspeed in a Tomcat, then i
started to deploy my own portlets, and when i wanted to change the skin or
any other customisation of my portal, i need to modified the archives in the
jetspeed folder
i`m in the rigth way ?




- Original Message -
From: Shah Amit [EMAIL PROTECTED]
To: jetspeed-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 12:37 PM
Subject: RE: deploy my own instance portal


 http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets

 This briefly explains how to do it. See if that helps. It is a little bit
 old, meaning, it applies for prior to Milestone 2 release. But I think
even
 after M2, only the undeploy mechanism might have changed. I am not 100%
sure
 because I am using the version prior to that.

 Amit

 Original Message Follows
 From: Ajonjolis [EMAIL PROTECTED]
 Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 Subject: deploy my own instance portal
 Date: Wed, 13 Apr 2005 12:19:40 -0300

 someone could tell me the way i could deploy my own instance portal. Y
could
 deploy the jetspeed. but now i´d like to work in my own portal in eclipse
.
 any ideas, i´m a bit worried about this.
 thanks
 Alfonsina



 -
 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: deploy my own instance portal

2005-04-13 Thread Santiago Urrizola
i undertand, but how i can configure my development enviromet (eclipse for
example).??
I try to import dthe multiproject of jetspeed, but eclipse impor me, only a
project with multiples sources folders, and this is very dificul to work,
beacuse i only need to change psml, and style data for the moment.

In  Jetspeed 1, i can create a project in the eclipse workspace, and add the
context in the server.xml of tomcat (for developer porpouse only).   When i
want to install it in production enviroment, i create a war of that project.
Its posible to do than in Jetspeed 2 ??




- Original Message - 
From: Benjamin Bratkus [EMAIL PROTECTED]
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 1:03 PM
Subject: AW: deploy my own instance portal


 If you're interested in changing the color our the layout of a existing
 portal you can edit the existing layouts which you can find in the folder
 decorations for example

D:\tomcatz\jakarta-tomcat-5.0.28-jetspeed2-oio\webapps\jetspeed\WEB-INF\deco
 rations\layout\html\tigris
 here you can change the appearance of the tigris layout or if you even
want
 to chance the design of the portlets on the portal pages try:

D:\tomcatz\jakarta-tomcat-5.0.28-jetspeed2-oio\webapps\jetspeed\WEB-INF\deco
 rations\portlet\html\tigris
 both folders have subfolders which contain the css data for the pages. You
 can change the values without any restart.

 best regards

 Benjamin Bratkus

 --
 Orientation in Objects GmbH
 Weinheimerstr. 68
 D-68309 Mannheim
 http://www.oio.de
 Tel +49(0)621-71839-0
 Fax. +49(0)621-71839-50


 -Ursprüngliche Nachricht-
 Von: Ajonjolis [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 13. April 2005 17:49
 An: Jetspeed Users List
 Betreff: Re: deploy my own instance portal


 and so ...the idea is this ?  I deploy de jetspeed in a Tomcat, then i
 started to deploy my own portlets, and when i wanted to change the skin or
 any other customisation of my portal, i need to modified the archives in
the
 jetspeed folder
 i`m in the rigth way ?




 - Original Message -
 From: Shah Amit [EMAIL PROTECTED]
 To: jetspeed-user@jakarta.apache.org
 Sent: Wednesday, April 13, 2005 12:37 PM
 Subject: RE: deploy my own instance portal


  http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets
 
  This briefly explains how to do it. See if that helps. It is a little
bit
  old, meaning, it applies for prior to Milestone 2 release. But I think
 even
  after M2, only the undeploy mechanism might have changed. I am not 100%
 sure
  because I am using the version prior to that.
 
  Amit
 
  Original Message Follows
  From: Ajonjolis [EMAIL PROTECTED]
  Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
  To: Jetspeed Users List jetspeed-user@jakarta.apache.org
  Subject: deploy my own instance portal
  Date: Wed, 13 Apr 2005 12:19:40 -0300
 
  someone could tell me the way i could deploy my own instance portal. Y
 could
  deploy the jetspeed. but now i´d like to work in my own portal in
eclipse
 .
  any ideas, i´m a bit worried about this.
  thanks
  Alfonsina
 
 
 
  -
  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]



RE: AW: User Prefernces

2005-04-13 Thread Shah Amit
I can't believe I did the same mistake again !! That was it !!!
Thanks
Original Message Follows
From: Dulisch, Martin [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: 'Jetspeed Users List' jetspeed-user@jakarta.apache.org
Subject: AW: User Prefernces
Date: Wed, 13 Apr 2005 08:56:07 +0200
Hi Amit,
dont know if this solves your problem, but have a look on chapter 17 in the
portlet spec (User Information). It says available user attributs must be
defined in the protlet.xml.
Martin
 -Ursprüngliche Nachricht-
 Von: Shah Amit [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 12. April 2005 15:58
 An: jetspeed-user@jakarta.apache.org
 Betreff: User Prefernces


 Hi all,

 How do I add user Preferences directly in the database? I
 know that we can
 add it from the administrative portlets, but it is not
 feasible for me
 because I have an existing system with hudreds of users, and I cannot
 manually do that.

 I tried to enter records into PREFS_PROPERTY_KEY, and
 PREFS_PROPERTY_VALUE,
 and I used the node of /usr/admin/userinfo from the
 PREFS_NODE table when
 inserting in the PREFS_PROPERTY_VALUE table. Then I tried to login as
 admin/admin, but I only see user.name.given and
 user.name.family. I tried to
 change the values of tasteDudely to somethingElse and that
 something else
 does show up on the webpage. So it reads the DB, but doesn't
 show up the
 preference that I wrote in the DB. I think I am missing
 something else, but
 not sure what ...

 Thanks,
 Amit



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


Displaying portlet in decorator

2005-04-13 Thread zazo
Hi,

Is there any way to display a portlet in the decorator built part of
the page (the portlet is not included in a psml file)?

This is what I do in my decorator file :
---
PageImpl searchPage = (PageImpl) rootFolder.getPage(search.psml);

FragmentImpl searchFragment = (FragmentImpl)
searchPage.getFragmentById(simple-search-1);

jetspeed.include(searchFragment);
---
First I locate psml file (search.psml) with portlet in it
(fragment's id is 'simple-search-1'). Finally, I use 'include' on
fragment I have found. The 'include' function is taken from
JetspeedPowerTool class.

After all that I am able to see my search portlet just between some
menus my decorator has built, but... portlets from currnet psml file
cause some seriuos errors during rendering.  

The stack trace is (sorry for pasting huge fragment):
-
 JetspeedRequestDispatcher failed to include servlet resources.
(details below)
Exception: org.apache.jasper.JasperException
Message: null

Stack Trace:
  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
  
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
  
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
  
org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:65)
  
org.apache.jetspeed.velocity.JetspeedPowerTool.decorateAndIncludePortlet(JetspeedPowerTool.java:774)
  
org.apache.jetspeed.velocity.JetspeedPowerTool.decorateAndInclude(JetspeedPowerTool.java:660)
  
org.apache.jsp.WEB_002dINF.templates.layout.html.columns.layout_jsp._jspService(layout_jsp.java:631)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
  
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
  
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
  
org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:65)
  
org.apache.portals.bridges.common.GenericServletPortlet.doView(GenericServletPortlet.java:344)
  
org.apache.jetspeed.portlets.layout.LayoutPortlet.doView(LayoutPortlet.java:176)
  
org.apache.jetspeed.portlets.layout.MultiColumnPortlet.doView(MultiColumnPortlet.java:109)
   javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
   javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
  
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:235)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
  
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
  
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
  
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:213)
  
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:124)
  
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:103)
  
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:88)
  
org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:110)
  
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:251)
  
org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:48)
  

deploying portal apps via Context xml file

2005-04-13 Thread Bob Skinner
I'm using tomcat-jetspeed-M2 and trying to add some
168 portlets to my existing webapp.   The webapp
itself is rather large (80MB) and I tend to run tomcat
by droping a foo.xml file in the
tomcat/conf/Catalina/localhost directory where foo.xml
contains 
Context path=/foo
docBase=c:/pathtomywebappbuilddir/foo 

Tomcat deploys my foo app correctly, but the
JetspeedContainerServlet isn't looking for my
portlet.xml file and deploying it as a Portal
Application.   I tried dropping my foo.xml in the
webapps/jetspeed/WEB-INF/deploy directory but got the
unrecognized file type error.

So I'm having to .war up my webapp and deploying in to
WEB-INF/deploy after startup but the unpacking time is
killing me.   Is there anyway to trigger the Poral App
deploy from a remote docbase?   If not, what are the
plans to do so and can I assist?

thanks,
Bob Skinner

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



Problem with JSP in J2-M2

2005-04-13 Thread Vladimir Simjanoski
Hi!
I'm using Jetspeed M2 binary with Tomcat5.0.30...

I've problem with some built-in portlets (Struts MailReader Demo, JSF 
Demo...), 
with compiling class for the jsp... I got the same exception for third party 
portlets that use jsp...
Couldn't find anything useful on the Internet and this mailing list...

The strange thing is that everything used to work fine with J2-M1, and now I 
messed something.
ANY hint would be very appreciated!!!

An excerpt from Struts MailReader Demo exception trace...

Unable to compile class for JSP Generated servlet error: C:\Program 
Files\Apache Software Foundation\jetspeed2.0M2\jakarta-
tomcat-5.0.30\work\Catalina\localhost\struts-demo\org\apache\jsp\WEB_002dINF\view\welcome_jsp.java:174:_jspx_meth_bean_message_2(
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in 
org.apache.jsp.WEB_002dINF.view.welcome_jsp cannot be applied to (
org.apache.portals.bridges.struts.taglib.LinkTag,
javax.servlet.jsp.PageContext) if 
(_jspx_meth_bean_message_2(_jspx_th_html_link_0, _jspx_page_context)) ^ 
Generated servlet error: C:\Program Files\Apache Software 
Foundation\jetspeed2.0M2\jakarta-
tomcat-5.0.30\work\Catalina\localhost\struts-demo\org\apache\jsp\WEB_002dINF\view\welcome_jsp.java:222:_jspx_meth_bean_message_3(
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in 
org.apache.jsp.WEB_002dINF.view.welcome_jsp cannot be applied to (
org.apache.portals.bridges.struts.taglib.LinkTag,
javax.servlet.jsp.PageContext) if 
(_jspx_meth_bean_message_3(_jspx_th_html_link_1, _jspx_page_context)) ^ 
Generated servlet error: C:\Program Files\Apache Software 
Foundation\jetspeed2.0M2\jakarta-
tomcat-5.0.30\work\Catalina\localhost\struts-demo\org\apache\jsp\WEB_002dINF\view\welcome_jsp.java:383:_jspx_meth_bean_message_4(
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in 
org.apache.jsp.WEB_002dINF.view.welcome_jsp cannot be applied to (
org.apache.portals.bridges.struts.taglib.LinkTag,
javax.servlet.jsp.PageContext) if 
(_jspx_meth_bean_message_4(_jspx_th_html_link_5, _jspx_page_context)) ^ 3 
errors


Re: JAASSessionValidator error with struts-bridge

2005-04-13 Thread Jeff Sheets
Has anyone seen this before, or know of a fix (Ate, David, etc...)?

On 3/18/05, Jeff Sheets [EMAIL PROTECTED] wrote:
 We are using the JAASSessionValidator to authenticate against
 Weblogic.  We are also using the struts-bridge, if that matters.
 
 We are able to authenticate ok, and reach the front page of any
 portlet.  However, after clicking on the link to take us to the next
 page, we receive an error like the following.
 
 Has anybody seen this before?  Does anyone have any ideas or clues?
 The problem goes away when I turn off the JAASSessionValidator.  I
 think it has to do with the session being lost, because it works
 sometimes but not always.
 -- Jeff
 
 Mar 18, 2005 2:58:56 PM CST Error HTTP BEA-101214 Included resource 
 or
 file /action/edit.jas;jsessionid=C7QZxyGkX0pm6Sp9ckM6vyfxTRJ4p1Tn0Ph3bdz
 g3TJQX4pyDxwC!-2002059013 not found from requested resource 
 /jetspeed/portal/_
 ns:YTIxMzQ4fGMwfGQwfGVfa3JhPTE9MXxlX3NwYWdlPTE9L2VkaXRfb2JzLmphcztqc2Vzc2lvbmlkP
 T1DN1FaeHlHa1gwcG02U3A5Y2tNNnZ5ZnhUUko0cDFUbjBQaDNiZHpnM1RKUVg0cHlEeHdDIS0yMDAyM
 DU5MDEzfGVfbW9kZT0xPXZpZXc_/.


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



Re: deploying portal apps via Context xml file

2005-04-13 Thread Randy Watler
Bob,
I think you simply need to infuse your web app manually. Take a look at 
the edits to web.xml, (and other files and/or injections of new files 
into the webapp), that are made to your webapp when you deploy. Then, 
make sure that you perform these changes TEMPORARILY so that the web app 
get registered when Tomcat loads it.

Of course, this is just a workaround and is subject to change with each 
J2 release.

Ate may very well have a more definitive answer, but I do not think I am 
steering you wrong!

Good luck,
Randy
Bob Skinner wrote:
I'm using tomcat-jetspeed-M2 and trying to add some
168 portlets to my existing webapp.   The webapp
itself is rather large (80MB) and I tend to run tomcat
by droping a foo.xml file in the
tomcat/conf/Catalina/localhost directory where foo.xml
contains 
Context path=/foo
docBase=c:/pathtomywebappbuilddir/foo 

Tomcat deploys my foo app correctly, but the
JetspeedContainerServlet isn't looking for my
portlet.xml file and deploying it as a Portal
Application.   I tried dropping my foo.xml in the
webapps/jetspeed/WEB-INF/deploy directory but got the
unrecognized file type error.
So I'm having to .war up my webapp and deploying in to
WEB-INF/deploy after startup but the unpacking time is
killing me.   Is there anyway to trigger the Poral App
deploy from a remote docbase?   If not, what are the
plans to do so and can I assist?
thanks,
Bob Skinner
-
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]


Changing the background color of the portal

2005-04-13 Thread Sven Richter
Hello,
I'm currently trying to change the background color of my portal from  
white (#FF) to grey (#F5F5F5). I changed the 'default.css' to the  
following:

BODY  {font-family: Arial,Helvetica,sans-serif; font-size: 9pt; color:  
#222432; background: #F5F5F5; margin: 0px 0px 0px 0px; padding: 0px 0px  
0px 0px}

But the background color is still white (in the source code it still says  
body bgcolor=#FF). I already tried all other parameters in the  
'default.css' and 'skin.css' that seemed promissing to me, but nothing  
worked.

Does anybody know where I have to change that parameter?
Thanks a lot,
Sven.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]