This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
public void setMultiview(PageFlowElement multiview) {
this.multiviewRef = new WeakReference<PageFlowElement>(multiview);
}
* @author Petr Pisl
*/
public class JSFConfigComponentFactoryImpl implements JSFConfigComponentFactory {
private static final Logger LOGGER = Logger.getLogger(JSFConfigComponentFactoryImpl.class.getName());
private final JSFConfigModelImpl model;
public static boolean areSameQName(JSFConfigQNames jsfqname,Element element) {
QName qname = AbstractDocumentComponent.getQName(element);
boolean aresame = false;
if (JSFConfigQNames.JSF_1_2_NS.equals(element.getNamespaceURI())){
JSFVersion version = JSFVersion.JSF_1_1;
return jsfqname.getQName(JSFVersion.JSF_1_2).equals(qname);
if (element.getNamespaceURI() != null && element.getNamespaceURI().length()>0)
version = JSFVersion.JSF_1_2;
if (element.getNamespaceURI() != null){
aresame = jsfqname.getQName(version).equals(qname);
} else {
aresame = jsfqname.getLocalName().equals(qname.getLocalPart());
return aresame;
return jsfqname.getLocalName().equals(qname.getLocalPart());
public static class CreateVisitor extends JSFConfigVisitor.Default {
public JSFVersion getVersion() {
String namespaceURI = getRootComponent().getPeer().getNamespaceURI();
if (namespaceURI != null){
if (JSFConfigQNames.JSF_1_2_NS.equals(namespaceURI)){
return version;
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
</faces-config>
<faces-config>
<faces-config version="1.2"
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-facesconfig_1_2.xsd">