quality@glassfish.java.net

Re: Issue in enable-disable application in deployment

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Mon, 13 Apr 2009 16:31:36 -0700

Hi Harsh,

Harsh Shah wrote:
> Hi,
>
> I am deploying a WAR file of 'hello world' application.
> I am using Glassfish version 3 : build : b44
>
> Once deployment is done, I tried to disable the application. It worked
> fine.
>
> But when I again select the checkbox of disabled application, both
> Disable and Enable buttons got activeted. Here I think only Enabled
> button should be activated because the application is already disabled.
>
> Same case is there with enabling aplication, like when application is
> enabled the Enable button should not be activated.
>
> Is this a bug?
>
No, thats not a bug. There can be multiple applications, some
enabled, some disabled. Once you select any application, both button
should be activated so that you can enable or disable the selected
applications. For convenient, someone may just do the select all,
and then click the enabled button. Before you click the button, we
don't immediately know what application is selected, whats its status
and then activate the correct buttons. You can say thats a
limitation, but thats how the table model works.

Activating both buttons so that you can click on whatever you want is
perfectly fine. I really don't see any harm.

thanks
Anissa.
>
> Regards,
> SJSU Student
> Harsh