I am selecting different options from JSF selectonemenu and doing certain operations on click of command button.I want to open a different web page in new window for only one option and for remaining options i only do some background operation and want to stay in the same page.Here onclick="this.form.target='_blank'" is getting applied to all other options and displaying same page in the new window.How can i avoid this and display new window for only one option.
My JSF page snippet
I want to display new window only for Edit Coverage.
My Managed bean snippet which is of request scope.
Thank you Tim. The suggestion you gave works when i hard code target value in command link.But for my actual requirement as i mentioned before,the application is reading null first and hence opening the outcome in the same page irrespective of any of the target value i set.
i am using switch statement inside submit method to check options,which is as below
I have declared setter and getter for target variable before.The managed bean is of request scope.
I am newbie to JSF. Is there any way where i can read the selected value and set the target property at server side(preferably)or client side before submit method so that i can display the outcome accordingly.
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Create Edit Print & Convert PDF Using Free API with Java