Hi Christian, To refer to actions in hrefs use:
<a href="$jslink.setTemplate("your,template.vm").addPathInfo("action","Acti onClassName")"><img src="yourpic.png" border=0></a> 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/turbine-2/howto/action-event-howto.htm l 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>