I did some more tests which lead to this matrix:

                  works with JavaScript
                 disabled        enabled
a) button/link is embedded in a form
  htmlCommand      false           true
  htmlButton       true            true
b) button/link is NOT embedded in a form
  htmlCommand      true            true
  htmlButton       false           false

neither redirect (in the nav-outcome) nor immediate hava an influence.

So the only difference is the form in which the commandlink is 
embedded...

regards
Alexander

-----Original Message-----
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 02, 2005 10:35 AM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: HtmlCommand does not work when ALLOW_JAVASCRIPT=false

What you can try to do is style the commandButtons as Links - I don't
know if it is completely possible though?

regards,

Martin

On 6/2/05, Werner Punz <[EMAIL PROTECTED]> wrote:
> Jesse Alexander (KBSA 21) wrote:
> > Because of a company-rule which does not allow Javascript in
> > web-applications, the Javascript-toggle is one of the most
> > important assets of MyFaces for us.
> >
> > But the HtmlCommandLink component does not work when it is
> > set to false. I tested that under 1.0.8 and 1.0.9. It seems
> > that the UiForm does not call the command-links decode method.
> > I will try to debug that a bit more in depth and I have a small
> > webapp which I will stremaline a bit more if a testcase is needed.
> 
> Cannot work, to my knowledge Sun specified that h:commandLink needs
> javascript in the HTML incarnation to work. This is less a matter of
> implementation and more a matter of specification.
> I dont know if that issue will be resolved by the 1.2 specs.
> I maybe wrong, though, but I dont think so.
> 
>

Reply via email to