Hi!
I was wondering if there is a way to mix together Vaadin with a stone-age JSP for things like Portlet setup (Edit mode) and Portlet rendering (View mode). As for setup complex GUI, Vaadin just rules, however in many cases a View (presentation) is much faster to make in a simple JSP, since usually it requires very minimal effort without this really painful route developing own custom GWT widgets. In fact, 95% of usual Web things in Portal you want them custom and wrapped in some graphical beautification, which is just that easy with JSP, unlike GWT. On the other hand, messing around with a plain JSP on GUI part is really pain in a butt. So therefore such a combination would really blow. Here what I am thinking:
+-------------+
| Portlet 2.0 |
+------+------+
|
|
+----------+----------+
| |
| |
+---+---+ +---+---+
| View | | Edit |
+---+---+ +---+---+
| |
| |
+---+---+ +-------+-------+
| JSP | | Vaadin and Co |
+-+---+-+ +-----+---+-----+
| \ / |
| \ +-------+ / |
| \ | RDBMS | / |
| \-+ Data +-/ |
| | Base | |
| +-------+ |
| |
+------------+------------+
|
|
+-------+-------+
| Presentation |
+---------------+
For example, I want some jQuery javascript on top of few HTML elements that are rendered from the database. This can be done just like this per few moments and there is no any problems with cross-browser stuff, since jQuery takes care of it.
The only way I found so far
(the very-very ugly way)
is to use Embedded object as an iframe (an evil thing). Basically, it is as same as diagram above, just wrapped with the Vaadin and not really runs within a context, but on its own. Thus can be just anything: external URL etc. While it can be standalone JSP/whatever page, still it can not be a portlet, since it should run within the whole page at once.
Maybe there is a way to mix these stuff together, where on View part I can hook up a regular JSP with a regular Generic Portlet, and on Edit I can use Vaadin included? So far I’ve managed this by making two separate portlets: one is for administering things (Vaadin-based) another is plain JSP to view stuff. Vaadin-based shows nothing when no configuration required (Administrator or appropriate role detected) or shows a little button to call pop-up for editing. That works perfect, but just… two separate portlets to maintain and support and one is usually hidden, but still hammers a database to check what to do.
Any ideas how to combine all together? — that would be great! The reason is that when developing a portlets (these are essentially a complete little applications), then mainly you rarely (<5%) do them reusable by themselves, but a developing a complete entity that is reusable within a portal context (95%>). I think ability JSP + Vaadin would save lot of time, when you need GUI for setup, but need manual JSP on presentation, where you do the thing only for the specific particular portlet, like let’s say, a photo gallery or some slideshow etc — then you just add the application in the portal, but you don’t really make another portlet out of this one.
P.S.
Speaking with tongue-in-cheek:
the whole vaadin.com (except demo sampler) is a primary evidence of what I am saying probably does make a little sense?..