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.

Bug 208757 - PrimeFaces taglib is not defined in 7.1 but was defined in 7.0.1 in default index.xhtml
Summary: PrimeFaces taglib is not defined in 7.1 but was defined in 7.0.1 in default i...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-22 15:04 UTC by Masaki Katakai
Modified: 2012-03-26 09:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2012-02-22 15:04:07 UTC
primefaces taglib is not included in default index.xhtml by default
in NetBeans 7.1 but it was included in NetBeans 7.0.1. Is this correct behavior?

It's nice if the taglib is included by default when primefaces is added.

Here is the default index.xhtml when creating Java Web Project
with JSF and PrimeFaces on NetBeans 7.1. There is no primefaces taglib defined.
Is this correct?

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        Hello from Facelets
    </h:body>
</html>

Because when I tried the same operation on NetBeans 7.0.1,
the default index.html is below, including xmlns:p="http://primefaces.prime.com.tr/ui".

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form><p:commandButton value="Hello from PrimeFaces" onclick="dlg1.show();" type="button" /><p:dialog header="PrimeFaces Dialog" widgetVar="dlg1" width="500">For more information visit <a href="http://primefaces.org">http://primefaces.org</a>.</p:dialog></h:form>
    </h:body>
</html>
Comment 1 Martin Fousek 2012-02-22 15:23:53 UTC
Thanks for your point Masaki. It's really correct behavior since NB 7.1. Your primefaces library should be added to your project's classpath just the welcome index page doesn't look as before.

There is problem that you can check more JSF component libraries at once so which page should be generated then? Probably then has to be chosen somehow "randomly" one of them. 

Keeping opened and let see if there will be time for doing that into NB72.
Comment 2 Masaki Katakai 2012-02-23 04:46:01 UTC
Thank you very much Martin for the confirmation!
Comment 3 Martin Fousek 2012-03-26 09:51:12 UTC
Fixed in web-main #f5f28c6c5065.