Re: dynaforms & checkboxes - Use a Boolean instead of a boolean

2002-02-04 Thread Bill_Wallace
Try using a Boolean value, something like this: private Boolean myBoolean = null; public boolean getMyBoolean() { if( myBoolean==null ) return true; return myBoolean.booleanValue(); } public void setMyBoolean(boolean value) { myBoolean = new Boo

Patch for PropertyMessageResource

2002-01-25 Thread Bill_Wallace
PropertyMessageResource uses a HashMap as a Set. Instead, an actual Set should be used. As well, variables are declared of type HashMap rather than being Map and only instantiating a HashMap. This is poor programming practice becuase it can cause problems with future fixes and I've also fixed t

Patch for DefineTag

2002-01-25 Thread Bill_Wallace
Some implementations of pageContext do not allow null values in the page context (and other contexts as well). There is a remove method that is supposed to be used for those situations. Here is a fixed doStart method for DefineTag. public int doStartTag() throws JspException { // Retrie

Capping 1.1 after validator/services/tiles

2002-01-22 Thread Bill_Wallace
+1 to capping 1.1 after dealing with validator/services/tiles.I'd really like to have the 1.1 version available for use in products fairly soon. Bill Wallace (585) 214-8872 Fax: (585) 295-4718 Element K 'the knowledge catalyst' www.elementk.com

RE: Extensibility of struts & Property Security

2001-11-28 Thread Bill_Wallace
The Java security mechanism is quite easy to use. The main classes are: 1) Subject - defines a person - contains several Principals, and has methods to allow code to be executed as a given Principal. 2) Principal - sort of like a role that a person has. The primary Principal is the one th

Re: Extensibility of struts & Property Security

2001-11-28 Thread Bill_Wallace
Please use the standard java security mechanism, rather than trying to invent a new one. The standard mechanism is very general, and allows very fast checks when security is turned off, and conversely, allows very fine-grained security checks to be made. I have implemented this in a web-model a

Re: Other possible tools for paging collections

2001-11-16 Thread Bill_Wallace
What I have seen done is to have an object store the query information, including sorting options, in an object, along with a transient (so that during failover, it gets regenerated) index, and a NON-transient include/exclude selection list (ie either items that are included are listed, or items

RE: Validator design considerations - really a problem of meta data

2001-11-02 Thread Bill_Wallace
The problem of getting the validation information is really a problem of where one gets meta-data from. Some meta-data depends on context, and some is fixed, and that is really the indicator for where it should be put. Another piece of meta-data is the human readable title for the attribute. Aga

RE: PROPOSAL: Struts Service interface?

2001-11-02 Thread Bill_Wallace
Take a look at how Barracuda event handling works. I think it allows most of this type of handling to be done quite elegantly. The web site is http://barracuda.enhydra.org The code is open source, and could be used either directly, or as a library if the licenses are compatible. Otherwise, it

RE: Data conversion

2001-09-27 Thread Bill_Wallace
The java beans code does not itself provide string conversion customization, but it contains quite a lot of similar code, including some string conversion code that is bean specific (ie not changeable based on form and/or locale) in the PropertyEditor interface. What I am working on is a sub-cla

Re: Data conversion

2001-09-27 Thread Bill_Wallace
The to/from string conversion should be done similar to how java beans works, since it can then be used more generally than just the Struts framework. However, it needs some I18N additions which currently aren't available in the java beans work. Bill Wallace Fax: (716) 295-4718 Element K 'the