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
Roland Haeder [Fri, 28 Aug 2015 20:53:12 +0000 (22:53 +0200)]
Removed already no longer used methods and cleared some which you should really not use (old way of handling orders) + fixed some packages
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 28 Aug 2015 20:07:27 +0000 (22:07 +0200)]
Refacturing:
- introduced new sub-project "jshop" which will be a generic shop library for
JSF-based web applications.
- therefore a lot has been moved to there and new packages needs to be set.
Roland Haeder [Fri, 28 Aug 2015 09:16:36 +0000 (11:16 +0200)]
Migration to JSF continued:
- used lesser scriptlets where possible, e.g.:
- <%=request.getContextPath()%> can be converted to ${pageContext.request.contextPath}
- after that, set it with <c:set var="basePath" value="${pageContext....}" />
- then you can use it: ${basePath}
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 21:52:56 +0000 (23:52 +0200)]
Continued with project:
- added method getProduct()
- added method getLast()
- added method getAll() (again?)
- Used BasketBean instead of Basket
- Yepp, JSPs don't support @Inject and @PostConstruct ... :-(
- added getLastNumRows() which deligates this call to jcore's method
- implemented MiniBasketTag (a bit broken)
- added missing language resourced
- updated jcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 19:05:37 +0000 (21:05 +0200)]
Continued with project:
- started to refacture all JSPs towards JSFs
- this requires a lot to be rewritten
- moved some classes to better location
- deleted some old JSPs
- moved constants from FooBarConstants class to proper interface
- removed above mentioned classes
- added interface BasketTag
- updated jcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 12:39:32 +0000 (14:39 +0200)]
Continued with project:
- Had to renamed id -> itemId and categoryId accordingly to allow databased- baskets
- Implemented almost all methods in basket database frontend class
- Added constants class for above frontend
- Updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 08:24:20 +0000 (10:24 +0200)]
Rewrote item handling in BaseBasket to a database approach:
- added method addItem() for adding items, please make sure to call ...
- added method isItemAdded() which checks if the given item is found by its id number
- added method getItem() to get an item from given Product instance
Signed-off-by:Roland Häder <roland@mxchange.org>