[opencms-dev] iframe-base custom widgets ....
Ruben Malchow
ruben at disk0.de
Sun Dec 6 01:53:07 CET 2009
hi,
with the widgets available, i have always had a somewhat tense
relationship. it is very hard to implement something really nice with
that. and html code in classes is the only big thing i hate about
opencms. for example, somewhat more complicated chosers are a pain in
the butt to implement.
now ... i am attaching a little snippet that would give you an
iframe-based choser. of course, the jsp (or even the HTML page) will not
have all the context that the getDialogWidget method has, but for many
things, it should be enough.
using this, it is possible to implement custom widgets using only jsp
code. a proper, let's say "IFrameWidget" class could have enough
configuration options to accomodate plenty of the everyday problems.
actually, this mightbe extended to provide an "edit" and a "display"
mode, this should be easy to implement.
any thoughts on this?
.rm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: iframechoser.txt
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20091206/da4b7765/attachment.txt>
More information about the opencms-dev
mailing list