You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Michael Heinen <mh...@recommind.com> on 2006/07/06 16:24:07 UTC
component for "input type=button"?
Hi all,
Is there any component that renders an input of type button?
e.g. <input type="button" value="hitme" onclick="doIt()"/>
Michael
Re: Some Specifics RE: component for "input type=button"?
Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
Reading the myfaces documentation of the tag library:
http://myfaces.apache.org/impl/tlddoc/index.html
the type attribute is not so restricted ( so if you use myfaces you
should read myfaces tlddoc if in trouble ;) ).
kind regards
Am Donnerstag, den 06.07.2006, 07:45 -0700 schrieb Rick:
> h:commandButton has a type attribute.
>
> The docs for the type attribute says the following:
>
>
> "Type of button to create. Valid values are "submit" and "reset". If not
> specified, or not a valid value, the default value is "submit"."
> http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/commandButton.
> html
>
>
> However, with MyFaces, I set type="button" and it worked like a charm, even
> though the docs quoted above claim it will not work.
>
> --Rick Hightower
>
> -----Original Message-----
> From: Torsten Krah [mailto:tkrah@fachschaft.imn.htwk-leipzig.de]
> Sent: Thursday, July 06, 2006 7:31 AM
> To: MyFaces Discussion
> Subject: Re: component for "input type=button"?
>
> h:commandButton should do the work.
>
> kind regards
>
> Am Donnerstag, den 06.07.2006, 08:24 -0600 schrieb Michael Heinen:
> > Hi all,
> >
> >
> >
> > Is there any component that renders an input of type button?
> >
> >
> >
> > e.g. <input type="button" value="hitme" onclick="doIt()"/>
> >
> >
> >
> > Michael
> >
> >
> -- Intel: where Quality is job number 0.9998782345! --
>
>
>
Some Specifics RE: component for "input type=button"?
Posted by Rick <ri...@arc-mind.com>.
h:commandButton has a type attribute.
The docs for the type attribute says the following:
"Type of button to create. Valid values are "submit" and "reset". If not
specified, or not a valid value, the default value is "submit"."
http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/commandButton.
html
However, with MyFaces, I set type="button" and it worked like a charm, even
though the docs quoted above claim it will not work.
--Rick Hightower
-----Original Message-----
From: Torsten Krah [mailto:tkrah@fachschaft.imn.htwk-leipzig.de]
Sent: Thursday, July 06, 2006 7:31 AM
To: MyFaces Discussion
Subject: Re: component for "input type=button"?
h:commandButton should do the work.
kind regards
Am Donnerstag, den 06.07.2006, 08:24 -0600 schrieb Michael Heinen:
> Hi all,
>
>
>
> Is there any component that renders an input of type button?
>
>
>
> e.g. <input type="button" value="hitme" onclick="doIt()"/>
>
>
>
> Michael
>
>
-- Intel: where Quality is job number 0.9998782345! --
RE: component for "input type=button"?
Posted by Michael Heinen <mh...@recommind.com>.
Thanks, this is working indeed!!
I didn't try this before because the API says:
Type of button to create. Valid values are "submit" and "reset". If not
specified, or not a valid value, the default value is submit".
Reading API seems to be for wimps ...
-----Original Message-----
From: Torsten Krah [mailto:tkrah@fachschaft.imn.htwk-leipzig.de]
Sent: Donnerstag, 6. Juli 2006 16:31
To: MyFaces Discussion
Subject: Re: component for "input type=button"?
h:commandButton should do the work.
kind regards
Am Donnerstag, den 06.07.2006, 08:24 -0600 schrieb Michael Heinen:
> Hi all,
>
>
>
> Is there any component that renders an input of type button?
>
>
>
> e.g. <input type="button" value="hitme" onclick="doIt()"/>
>
>
>
> Michael
>
>
-- Intel: where Quality is job number 0.9998782345! --
Re: component for "input type=button"?
Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
h:commandButton should do the work.
kind regards
Am Donnerstag, den 06.07.2006, 08:24 -0600 schrieb Michael Heinen:
> Hi all,
>
>
>
> Is there any component that renders an input of type button?
>
>
>
> e.g. <input type="button" value="hitme" onclick="doIt()"/>
>
>
>
> Michael
>
>
-- Intel: where Quality is job number 0.9998782345! --