Sorry, i do not have a ready made solution for you, only some ideas.
Asyou said you will have to use javascript.
(There are many frameworks for javascript out there.)
1. I suggest to try richfaces.
You will ajaxenable the combobox in a way that you are able to rerender the button.
2. Use a menu (richfaces has one)
3. Make your solution with javascript only. Surely hard to do, but possible.
4. one jsf-way to do it:
When the button is clicked an action is triggered. This action will check the selected value of the combobox and returns an outcome. The navigation rules of your application will navigate to the page which is determined by the outcome.
Hope this helps enough to get an idea for the direction to work further.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047906#4047906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047906
Hi
In my seam application i am displaying the dropdownlists using jsf where i will
fetch data from database.I have written a command link in my application where i need to go inside the action method if i click on it.Now the problem is i was able to go inside the method properly without dropdownlists but if using dropdownlists ,i was unable to enter into the method ..seems it is a bug of seam..
Thanx in Advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047905#4047905
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047905
I don't need a post.
I just need 2 URLs, one for each value in the combo box. As I said, in Javascript + Struts this would mean something like 10 lines of code.
The flow would be:
1) I select value C from combo
2) I click the button
3) I end up on the C specific page (used to add a new entity of type C, in this case).
So no post/page reload should happen between 1 and 2. I also would like to keep as simple as possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047896#4047896
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047896
Hi All,
In my process definition file, transition should occur from one node to another node. but when the control comes to the first node, its does the specified action and does not go the second node.
this is my process definition file
| <node name="action">
| <action class="com.techm.gisv.osl.cvsportal.actions.PersistAction"/>
| <transition name="mail" to="mail"/>
| </node>
|
| <node name="mail">
| <transition name="done" to="done">
| <action class="com.techm.gisv.osl.cvsportal.actions.Mail"/>
| </transition>
| </node>
|
What needs to be done?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047894#4047894
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047894