Access the value of checkbox.
I have a hyperlink component in my JSP page, when i click on that a window popuped that is again a jsp page.In this popup there are checkbox but these are not JSF components, these are html checkbox.Actually i am using JavaScript for Selecting all checkbox at a time, now i want to show the value of selected checkboxes within a listbox component in first page. But i am not getting how because checkbox are not jsf component so i am not getting.So please give me solution.
# 1
There is already a blog entry about how to implement popup windows using the JSF itself:
http://blogs.sun.com/divas/entry/adding_a_popup_window_to
may be you can use this approach to solve your problem.
If not you may want to use the window.opener property + javascript to update the values in main window.
http://www.w3schools.com/htmldom/prop_win_opener.asp
# 2
The tutorial doesn't appear to address the user's question, which is how to pass values from the pop-up window to the Creator application running on the server.
The easiest way to accomplish this is to have the page in the pop-up window submit its contents to the server, either in response to a button action, or to a window event such as "close". Alternately, you could add javascript which transfers the value of the checkbox in the pop-up to the value of a hidden parameter in the page of the parent window.
I've little experience with Javascript, but there are guides a plenty, on-line, with recipes for accomplishing tasks like this.
Once the value of the checkbox is included in a postback to the server, it is available in the servlet request object. Let's say you stored the value of the checkbox in a hidden field with name "myhiddenfield". Within your application page bean code, you can obtain the value like this:
this.getExternalContext().getRequestParameterMap().get("myhiddenfield");