I just remembered that I had this issue, too, when I migrated from Mojarra to MyFaces. My quick/easy fix was to use TextPad, search all *.xhtml files in my project for h:outputLabel, and replce with h:outputText. I don't use outputLabel, i add label to my PrimeFaces UI components, as/when necessary.
On Fri, Mar 28, 2014 at 8:26 AM, Felipe Jaekel <fkjae...@gmail.com> wrote: > I'm migrating from Mojarra to MyFaces, so there lots of labels with missing > for attribute. I can't refactor everything now, so I'd like to disable > debug at least in production, because it's polluting my server log files. > > I'll attach my web.xml (project stage is configured in the global web.xml > from tomcat, but I also tested locally to make sure) > > Thanks > > <?xml version="1.0" encoding="UTF-8"?> > <web-app > version="3.0" > xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" > > > <display-name>Área do Cliente</display-name> > > <!-- Corrige exibição de 3 horas a mais ao usar f:convertDateTime --> > <context-param> > > <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name> > <param-value>true</param-value> > </context-param> > <context-param> > <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name> > <param-value>true</param-value> > </context-param> > <!-- PrimeFaces --> > <context-param> > <param-name>primefaces.SUBMIT</param-name> > <param-value>partial</param-value> > </context-param> > <context-param> > <param-name>primefaces.THEME</param-name> > <param-value>redmond</param-value> > </context-param> > <context-param> > <param-name>primefaces.UPLOADER</param-name> > <param-value>commons</param-value> > </context-param> > <!-- MyFaces --> > <context-param> > <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name> > <param-value>false</param-value> > </context-param> > <context-param> > <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name> > <param-value>false</param-value> > </context-param> > <context-param> > <param-name>org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL</param-name> > <param-value>false</param-value> > </context-param> > <context-param> > <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name> > <param-value>org.apache.el.ExpressionFactoryImpl</param-value> > </context-param> > <filter> > <filter-name>PrimeFaces FileUpload Filter</filter-name> > <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class> > <init-param> > <param-name>thresholdSize</param-name> > <param-value>1048576</param-value> > </init-param> > </filter> > <filter-mapping> > <filter-name>PrimeFaces FileUpload Filter</filter-name> > <servlet-name>facesServlet</servlet-name> > </filter-mapping> > <listener> > > <listener-class>br.com.spdata.persistence.FirebirdListener</listener-class> > </listener> > <servlet> > <servlet-name>facesServlet</servlet-name> > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>facesServlet</servlet-name> > <url-pattern>*.jsf</url-pattern> > </servlet-mapping> > <session-config> > <session-timeout>15</session-timeout> > </session-config> > <welcome-file-list> > <welcome-file>page/comunicados.jsf</welcome-file> > </welcome-file-list> > <error-page> > <exception-type>java.lang.Throwable</exception-type> > <location>/template/error.jsf</location> > </error-page> > <error-page> > <error-code>404</error-code> > <location>/template/notFound.jsf</location> > </error-page> > > <security-constraint> > <display-name>Restrict raw XHTML Documents</display-name> > <web-resource-collection> > <web-resource-name>XHTML</web-resource-name> > <url-pattern>*.xhtml</url-pattern> > </web-resource-collection> > <auth-constraint /> > </security-constraint> > </web-app> > > > > 2014-03-27 18:43 GMT-03:00 Karl Kildén <karl.kil...@gmail.com>: > > > Hrmm this is the debug logging from development mode right? You are > > supposed to fix the problems and not change the logging properties. The > > logging is very useful for development. > > > > Paste web.xml contents. > > > > > > > > > > > > > > On 27 March 2014 22:04, Felipe Jaekel <fkjae...@gmail.com> wrote: > > > > > I'd like to disable label warnings like this: Advertência: Attribute > > 'for' > > > of label component with id form:j_id_8n is not defined > > > > > > Searching google I saw some mentioning that changing the project stage > to > > > production would solve. Others mentioned that creating a > > logging.properties > > > file with > > org.apache.myfaces.shared.renderkit.html.HtmlLabelRenderer.level > > > = SEVERE would do the trick. > > > > > > I tried both without success. > > > > > > Any ideas? > > > > > > Thanks > > > > > >