taqi/cleancode — Issue #24: Create Custom Table
Author: taqi
Created: 2012-01-14 01:06:52+00:00
State: open

Lets speak about wizard first page object model.
What we have here?
We have the Page and Table.
When we select at least one of the Commits in the Table - our page can be filpped to the next page.
So, as you can see - our Table must "know" page. (contain link to it).
If we talking more deeply - yes, the link is necessary not for table - but for SelectionListener.

But we have Page builder, that fistly must have links for the commitTable builder, and then it creates page for us. But commitTable requires Listener to create table. But Listener needs....page....
How can we fix it?
First of all, we need to make, that Table will have link to the page.
Then - Listener will ask Table about the page, and setComplete() this page if at least one commit has been selected.