File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes jQuery find h:selectOneMenu component Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "jQuery find h:selectOneMenu component" Watch "jQuery find h:selectOneMenu component" New topic
Author

jQuery find h:selectOneMenu component

Joe Shannow
Ranch Hand

Joined: Dec 01, 2010
Posts: 35
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

Joined: Apr 06, 2010
Posts: 3787
    
    1

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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

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

Joined: Dec 01, 2010
Posts: 35
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

Joined: Jan 10, 2002
Posts: 56168
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jQuery find h:selectOneMenu component
 
Similar Threads
How to set value of an input using jQuery ?
Enable/Disable the datepicker
jQuery find h:selectOneMenu component
h:selectOneMenu Free type ?
How to pass client getTimezoneOffset before the managed bean is being constracted?