[opencms-dev] using A_CmsListDialog, where is all the JavaScript?
Michael Moossen
m.moossen at alkacon.com
Wed Aug 10 17:31:20 CEST 2005
Hi, Alexander!
> Indeed i'm displaying the dialog as you indicate in your response, and it
> displays and pulls my data correctly, but none of the actions work... It can
> be related to the fact that the parts to display the help are missing...
> Because, when i click on, let's say the "delete" icon, i get the confirmation
> dialog with the right text, however, when i click OK, a JavasCript error is
> generated, complaining that "hMH" is not defined, which is the same error
> that i get when i mouse over many of the action icons.
ok, i understand the problem:
you have to call the page with the parameter style=new
the point is that there are a lot of older dialogs (but no list dialog) used in
the new administration framework, and this parameter controls the included
style sheets, js, and other stuff.
the best fix for that is to always set this magical parameter somewhere in the
A_CmsListDialog class.
> My hope is that i can reuse all this GUI tools and that at one pont it will
> take me less time to make UI using them than with no framework... You think
> this is possible?
that is the idea, but your are the first one trying it out! so as said before
give us your feedback.
--
Regards
Michael Moossen
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
Quoting Alexander Wallace <aw at avatartechnology.com>:
> Hi! I'm sooo glad to see this response.... My intention is to figure out how
>
> to creat GUIs inside of opencms for administration of custom features (app
> specific features).... So, if i'm able to figure it all out, we will
> certainly use CmsDialog and its peers a lot.
>
> Indeed i'm displaying the dialog as you indicate in your response, and it
> displays and pulls my data correctly, but none of the actions work... It can
>
> be related to the fact that the parts to display the help are missing...
> Because, when i click on, let's say the "delete" icon, i get the confirmation
>
> dialog with the right text, however, when i click OK, a JavasCript error is
> generated, complaining that "hMH" is not defined, which is the same error
> that i get when i mouse over many of the action icons.
>
> As a quick hack to see if i could get that JS in, i created a frameset like
> the ones used in the Administration area (ie: accounts), and tho i get the
> Admin menu, and it's own help works, my dialog still has the same issues...
>
> I'll try to figure out where/what is doing that for the admin menu and not
> for
> my dialog, but if you have suggestions, that would be wonderful...
>
> My hope is that i can reuse all this GUI tools and that at one pont it will
> take me less time to make UI using them than with no framework... You think
> this is possible?
>
> Thanks!
> On Wednesday 10 August 2005 02:38 am, Michael Moossen wrote:
> > Hi, Alexander!
> >
> > i am glad to hear somebody is using it :)
> > please do not hesitate to send feedback: comments, suggestions,
> requirements!
> >
> > if you use the A_CmsListDialog class for writing your own dialog, for
> instance
> > MyListDialog, your JSP page should look just like:
> > <%@ page import="my.package.MyListDialog" %>
> > <%
> > MyListDialog wp = new MyListDialog(pageContext, request, response);
> > wp.displayDialog();
> > %>
> > this will call the CmsHtmlList.getJs(Locale) method, which includes the
> needed
> > js code, for the list.
> > but there is also aditional js code from the admin framework, for instance
>
> for
> > handling helptext which is included by the
> CmsToolDialog.pageHtmlStyle(int,
> > String, String) method.
> >
> > hth
> > --
> > Regards
> > Michael Moossen
> > Alkacon SOftware GmbH - The OpenCms Experts
> >
> > http://www.alkacon.com
> >
> >
> >
> > Quoting Alexander Wallace <aw at avatartechnology.com>:
> >
> > > Hi there... I'm starting to use the widget classes to write my own UI
> inside
> > >
> > > of opencms workspace... I have a list being built and filled up
> succesfully,
> > >
> > > but it dependes on several javascript functions a for mouse over and list
>
> > > actions... Can someone give me a hint as to how to make my UI classes
> include
> > >
> > > or cause those to be included, or any other way to get those functions?
> > >
> > > Thanks!
> > >
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list
> > > To change your list options, or to unsubscribe from the list, please
> visit
> > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >
> >
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the opencms-dev
mailing list