Hello, I would like to manage access to multiple instances of backing beans .
I would like something like this but working.
@Name("perCellForm") public class PerCellFormBean implements PerCellForm { HashMap<Long, FormAction> cells = new HashMap<Long, FormAction>(10); @In private Cell currentCell; @Unwrap public FreeAction getCell() { if (cells.containsKey(currentCell.getId())) { return cells.get(currentCell.getId()); } else { Object component = Component.getInstance("FormAction", true); cells.put(currentCell.getId(), (FormAction) component); return (FormAction) component; } } @Destroy @Remove public void remove() { } }