AW: Including a web page into a velocity portlet

2003-01-22 Thread Heine, Christian (Extern)
Hi,

i hope that i've understood correctly what u're problem is : U will have an
half dynamic Velocity Portlet, which shows u a webpage content form an url
inserted in a text field.

I've solved this in my portal by using IFRAME Elements (for representig the
web content) in my Velocity Portlets. For representing the web content u
must refresh u're portlet by an action which uses the setTemplate Method to
call the same portlet. Is the page refreshed (check this by an Flag in the
$data Object) force the Iframe to show the URL.

Thats all and it works fine :o), bye
Christian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Handle roles for portlet access for differend panes ?

2003-01-22 Thread Heine, Christian (Extern)
Hi all,

i've tried to implement a role based access to my self developed portlets
without success, hope that someone can help

For my organisation i must develop a role-based access to some portlets. For
that i've create a specific security-ref in the security.xreg data and
forced turbine by that way to show or to hide the portlets, separated by the
roles of the user, during the customize process. It works and i can hide
some portlets when the user have not the rights to access them...

The problem i have, is that the user have this rules on any pane of the
portal, he can add these portlets (or not) on any pane . But i must force
jedspeed to separate the customizable portlets by the panes. For example, we
have allways an home pane, where the user have the permission to add all
portlets he like, but he should not have the rights to add the "project
specific portlets".

In the project panes he must only have the rights to add the "project
specific portlets". Is there a way how i can handle that?
At the moment i try to get the roles of any portlet in Velocity to compare
them with the user roles before i show them on the screen. But i do not know
how i can get the security role of any portlet...

Thanks for any help
Christian

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




It is possible to refresh Portlets (again)?

2002-11-29 Thread Heine, Christian (Extern)
Hi all,

I've followed the instructions of Juergen to Link a VelocityAction on an
IMG-Tag, it works! But now i've an other Problem. When i try to call an
other portlet with the setTemplate Method i got the following Exception :

Horrible Exception: java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at
org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(VelocityA
ctionEvent.java:166) at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.perform(V
elocityPortletAction.java:118) at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:143)
at org.apache.turbine.modules.Page.build(Page.java:90) at
org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123) at
org.apache.turbine.Turbine.doGet(Turbine.java:510) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027) at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
) at java.lang.Thread.run(Thread.java:536) Caused by:
java.lang.NullPointerException at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.getContex
t(VelocityPortletAction.java:150) at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.setTempla
te(VelocityPortletAction.java:139) at
org.apache.jetspeed.modules.actions.MyPortletAction.doUpdate(MyPortletAction
.java:22) ... 43 more 

Knows anybody why? I've checked the data-Object and it's not null. 
Thx in advance,
Christian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: It is possible to refresh Portlets ?

2002-11-28 Thread Heine, Christian (Extern)
Hi Jürgen,

thx 4 u're help, it's looke like u protected me from sleepless nights. I
will follow u're instruction to realize the explorer-Portlet.

Best greetings
Christian

--
gedas deutschland GmbH
Mgt. & Infrastr. Solutions
Alessandro Volta Straße 11, D-38440 Wolfsburg
<mailto:[EMAIL PROTECTED]>
<http://www.gedas.com> 
--









-Ursprüngliche Nachricht-
Von: Jürgen Hoffmann [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 28. November 2002 11:16
An: 'Jetspeed Users List'
Betreff: AW: It is possible to refresh Portlets ?

Hi Christian,

Sorry I have to correct myself. You CAN instruct which method is to be
called if you do the following:

<
img src="yourpic.png" border=0>

This will call the method doMethodname in the class ActionClassName.

Sorry for the double post.

Kind regards
 
Jürgen Hoffmann
ByteACTION GmbH
 
cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer 


-Ursprüngliche Nachricht-
Von: Jürgen Hoffmann [mailto:[EMAIL PROTECTED]] 
Gesendet: Donnerstag, 28. November 2002 11:10
An: 'Jetspeed Users List'
Betreff: AW: It is possible to refresh Portlets ?


Hi Christian,

To refer to actions in hrefs use:



This will result that the doPerform Method of the ActionClass will be
called. If you want to call a certain method, the best bet would be to
supply the method in a parameter and the call this method from
doPerform. The Event Driven Submission (eventSubmit_doMymethod) will
only work in submit buttons.

Hope that helps

Kind regards
 
Jürgen Hoffmann
ByteACTION GmbH
 
cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer 


-Ursprüngliche Nachricht-
Von: Heine, Christian (Extern) [mailto:[EMAIL PROTECTED]] 
Gesendet: Donnerstag, 28. November 2002 09:37
An: 'Jetspeed Users List'
Betreff: AW: It is possible to refresh Portlets ?


Hi David,

thx for the help. Strutz TreeView looks nice, but in my organisation we
don't want to implements another ad-on to Jetspeed. This forced me to
make my own TreeView...

I understand the Actions of Turbine, but the Problem is, that i don't
have any Button to execute the action. In ECS (equals in Velocity) i
have an image like a folder which must trigger the action. This image is
placed by an IMG-Tag, where i can't add any action on the way like on
buttons, because i only have a href Attribute. 

I knows that the developer of Jetspeed uses in a special way that i
can't review the href-Attribute to link to the Action like $Action.link
(U can see it in the menu-tab.vm of the control). The Problem i have, is
that i don't know how this link is used as a reference to a real
JAVA-Action-Object...

Christian




-Ursprüngliche Nachricht-
Von: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 27. November 2002 19:17
An: Jetspeed Users List
Betreff: RE: It is possible to refresh Portlets ?



> -Original Message-
> From: Heine, Christian (Extern) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 3:58 AM
> To: 'Jetspeed Users List'
> Subject: It is possible to refresh Portlets ?
>
>
> Hi all,
>
> i try to develop an portlet which is usable like the windows explorer.

> For that i create an AbstractPortlet and using the ECS to define the
> layout. The problem i have is, that i am forced to use actions on the 
> Elements (the folder images).

Dont recommend using ECS, try JSP or Velocity

>
> To realize that actions i can't use real JAVA-Actions like the
> MouseListener because they are ignored by the Turbine-Engine. Now i 
> have tried to use JAVA-Skript elements like onMouseOver to realize 
> some actions. My idea is to
> force jetspeed by this action to refresh the page, analyses the
parameters
> and repaint the table by using the parameters.
>
> The refresh works, but only my portlet is not refreshed and i got the
> following exception message where my portlet is:
>
> 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.CacheableStatefulPort
> letWrapper
> threw exception class java.util.NoSuchElementException : null
>
> Where is my failure? Knows anybody a solution or a better way to
> realize actions (perhaps execute real java actions)? In every action i

> must read out some parameters and repaint the explorer-Portlet by
> checking these params...

I believe Struts has a tree view control.
This looks cool, not sure if its part of Jakarta Struts or add-on

http://struts.application-servers.com/tags/treeview.html

Do you know about Turbine actions in Jetspeed?
http://jakarta.apache.org/turbine/

AW: It is possible to refresh Portlets ?

2002-11-28 Thread Heine, Christian (Extern)
Hi David,

thx for the help. Strutz TreeView looks nice, but in my organisation we
don't want to implements another ad-on to Jetspeed. This forced me to make
my own TreeView...

I understand the Actions of Turbine, but the Problem is, that i don't have
any Button to execute the action. In ECS (equals in Velocity) i have an
image like a folder which must trigger the action. This image is placed by
an IMG-Tag, where i can't add any action on the way like on buttons, because
i only have a href Attribute. 

I knows that the developer of Jetspeed uses in a special way that i can't
review the href-Attribute to link to the Action like $Action.link (U can see
it in the menu-tab.vm of the control). The Problem i have, is that i don't
know how this link is used as a reference to a real JAVA-Action-Object...

Christian




-Ursprüngliche Nachricht-
Von: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 27. November 2002 19:17
An: Jetspeed Users List
Betreff: RE: It is possible to refresh Portlets ?



> -Original Message-----
> From: Heine, Christian (Extern) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 3:58 AM
> To: 'Jetspeed Users List'
> Subject: It is possible to refresh Portlets ?
>
>
> Hi all,
>
> i try to develop an portlet which is usable like the windows explorer. For
> that i create an AbstractPortlet and using the ECS to define the
> layout. The
> problem i have is, that i am forced to use actions on the Elements (the
> folder images).

Dont recommend using ECS, try JSP or Velocity

>
> To realize that actions i can't use real JAVA-Actions like the
> MouseListener
> because they are ignored by the Turbine-Engine. Now i have tried to use
> JAVA-Skript elements like onMouseOver to realize some actions. My
> idea is to
> force jetspeed by this action to refresh the page, analyses the parameters
> and repaint the table by using the parameters.
>
> The refresh works, but only my portlet is not refreshed and i got the
> following exception message where my portlet is:
>
> 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.CacheableStatefulPort
> letWrapper
> threw exception class java.util.NoSuchElementException : null
>
> Where is my failure? Knows anybody a solution or a better way to realize
> actions (perhaps execute real java actions)? In every action i
> must read out
> some parameters and repaint the explorer-Portlet by checking
> these params...

I believe Struts has a tree view control.
This looks cool, not sure if its part of Jakarta Struts or add-on

http://struts.application-servers.com/tags/treeview.html

Do you know about Turbine actions in Jetspeed?
http://jakarta.apache.org/turbine/turbine-2/howto/action-event-howto.html
http://jakarta.apache.org/turbine/turbine-2/fsd.html



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

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




It is possible to refresh Portlets ?

2002-11-27 Thread Heine, Christian (Extern)
Hi all,

i try to develop an portlet which is usable like the windows explorer. For
that i create an AbstractPortlet and using the ECS to define the layout. The
problem i have is, that i am forced to use actions on the Elements (the
folder images).

To realize that actions i can't use real JAVA-Actions like the MouseListener
because they are ignored by the Turbine-Engine. Now i have tried to use
JAVA-Skript elements like onMouseOver to realize some actions. My idea is to
force jetspeed by this action to refresh the page, analyses the parameters
and repaint the table by using the parameters.

The refresh works, but only my portlet is not refreshed and i got the
following exception message where my portlet is:

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.util.NoSuchElementException : null 

Where is my failure? Knows anybody a solution or a better way to realize
actions (perhaps execute real java actions)? In every action i must read out
some parameters and repaint the explorer-Portlet by checking these params...


Thanks in advance
Christian

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to get Velocity Context References in VT?

2002-11-25 Thread Heine, Christian (Extern)
Hi all,

i am try to develop an own Velocity-Portlet based Portal by Jetspeed. Now i
making my first steps in Velocity. For that i've created my first
VelocityPortletAction :

import org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction;
import org.apache.jetspeed.portal.portlets.VelocityPortlet;
import org.apache.turbine.util.RunData;
import org.apache.velocity.context.Context;

public class MyPortletAction
extends VelocityPortletAction
{

  public MyPortletAction() {
  }

  protected void buildNormalContext(VelocityPortlet portlet, Context
context,
RunData data)
  {
String text = "Run Portlet run";
context.put("myfoo", text);
context.put("velo", "Halligalli");

//this.doPerform(data, context);
  }
}

I've put this action in the following directory :
org.apache.jetspeed.modules.actions.portlets

After the registration for that Portlet in Portlet.xreg i've creat an own
testPortlet.vm
and placed it in the correct directory. (It works because i see a hello
String placed in that VT).

The Problem i have is that i couldn't use the references to the Context like
in that way:
$myfoo, $velo  

What is my failure? Must i registry my Java Class in the Turbine Ressources?
I've tried that by this way :

tools.request.myVar =
org.apache.jetspeed.modules.actions.portlets.MyPortletAction

But when i do that, jetspeed will not start and throws an torque
Exception...

Thanks for any help in advance,
Christian

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Jetspeed and OpenLDAP

2002-11-20 Thread Heine, Christian (Extern)
Hi David,

thx for u're message. I got the same information by Raphael yesterday and
got the informations about the cvs implementation too. I hope that u're
works will be 
successfull. I would be happy if i can got any information after u're
review.

Thanks and Best regards
Christian



-Ursprüngliche Nachricht-
Von: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 19. November 2002 18:28
An: Jetspeed Users List
Betreff: RE: Jetspeed and OpenLDAP



> -Original Message-----
> From: Heine, Christian (Extern) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 12:50 AM
> To: 'Jetspeed Users List'
> Subject: Jetspeed and OpenLDAP
>
>
> Hi all,
>
> perhaps my question looks like realy similar, but i've searched
> the mailing
> list and dosn't found any usefull solution.
>
> I must implements for my organisation a Jetspeed Portal. The
> implementation
> of Jetspeed works fine (V1.4.1). Now i should combine Jetspeed with a
> LDAP-Server, prefered OpenLDAP,
> my question is how can i combine Jetspeed with OpenLDAP?
>
> I know that someone have solved that problem, but i haven't found any
> usefull HowTo or examples to do it. It is realy importand for me
> to know how
> i could realize that, thx for any help.
>
Hi Christian,

There are several of us working on cleaning up the LDAP implementation in
Jetspeed cvs.
I just received a patch and documentation from Suhail for configuration
Jetspeed LDAP Security Service with OpenLDAP.
Hope to get it reviewed and checked in over the next day or two.

David



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

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




Jetspeed and OpenLDAP

2002-11-19 Thread Heine, Christian (Extern)
Hi all,

perhaps my question looks like realy similar, but i've searched the mailing
list and dosn't found any usefull solution.

I must implements for my organisation a Jetspeed Portal. The implementation
of Jetspeed works fine (V1.4.1). Now i should combine Jetspeed with a
LDAP-Server, prefered OpenLDAP,
my question is how can i combine Jetspeed with OpenLDAP? 

I know that someone have solved that problem, but i haven't found any
usefull HowTo or examples to do it. It is realy importand for me to know how
i could realize that, thx for any help.

Christian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Web Portlet not shown, why?

2002-10-15 Thread Heine, Christian (Extern)

Hi Aurélien,

it looks like working, but only on static HTML Pages, it is possible that
jetspeed 
does not allow to use framed HTML-Pages? My Startpage uses an framed
Linklist and
its not shown, only the title, other Pages i can view ...

Christian



-Ursprüngliche Nachricht-
Von: Aurélien Pernoud [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 15. Oktober 2002 14:31
An: 'Jetspeed Users List'
Betreff: RE: Web Portlet not shown, why?

Try this settings of CATALINA_OPTS:

-Dhttp.proxyHost=proxyhost -Dhttp.proxyPort=proxyport -Dhttp.non
ProxyHosts="localhost|*.mycompany.com"

Everything put in nonProxyHosts, separated with "|", should go without using
proxy.
It works fine with me, but I had answers of users who couldn't get it to
work, but I don't know why...

Aurelien Pernoud

> De : Heine, Christian (Extern) [mailto:[EMAIL PROTECTED]]
>
> Hello all,
>
> i've installed jetspeed 1.4b on my Tomcat 4.0.4 behind my corporation
> proxy-server and set the CATALINA_OPS environment-variable
> directly to the
> proxyHost IP and proxyHost Portnr. as shown in many threads
> before. All
> looks like work fine on intranet. But when i try to bind a
> portlet to my
> localhost webpage on the installed apache, i only got the titlebar.
>
> There're no logs-failures and no exeptions on my
> tomcat-console-frame and my
> Apache access-log shows me the sucessfully request result of jetspeed.
> What is wrong?
>
> Thx in advance,
> Christian >


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

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




Web Portlet not shown, why?

2002-10-15 Thread Heine, Christian (Extern)

Hello all,

i've installed jetspeed 1.4b on my Tomcat 4.0.4 behind my corporation
proxy-server and set the CATALINA_OPS environment-variable directly to the
proxyHost IP and proxyHost Portnr. as shown in many threads before. All
looks like work fine on intranet. But when i try to bind a portlet to my
localhost webpage on the installed apache, i only got the titlebar. 

There're no logs-failures and no exeptions on my tomcat-console-frame and my
Apache access-log shows me the sucessfully request result of jetspeed.
What is wrong?

Thx in advance,
Christian 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem with WebPortlets

2002-09-23 Thread Heine, Christian (Extern)

Hi all,

i am new on Jetspeed and must create some WebPortlets for my company. The
problem i have, that i can't load successfull any Web-Portlet. I tried to
load the 
SUN Mainpage but i only get the header of the portlet, no content why?

I have read many threads, that the reason could be a proxy server which is
used by my company. Also when i try to load some WebPortleds from localhost
or from the Intranet i got the same problem...

Has anyone break through that problem? Thx 4 help,
Christian



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Portlet for view .asp-pages?

2002-08-27 Thread Heine, Christian (Extern)

Hi,

i have the same problem. I use the apache 2.0.39 webserver with the
chilisoft asp module to apply asp with apache. As standalone html-system all
works fine, but in jetspeed i can't view the result of the request.

I load the mainpage as WebPagePortlet, without any exception or log failure,
the header is shown, but thats all

I don't now why. The apache acess log reports the sucessfull request. Is it
possible that jetspeed can't show framed html pages? Any sollutions?

Thx in advance,
Christian Heine
gedas-Germany






-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 27. August 2002 12:24
An: [EMAIL PROTECTED]
Betreff: Portlet for view .asp-pages?

Hi!

Has anyone done any work on this?
I'm about to put togheter a portal, and parts of what I
want to show there is an
application written using .asp.

I was wondering what needs to be done when it comes to
preventing actions taken inside the app from opening
the reply in a new window, and how to make sure the
portal sends the correct data to the .asp-app.

Pointers appreciated!

Harald Ommang
Delfi Data AS 
Bergen, Norway

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: