users@javaserverfaces.java.net

Re: Is jsf 508 compliant

From: joshna <Joshna.Kambalapalli_at_Sun.COM>
Date: Fri, 22 Feb 2008 14:52:03 +0530

Hi,
    I'm not modifying the attribute and it does run properly. But the
thing is, if I have to make my application 508 compliant, then for every
onclick entry, I need to have an onkeypress as well. But this is a
difficult thing to do (even with the provision of providing the
onkeypress explicitly), since the actual value of onclick event handler
is generated dynamically by the component and I don't want to look at
the source that is generated and copy paste the same in my jsp. I wanted
to know if there is a way to tell the component to automatically add the
onkeypress with the same value as that of onclick.

Regards,
Joshna

Kito D. Mann wrote:
>
> Joshna,
>
>
>
> Are you manipulating this attribute in JavaScript? If so, it doesn't
> need to be specified in order to modify it...
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Kito D. Mann - Author, JavaServer Faces in Action
> http://www.virtua.com <http://www.virtua.com/> - JSF/Java EE
> consulting, training, and mentoring
> http://www.JSFCentral.com <http://www.jsfcentral.com/> - JavaServer
> Faces FAQ, news, and info
>
>
>
> *From:* Joshna.Kambalapalli_at_Sun.COM [mailto:Joshna.Kambalapalli_at_Sun.COM]
> *Sent:* Thursday, February 21, 2008 12:09 PM
> *To:* users_at_javaserverfaces.dev.java.net
> *Subject:* Re: Is jsf 508 compliant
>
>
>
> Hi
>
> What you are saying is correct .HtmlCommandLink in JSF1.2 supports
> onKeyPress But my issue is different
>
> I have something like this in my code.
> <h:commandLink action="back" >
> <h:outputText value="#{msgs.goBack}" />
> </h:commandLink>
>
> This is rendered to
>
>
> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.forms['contentTypeCreationForm'],'contentTypeCreationForm:j_id_id310,contentTypeCreationForm:j_id_id310','');}return false">Go Back</a>
>
>
> which doesnt have onKeyPress .I wont be able to add onKeyPress
> attribute explicitly because I wont be knowing the value of it while
> coding .
>
> When a commandLink is rendered to Html it should have onKeyPress along
> with onClick attribute .What can i do to have onKeyPress attribute
> when a commandLink is rendered without explicity adding it.
>
>
>
> Regards
> K.Joshna
>
> Kito D. Mann wrote:
>
> Joshna,
>
> I think you're missing something -- the HtmlCommandLink component in JSF 1.2
> does support the onkeypress attribute.
>
> In broader terms, though, whether the components are 508 compliant depends
> on the components themselves. If the standard HTML attributes aren't enough,
> you may want to pick a component suite that specifically says it's section
> 508 compliant.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Kito D. Mann - Author, JavaServer Faces in Action
> http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
> http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
>
>
>
> -----Original Message-----
>
> From: Joshna.Kambalapalli_at_Sun.COM <mailto:Joshna.Kambalapalli_at_Sun.COM> [mailto:Joshna.Kambalapalli_at_Sun.COM]
>
> Sent: Thursday, February 21, 2008 10:13 AM
>
> To: users_at_javaserverfaces.dev.java.net <mailto:users_at_javaserverfaces.dev.java.net>
>
> Subject: Is jsf 508 compliant
>
>
>
> Hi
>
>
>
> I am using JSF 1.2 for building portlets in my cms project.
>
>
>
> when a <h:commandLink > is redered it will be some thing like <a href=
>
> # onclick=
>
>
>
> But it doesn't have onKeyPress which is necessary for a product to be
>
> 508 compliant.
>
>
>
> Is JSF fully compliant .If not can you point me to documentation where
>
> it specifies that.
>
>
>
> It would be helpful if some body can answer asap
>
>
>
> Regards
>
> K.Joshna
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net <mailto:users-unsubscribe_at_javaserverfaces.dev.java.net>
>
> For additional commands, e-mail: users-
>
> help_at_javaserverfaces.dev.java.net <mailto:help_at_javaserverfaces.dev.java.net>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net <mailto:users-unsubscribe_at_javaserverfaces.dev.java.net>
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net <mailto:users-help_at_javaserverfaces.dev.java.net>
>
>
>
>
>