thanks for your replying. Yes,I have been awared of my misunstanding and change type="submit" to type="button". However, It would not work even if I call form.submit() because it could not call the "eventSubmit_doAddvalue" action. Then I tranfer two parameters <%= request.getRequestURI()%> and the action [eventSubmit_doAddvalue'].name to javascipt and form an action and then form.submit(). Although It works now, it often change the url and and I have to redirect utl in "doAddvalue". This is a very bad method , I think. Do you have better ways to resolve this problem?
sophy ----- Original Message ----- From: "Aurelien Pernoud" <[EMAIL PROTECTED]> To: "'Jetspeed Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 2:57 PM Subject: RE: Problem in portlet action > > I would say you should test the propertyValue at server side cause the form > is always submitted the way you wrote it (I think that's what happens). > > If you want your form to be submitted only when propertyValue is set to the > good value, then you must change your button type to "button", and not > submit, and in the javascript explicitely call "form.submit()" when you > really want to submit your form. > > HTH, > Aurelien > > sophy a �crit : > > > I am confused by portlet action. In my jsp, there is a line like this > > : <input type="submit" name="eventSubmit_doAddvalue" value="Add Value" > > onclick="javascript:oncheck(document.propertySet.elements['pro > > pertyValue'].value)"> > > > > In javascript:oncheck(value), I will check if "value" is > > available, if not, return false. In general, this submit > > action should not be performed, but in portlet action, > > "doAddvalue" still runs. This goes against my idea. How to > > disable the action when my javascript returns false. > > > > thanks a lot. > > > > sophy > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >
