Hello,
i wrote a simple Portlet:
public class KgPortlet extends AbstractPortlet
{
public ConcreteElement getContent(RunData aRunData)
{
StringBuffer text =new StringBuffer();
PortletTemplateLink link=new PortletTemplateLink(aRunData,this);
text.append("First Name=");
String name =aRunData.getUser().getFirstName();
text.append (name);
text.append ("<br>");
text.append ("<a href=\""+link+"?action=eventSubmit_doIncrease\">Test
Action</a>");
return (new StringElement(text.toString()));
}
}
i placed the class file in the classes directory (at the top).
Now i want do Actions (ex: increase a integer) by click on a
link. i reed the turbine docs and tried to implement such a action
class. But it doesn't work. Error:
Horrible Exception: java.lang.ClassNotFoundException:
Requested Action not found: eventSubmit_doIncrease
Turbine looked in the following modules.packages path:
[org.apache.jetspeed.modules, org.apache.turbine.modules]
at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
...
Where must i place the new "KgPortletAction.class" file?
>From which class must i extend?
Is the link in line 11 of above class right?
Can anyone give me an example for a minimal action class?
Thanks,
Karsten Gampe
Email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]