admin@glassfish.java.net

Re: Proposal for adding pluggability into the Glassfish Admin GUI

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Thu, 04 Oct 2007 12:19:20 -0700

Hi Irfan,

I'm glad you resolved most of the issues you were facing.  The last issue:

> Also where can I get more documentation on the tags used in the template such as dynamicTreeNode and all.

The best place to get documentation on the tags is from Woodstock... which I think is only available by building the documentation from source.  So you'll have to check out woodstock and build it.

For Factories that add extra options or do extra work (such as DynamicTreeNode) the best place to learn about these is to read the JavaDoc for those factories.  I can't seem to get to the online documentation on jsftemplating.dev.java.net right now... but you can look in the com/sun/jsftemplating/component/factory/tree directory to learn about that tag.  If that doesn't answer your question, the dev@jsftemplating.dev.java.net email alias is probably best.

Let me know if you have any more questions!

Ken

Irfan Ahmed wrote:
Hi Ken,

Thanks for the pointer. I fixed some of the issues below.

Irfan Ahmed wrote:
  1. The breadcrumbs issue was solved by restarting the app server. I have no idea why?
It seems that I was not including the correct file. This has been resolved.
  1. I wanted to know what is the difference between the dev-setup and the normal build target.
    1. Here is what I have noticed. To begin with I ran the targets dev-setup and dev-build. Then I did an asadmin deploydir for the docroot directory and it deployed fine.
    2. I could go to the admin GUI in the deployed directory and see the changes that I have made to peTree.jsf. Cool.
    3. Now I did an ant build under admin-gui. It packed up the peTree.jsf into admin-jsf.jar and copied the file into the lib/install/applications... directory.
    4. Now I restarted the admin and was hoping to see my changes in the admin GUI at http://localhost:4848. However none of the changes that I had made showed up there. Moreover there is no way to undo the changes that  were made in peTree.jsf.
      1. I installed a fresh unchanged copy of peTree.jsf, did ant build all and restarted the app server. The changes were still there.
The above have been resolved. I did some digging into the code and saw that the JSF files in the JAR files placed under the WEB-INF/lib directory were cached under <gf-install>/domains/domain1/generated/jsp/j2ee-modules/admingui/loader. Now when once restarts the application server the files under this directory are not updated. I though this would have been deleted and new files from the corresponding jars expanded again.

Also I think this is specific to the admin GUI. That is why when the admin GUI is deployed as a simple webapp in dev setup, I do not see this problem.

This is why the changes in peTree.jsf as well as the old files in sailfin specific admin GUI jar file were persisting. There are two ways to fix this
    1. Another thing I noted was that when I call info.jsf, it does not give me the detailed information it used to, it just shows the link to jsftemplating.dev.java.net
OK this was a blooper. info.jsf does its magic only if com.sun.jsftemplating.DEBUG in web.xml is set to true.
    1. Also where can I get more documentation on the tags used in the template such as dynamicTreeNode and all.
This is still open.

Thanks and Warm Rgds,
Irfan.
--
<a class="moz-txt-link-abbreviated" href=<a class="moz-txt-link-rfc2396E" href="mailto:irfan@sun.com">"mailto:irfan@sun.com"</a>><a class="moz-txt-link-abbreviated" href="mailto:irfan@sun.com">irfan@sun.com</a></a>
Irfan Ahmed | Sun Microsystems Inc., Bangalore, India. | irfan@sun.com - 9180.66927726 - x27726
--------------------------------------------------------------------- To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: admin-help@glassfish.dev.java.net