Roland Haeder [Mon, 7 Sep 2015 18:51:39 +0000 (20:51 +0200)]
Continued:
- updated jcore.jar, jcoreee.jar, jshop-core.jar jshop-ee-lib.jar
- got rid of some things that don't work in EJB container ... :-(
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 7 Sep 2015 14:26:23 +0000 (16:26 +0200)]
updated jcore.jar + jcoreee.jar + jshop-core.jar + jshop-ee-lib.jar and removed jshop-ejb.jar as this would be CDI.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 7 Sep 2015 13:31:03 +0000 (15:31 +0200)]
Well, if that is EJB, it sucks somehow: Logging not allowed and a complexer class structure leaves strange errors behind:
----------------------------------------
Caused by: java.lang.NoClassDefFoundError: [Lorg/mxchange/jcore/model/contact/gender/Gender;
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
at java.lang.Class.privateGetPublicMethods(Class.java:2690)
at java.lang.Class.getMethods(Class.java:1467)
at org.glassfish.ejb.deployment.descriptor.EjbDescriptor.addAllInterfaceMethodsIn(EjbDescriptor.java:2577)
at org.glassfish.ejb.deployment.descriptor.EjbDescriptor.getLocalRemoteBusinessMethodDescriptors(EjbDescriptor.java:2530)
... 53 more
Caused by: java.lang.ClassNotFoundException: org.mxchange.jcore.model.contact.gender.Gender
----------------------------------------
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 5 Sep 2015 13:51:44 +0000 (15:51 +0200)]
Continued a bit:
- renamed getGenders() to allGenders()
- tried to get initial context and lookup bean
- the EJB methods allGenders() and selectableGenders() may now work?
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 4 Sep 2015 18:31:38 +0000 (20:31 +0200)]
Renamed methods and instance and used Customer interface, so the bean doesn't "see" it is actually a Contact
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 4 Sep 2015 17:05:11 +0000 (19:05 +0200)]
More cleanups + redirected source code locations to relative positions. You have to clone my project the same way to have this working without changing anything!
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 3 Sep 2015 11:38:58 +0000 (13:38 +0200)]
Refacturing towards JSF/EJB:
- renamed and prepared JSPs to XHTML (JSF)
- updated jcore, jsfcore and jshop
- added own validator for privacy/terms checkboxes
- still the "mini basket" is not functional yet, maybe it will come as a template?
- introduced guest_base.tpl for all "guest" pages
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 2 Sep 2015 17:36:32 +0000 (19:36 +0200)]
Refacturing:
- continue to throw all exceptions from PizzaServiceApplication to let the outer class handle them
- this allows more flexibility than before, e.g. a Swing application doesn't need to handle ServletException then, but can handle the exceptions by itself.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 2 Sep 2015 13:24:53 +0000 (15:24 +0200)]
jshop now no longer provides the BasketBean instance in BaseFrameworkBean class + changed links to <h:link />
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 2 Sep 2015 07:51:07 +0000 (09:51 +0200)]
Continued with project:
- converted single tables per row into one table with header and body
- added column for showing total price for item (price * amount)
- added mime-type for tpl extension
- renamed CSS id to make it more clear
- updated jshop.jar
NOTE: Please note that this change won't fully work as the product instance needs to be set in item instance now (see jshop.jar, method calculateTotalPrice())
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 1 Sep 2015 13:26:42 +0000 (15:26 +0200)]
Refacturing towards JSF:
- Well, this sucks a bit: getAvailableProducts() needs to return something that is Collection and not Iterator (which worked in JSP)
- Added initial index.xhtml and CSS layout for upcoming rewrite (origin: NetBeans)
- updated jcore/jshop
Roland Haeder [Mon, 31 Aug 2015 13:13:05 +0000 (15:13 +0200)]
Continued with project:
- Cleaned up duplicated defined methods in interface
- Used ServletRequest and ServletResponse instead of Http varriants (casting was required)
- Got rid of 2 parameters for doAdminHandleFooForms() methods
- Got rid of HttpServletRequest/-Response interfaces, used Http-less varriant
- No need to set basket in admin category.jsp
- updated jshop.jar