Hi,

I'm using cactus 1.6. How can I dynamically change the a context init param
(that was loaded from my web.xml file) from within a test case?
Here's what I have:


in web.xml:
.
.
   <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>server</param-value>
   </context-param>


In my test case I was doing the following:

public class TestRenderResponsePhase extends JspFacesTestCase    {
.
.
.
public void setup() throws Exception {
        ServletContextWrapper sc = new
              ServletContextWrapper(config.getServletContext());
              sc.setInitParameter("javax.faces.STATE_SAVING_METHOD",
                 "client");
   }
.
.
.

I'm not sure the new context param is taking affect....

Any help would be appreciated..

Thanks, in advance, Roger.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to