* [ 1669925 ] WAN: dependant tabs are not working

This commit is contained in:
Heng Sin Low 2007-02-27 14:41:12 +00:00
parent 6e490c8af1
commit 3224cb77d0
1 changed files with 19 additions and 0 deletions

View File

@ -311,6 +311,25 @@ public class GridTabVO implements Evaluatee, Serializable
mTabVO.Fields = server.getFields(mTabVO);
mTabVO.initFields =
(mTabVO.Fields != null && mTabVO.Fields.size() > 0);
//sync context
int size = mTabVO.Fields.size();
for (int i = 0; i < size; i++)
{
GridFieldVO field = (GridFieldVO)mTabVO.Fields.get(i);
Properties ctx = field.ctx;
field.setCtx(mTabVO.ctx);
Set keys = ctx.keySet();
//check any key added remotely
for(Iterator k = keys.iterator(); k.hasNext(); )
{
Object key = k.next();
if (mTabVO.ctx.containsKey(key) == false)
{
Object value = ctx.get(key);
mTabVO.ctx.put(key, value);
}
}
}
} catch (Exception e)
{
CLogger.get().log(Level.SEVERE, "Application Server Error: " + e.getLocalizedMessage(), e);