[jboss-user] [JBoss Portal] - Re: Problem with JSF- Component IDs and JavaScript Element-I

2008-04-01 Thread wesleyhales
yep, see my last post View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140488#4140488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140488 ___ jboss-user mailing list jboss-use

[jboss-user] [JBoss Portal] - Re: Problem with JSF- Component IDs and JavaScript Element-I

2008-04-01 Thread ameo
Hi, thanks for reply. problem...the JSF- Component have not a name-attribut. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140468#4140468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140468 __

[jboss-user] [JBoss Portal] - Re: Problem with JSF- Component IDs and JavaScript Element-I

2008-04-01 Thread wesleyhales
Ok, so I was wrong again. I forgot JSF namespaces the name attribute also. You can wrap your form in a div or span and access the child, or you can use the prototype.js library and they have the following: | document.getElementsByClassName('whatever')[0] | then you would have: | |

[jboss-user] [JBoss Portal] - Re: Problem with JSF- Component IDs and JavaScript Element-I

2008-04-01 Thread wesleyhales
oops, that should be: | | document.getElementsByName('whatever')[0] | this is a collection which you should probably iterate to get the name you need. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140460#4140460 Reply to the post : http://www.jboss

[jboss-user] [JBoss Portal] - Re: Problem with JSF- Component IDs and JavaScript Element-I

2008-04-01 Thread wesleyhales
give your element a name | http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140444#4140444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140444 ___ jboss-user mailing list jboss-user@lists.jboss.org h