Commit ba017932 by WeiCong

兼容接口平台EL调用setGenericByTag方法

parent 04562783
......@@ -354,6 +354,11 @@ public class SWFMessage extends AbstractMessageArea {
public void setGenericByTag(String tagExp, String val, Integer... indexes) {
Assert.notNull(tagExp, "域名(.域块号)表达式不能为空");
Assert.notNull(val, "待填充的值不能为空");
if (indexes == null || indexes.length == 0) {
//兼容接口平台EL调用setGenericByTag方法
setGenericByTag(tagExp, val);
return;
}
Object item = findMessageAreaByTag(tagExp, indexes);
if (item instanceof TagLine) {
TagLine tmp = (TagLine) item;
......@@ -418,8 +423,8 @@ public class SWFMessage extends AbstractMessageArea {
} else if (parent.getType() == MessageArea.CYCLIST || parent.getType() == MessageArea.SEQLIST) {
if (((AbstractMessageArea) parent).withIn(ano)) {
Integer cnt = cntLst.get(num++);
if(parent.getType() == MessageArea.SEQLIST && ((SEQList) parent).getCyc() == 0){
Assert.state(cnt==0,"不能从非循环型Sequence获取索引大于0的对象");
if (parent.getType() == MessageArea.SEQLIST && ((SEQList) parent).getCyc() == 0) {
Assert.state(cnt == 0, "不能从非循环型Sequence获取索引大于0的对象");
}
MessageArea cp = null;
for (int i = 0; i <= cnt; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment