This Question is Answered

1 "correct" answer available (5 pts) 13 "helpful" answers available (3 pts)
3 Replies Last post: May 28, 2008 7:57 AM by rhh

How to set the value for a CommandButton

May 28, 2008 6:56 AM

Click to view mannusanghi's profile Level 2 mannusanghi 26 posts since
Feb 27, 2008

{font:Arial}Hi All...

{font:Arial}{font:Arial}How can I set value for CommandButton?

{font:Arial}{font:Arial}I mean in Java we have
like this:

{font:Courier New}<input class="cmdbtn" name="add" value="Add” type="submit">{font}

{font:Arial}{font:Arial} Regards,{font}

Mannusanghi

Click to view mannusanghi's profile Level 2 mannusanghi 26 posts since
Feb 27, 2008
1. How to set the value for a CommandButton May 28, 2008 7:01 AM
Hi All..

How can i I set value for CommandButton?


I mean in Java we have like this:

<input class="cmdbtn" name="add" value="Add” type="submit">


Regards,Mannusanghi

Click to view friedger's profile MVP friedger 95 posts since
Jan 13, 2008
2. Re: How to set the value for a CommandButton May 28, 2008 7:51 AM
in response to: mannusanghi

Hi,
the httpForm.submit method has a submit-value attribute (http://developers.curl.com/userdocs/docs/en/api-ref/HttpForm.html#submit)
For more on form values see also http://developers.curl.com/userdocs/docs/en/dguide/networking.html#form-values


Friedger

Click to view rhh's profile Curl rhh 29 posts since
Oct 12, 2007
3. Re: How to set the value for a CommandButton May 28, 2008 7:57 AM
submit-button is the Curl API that is the equivalent of the HTML

<input type="submit">

You use submit-button in conjunction with Curl's HttpForm API, which is similar to the HTML "form" tag. To specify the label for a submit-button (which is analogous to specifying a value for the HTML "input" tag), you use the "label" keyword argument to submit-button. You can find more information about the usage of HttpForm and submit-button in the Curl documentation.

If you want to control the label of a CommandButton that is not used for submitting an HttpForm, then you should just use the "label" option of the CommandButton API. You can also find more information about this in the Curl documentation.

-Bert