通过jQuery的addClass来使得table的row高亮显示的困惑

问题起因:目前的项目中要实现下面的功能,在对话框中提供检索功能,检索结果使用table显示,然后使用鼠标单击行进行选中处理。为了使得画面更加易用,在鼠标移动经过某一行时,让改行进行高亮。使用jQuery进行下面的处理

//these two line adds the color to each different row
$("#mytable tr:even").addClass("eventr");;
$("#mytable tr:odd").addClass("oddtr");;
//handle the mouseover , mouseout and click event
$("#mytable tr").mouseover(function() {$(this).addClass("trover");}).mouseout(function() {$(this).removeClass("trover");}).click(function() {$(this).toggleClass("trclick");});

但是无论如何尝试,总达不到理想效果。目前问题还在困惑中。
... Read more!

在通过showModalDialog弹出的窗口中submit

问题:在通过showModalDialog弹出的子窗口中执行submit提交时,会弹出一个新窗口,并且无法正常获取目前的session
环境:SUN的JSF RI 1.2 TOMCAT6

经由:做JSF开发是第一次,这次从共通,基盘开始都是从0着手。以前用struts用惯了,没有感觉页面会有什么困难。但是在做子窗口进行查询的时候就遇到这个棘手的问题。google了一下。得出结论如下:
<head></head>标签里面加入如下标签
<base target="_self" />
... Read more!