I have implemented next event date calculation (business logic) and event creation cycle in the Presenter class (CalendarEventPresenter.java).
During implementing next event date calculation I’ve discovered that GWT (the client part) does not support using standard java.util.Calendar package.
So I've implemented next date calculation without java.util.Calendar for repetitive Daily events.
I see that for Weekly and Yearly events it is possible to use the same way but calculation will be more complex (due to ‘manual’ calculation and not using possibilities of java.util.Calendar).
It seems to me that using GWT (the client part) for next event date calculation (business logic) is not quite correct from the point of view of application architecture.
So my question to Sigmah architect\developers is:
Is it correct - to implement the calculation of the days of recurring events on the GWT frontend (in CalendarEventPresenter) or maybe it would be better to move the calculation to the application backend - in class PersonalEventService?