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 78210 - Generate JSF pages from entities does not use the JSP template
Summary: Generate JSF pages from entities does not use the JSP template
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker with 2 votes (vote)
Assignee: Matthew Bohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-17 19:50 UTC by _ gsporar
Modified: 2010-06-24 10:57 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gsporar 2006-06-17 19:50:13 UTC
When I create JSF from entity beans the generated .jsp files are not based on
the JSP template that is available from Tools > Template Manager.  This is a
pretty significant bummer because it makes it hard for me to specify things like
style sheets, etc.  The workaround is to hand-edit each generated page which can
get time consuming if the number of entities is large.

If this is not supposed to be working yet, then please change this IZ to an RFE.
Comment 1 Pavel Buzek 2006-06-18 00:00:43 UTC
Greg, using *a* template is a good idea, but I am not sure the JSP template is
the right one to use. This template has content in it: comments, commented
taglib declaration, sample JSTL code -- none of that makes much sense for the
generated pages. I think I would need to create a different template, ideally it
would have markers for places where the generator will put its code.

But then, in the bigger picture, I would be reinventing the wheel. There are
existing templating frameworks and it would be better to use them bcs as soon as
I create the template you will be asking for more features for templating :-).
Facelets would be my first choice, if only we could get facelets support into
netxt release.
Comment 2 _ ludo 2006-06-18 13:46:02 UTC
Doesn't that indicate we need to generate a simple CSS for this?
I guess this is why Greg is trying to add by hand...
Comment 3 Matthew Bohm 2008-09-05 20:05:54 UTC
By the way, the entity2jsf wizard does generate a simple css now.
Comment 4 Alexey Butenko 2010-06-24 10:57:27 UTC
JSF pages from entity use facelet template and css styles, so I consider this as fixed.
But if you are not happy with the current situation, feel free to fill new Enhancement with details.