This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In web-app_2_5.xsd FilterMapping and ServletMapping should work with String[] instead of String. The XSD we have in nb is altered to work with String bcs the DD API cannot support String[]. Schema2Beans generates the methods with String return type for 2_4 and with String[] return type for 2_5. There cannot be 2 methods in API with the same signature and different return type. To fix this problem we will likely require a change in schema2beans to allow overriding get/set method names for a property. The we could override the property name for 2_5 (getServletMapping2(), for example) to and put code into mdd to implement the API methods by delegating to getServletMappings2().
There's also metadata-provided attribute (on web-app, ejb and appclient) access missing.
thanks for reminder, Martine.
Is there currently a use case that requires this? If not, I would downgrade this to P4.
I do not understand the question. Does the API work for 2.5 web xml? Can you edit 2.5 web.xml in DD editor? I not know if there is any UI or other code that needs to use specifically the new attributes.
The editor does work for 2.5 web.xml, it just doesn't use these 2.5 specific features (like multiple url-patterns in a single servlet-mapping element).
*** Issue 118838 has been marked as a duplicate of this issue. ***
moving opened issues from TM <= 6.1 to TM=Dev
*** Issue 146693 has been marked as a duplicate of this issue. ***
During 6.8 development, the problem was fixed. FilterMapping + ServletMapping support more than one value. Also metadata-provided attribute is supported. DD object model is OK, so closing this issue as fixed. There are some other issues filed for wizards/GUI editors that do not use extensions of DD object model yet (e.g. Issue 163396)...