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.
Summary: | Table Row group iterator not iterating through columns | ||
---|---|---|---|
Product: | obsolete | Reporter: | ciappie <ciappie> |
Component: | visualweb | Assignee: | Winston Prakash <wjprakash> |
Status: | CLOSED INVALID | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
ciappie
2007-04-03 14:24:00 UTC
This is user error. The iterator is obtained indefinitely. The code should be Iterator iter = tbrg.getChildren(); while (iter.hasNext()){ s = ((TableColumn)iter.next()).getId(); } To verify - Add a Table Component - Add a button - Add a Message group - Double click the button and add the code public String button1_action() { TableRowGroup tbrg = getTableRowGroup1(); Iterator iter = tbrg.getChildren().iterator(); while (iter.hasNext()){ info(((TableColumn)iter.next()).getId()); } return null; } Deploy the application and click on the button. The message group should print TableColumn1, TableColumn2, TableColumn3 I never realised I have to create a seperate instance on the Iterator and initialise it with the tablerowgroup children. I was assuming that I can use the tableRowGroup iterator itself. |