Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Reuse the backend #22

Open
decebals opened this issue Jan 17, 2021 · 2 comments
Open

[Question] Reuse the backend #22

decebals opened this issue Jan 17, 2021 · 2 comments

Comments

@decebals
Copy link
Owner

In one of my web project I need a small support for a pivot.
The application is built using Pippo micro web framework (not Wicket). I was wondering if it's not possible (and simple) to reuse the Java backend from wicket-pivot and do the UI part in something else (Pippo, Angular, React, ...).
The proposed solution is to move some classes and interfaces in a new Maven module (pivot or something better). It's just an idea, nothing else.

@rototor
Copy link
Collaborator

rototor commented Jan 18, 2021

Yes, that would make sense. I would suggest the following:

  • One module with the pure data model
  • One module with the current wicket stuff
  • One module exposing the data model as service via a Rest API (i.e. with matching javax.ws.rs annotations)

And maybe a small example (using what every JS framework you want) to provide a sample UI for the data model exposed via Rest.

From my POV you could do that in master. I can care for the wicket UI. (I also could make such a Rest service, I did this already several times for some projects; I just don't have time for that at the moment)

An other way would be to create a new project (decebals/pivot) and move only the data model and Rest API module into that project. I would then change the wicket-pivot to use the decebals/pivot module. I think this would be even cleaner.

@decebals
Copy link
Owner Author

An other way would be to create a new project (decebals/pivot) and move only the data model and Rest API module into that project. I would then change the wicket-pivot to use the decebals/pivot module. I think this would be even cleaner.

I like this approach. It's less intrusive (no need to modify wicket-pivot for a while). if I decide (the client wants such a component in the application), I will start the work and let you know when I have something functional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants