| Summary: | DTDElementAdapter.getMaxOccur returns incorrect value | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Galileo Perez <galileo> | ||||
| Component: | wst.dtd | Assignee: | Nitin Dahyabhai <thatnitind> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccc, keith.chong.ca, thatnitind | ||||
| Version: | unspecified | Flags: | keith.chong.ca:
review+
|
||||
| Target Milestone: | 3.2.3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | WI63995 | ||||||
| Attachments: |
|
||||||
Created attachment 185451 [details]
Modified the getMaxOccur method
Patch consists on validate the kind of content of the DTDelement if is a DTDRepeatableContent will use the getMaxOccurHelper, if isn't will keep the current implementation.
feature in an adopter product fails because DTDElementAdapter.getMaxOccur returns incorrect value Released to 3.2.3 and HEAD. Thanks! |
Build Identifier: I added a DDE editor for a Faces config file with the following DTD: http://java.sun.com/dtd/web-facesconfig_1_1.dtd (Clicking the link will see the content) I can see the problem even with an almost empty customization file like this: <customization customizationNamespace="" customizationSchemaLocation="" xmlns="http://com.ibm.xwt.dde/CustomizationFile"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://com.ibm.xwt.dde/CustomizationFile CustomizationFile.xsd " ></customization> The problem is as follows: Select the root element <faces-config> and add a <lifecycle> child element in the editor. The element is added in source, but in the tree view on the left side of the design pane, the <lifecycle> element can't be displayed. (See details in the attached screenshots) Some other elements have the similar problem. Reproducible: Always Steps to Reproduce: 1.Open a faces config file (xml) with the DDE on design mode 2.Select the Faces Config Element on the overview side. 3.Add a new Lifecycle element 4.The element will be added just in the source code not it the design tab Tree element.