Hi,
First of all, thanks for all your answers about "other mean to post changes in
velocity portlet".
Secondly, it will be kind of you to excuse my poor English.
And finally, I found the solution of the problem described below.
In fact, I know how to make work my portlet, but I don't know why it wasn't working.
I have observed that when an action method ( doSomething() ) behave 2 upper-case
letters (i.e.: doSomeThing() ), the action is not called as it should be!
If I have a method doNewPost(r,c) called in a template
(<..name="eventSubmit_doNewPost"..>), it doesn't work.
but, a method doNewp(r,c) called with <..name="eventSubmit_doNewp"..> works very well.
If someone could explain that to me, thank you in advance.
For the moment, I succeeded in transform the "forumDemo" of velocity into a portlet!
(not bad for a first work with velocity and jetspeed).
have a good day,( or night, I don't know! :) )
--
Pierre
-----Message d'origine-----
De : Pierre BESNARD
Envoy� : mercredi 20 mars 2002 14:54
� : Jetspeed Users List
Objet : strange behaviour when refreshing velocity portlet.
hi,
when I try to change a template in velocity portlet, i saw strange results:
my registry file :
<portlet-entry name="jtiti" hidden="false" type="instance" application="false">
<classname>org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet</classname>
<meta-info>
<title>TestTiti</title>
<description>titi test</description>
</meta-info>
<parameter name="template" value="titi" hidden="false"/>
<parameter name="action" value="portlets.TitiAction" hidden="false"/>
<media-type ref="html"/>
</portlet-entry>
template titi.vm :
<form action"$jlink" method="POST">
<input type="Submit" name="eventSubmit_doToto" value="toto">
</form>
and finaly method of TitiAction.java :
public void doToto(RunData rundata, Context ctx){
setTemplate(rundata, "toto");
}
When I run that portlet, i can see 3 diferent results when i click on the "toto"
button:
1) Sometime it works good and the "toto.vm" template is used.
2) Sometime the "titi.vm" is steel used.
3) Or a message, like the following, is displayed in full screen :
$jetspeed.getCustomizer($data.Customized).getContent($data)
can someone help me before i fall crazy!
thank you.
--
pierre
--
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]>