-
1. Re: problem with datatable
ilya_shaikovsky Oct 26, 2009 7:54 AM (in response to ashutoshdeora)please add code snippets and screenshot of the problem
-
2. Re: problem with datatable
ashutoshdeora Oct 26, 2009 8:05 AM (in response to ashutoshdeora)<h:form id="nextform"> <a4j:region> <rich:modalPanel id="panel" minWidth="100" minHeight="100" width="530" height="400" moveable="false" left="250" top="100" onbeforeshow="document.getElementById('nextform:resultBlockmodelP').style.display = 'none',document.getElementById('nextform:showdiv').style.display = 'none'"> <s:div id="gpid" style="display:none"> <h:panelGroup> <h:outputText value="Do You Want To Search More -- " /> <a4j:commandButton value="Yes" id="Yesbutton" oncomplete="javascript:Richfaces.hideModalPanel('panel')" onclick="document.getElementById('nextform:resultBlockmodelP').style.display = 'none',document.getElementById('nextform:gpid').style.display = 'none'" action="#{journeyPlannerAction.findTrain(false)}" reRender="resultBlock,buttonBlock,selectedTrain" /> <a4j:commandButton value="No" id="Nobutton" action="#{journeyPlannerAction.seachIndirectRouteandPrepareDB(lapSelected.fromStaion,lapSelected.toStation)}" onclick="document.getElementById('nextform:gpid').style.display = 'none'" /> <a4j:commandButton value="Yes" id="YesAutoRedirect" oncomplete="javascript:Richfaces.hideModalPanel('panel')" onclick="document.getElementById('nextform:resultBlockmodelP').style.display = 'none',document.getElementById('nextform:gpid').style.display = 'none'" action="#{journeyPlannerAction.findTrain(false,true)}" reRender="resultBlock,buttonBlock,selectedTrain" style="display:none" /> </h:panelGroup> </s:div> <table border="0" width="100%"> <tr> <td align="center"><a4j:status> <f:facet name="start"> <h:graphicImage value="/journeyplanner/image/ajax_progress.gif" /> </f:facet> </a4j:status></td> </tr> </table> <a4j:commandButton action="#{journeyPlannerAction.findTrain(true)}" reRender="msgBlock,rList,resultBlockmodelP,resultBlock,buttonBlock,selectedTrain" value="Find trains" id="finishbutton" ajaxSingle="true" eventsQueue="myq" ignoreDupResponses="true" style="display:none" oncomplete="msgforIndirect(#{resultList.size()},#{journeyPlannerAction.availableInDB})"> </a4j:commandButton> <rich:componentControl attachTo="Nobutton" for="panel" event="onclick" operation="hide"></rich:componentControl> <s:div id="resultBlockmodelP" rendered="#{journeyPlannerAction.availableInDB == false}"> <rich:dataTable id="rList" value="#{resultList}" var="rList" rows="3" reRender="ds" rendered="#{resultList.size()>0}"> <!--<f:facet name="header">--> <!-- <rich:columnGroup>--> <f:facet name="caption"> <h:outputText value="Train From #{lapSelected.fromStaion} TO #{lapSelected.toStation}" /> </f:facet> <rich:column> <f:facet name="header"> <h:outputText value="Train Name" /> </f:facet> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Origin" /> </f:facet> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Destination" /> </f:facet> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Duration" /> </f:facet> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Check Avl." /> </f:facet> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="View Fare" /> </f:facet> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="View Schedule" /> </f:facet> </rich:column> <!-- </rich:columnGroup>--> <!--</f:facet>--> <rich:subTable id="dList" value="#{rList.trainDetailList}" var="dList"> <rich:column> <h:outputText value="#{dList.trainName}" /> <h:outputText value="<br/>" escape="false" /> <h:outputText value="#{dList.trainNumber}" /> </rich:column> <rich:column> <h:outputText value="#{dList.origin}" /> <h:outputText value="<br/>" escape="false" /> <h:outputText value="#{dList.startTime}" /> </rich:column> <rich:column> <h:outputText value="#{dList.destination}" /> <h:outputText value="<br/>" escape="false" /> <h:outputText value="#{dList.endTime}" /> </rich:column> <rich:column> <h:outputText value="#{dList.duration}"> <f:converter converterId="TimeConverter" /> </h:outputText> </rich:column> <rich:column> <h:outputText value=" " /> </rich:column> <rich:column> <h:outputText value=" " /> </rich:column> <rich:column> <h:outputText value=" " /> </rich:column> </rich:subTable> <rich:columnGroup style="background-color:#5E7A99;font-weight:bold;"> <rich:column colspan="3"> <rich:spacer /> </rich:column> <rich:column> <h:outputText value="Total"></h:outputText> </rich:column> <rich:column> <h:outputText value="#{rList.totalDuration}"> <f:converter converterId="TimeConverter" /> </h:outputText> </rich:column> <rich:column colspan="3"> <rich:spacer /> </rich:column> </rich:columnGroup> <f:facet name="footer"> <rich:datascroller for="rList" id="ds" ajaxSingle="true"></rich:datascroller> </f:facet> </rich:dataTable> </s:div> <s:div id="showdiv" style="display:none"> <table border="0" width="100%"> <tr> <td align="center"><h:outputText value="Direct Train Not Found. Searching for Indirect Train.........." /> </td> </tr> </table> </s:div> </rich:modalPanel> </a4j:region> </h:form>
[img]file:///C:/Documents%20and%20Settings/ashutosh/Desktop/problempage.JPG[/img] -
4. Re: problem with datatable
ashutoshdeora Oct 26, 2009 8:15 AM (in response to ashutoshdeora)http://img27.imageshack.us/img27/7857/problempage.th.jpg
please use this to see the screen shot for the problem -
5. Re: problem with datatable
nbelaevski Oct 26, 2009 8:47 AM (in response to ashutoshdeora)"ashutoshdeora" wrote:
http://img27.imageshack.us/img27/7857/problempage.th.jpg
please use this to see the screen shot for the problem
Hi,
It's 150x124, I cannot see anything on it. -
6. Re: problem with datatable
ashutoshdeora Oct 27, 2009 12:48 AM (in response to ashutoshdeora)http://img43.imageshack.us/i/probj.png/
please use this link to see the image
in the image please see the top - right
u will see the extra coming out from the table
and please see the second row after a completes
please let me know whats worng
the snippet is already there -
7. Re: problem with datatable
ashutoshdeora Oct 27, 2009 6:21 AM (in response to ashutoshdeora)i hope the image is perfect for the analysis
please tell me how to tackle this -
8. Re: problem with datatable
ilya_shaikovsky Oct 27, 2009 6:25 AM (in response to ashutoshdeora)you have 7 columns and your column group tries to fit the space of 8 columns (taking into consideration colspans)
-
9. Re: problem with datatable
ashutoshdeora Oct 27, 2009 6:40 AM (in response to ashutoshdeora)thanks for the error pointing in the pattern
can u suggest something where i should move this colomn group
for the time being im removing the colun group from the point -
10. Re: problem with datatable
ilya_shaikovsky Oct 27, 2009 6:43 AM (in response to ashutoshdeora)just correct the colspans to have the same columns number.
-
11. Re: problem with datatable
ashutoshdeora Oct 27, 2009 7:48 AM (in response to ashutoshdeora)i have corrected the colspans to the total number 7 but still the table is still like tht
and when i remove the columnGroup and when i run the code again the multiple no. of columns problem have gone but one row and column still comes
the blank row can be seen in the screenshot i have sent
please tell what is the reason