myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Schofield <sean.schofi...@gmail.com>
Subject Re: [jira] Commented: (MYFACES-882) CommandLink doesn't work if javascript is disabled
Date Mon, 28 Nov 2005 19:04:19 GMT
I can't understand for the life of me why someone would write a webapp
that was complicated enough to justify JSF and still be concerned
about browsers that don't support javascript.  I'm sure there are some
scenarios out there but if you can't count on javascript being enabled
then IMO, you shouldn't be wasting your time with the overhead and
complexities of JSF.  Just use Struts or something simpler.

sean


On 11/28/05, Mike Kienenberger <mkienenb@gmail.com> wrote:
> JSF isn't designed to handle GET requests, so just modifying the link
> wouldn't be sufficient.   In any case, the parameters generated would
> be far too large :)   Take a look at a JSF form submit sometime.
>
> The idea of providing an error if you try to use JSF without
> javascript isn't a bad one.
> I'm not sure what to suggest, though.   I don't think rendering a
> message stating that you can't use links without javascript is the
> best solution.   Perhaps the server should simply throw a
> FacesException if someone attempts to render a component that requires
> javascript, and the parameter is set to false.
>
> Maybe some of the other committers can comment on this.
>
> On 11/28/05, Alberto Molpeceres <alberto.molpeceres@gmail.com> wrote:
> > On 11/28/05, Mike Kienenberger (JIRA) <dev@myfaces.apache.org> wrote:
> > >     [ http://issues.apache.org/jira/browse/MYFACES-882?page=comments#action_12358688
]
> > >
> > > Mike Kienenberger commented on MYFACES-882:
> > > -------------------------------------------
> > >
> > > Well, we can discuss it on the mailing lists, but the short answer is that
javascript is required to make the link submit the form.   Normal anchor tags can't submit
forms, so the anchor tag has to use javascript to click a submit button.
> > >
> >
> >
> > Hi Mike.
> >
> > I was just wondering, why something to "simply" should need
> > javascript. I mean, why not simply add all needed parameters to the
> > link?. Or if really that's not possible, it would be better just write
> > a message like "don't use commandLink with js disabled" instead of
> > just rendering a broken link.
> >
> > Don't get me worng, I know it's my failure if I don't know what the
> > specification says, only I have lost around three hours looking for a
> > solution and am a bit frustrated.
> >
> >     al.
> >
>

Mime
View raw message