This content has been marked as final.
Show 4 replies
-
1. Re: Extended Datatable shows no data first and then refreshe
ilya_shaikovsky Oct 13, 2009 9:28 AM (in response to mjkrishna25)show the code and add version info.
-
2. Re: Extended Datatable shows no data first and then refreshe
mjkrishna25 Oct 13, 2009 10:04 AM (in response to mjkrishna25)<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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"> <f:subview id="MaintainPublisherSubView" 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"> <a:loadStyle src="/stylesheet/umbrella.css" /> <script type="text/javascript" src="script/common.js"> </script> <rich:modalPanel id="maintainSlaSettings" width="665" rendered="#{!adhocInvoiceBacking.slaSettingsAccess and maintainSlaSettingsBacking.renderPermission}" height="494" style="background-color: transparent;"> <f:facet name="header"> <h:panelGroup> <h:graphicImage value="../../umbrella/img/question-16.png" /> <h:outputText value="" /> <h:outputText value="SLA Settings"></h:outputText> </h:panelGroup> </f:facet> <f:facet name="controls"> <h:panelGroup> <h:graphicImage value="../../umbrella/img/dialog_close.png" styleClass="imageButton" id="hideslalink" /> <rich:componentControl for="maintainSlaSettings" attachTo="hideslalink" operation="hide" event="onclick" /> </h:panelGroup> </f:facet> <h:form id="MSlaSettings"> <rich:messages style="color:red;font-size:12px;"/> <rich:panel id="slaSettings" style="overflow:auto;height:500;width:100%"> <fieldset class="Terms" width="85%"><legend style='font-family: Verdana, Arial, Sans-Serif; color: #C0C0C0; font-size: 12px; font-style: normal;' width="84%">Add SLA setting</legend><h:panelGrid columns="2" width="98%" rowClasses="prop" columnClasses="name,value" style="w1list-column:left;w95list-column-left;text-align:left;"> <h:outputLabel styleClass="Label_style" for="" value="Type: (*)" /> <h:selectOneMenu id="slaTypeId" value="#{maintainSlaSettingsBacking.selectedSlatype}"> <f:selectItems id="slaSetting1" value="#{maintainSlaSettingsBacking.slaTypes}" /> </h:selectOneMenu> <h:outputLabel styleClass="Label_style" for="" value="Year: (*)" /> <h:inputText size="43" id="Year" value="#{maintainSlaSettingsBacking.year}" onkeypress = "return numbersOnly();" maxlength="4"> </h:inputText> <h:outputLabel styleClass="Label_style" for="" value="Default:" /> <h:selectOneRadio id="Default" value="#{maintainSlaSettingsBacking.defaultSelected}"> <f:selectItem id="slaSetting2" itemLabel="Yes" itemValue="1" /> <f:selectItem id="slaSetting3" itemLabel="No" itemValue="0" /> <a:support id="defaultSelection" actionListener="#{maintainSlaSettingsBacking.defaultSelectionListener}" event="onclick" reRender="slaWeek"></a:support> </h:selectOneRadio> <h:outputLabel styleClass="Label_style" for="" value="Week:" /> <h:selectOneMenu style="width:66%;" id="slaWeek" value="#{maintainSlaSettingsBacking.selectedWeek}" disabled="#{maintainSlaSettingsBacking.disableWeek}"> <f:selectItems id="slaSetting4" value="#{maintainSlaSettingsBacking.slaWeeks}" /> </h:selectOneMenu> <h:outputLabel styleClass="Label_style" for="" value="Number of days: (*)" /> <rich:inputNumberSpinner id="slaNoofdays" name="slaNoofdays" value="#{maintainSlaSettingsBacking.noOfdays}" minValue="0" maxValue="999" step="1" oninputkeypress = "return numbersOnly();" style="maxlength:3;"> </rich:inputNumberSpinner> <rich:spacer width="80%"/> <a:commandButton id="slaAction" value="#{maintainSlaSettingsBacking.slaAction}" disabled="#{!maintainSlaSettingsBacking.accessPermission}" action="#{maintainSlaSettingsBacking.methodAction}" reRender="slaAction,slatable,slaSettings" style="align:right;"/> </h:panelGrid> </fieldset> <fieldset class="Terms" style="width:98%"><legend style='font-family: Verdana, Arial, Sans-Serif; color: #C0C0C0; font-size: 12px; font-style: normal;'>SLA settings</legend> <rich:extendedDataTable value="#{empty slaSettingList ? slaSettingList : maintainSlaSettingsBacking.slaSettingsList}" var="sla" id="slatable" width="100%" height="160px" border="0" styleClass="label" rowKeyVar="rowIndex" selectionMode="null" enableContextMenu="false" align="left"> <rich:column colspan="1" label="Type" width="37%" style="text-align:left;"> <f:facet name="header"> <h:outputText value="Type"/> </f:facet> <h:outputText value="#{sla.slaType}"> </h:outputText> </rich:column> <rich:column colspan="1" label="Year" width="8%" style="text-align:left"> <f:facet name="header" style="text-align:center"> <h:outputText value="Year" /> </f:facet> <h:outputText value="#{sla.year}"> </h:outputText> </rich:column> <rich:column colspan="1" label="Default" width="15%" style="text-align:left"> <f:facet name="header" style="text-align:left"> <h:outputText value="Default" /> </f:facet> <h:outputText value="#{sla.defAult}"> </h:outputText> </rich:column> <rich:column colspan="1" label="Week" width="15%" style="text-align:left"> <f:facet name="header" style="text-align:left"> <h:outputText value="Week"/> </f:facet> <h:outputText value="#{sla.week}"> <f:convertNumber /> </h:outputText> </rich:column> <rich:column colspan="" label="Number of days" width="16%" style="text-align:left"> <f:facet name="header" style="text-align:left"> <h:outputText value="Number of days"/> </f:facet> <h:outputText value="#{sla.noOfDays}"> <f:convertNumber /> </h:outputText> </rich:column> <rich:column colspan="2" label="" width="11%"> <a:commandLink styleClass="menu_link" id="deleteSlalink" action="#{maintainSlaSettingsBacking.removeSlaSetting}" reRender="slatable"> <h:graphicImage value="../../umbrella/img/gtk-close.png" styleClass="imageButton" /> <f:setPropertyActionListener value="#{sla}" target="#{maintainSlaSettingsBacking.currentSlaSetting}" /> <f:setPropertyActionListener value="#{rowIndex}" target="#{maintainSlaSettingsBacking.currentRowIndex}" /> </a:commandLink> <rich:toolTip for="deleteSlalink" value="Delete"/> <a:commandLink styleClass="menu_link" id="editSlalink" action="#{maintainSlaSettingsBacking.editSlaSetting}" reRender="slaTypeId,Year,Default,slaWeek,slaNoofdays,slaAction"> <h:graphicImage value="../../umbrella/img/edit_row.bmp" styleClass="imageButton" /> <f:setPropertyActionListener value="#{sla}" target="#{maintainSlaSettingsBacking.currentSlaSetting}" /> <f:setPropertyActionListener value="#{rowIndex}" target="#{maintainSlaSettingsBacking.currentRowIndex}" /> </a:commandLink> <rich:toolTip for="editSlalink" value="Edit"/> </rich:column> </rich:extendedDataTable> </fieldset> <br/><br/> <a:commandButton value="Ok" style="margin: 2px 0 0 460px;width:70px" disabled="#{!maintainSlaSettingsBacking.accessPermission}" action="#{maintainSlaSettingsBacking.saveSlaSetting}" oncomplete="#{rich:component('maintainSlaSettings')}.hide();"/> <a:commandButton value="Cancel" style="margin: 2px 0 0 5px;" oncomplete="#{rich:component('maintainSlaSettings')}.hide();"/> </rich:panel> </h:form> </rich:modalPanel> </f:subview> </ui:composition>
Use forum BBCodes please -
3. Re: Extended Datatable shows no data first and then refreshe
mjkrishna25 Oct 13, 2009 10:07 AM (in response to mjkrishna25)richfaces 3.3.1 version is used
-
4. Re: Extended Datatable shows no data first and then refreshe
ilya_shaikovsky Oct 13, 2009 10:26 AM (in response to mjkrishna25)In my modalpanel extendeddatatable shows no data first and then extended datatable refreshes with its datas.
could you please extend this.. looked through the code but seems can't get the problem fully.