[opencms-dev] using A_CmsListDialog, where is all the JavaScript?

Alexander Wallace aw at avatartechnology.com
Wed Aug 10 16:42:31 CEST 2005


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
> 



More information about the opencms-dev mailing list