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>
Roland Haeder [Tue, 25 Aug 2015 16:10:50 +0000 (18:10 +0200)]
Added path for sources (relative). You need to have jsfcore cloned there to have this working. Else you may accidentally commit your path and then it may get silently merged.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 09:49:47 +0000 (11:49 +0200)]
Converted private constructor to public init() method with context, still this cannot be converted to a bean as the context is somehow needed. :-(
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 09:49:47 +0000 (11:49 +0200)]
Converted private constructor to public init() method with context, still this cannot be converted to a bean as the context is somehow needed. :-(
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 22 Aug 2015 11:25:31 +0000 (13:25 +0200)]
The item bean must go into request scope, else all added items have same amount + began to cleanup rudimentary JSPs for a basket-based approach
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 20 Aug 2015 12:26:09 +0000 (14:26 +0200)]
update jcore.jar ... Yes, maybe a lot more updates now. This way the application is independent from latest jcore updates, means it is decentralized. If you add jcore as a project dependency, the application becomes directly depending on latest changes in jcore which centralizes it.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 15:38:31 +0000 (17:38 +0200)]
Some fixes:
- fixes for `updated` column as MariaDB doesn't seem to like ON UPDATE CURRENT_TIMESTAMP on one column *and* DEFAULT CURRENT_TIMESTAMP on other column in same table
- Again some properties fixed
- updated 'jcore.jar'
Roland Haeder [Wed, 19 Aug 2015 10:00:14 +0000 (12:00 +0200)]
Changed field 'surname' to 'firstName' as surname is an other word for family name + updated 'jcore.lib'
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 18 Aug 2015 13:22:35 +0000 (15:22 +0200)]
Continued with project:
- added filter for handling added basket items
- added frontend class for baskets (not their items) as they may be stored in database for later reusage
- Renamed "FooHttpFilter" to "FooServletFilter" as they actually are servlet filters
- Other minor improvements
- BaseServletFilter is now abstract and implements Filter, so all filters extendending (and re-implementing Filter) must implement at least doFilter(). Please call chain.doFilter() in your own filter
Signed-off-by:Roland Häder <roland@mxchange.org>