Hi! I need to get selectOneMenus selected value when page loads. I only need it for the first time when page loads so the value is the first one in the list...But how to access it?
Id rather access it by jsf but in the end either will do.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Well, the selectOneMenu value is accessible by endpoint.protocol.
If you don't understand how it works, here is a basic working example:
JSF
MyBean
Sami M�nnist�
Greenhorn
Joined: Sep 18, 2006
Posts: 9
posted
0
Thanks Bauke but the problem is that endpoint.protocol is an entity witch gets its values from database and when the user presses new endpoint on previous page new record is created and endpoit.protocol is null. I need to get the default value of selectOneMenu so I can disable certain fields. That needs to be done only once when page loads after that javascript takes care of that when selectOneMenu changes...
Sorry for my bad presentation on my first question.
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.