Hi Pierre,
We made a little change in our code: doUpdate() is changed to doUpdate2() (in Bonjour.java file - a copy of HelloAction.java) and (in replica.vm) <input type="submit" name="eventSubmit_doUpdate" value="Update" /> is changed to <input type="submit" name="eventSubmit_doUpdate2" value="Change" class="BUTON"/> Now, when we press <Change> button from Replica portlet, the title text is updated and the text on HelloVelocity portlet is not be refreshed to the default value. CONGRATULATION! But the problem still exists on HelloVelocity portlet. E.g pressing <Update> button on HelloVelocity portlet, the title of Replica portlet will be refreshed to the default value!? Do we need to define eventSubmit_doUpdate2 in permission-form.vm, role-form.vm,...? ----- Original Message ----- From: "Pierre BESNARD" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 9:01 PM Subject: RE: Problem with Update button hi, Its normal! You have 2 copy of the HelloAction class load in the portal which both have a doUpdate() method. When you press the update button, the doUpdate() method il called for each Action class which have the doUpdate() method. And, since you don't post the new $text value to the HelloVelocityPortlet, it is refresh with the default value. I hope you understood me! :) Pierre -----Message d'origine----- De : David Humphrey [mailto:[EMAIL PROTECTED]] Envoy� : jeudi 4 avril 2002 05:32 � : [EMAIL PROTECTED] Objet : Problem with Update button On Jetspeed, we duplicated HelloVelocity portlet example. We call the copy portlet "Replica". We rename parameter "text" to "text2", the input name "text" to "inputtext". When we type "Hi there" in HelloVelocity portlet, the title text is updated. (OK) The same as we type in Replica portlet. (OK) But the problem is, if we press "Update" button on one portlet, the other portlet will be refreshed with the default value! For example: Default text value for HelloVelocity portlet(hello.vm): Hello World in Velocity Default text value for Replica portlet(replica.vm): Bonjour Now, we change "Hello World in Velocity" text to "Hi there". Press <Update> button. The title text on Hello Velocity portlet is updated. Now, we change "Bonjour" text to "Cava?". Press <Update> button. The title text on Replica portlet is updated, AND HelloVelocity portlet will display "Hello World in Velocity" (Not "Hi there" text) and vice versa, if we now change text on HelloVelocity portlet, the Replica portlet will show "Bonjour" (Not "cava?"). Please help. -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup -- 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]> -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
