|
[
Permalink
| « Hide
]
Sven Künzler added a comment - 15/Aug/03 05:39 AM
Proposed functionality as patch
I agree - the capitalization feature is quite interesting. I created a patch too, although with a slightly different approach: my patch creates 2 new methods for the FieldTagsHandler: setterName() and getterName().
These methods use xdoclet.ConfigParamIntrospector to create the setter and getters for a field. Here is an example on how I'm using it to create a JSP custom tag: <XDtField:forAllFields> public abstract void <XDtField:setterName/>( <XDtField:fieldType/> <XDtField:fieldName/> ); </XDtField:forAllFields> I think this improvement is very important - unless there is anothe way to achieve what we are looking for. Regards, Felipe Here is the patch I mentioned - it creates 2 new methods on FieldsTagHandler.java
After reading Sven's comments more carefully, I decided to create a new patch, as my previous patch would not solve his problems.
Oops, I uploaded the wrong patch earlier. Sorry...
Patch applied - Thanks.
(I was looking for such a thing about a 1.5 years ago, when I was trying to produce Swing GUIs from EntityBeans declarations). Just as a side note, I mentioned this patch in my article (which is what motivated my patch :-):
http://today.java.net/pub/a/today/2004/06/18/el-taglib.html |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||