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

Alexander Wallace aw at avatartechnology.com
Fri Aug 12 17:10:04 CEST 2005


Ok... I'll give up on my idea of using it in a different view... I will try to 
put it in the admin view and see if i get my group... Eventually it would be 
really so nice to be able to use all these from anywhere...

ty...

On Friday 12 August 2005 09:41 am, Michael Moossen wrote:
> Hi, Alexander!
> 
>  ufff... it is getting harder.
> 
> > Such label is obviously being added for me after the visit to the admin db 
> > tool. Which must put something in the session, maybe a workplace 
> > configuration object?
> as said in http://mail.opencms.org/pipermail/opencms-dev/2005q3/018781.html,
> there is a (one, and just one) tree of "tools" in the admin tool which is
> stored in the session, and also the last used tool. with this information 
there
> a lot of things that are generated automatically, like the breadcumb nav,
> title, subtools icons, and so on.
> since your page does not set a new current active path in this tool-tree, 
the
> last one is taken as the active one.
> (the key is not displayed correctly because you are not including the needed
> bundle overriding the CmsWorkplace#initMessages() method.)
> > U have any idea what i can do to change that and have my list's code 
executed
> > on those actions?
> the same think, if you clic anything on your dialog, you are redirected to 
the
> "active tool". (this is no longer the case in my local machine, but i will 
be
> able to check it in only after my holidays, the 1st september week)
> 
> ---
> if you are still trying to use this framework in another view, i am getting
> convinced that the core still needs lots of improvements to make the whole
> framework usable outside of the admin view.
> 
> if you are trying to add a tool to the administration view, just set the
> "admintoolhandler-class" property of your files/folders to
> "org.opencms.workplace.tools.CmsDefaultToolHandler".
> this will give your JSP a sample title, icon, group, helptext, etc.
> but be careful, if you have a file 
"/system/workplace/admin/mytools/mytool.jsp"
> and you set the "admintoolhandler-class" property just for the file and not 
for
> the property, the CmsDefaultToolHandler class will try to add a tool
> "/mytools/mytool", but since it has no tool registered for "/mytools", it 
will
> ignore it. so set the property at the folder and the file.
> 
> hth
> -- 
> Regards
> Michael Moossen
> Alkacon Software GmbH - The OpenCms Experts
> 
> http://www.alkacon.com
> 
> 
> 
> Quoting Alexander Wallace <aw at avatartechnology.com>:
> 
> > Hi Michael... Thanks for all the help...
> > 
> > Further playing with the list, i realized a strange behaviour, that you 
may
> > be 
> > able to explain... If before going to my list, i go to the admin area and 
> > click on any of the modules, then i go back to my list, the top of the 
form 
> > has now an "attempt" of the Title and description of the previous admin 
> > module i just visited.... I say an "attempt" because it shows the  result 
of
> > 
> > trying to display labels from a resource bundle that doesn't have the 
> > requested keys... Something like this:
> > 
> > Administration View > ??? GUI_DATABASE_ADMIN_TOOL_NAME_0 ???  
> > 
> > Such label is obviously being added for me after the visit to the admin db 
> > tool. Which must put something in the session, maybe a workplace 
> > configuration object?
> > 
> > Anyways, from that point on, any action to my list, redirects me to the 
last
> > 
> > visited admin tool, and it is actually the code in that previousle visited 
> > tool and its actionDialog() method that get executed.
> > 
> > U have any idea what i can do to change that and have my list's code 
executed
> > 
> > on those actions?
> > 
> > I hope you can help me... Thanks!
> > 
> > On Thursday 11 August 2005 02:26 am, Michael Moossen wrote:
> > > Hi, Alexander!
> > > 
> > > > Now i placed the setParamStyle("new"); in
> > > > the constructor and have no javascript errors....
> > > good :)
> > > 
> > > > I am hoping that the framework is not made so it will only work when 
> > adding 
> > > > modules to the administration view.
> > > until now, that is the approach... to have only one admin view, where 
you 
> > can
> > > add your own group of tools. i think it could also works in a own view, 
but
> > 
> > it
> > > will not be so easy. for more info read this thread:
> > > http://mail.opencms.org/pipermail/opencms-dev/2005q3/018781.html
> > > i would recommend to experience in the admin view and when you feel 
> > confidential
> > > with the whole thing, then try it out outside of the admin view.
> > > 
> > > > I hope there is some parameter i'm missing or something so that all 
> > actions
> > > > submit to my form to handle the user requests...
> > > this does not make much sence for me... (well, i never tried out a list 
> > dialog
> > > outside of the admin view). may be you could check followings:
> > > - there is a parameter called "closelink", where you can set page
> > displayed
> > > after "closing" a dialog.
> > > - take a look at the A_CmsListDialog.actionDialog() method, there are 
the
> > > actions triggered.
> > > 
> > > -- 
> > > Regards
> > > Michael Moossen
> > > Alkacon Software - The OpenCms Experts
> > > 
> > > http://www.alkacon.com
> > > 
> > > 
> > > 
> > > Quoting Alexander Wallace <aw at avatartechnology.com>:
> > > 
> > > > Ok! thanks that did something different :)
> > > > 
> > > > Indeed now the javascript is in place, there are no javascript errors 
> > > > whatsoever and the help is being displayed on the "admin menu"....
> > > > 
> > > > Maybe i started this the wrong way, but i really have no way of 
knowing 
> > the 
> > > > requirements of this whole framework, so let me tell you what i'm 
doing,
> > 
> > and
> > > > 
> > > > perhaps you can tell me what's the right aproach to the framework and 
if
> > 
> > > > there are limmitations, etc...
> > > > 
> > > > What i did was to create a class that extednds A_CmsListDialog and
> > > > implemented 
> > > > enough code to list my items, and also placed code on the 
> > > > executeListSingleActions method... Now i placed the 
setParamStyle("new");
> > 
> > in
> > > > 
> > > > the constructor and have no javascript errors....
> > > > 
> > > > I went on and created my own "view" in opencms and created a jsp that 
> > pulls 
> > > > the Administration menu (a temporary solution to see if it would give 
me
> > 
> > the
> > > > 
> > > > javascript) which eventually i want to replace with my own menu, it
> > really 
> > is
> > > > 
> > > > there just to see something.... In another frame, i have my dialog, 
which
> > 
> > > > displays fine...
> > > > 
> > > > However, all actions on any of the icons and the search box take me to
> > the 
> > > > administration view... So evidently there is some settings that tell 
the
> > 
> > > > browser where to go once actions are executing, and i'm not setting 
> > that... 
> > > > 
> > > > I am hoping that the framework is not made so it will only work when 
> > adding 
> > > > modules to the administration view.
> > > > 
> > > > I'll do more code digging, but if you have suggestions on how to 
> > effectively
> > > > 
> > > > use the framework, i really appreciate it!
> > > > 
> > > > Thanks!
> > > > On Wednesday 10 August 2005 10:31 am, Michael Moossen wrote:
> > > > > style
> > > > 
> > > > 
> > > > _______________________________________________
> > > > 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.
> 
> 
> 
> _______________________________________________
> 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