dev@glassfish.java.net

Re: Another AMX Question

From: Jason Lee <jasondlee_at_sun.com>
Date: Tue, 16 Jun 2009 07:35:47 -0500

On Jun 16, 2009, at 12:55 AM, Anissa Lam wrote:
> If you are about to create it, then of course it doesn't exist.
> You shouldn't be calling saveBeanAttributes().
> You can just include shared/editPageButtons.inc which depending on
> the parameter, create or update attributes for you. We have many
> pages doing that.
> Take a look at v3/admingui/security/src/main/resources/jacc/* or
> v3/admingui/jdbc-gui/src/main/resources/jdbcResource*.jsf, it is
> doing exactly what you want to do.

Well, I was calling that because that's what threadPoolsNew.jsf does,
so I assumed that it was a save-or-create method. :) I'll look at
those other pages.

> I think we should take this offline as i don't think anyone on the
> dev alias care much about this :)


Sounds good.

         Jason Lee
Senior Java Developer
GlassFish Administration Console

Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee_at_sun.com
Blog http://blogs.sun.com/jasondlee
Blog http://blogs.steeplesoft.com