/** * By default this will export the bean using the given variable if it is defined. * This Strategy method allows derived tags to process the beans in different ways * such as to register this bean with its parent tag etc. */ protected void processBean(String var, Object bean) throws JellyTagException { if (var != null) { context.setVariable(var, bean); } else { ArgTag parentArg = (ArgTag)(findAncestorWithClass(ArgTag.class)); if(null != parentArg) { parentArg.setValue(bean); } } }
/** * By default this will export the bean using the given variable if it is defined. * This Strategy method allows derived tags to process the beans in different ways * such as to register this bean with its parent tag etc. */ protected void processBean(String var, Object bean) throws JellyTagException { if (var != null) { context.setVariable(var, bean); } else { ArgTag parentArg = (ArgTag)(findAncestorWithClass(ArgTag.class)); if(null != parentArg) { parentArg.setValue(bean); } } }
/** * By default this will export the bean using the given variable if it is defined. * This Strategy method allows derived tags to process the beans in different ways * such as to register this bean with its parent tag etc. */ protected void processBean(String var, Object bean) throws JellyTagException { if (var != null) { context.setVariable(var, bean); } else { ArgTag parentArg = (ArgTag)(findAncestorWithClass(ArgTag.class)); if(null != parentArg) { parentArg.setValue(bean); } } }
/** * By default this will export the bean using the given variable if it is defined. * This Strategy method allows derived tags to process the beans in different ways * such as to register this bean with its parent tag etc. */ protected void processBean(String var, Object bean) throws JellyTagException { if (var != null) { context.setVariable(var, bean); } else { ArgTag parentArg = (ArgTag)(findAncestorWithClass(ArgTag.class)); if(null != parentArg) { parentArg.setValue(bean); } } }