"kabir.khan(a)jboss.com" wrote :
|
| | int requiredIndex = states.indexOf(item.getWhenRequired());
| | int actualIndex = states.indexOf(dependsContext.getState());
| | if (requiredIndex <= actualIndex)
| |
| |
|
Such code should not exist, as it depends on the impl details (== List) of the states
model.
You should do this state checks against ControllerStateModel.
e.g. for tree states the model will change, but the rest of the code won't have to be
fixed/modified ;-)
(at least not in a hard to detect/find it way)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243689#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...