Opa..
Hoje meu código estava funcionando perfeitamente no IE e no Chrome, porém no firefox tive o erro:
myDiv is not defined
Meu código javascript estava assim:
myDiv.style.display = 'none';
Alterei para:
document.getElementById('myDiv').style.display = 'none';
E então funcionou em todos os browsers!
Abraaço!
Adriano Schmidt
sexta-feira, 13 de abril de 2012
quarta-feira, 4 de abril de 2012
Attribute name "checked" associated with an element type "input" must be followed by the ' = ' character.
Olá,
Em um projeto com JSF2 ao usar o atributo checked dessa forma:
<input type="radio" name="cc" onclick="test1(0); test2(0);" checked> <h:outputLabel value="#{i18n.test}"/> </input>
eu tive o seguinte erro:
08:49:06,576 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/localhost8080].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.faces.view.facelets.FaceletException: Error Parsing /resources/localhost8080/TestFormComponent.xhtml: Error Traced[line: 138] Attribute name "checked" associated with an element type "input" must be followed by the ' = ' character.
at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:387) [:2.0.2-FCS]
at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:361) [:2.0.2-FCS]
at com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:117) [:2.0.2-FCS]
at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:331) [:2.0.2-FCS]
para resolver usei checked="checked":
<input type="radio" name="cc" onclick="test1(0); test2(0);" checked="checked"> <h:outputLabel value="#{i18n.test}"/> </input>
Simples assim : )
Abraços!
Adriano Schmidt
Em um projeto com JSF2 ao usar o atributo checked dessa forma:
<input type="radio" name="cc" onclick="test1(0); test2(0);" checked> <h:outputLabel value="#{i18n.test}"/> </input>
eu tive o seguinte erro:
08:49:06,576 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/localhost8080].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.faces.view.facelets.FaceletException: Error Parsing /resources/localhost8080/TestFormComponent.xhtml: Error Traced[line: 138] Attribute name "checked" associated with an element type "input" must be followed by the ' = ' character.
at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:387) [:2.0.2-FCS]
at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:361) [:2.0.2-FCS]
at com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:117) [:2.0.2-FCS]
at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:331) [:2.0.2-FCS]
para resolver usei checked="checked":
<input type="radio" name="cc" onclick="test1(0); test2(0);" checked="checked"> <h:outputLabel value="#{i18n.test}"/> </input>
Simples assim : )
Abraços!
Adriano Schmidt
Assinar:
Postagens (Atom)