<component id="table" type="contrib:TableView">
<binding name="source" value="classInfos"/>
<binding name="columns" value="literal:moduleName,teacherName,!remainTime,startTime,!operate"/>
<binding name="pageSize" value="5"/>
<binding name="element" value="literal:span"/>
</component>
<component id="operateColumnValue" type="Block"/>
<component id="modifyTimeLink" type="DirectLink">
<binding name="listener" value="listener:onModifyTimeLink"/>
<binding name="parameters" value="components.rows.tableRow"/>
</component>以上是page当中配置的代码
public IPage onModifyTimeLink(IRequestCycle cycle){
Object[] parameters=cycle.getListenerParameters();
ClassInfo classInfo=(ClassInfo)parameters[0];
SelectModuleByTeacherFreeTimePage selectModuleByTeacherFreeTime=(SelectModuleByTeacherFreeTimePage)getSelectModuleByTeacherFreeTimePage();
selectModuleByTeacherFreeTime.setClassInfo(classInfo);
return selectModuleByTeacherFreeTime;
}为什么得到的ClassInfo值会为空呢?是不是哪里还要做处理
本文探讨了一个关于在页面配置代码中获取ClassInfo值为空的问题,并提供了相应的代码示例。作者尝试通过监听链接点击事件来获取参数并跳转到另一个页面,但发现传递的ClassInfo值为空。

被折叠的 条评论
为什么被折叠?



