File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery find h:selectOneMenu component

 
Joe Shannow
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

how can I find the JSF <h:selectOneMenu> component using by jquery methods?
I can find <h:inputText styleClass="input"> only:
Any advice? Thank you
 
Matthew Brown
Bartender
Posts: 4549
8
Java Netbeans IDE Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duplicate of http://www.coderanch.com/t/537007/JSF/java/jQuery-find-selectOneMenu-component

Joe, can you avoid posting the same message more than once? Thanks. Just pick what you think is the most appropriate forum and stick with it. Otherwise we might get people trying to help you out duplicating work that's already been done.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm unlocking this as it is the more appropriate forum for this question. And I am locking the JSF thread. And yes, please do NOT post the same question more than once.

There is more than one way:



Also, JSF should give all your element an ID that you could use to find it. You might just need to inspect the source. I know that JSF prefixes ID's with junk. Just don't remember what that junk is. Also, you could simply give your SELECT element a class, and reference it that way.
 
Joe Shannow
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I wasn't sure where to put it, thanks

I've tried but it doesn't work.

I've add those components styleClass="input"
but my jQuery method to redirect ENTER to TAB key doesn't focus to selectOneMenu (when it step on it) and instead of focus it submits the button



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to respectfully disagree with Gregg and move this to the JSF forum. Examples with JSF markup will only makes sense to the JSF-savvy and to no one else.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic