论坛首页 入门技术论坛

页面之间跳转的参数传递问题

浏览 1822 次
该帖已经被评为新手帖
作者 正文
   发表时间:2008-01-10  
<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值会为空呢?是不是哪里还要做处理
   发表时间:2008-01-10  
这个问题已经解决,原来是放在html文件里组件放的位置不对,所以显示的值为空,搞了一上午。 
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics