2 Replies Latest reply on Jul 20, 2011 3:42 AM by lfryc

    JBoss AS 7, web.xml and context-params

    atgnatus

      The JBoss 7 Quick Starts (excellent, BTW) mention that a web.xml is not needed.  Is there a new way to set context-params? Or, would you create a web.xml with only the context params?

       

      I'm trying to set the Richfaces skin. 

       

      <context-param>
          <param-name>org.richfaces.skin</param-name>
          <param-value>skin_name</param-value>
      </context-param>

        • 1. Re: JBoss AS 7, web.xml and context-params
          richyclarke

          I have this set in web.xml and it is still being picked up.

           

              <context-param>

                  <param-name>org.richfaces.skin</param-name>

                  <param-value>classic</param-value>

              </context-param>

           

          Not sure if it's the 'right' way but it works!!

          Rich

          1 of 1 people found this helpful
          • 2. Re: JBoss AS 7, web.xml and context-params
            lfryc

            Hi Chris, guide mentions that web.xml is not needed in case you do not have to override default settings (following convention-over-configuration).

             

            However you need to setup web.xml because you are changing default value.