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 181024 - JSF Pages from Entity Classes wizard - errors when requesting 'Create' pages
Summary: JSF Pages from Entity Classes wizard - errors when requesting 'Create' pages
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-22 01:52 UTC by Troy Giunipero
Modified: 2010-03-16 05:19 UTC (History)
2 users (show)

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 Troy Giunipero 2010-02-22 01:52:48 UTC
<http://netbeans.org/kb/docs/web/jsf20-crud.html>

Tutorial feedback has indicated that the project runs into the following 2 errors when user tries to perform the following actions in a browser:

 * client > create

   javax.faces.view.facelets.FaceletException: Error Parsing /client/Create.xhtml: Error Traced[line: 10] Element type "ui:define" must be followed by either attribute specifications, ">" or "/>".


 * project > create

   java.lang.IllegalArgumentException: projectPK.projectName


The tutorial project uses template code from the 'JSF Pages from Entity Classes wizard'.

To reproduce:

 MySQL database:  http://kenai.com/projects/consultingagencysol/downloads/download/base/mysql-consult.zip

 NetBeans project:  http://kenai.com/projects/netbeans-samples/downloads/download/Samples%252FWeb%252FConsultingAgencyJSF20.zip
Comment 1 Alexey Butenko 2010-02-24 05:27:08 UTC
Tried to reproduce, but stuck on step create JFS pages from entity classes,  there is no entity classes present in the wizard. reassigning to persistence
Comment 2 Sergey Petrov 2010-02-24 05:36:21 UTC
is it mac os X specific issue?
Comment 3 Alexey Butenko 2010-02-24 05:44:02 UTC
I don't think so
Comment 4 Sergey Petrov 2010-03-15 11:57:26 UTC
I can't reproduce first issue, it may be related to changes to template done by user or more details are required.
But I can reproduce second one with Client and Project, it may be something related to composite primary keys support in generated pages.
Comment 5 Sergey Petrov 2010-03-15 13:00:42 UTC
create page are shown for client/project in case of jsp pages and throw exception in case of facelets
Comment 6 Sergey Petrov 2010-03-15 13:29:25 UTC
the issue is related to usage of '.' in id in facelets, if I replace '.' with '_' page will be shown.
Comment 7 Sergey Petrov 2010-03-15 13:58:35 UTC
http://hg.netbeans.org/web-main/rev/c5f2bf5bb205

second part should be fixed now, feel free to add details if first one is still valid
Comment 8 Quality Engineering 2010-03-16 05:19:51 UTC
Integrated into 'main-golden', will be available in build *201003160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c5f2bf5bb205
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: fix #181024 - replace '.' with '_' in fiels ids in create/edit pages