admin@glassfish.java.net

Re: Proposal for adding pluggability into the Glassfish Admin GUI

From: Irfan Ahmed <irfan_at_sun.com>
Date: Mon, 01 Oct 2007 15:12:51 +0530

Hi Ken,

Thanks for your update. All is working fine. I have some more queries:

   1. The breadcrumbs issue was solved by restarting the app server. I
      have no idea why?
   2. 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.
         5. 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
         6. Also where can I get more documentation on the tags used in
            the template such as dynamicTreeNode and all.

Thanks and Warm Rgds,
Irfan

Ken Paulsen wrote:
>
> Hi Irfan,
>
> I have been out of the office for a while. I'm back now, sorry for
> the delayed response.
>
> For #1, are you including the tree/breadcrumbs file?
>
> #include treeBreadcrumbs.inc
>
> Also if you are, make sure this line is not indented. It only works
> if the '#' character is at the beginning of the line.
>
> For #2, make sure you're updating the deployed version of the
> application. For testing, you can make sure
> com.sun.jsftemplating.DEBUG is set to 'true' in the web.xml file:
>
> <context-param>
> <param-name>com.sun.jsftemplating.DEBUG</param-name>
> <param-value>rrue</param-value>
> </context-param>
>
> This will allow you to make changes to the .jsf files in the docroot
> w/o restarting the application. You can place your files that you
> have in your jar file in the docroot under the same directory
> structure contained in your .jar file. If you have your .jsf files in
> the docroot, they will override the ones in the classpath (.jar file).
>
> I hope this helps!
>
> Ken
>
>
> Irfan Ahmed wrote:
>> Hi Ken,
>>
>> Any update on this.
>>
>> Rgds
>> Irfan
>>
>> Irfan Ahmed wrote:
>>> Hi Ken,
>>>
>>> Thanks for your changes. I applied the same and all seemed to work
>>> fine. There were two issues that I am not able to resolve.
>>>
>>> 1. The breadcrumbs on the SIP Modules page do not come up
>>> 2. I always get a Missing Resource exception. the resource it is
>>> not able to fine was sip.resources.Strings; This was wrongly
>>> mentioned in the modules*.jsf. The correct resource is
>>> resources.sip.Strings, however even after changing the same,
>>> updating the sip.jar and restarting GF, I still see this error.
>>>
>>> Thanks and Warm Rgds,
>>> Irfan.
>>>
>>> --
>>> Irfan Ahmed | Sun Microsystems Inc., Bangalore, India. |
>>> irfan_at_sun.com <mailto:irfan_at_sun.com%22> - 9180.66927726 - x27726
>>>
>>> ------------------------------------------------------------------------
>>>
>>> $page{configName}); /> $attribute{oldComp});
>>> setAttribute(key="parent" value="#{oldComp.parent}"); // Replace it
>>> with something temporary to hold position // Needed, or it it will
>>> just find the old one vs. create it
>>> createComponent(type="staticText" component=>$attribute{temp});
>>> replaceUIComponent(old="${oldComp}" new="$attribute{temp}"); //
>>> Rengenerate it
>>> getLayoutComponent(clientId="$requestParameter{updateTreeNode}"
>>> component=>$attribute{desc});
>>> buildUIComponentTree(layoutElement="$attribute{desc}"
>>> parent="#{parent}" result=>$attribute{newComp});
>>> replaceUIComponent(old="${temp}" new="$attribute{newComp}"); />
>>> $page{treeId}); /> $attribute{encodedUrl});
>>> redirect(page="webService/webServiceGeneral.jsf?webServiceKey=$attribute{encodedUrl}&webServiceName=#{click.parent.attributes.webServiceName}"
>>> ); /> "
>>> ------------------------------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>>
>>
>> --
>> Irfan Ahmed | Sun Microsystems Inc., Bangalore, India. |
>> irfan_at_sun.com <mailto:irfan_at_sun.com%22> - 9180.66927726 - x27726
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net For
>> additional commands, e-mail: admin-help_at_glassfish.dev.java.net
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net For
> additional commands, e-mail: admin-help_at_glassfish.dev.java.net

-- 
Irfan Ahmed | Sun Microsystems Inc., Bangalore, India. | 9180-66927726, 
x27726