请教一个关于richfaces的Table Sorting问题
eosite
2008-10-09
实现Table Sorting的功能,
在rich:dataTable的rich:column中加入sortBy就可以了吗? |
|
bb74
2008-10-11
可以的,很方便
|
|
eosite
2008-10-12
我添加了sortBy,还是没有看到效果~ 不知道什么原因,以下是xhtml代码
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:a="http://richfaces.org/a4j"> <h:form> <rich:dataTable var="test" value="#{testList}" reRender="ds" rows="5" sortMode="single"> <rich:column sortBy="#{test.id}"> <f:facet name="header"> <h:outputText value="ID" /> </f:facet> <h:outputText value="#{test.id}" /> </rich:column> <rich:column sortBy="#{test.name}"> <f:facet name="header"> <h:outputText value="Name" /> </f:facet> <h:outputText value="#{test.name}" /> </rich:column> <f:facet name="footer"> <rich:datascroller id="ds"></rich:datascroller> </f:facet> </rich:dataTable> </h:form> </ui:composition> |
|
bb74
2008-10-13
xhtml 没有什么问题,看看你的testList里是不是有问题
|
|
eosite
2008-10-14
谢谢你的回复
@Factory("testList"),返回list~ datatable数据显示没有问题,就是没有出现上下箭头那样的排序。 |
|
rainliu
2009-05-06
把<rich:column sortBy="#{test.name}">
改成: <rich:column sortBy="#{test.name}" sortBy="#{cp.ntcId}" sortable="true" sortOrder="ASCENDING" selfSorted="true"> 我想应该可以的。 |
|
5day
2009-05-06
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <ui:composition> <h:form> <h:panelGrid columns="2" columnClasses="top,top"> <rich:extendedDataTable value="#{extendedTableBean.capitalsDataModel}" var="cap" id="table" width="580px" height="400px" sortMode="#{extendedTableBean.sortMode}" selectionMode="#{extendedTableBean.selectionMode}"> <rich:column sortable="false" label="Flag"> <f:facet name="header"> <h:outputText value="Flag"/> </f:facet> <h:graphicImage value="#{cap.stateFlag}"/> </rich:column> <rich:column sortable="true" sortBy="#{cap.state}" filterBy="#{cap.state}" filterEvent="onkeyup" width="170px" label="State Name"> <f:facet name="header"> <h:outputText value="State Name"/> </f:facet> <h:outputText value="#{cap.state}"/> </rich:column> <rich:column sortable="true" sortBy="#{cap.name}" filterBy="#{cap.name}" filterEvent="onkeyup" width="170px" label="State Capital"> <f:facet name="header"> <h:outputText value="State Capital"/> </f:facet> <h:outputText value="#{cap.name}"/> </rich:column> <rich:column sortable="false" label="Time Zone"> <f:facet name="header"> <h:outputText value="Time Zone"/> </f:facet> <h:outputText value="#{cap.timeZone}"/> </rich:column> </rich:extendedDataTable> <rich:panel> <f:facet name="header"> <h:outputText value="Sort/Selection modes changing"/> </f:facet> <h:panelGrid columns="2"> <h:outputText value="Sort Mode:"/> <h:selectOneMenu value="#{extendedTableBean.sortMode}"> <f:selectItem itemLabel="Single" itemValue="single"/> <f:selectItem itemLabel="Multi" itemValue="multi"/> <a4j:support event="onchange" ajaxSingle="true" reRender="table"/> </h:selectOneMenu> <h:outputText value="Selection Mode:"/> <h:selectOneMenu value="#{extendedTableBean.selectionMode}"> <a4j:support ajaxSingle="true" event="onchange" reRender="table"/> <f:selectItem itemLabel="Single" itemValue="single"/> <f:selectItem itemLabel="Multi" itemValue="multi"/> <f:selectItem itemLabel="None" itemValue="none"/> </h:selectOneMenu> </h:panelGrid> </rich:panel> </h:panelGrid> </h:form> </ui:composition> </html> |
|
rainliu
2009-05-08
刚刚看了一下,原来我写多了:
把<rich:column sortBy="#{test.name}"> 改成: <rich:column sortBy="#{test.name}" sortable="true" sortOrder="ASCENDING" selfSorted="true"> 我想应该可以的。 |
|
liu418028499
2010-12-27
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:c_rt="http://java.sun.com/jstl/core_rt"> <head> <title>defectssdsd...</title> <style type="text/css"> body { margin: 0 auto; } </style> </head> <body> <h:form id="form"> <script type="text/javascript"> var row; </script> <rich:contextMenu attached="false" id="menu" submitMode="ajax" oncollapse="row.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"> <rich:menuItem value="Defect Details" ajaxSingle="true" oncomplete="#{rich:component('editPanel')}.show()" actionListener="#{bugBean.fetchCurrentRow}"> <a4j:actionparam name="BG_BUG_ID" value="{BUG_ID}" /> <a4j:actionparam name="row" value="{currentRow}" /> </rich:menuItem> </rich:contextMenu> <table cellpadding="0" cellspacing="0" width="100%" border="0"> <tr> <td><h:graphicImage value="#{resource['images:DMS2.png']}" width="100%" /></td> </tr> <tr> <td><rich:toolBar> <rich:dropDownMenu> <f:facet name="label"> <h:outputText value="#{msg.defect}"></h:outputText> </f:facet> <rich:menuItem submitMode="none"> <a4j:commandLink value="#{msg.newDefect}..." reRender="newdefect" ajaxSingle="true" action="#{bugBean.reset}" style="width:100%;" oncomplete="javascript:Richfaces.showModalPanel('newdefect');" /> </rich:menuItem> </rich:dropDownMenu> <rich:toolBarGroup location="right"> <a4j:commandLink value="#{msg.cancellation}" action="#{bugBean.cancellation}" /> </rich:toolBarGroup> </rich:toolBar></td> </tr> <tr> <td><rich:toolBar height="34" itemSeparator="line"> <rich:toolBarGroup> <a4j:commandLink value="#{msg.newDefect}" action="#{bugBean.reset}" oncomplete="javascript:Richfaces.showModalPanel('newdefect');" ajaxSingle="true" reRender="newdefect"> </a4j:commandLink> </rich:toolBarGroup> </rich:toolBar></td> </tr> <tr> <td><a4j:region id="dataTableRegion"> <rich:extendedDataTable value="#{bugBean.dataModel}" var="bug" id="bugDataTable" width="100%" sortMode="single" align="center" selectionMode="multi" tableState="#{bugBean.tableState}" selection="#{bugBean.selection}" rows="#{bugBean.rows}" onRowContextMenu="if (row) row.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'; this.style.backgroundColor='#F1F1F1'; row=this; #{rich:component('menu')}.show(event,{BUG_ID:'#{bug.BG_BUG_ID}', currentRow:'#{row}'}); return false;"> <rich:column sortable="true" sortBy="#{bug.bg_Bug_Id}" id="col_1" filterBy="#{bug.bg_Bug_Id}" filterEvent="onkeyup" width="10%" label="#{msg.defectId}"> <f:facet name="header"> <h:outputText value="#{msg.defectId}" id="bg_Bug_Id" /> </f:facet> <h:outputText value="#{bug.bg_Bug_Id}" id="Bug_Id" /> </rich:column> <rich:column sortable="true" sortBy="#{bug.bg_Responsible}" id="col_2" filterBy="#{bug.bg_Responsible}" filterEvent="onkeyup" width="15%" label="#{msg.assigendTo}"> <f:facet name="header"> <h:outputText value="#{msg.assigendTo}" id="bg_Responsible" /> </f:facet> <h:panelGroup id="editDataTableResponsible"> <h:outputLabel value="#{bug.bg_Responsible}" id="bug_Responsible" rendered="#{bugBean.editTable}" style="width: 100%"> <a4j:support event="onclick" action="#{bugBean.editDataTable}" reRender="editDataTableResponsible" /> </h:outputLabel> <h:selectOneListbox style="width: 100%" id="aEditResponsible" value="#{bug.bg_Responsible}" rendered="#{!bugBean.editTable}" size="1"> <f:selectItems value="#{bugBean.userItems}" /> <a4j:support event="onblur" action="#{bugBean.editBugTable}" reRender="editDataTableResponsible" ajaxSingle="true"> </a4j:support> </h:selectOneListbox> </h:panelGroup> </rich:column> <rich:column sortable="true" sortBy="#{bug.bg_Status}" id="col_3" filterBy="#{bug.bg_Status}" filterEvent="onkeyup" width="15%" label="#{msg.status}"> <f:facet name="header"> <h:outputText value="#{msg.status}" id="bg_Status" /> </f:facet> <h:panelGroup id="editDataTableStatus"> <h:outputLabel value="#{bug.bg_Status}" id="bug_Status" rendered="#{bugBean.editTable}" style="width: 100%"> <a4j:support event="onclick" action="#{bugBean.editDataTable}" reRender="editDataTableStatus" /> </h:outputLabel> <h:selectOneListbox style="width: 100%" id="aEditStatus" value="#{bug.bg_Status}" rendered="#{!bugBean.editTable}" size="1"> <f:selectItems value="#{bugBean.bugStatusItems}" /> <a4j:support event="onblur" action="#{bugBean.editBugTable}" reRender="editDataTableStatus" ajaxSingle="true"> </a4j:support> </h:selectOneListbox> </h:panelGroup> </rich:column> <rich:column sortable="true" sortBy="#{bug.bg_Detected_By}" id="col_4" filterBy="#{bug.bg_Detected_By}" filterEvent="onkeyup" width="15%" label="#{msg.detectedBy}"> <f:facet name="header"> <h:outputText value="#{msg.detectedBy}" id="bg_Detected_By" /> </f:facet> <h:panelGroup id="editDataTableDetected"> <h:outputLabel value="#{bug.bg_Detected_By}" id="bug_Detected_By" rendered="#{bugBean.editTable}" style="width: 100%"> <a4j:support event="onclick" action="#{bugBean.editDataTable}" reRender="editDataTableDetected" /> </h:outputLabel> <h:selectOneListbox style="width: 100%" id="aEditDetected" value="#{bug.bg_Detected_By}" rendered="#{!bugBean.editTable}" size="1"> <f:selectItems value="#{bugBean.userItems}" /> <a4j:support event="onblur" action="#{bugBean.editBugTable}" reRender="editDataTableDetected" ajaxSingle="true"> </a4j:support> </h:selectOneListbox> </h:panelGroup> </rich:column> <rich:column sortable="true" sortBy="#{bug.bg_Severity}" id="col_5" filterBy="#{bug.bg_Severity}" filterEvent="onkeyup" width="15%" label="#{msg.severity}"> <f:facet name="header"> <h:outputText value="#{msg.severity}" id="bg_Severity" /> </f:facet> <h:panelGroup id="editDataTableSeverity"> <h:outputLabel value="#{bug.bg_Severity}" id="bug_Severity" rendered="#{bugBean.editTable}" style="width: 100%"> <a4j:support event="onclick" action="#{bugBean.editDataTable}" reRender="editDataTableSeverity" /> </h:outputLabel> <h:selectOneListbox style="width: 100%" id="aEditSeverity" value="#{bug.bg_Severity}" rendered="#{!bugBean.editTable}" size="1"> <f:selectItems value="#{bugBean.severityItems}" /> <a4j:support event="onblur" action="#{bugBean.editBugTable}" reRender="editDataTableSeverity" ajaxSingle="true"> </a4j:support> </h:selectOneListbox> </h:panelGroup> </rich:column> <rich:column sortable="false" sortBy="#{bug.bg_Summary}" id="col_6" filterBy="#{bug.bg_Summary}" width="30%" label="#{msg.summary}"> <f:facet name="header"> <h:outputText value="#{msg.summary}" id="bg_Summary" /> </f:facet> <h:panelGroup id="editDataTableSummary"> <h:outputLabel value="#{bug.bg_Summary}" id="bug_Summary" rendered="#{bugBean.editTable}" style="width: 100%"> <a4j:support event="onclick" action="#{bugBean.editDataTable}" reRender="editDataTableSummary" oncomplete="document.all('bug_Summary_Text').focus();" /> </h:outputLabel> <h:inputText value="#{bug.bg_Summary}" rendered="#{!bugBean.editTable}" style="width:100%" required="true" requiredMessage="#{msg.verificationSummary}" id="bug_Summary_Text"> <a4j:support event="onblur" action="#{bugBean.editBugTable}" reRender="editDataTableSummary,Summary" ajaxSingle="true" oncomplete="if(#{facesContext.maximumSeverity!=null})#{rich:component('Summary')}.show();"> </a4j:support> </h:inputText> </h:panelGroup> </rich:column> <f:facet name="footer"> <h:panelGrid columns="2" width="100%" border="0" style="text-align:center;"> <a4j:region> <rich:datascroller align="center" for="bugDataTable" page="1" id="sc"> </rich:datascroller> </a4j:region> <h:panelGrid columns="2"> <h:outputLabel value="#{msg.row}:" /> <h:selectOneMenu value="#{bugBean.rows}"> <f:selectItems value="#{bugBean.rowList}" /> <a4j:support event="onchange" reRender="bugDataTable" /> </h:selectOneMenu> </h:panelGrid> </h:panelGrid> </f:facet> <a4j:support reRender="Summary,bug_Description,bug_Dev_Comments" id="extended_table_bean_take_selection" action="#{bugBean.takeSelection}" event="onselectionchange" /> <a4j:support reRender="defectDetails" id="extended_defectDetails_bean_take_selection" event="onRowDblClick" oncomplete="#{rich:component('defectDetails')}.show();"> <f:setPropertyActionListener value="#{bug}" target="#{bugBean.bugVO}" /> <f:setPropertyActionListener value="#{row}" target="#{bugBean.currentRow}" /> </a4j:support> </rich:extendedDataTable> </a4j:region></td> </tr> <tr> <td><rich:simpleTogglePanel switchType="client" styleClass="panelSeccion" headerClass="cabeceraSeccion"> <table id="selectiontable" width="100%"> <tr> <td colspan="2"><h:outputLabel value="#{msg.summary}:" /><h:inputText style="width: 90%" id="Summary" value="#{bugBean.bugVO.bg_Summary}"> <a4j:support event="onblur" action="#{bugBean.editBugText}" reRender="editDataTableSummary"> </a4j:support> </h:inputText></td> </tr> <tr> <td width="50%"> <table width="100%"> <tr style="height: 35px"> <td><h:outputLabel value="#{msg.description}:" /></td> </tr> <tr> <td><h:inputTextarea style="width: 100%" rows="5" id="bug_Description" value="#{bugBean.bugVO.bg_Description}"> <a4j:support event="onblur" action="#{bugBean.editBugText}"> </a4j:support> </h:inputTextarea></td> </tr> </table> </td> <td width="50%"> <table width="100%"> <tr style="height: 35px"> <td><h:outputLabel value="#{msg.comments}:" /></td> <td align="right"><a4j:commandButton value="#{msg.addComment}" action="#{bugBean.addComments}" reRender="bug_Dev_Comments"></a4j:commandButton></td> </tr> <tr> <td colspan="2"><h:inputTextarea style="width: 100%" id="bug_Dev_Comments" rows="5" value="#{bugBean.bugVO.bg_Dev_Comments}"> <a4j:support event="onblur" action="#{bugBean.editBugText}"> </a4j:support> </h:inputTextarea></td> </tr> </table> </td> </tr> </table> </rich:simpleTogglePanel></td> </tr> </table> </h:form> <rich:modalPanel id="defectDetails" minWidth="700" minHeight="500" autosized="true"> <f:facet name="header"> <h:outputText value="#{msg.defectDetails}" /> </f:facet> <f:facet name="controls"> <h:panelGroup> <h:graphicImage value="#{resource['images:close.png']}" id="defectDetailsHide" /> <rich:componentControl for="defectDetails" attachTo="defectDetailsHide" operation="hide" event="onclick" /> </h:panelGroup> </f:facet> <h:form id="defectDetailForm"> <a4j:outputPanel ajaxRendered="true"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td colspan="2"><h:outputLabel value="defect:" /><h:inputText size="5" value="#{bugBean.bugVO.bg_Bug_Id}" /> <h:inputText style="width: 85%" value="#{bugBean.bugVO.bg_Summary}" id="defect_Summary" required="true" requiredMessage="#{msg.verificationSummary}" /></td> </tr> <tr> <td valign="top"><rich:tabPanel switchType="client"> <rich:tab label="Details"> <h:panelGrid columns="2"> <h:panelGrid columns="2"> <h:outputLabel value="#{msg.assigendTo}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Responsible}"> <f:selectItem /> <f:selectItems value="#{bugBean.userItems}" /> </h:selectOneMenu> <h:outputLabel value="#{msg.detectedDate}:" /> <a4j:outputPanel layout="block"> <rich:calendar value="#{bugBean.bugVO.bg_Detection_Date}" locale="US" popup="true" datePattern="yyyy-MM-dd" showApplyButton="false" cellWidth="24px" cellHeight="22px" style="width:200px" /> </a4j:outputPanel> <h:outputLabel value="#{msg.severity}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Severity}"> <f:selectItem /> <f:selectItems value="#{bugBean.severityItems}" /> </h:selectOneMenu> <h:outputLabel value="#{msg.priority}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Priority}"> <f:selectItem /> <f:selectItems value="#{bugBean.priorityiItems}" /> </h:selectOneMenu> </h:panelGrid> <h:panelGrid columns="2"> <h:outputLabel value="#{msg.detectedBy}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Detected_By}"> <f:selectItem /> <f:selectItems value="#{bugBean.userItems}" /> </h:selectOneMenu> <h:outputLabel value="#{msg.detectedVersion}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Detection_Version}"> <f:selectItem /> <f:selectItems value="#{bugBean.versionsiItems}" /> </h:selectOneMenu> <h:outputLabel value="#{msg.regression}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Reproducible}"> <f:selectItem /> <f:selectItems value="#{bugBean.yesNoItems}" /> </h:selectOneMenu> <h:outputLabel value="#{msg.status}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Status}"> <f:selectItem /> <f:selectItems value="#{bugBean.bugStatusItems}" /> </h:selectOneMenu> </h:panelGrid> </h:panelGrid> <h:panelGrid columns="2" border="0" style="vertial-align:top;text-align:center;"> <h:panelGrid columns="2"> <h:outputLabel value="Planned" /> <hr width="200"></hr> </h:panelGrid> <h:panelGrid columns="2"> <h:outputLabel value="Actual" /> <hr width="200"></hr> </h:panelGrid> <h:panelGrid columns="2" style="valign:top;text-align:left;" cellspacing="cellspacing" cellpadding="cellpadding"> <h:outputLabel value="#{msg.movedVersion}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Detection_Version}"> <f:selectItem /> <f:selectItems value="#{bugBean.versionsiItems}" /> </h:selectOneMenu> <h:outputLabel value="#{msg.estimated}:" /> <h:inputText style="width: 85px" value="#{bugBean.bugVO.bg_Estimated_Fix_Time}" /> <h:outputLabel /> <h:outputLabel /> </h:panelGrid> <h:panelGrid columns="2" style="vertial-align:baseline;text-align:left;"> <h:outputLabel value="#{msg.closedVersion}:" /> <h:selectOneMenu style="width: 160px" value="#{bugBean.bugVO.bg_Planned_Closing_Ver}"> <f:selectItem /> <f:selectItems value="#{bugBean.versionsiItems}" /> </h:selectOneMenu> <h:outputLabel value="#{msg.actual}:" /> <h:inputText style="width: 85px" value="#{bugBean.bugVO.bg_Actual_Fix_Time}" /> <h:outputLabel value="#{msg.closingDate}:" /> <a4j:outputPanel layout="block"> <rich:calendar value="#{bugBean.bugVO.bg_Closing_Date}" locale="US" popup="true" datePattern="yyyy-MM-dd" showApplyButton="false" cellWidth="24px" cellHeight="22px" style="width:200px" /> </a4j:outputPanel> </h:panelGrid> </h:panelGrid> </rich:tab> <rich:tab label="#{msg.description}"> <h:panelGrid width="100%"> <h:outputLabel value="#{msg.description}:" /> <h:inputTextarea value="#{bugBean.bugVO.bg_Description}" style="width: 100%" rows="4" /> <h:panelGrid columns="2" width="100%"> <h:panelGrid style="text-align:left;" width="100%" rowClasses="align:left;"> <h:outputLabel value="#{msg.comments}:" /> </h:panelGrid> <h:panelGrid style="text-align:right;" width="100%" rowClasses="align:right;"> <a4j:commandButton value="#{msg.addComment}" action="#{bugBean.addCommentsModal}" reRender="Comments"></a4j:commandButton> </h:panelGrid> </h:panelGrid> <h:inputTextarea value="#{bugBean.bugVO.bg_Dev_Comments}" style="width: 100%" rows="4" id="Comments" /> </h:panelGrid> </rich:tab> </rich:tabPanel></td> </tr> <tr> <td align="center"><a4j:commandButton value="#{msg.ok}" action="#{bugBean.editBug}" oncomplete="if(#{facesContext.maximumSeverity==null})#{rich:component('defectDetails')}.hide();" reRender="defect_Summary,bug_Responsible,bug_Status,bug_Detected_By,bug_Severity,bug_Summary,Summary,bug_Description,bug_Dev_Comments" /> <a4j:commandButton value="#{msg.cancel}" oncomplete="Richfaces.hideModalPanel('defectDetails');return false;" /></td> </tr> <tr> <td width="100%" align="center"><rich:messages style="color:red;"></rich:messages></td> </tr> </table> </a4j:outputPanel> </h:form> </rich:modalPanel> <rich:modalPanel id="newdefect" minWidth="700" minHeight="500" autosized="true"> <f:facet name="header"> <h:outputText value="#{msg.newDefect}" /> </f:facet> <f:facet name="controls"> <h:panelGroup> <h:graphicImage value="#{resource['images:close.png']}" id="newdefectHide" /> <rich:componentControl for="newdefect" attachTo="newdefectHide" operation="hide" event="onclick" /> </h:panelGroup> </f:facet> <h:form id="newdefectForm"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td colspan="2"><h:outputLabel value="#{msg.summary}:" style="color:red;" /><h:inputText style="width: 90%" id="newSummary" value="#{bugBean.newBugVO.bg_Summary}" required="true" requiredMessage="#{msg.verificationSummary}" /></td> </tr> <tr> <td> <table width="100%"> <tr> <td align="center"> <table> <tr> <td align="left"><h:outputText value="#{msg.assigendTo}:" /></td> <td align="left"><h:selectOneMenu style="width: 160px" value="#{bugBean.newBugVO.bg_Responsible}"> <f:selectItems value="#{bugBean.userItems}" /> </h:selectOneMenu></td> <td align="left"><h:outputText value="#{msg.priority}:" /></td> <td align="left"><h:selectOneMenu style="width: 160px" value="#{bugBean.newBugVO.bg_Priority}"> <f:selectItem /> <f:selectItems value="#{bugBean.priorityiItems}" /> </h:selectOneMenu></td> </tr> <tr> <td align="left"><h:outputText value="#{msg.detectedDate}:" /></td> <td align="left"><a4j:outputPanel layout="block"> <rich:calendar value="#{bugBean.newBugVO.bg_Detection_Date}" locale="US" popup="true" datePattern="yyyy-MM-dd" showApplyButton="false" cellWidth="24px" cellHeight="22px" style="width:200px" /> </a4j:outputPanel></td> <td align="left"><h:outputText value="#{msg.detectedVersion}:" /></td> <td align="left"><h:selectOneMenu style="width: 160px" value="#{bugBean.newBugVO.bg_Detection_Version}"> <f:selectItem /> <f:selectItems value="#{bugBean.versionsiItems}" /> </h:selectOneMenu></td> </tr> <tr> <td align="left"><h:outputText value="#{msg.detectedBy}:" /></td> <td align="left"><h:selectOneMenu style="width: 160px" value="#{bugBean.newBugVO.bg_Detected_By}"> <f:selectItem /> <f:selectItems value="#{bugBean.userItems}" /> </h:selectOneMenu></td> <td align="left"><h:outputText value="#{msg.status}:" /></td> <td align="left"><h:selectOneMenu style="width: 160px" value="#{bugBean.newBugVO.bg_Status}"> <f:selectItem /> <f:selectItems value="#{bugBean.bugStatusItems}" /> </h:selectOneMenu></td> </tr> <tr> <td align="left"><h:outputText value="#{msg.severity}:" /></td> <td align="left"><h:selectOneMenu style="width: 160px" value="#{bugBean.newBugVO.bg_Severity}"> <f:selectItem /> <f:selectItems value="#{bugBean.severityItems}" /> </h:selectOneMenu></td> <td align="left"><h:outputText value="#{msg.regression}:" /></td> <td align="left"><h:selectOneMenu style="width: 160px" value="#{bugBean.newBugVO.bg_Reproducible}"> <f:selectItem /> <f:selectItems value="#{bugBean.yesNoItems}" /> </h:selectOneMenu></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <hr /> </td> </tr> <tr> <td><h:outputText value="#{msg.description}:" /></td> </tr> <tr> <td align="center"><h:inputTextarea style="height: 140px; width: 661px" value="#{bugBean.newBugVO.bg_Description}"></h:inputTextarea></td> </tr> <tr> <td align="center"><a4j:commandButton value="#{msg.submin}" action="#{bugBean.addBug}" oncomplete="if(#{facesContext.maximumSeverity==null})#{rich:component('newdefect')}.hide();" /> <a4j:commandButton value="#{msg.cancel}" oncomplete="Richfaces.hideModalPanel('newdefect');return false;" /></td> </tr> <tr> <td width="100%" align="center"><rich:messages style="color:red;"></rich:messages></td> </tr> </table> </h:form> </rich:modalPanel> <rich:modalPanel id="Summary" minWidth="200" minHeight="100" autosized="true"> <f:facet name="header"> <h:outputText value="#{msg.error}" style="color:red;" /> </f:facet> <h:form id="SummaryHideForm"> <table width="100%"> <tr> <td width="100%" align="center"><rich:messages style="color:red;"></rich:messages></td> </tr> <tr> <td width="100%" align="center"><a4j:commandButton value="#{msg.ok}" action="#{bugBean.summaryError}" oncomplete="#{rich:component('Summary')}.hide();" reRender="editDataTableSummary" /></td> </tr> </table> </h:form> </rich:modalPanel> </body> </html> 为什么刷新rich:extendedDataTable 时后台执行了前台没有响应 |