Wicket vs Vaadin

后端 未结 6 1007
庸人自扰
庸人自扰 2021-01-30 12:56

I am torn between Wicket and Vaadin. I am starting a micro-isv and need to make a choice of web framework. I have narrowed down my choices to Wicket and Vaadin. I have used both

相关标签:
6条回答
  • 2021-01-30 13:21

    (continued from the comment in the first Wicket-related answer)

    The major difference between Vaadin and Wicket is with how UI composition and client side code is written. With Vaadin you usually compose your UI without any templates or HTML at all and you get a sleek, fully Ajax'ed UI out of the box. However, if you prefer the templating approach just use CustomLayout which does exactly that.

    Client side coding is rarely needed, but when it is you do it with the Java-based GWT which is IMO a lot more nicer than writing Javascript by hand. Besides, with GWT you automatically get cross-browser compliant solution instead of having to deal with those issues yourself.

    When comparing frameworks you also should take a look at community activity and documentation. With Vaadin both of those are excellent. Also note the Vaadin Directory which currently contains 100+ very useful UI components and other addons.

    0 讨论(0)
  • 2021-01-30 13:21

    I am currently working with Wicket and I have worked in the pass with Vaadin. I wil be short in my observations:

    • Vaadin is entitled to be free but IMO, is not so beautiful like that. If you need support, help, documentation for that painful and tricky problems that you encounter, then you are screwed because you do not have so good documentation/community when compared with Apache Wicket. Vaadin have guys to help you, but you have to pay for it.;
    • To program in wicket you need to be a strong programmer. Vaadin also requires good Java knowledge but you can easily do some spaghetti code if you want (just saying, not doing..);
    • Apache Wicket really separate the web technologies (Javascript, HTML, etc.) from the framework technology (Java). Vaadin also try to do it, but IMO is not so elegant and transparent on that.

    Appart from that, we are talking about two different types of frameworks, two different approach, which have pros and cons that I advice you to search and compare and see what really fits your needs.

    Edit: Oh, and about the look and feel, for instance you always have Wicket Bootstrap

    0 讨论(0)
  • 2021-01-30 13:32

    I think I've invested some time for both frameworks. I really like both because they bring the Swing-alike coding to web development. And I don't know easier ones for me (although there is click but I don't like the velocity templating thing)

    And yes, there are differences.

    I wont have to worry much about the look and feel.It comes with nice themes

    true, but every serious company will style its app differently (unless you are prototyping)

    I will do all my programming in java which am very good at and wont have to spend time hacking css which am not very good at

    Then Vaadin would be 'better'.

    i will loose the ability to create UI declaratively.

    What are the advantages of that? (BTW: you could code declarative in groovy ;-))

    But ok. I know what you mean: if you can effort a separate designers than wicket is 'better'.

    i can hardly give them a desktop look and feel.

    Why not? Or what do you mean here? Wicket supports ajax and there are components which supports nice 'desktop-alike' things (ajaxlink, lazycomponent, autocompletion, progressbar, see wicket stuff + extensions). ok, for any more complex component you'll have to code in javascript BUT BTW did you know that you could even use GWT within wicket

    Some minor experiences:

    Vaadin is surely faster while coding (no css, html stuff). But if you go production keep in mind that the ease of programming can come to the cost of performance on the client side: e.g. if you use the 'wrong' layouts such as Horizontal/VerticalLayout, ... the massive use of javascript could slow down old browser.

    But Vaadin is not slow! Use appropriate layouts such as CssLayout or FastLayout and also old browser can serve it. (Although if you would use CssLayout your coding-style is really wicket-alike.)

    One issue with Vaadin is that it is a bit harder to profile, because you don't see easily where the client needs all the CPU and the nested divs gets cryptic id-names.

    One great thing about Wicket is its warp persist integration

    (Guice can be integrated in Vaadin and Wicket)

    Testing the UI should be easy with Vaadin (although I didn't found unit testing stuff) and is very easy with wicket.

    Last but not least creating lists/tables is VERY easy in Vaadin compared to wicket.

    0 讨论(0)
  • 2021-01-30 13:33

    Also do notice that even though Vaadin base framework is free, for some additional functionality you might need to buy extensions.

    Ex - If you need to integrate a good charting solution such as Highcharts, you'd have to pay and buy the vaadin charts extension (even though highcharts is available free for FOSS apps, the vaadin charts plugin built on that is not given free for FOSS apps).

    0 讨论(0)
  • 2021-01-30 13:37

    I have a limited amount of experience with each but I prefer Vaadin. It allowed a richer experience with the web application I was developing. The main benefit that sold us though was how easy it was to write unit tests around our UI classes, ensuring the components functioned correctly when interacted with in the expected ways. This is also possible with Wicket however it was more difficult in my experience.

    I will also mention that either framework will require some styling. Wicket starts off as plain old HTML and Vaadin starts off with a MacOSX-like theme by default but almost any web-app you write will require at least SOME customization. With this in mind, customizing the CSS of a Wicket app is SIGNIFICANTLY easier than Vaadin for the simple reason that you control the markup. Vaadin hides the markup from you and generates elements with weird IDs and structures so it is harder to customize the look. Just remember this when making your decision.

    0 讨论(0)
  • 2021-01-30 13:43

    I've worked extensively with Wicket but I've not had any experience with Vaadin so this might be (a little) biased.

    I'd recommend Wicket for obvious reasons, but what's probably of interest to you is Wickets openness. As Gweebz rightly pointed out, Wicket uses basic HTML markup as its foundation, so any structural or cosmetic changes are often trivial to implement.

    Personally one of the things I really enjoy about out wicket work is the flow between front end presentation and the data backend, we've implemented Spring & JPA/Hibernate which means that any changes in the front end can be translated back into the data base with a single line of code thanks to Wickets model based architecture.

    Again I can't say much for Vaadin having never worked with it, but if you're looking for architectures to start off with, I'd also recommend you have a look at GWT.

    0 讨论(0)
提交回复
热议问题