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]

Reply via email to