Hi Patricia,
First of all: which Hippo version are you using?
You've entered the wonderful world of dependency load ordering. All
JavaScript is eventually put into the HTML head by Wicket. How that's
done, and more importantly, the order in which things are rendered,
depends on the Wicket version. How this works exactly in 7.8 and 7.9
is explained in detail in the upgrade documentation [1].
Your problem is most likely that the dashboard is rendered immediately
after login, and at that point not all JavaScript dependencies have
been loaded yet by Wicket. The ExtJS and/or YUI library does not seem
to be imported. If you are using 7.9, try to add the following
behavior in the constructor of the Wicket perspective for ensure ExtJS
is there:
add(new ExtHippoThemeBehavior()); [2]
I believe the YAHOO object comes from the YUI library, which is added
to the Wicket head whenever a AbstractYuiAjaxBehavior is added. The
CMS has plenty of those behavior in various components, but none of
these components is rendered in the dashboard. Hence you'll have to
add your own implementation of AbstractYuiAjaxBehavior in your
component to ensure that the yahoo lib is included at that point so
your component can use the YAHOO object.
hope this helps,
Mathijs
[1]
http://www.onehippo.org/library/upgrade-7.8-to-7.9/upgrading-to-wicket-6.html
[2]
http://svn.onehippo.org/repos/hippo/hippo-cms7/cms/branches/hippo-cms-2.26.xx/api/src/main/java/org/hippoecm/frontend/extjs/ExtHippoThemeBehavior.java
[3]
http://svn.onehippo.org/repos/hippo/hippo-cms7/cms/branches/hippo-cms-2.26.xx/api/src/main/java/org/hippoecm/frontend/plugins/yui/AbstractYuiBehavior.java
> --
> Hippo Community Group: The place for all discussions and announcements about
> Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to
hippo-c...@googlegroups.com
> RSS:
>
https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> ---
> You received this message because you are subscribed to the Google Groups
> "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
hippo-communi...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/hippo-community.
> For more options, visit
https://groups.google.com/d/optout.