not sure but I think
<h:commandButton value="Add Task"
onclick="window.open('../pages/addTask.faces','popup','height=300,width=200,toolbar=no,menubar=no,scrollbars=yes');"
>
</h:commandButton>
you have to fill the url param with the right url the browser have to
call (.faces in my config)
2006/1/9, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> I don't know, whats exactly your problem, but I wouldn't open a window with
> window.open, but with the jeniapopup you will get at www.jenia.org
> It's easy to implement and works fine... Perhaps you want to try.
>
> Regards,
> Andy
>
> -----Ursprüngliche Nachricht-----
> Von: Nikita Shah [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 9. Januar 2006 13:14
> An: [email protected]
> Betreff: Popup in new window problem
>
>
> Hello,
>
> I am having problem using JSF tags in the popup jsf page. I have the parent
> page as below:
>
> <h:commandButton value="Add Task"
> onclick="window.open('../pages/addTask.jsp','popup','height=300,width=200,toolbar=no,menubar=no,scrollbars=yes');"
> >
> </h:commandButton>
>
> And my addTask.jsp looks like below:
>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
>
>
> <b>Task Name</b>
> <h:outputText value="tasks" />
> <h:inputText value="name" id="text"/>
>
> Now the problem is I am getting the following error on clicking the command
> button:
>
> SEVERE: Faces context not found. getResponseWriter will fail. Check if the
> FacesServlet has been initialized at all in your web.xml.
> Jan 9, 2006 5:33:40 PM
> org.apache.catalina.core.StandardWrapperValve invoke< br>
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
> at
> javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:878)
> at
> javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
> at
> org.apache.jsp.pages.addTask_jsp._jspx_meth_h_outputText_0(org.apache.jsp.pages.addTask_jsp:92)
> at
> org.apache.jsp.pages.addTask_jsp._jspService(org.apache.jsp.pages.addTask_jsp:61)
>
> If I remove the JSF "h" tags then i am able to see the html text "Task Name"
> in popup.
> Can anyone please help into this matter ?I require the solution urgently ..
>
> TIA
> Nikita
>
>
> ---------------------------------------------------------------------
> Ability is what you're capable of.
> Motivation determines what you do.
> Attitude determines how well you do it.
> ---------------------------------------------------------------------
>
> Regards,
> Nikita Shah
> Software Engineer
> SNS Technologies
> Phone: Tel: +91-20-30582122
> Cell: +919372873355
> Website: www.snstech.com
> Head Office: 301 | 3rd Floor | City Towers | 17 Dhole Patil Road |
>
> ________________________________
> Yahoo! Photos
> Got holiday prints? See all the ways to get quality prints in your hands
> ASAP.
>
>
> ______________________________________________________________________
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify your system manager.
> This footnote also confirms that this email message has been swept for the
> presence of computer viruses.
> ______________________________________________________________________
>
--
::SammyRulez::
http://sammyprojectz.blogspot.com