Thanks.

Let me elaborate more:
I want this varibale to be displayed to the user, and to have a default value 
when I load the AS. If I create the getter and setter, declare about them in 
the xmbean descriptor, and declare the access to be "read-write" - there's no 
problem, only the user can change this variable (and this I don't want).

If I decalre this variable to be "read-only" - I get an exception when I try to 
edit it from the code (and I need to). 

I can workaround it by decalring it as read-write, and degenerate it by not 
adding code to the setter (so the user will have no affect on this variable) - 
but this is not good-practice programming.

Is there any way to expose an attribute to the user, but allow it to be changed 
from within the code?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864260#3864260

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864260


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to