CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 JSP Grid Issue

Print topic Send  topic

Author Message
jpaolucc

Posts: 2
Posted: 04/02/2015, 1:15 PM

I am having an issue using the CodeCharge tag library with a grid. The code is structured such that I have tag prefix for CodeCharge called ccs and I have a ccs:grid with a ccs:repeater nested within it which in turn has a ccs:row nested within it. I have inherited this code and I am not terribly familiar with CodeCharge, but the issue is that periodically the grid will not render all rows returned by the query that drives it. In fact, all of the remaining html after the grid is also not rendered. This indcludes two buttons below the grid and a footer containing some links. I have checked and fixed any script or resource related errors reported by the Chrome console but still get the unwanted behavior, so I assume that it must be in the grid or repeater tag itself. Is this something that someone has seen before. It only happens occasionally upon refresh.

Thanks,
Jay Paolucci
_________________
Jay Paolucci
View profile  Send private message
eratech


Posts: 513
Posted: 04/04/2015, 9:14 PM

Jay - I don't spend much time in JSP , but those symptoms in PHP usually mean PHP has crashed on a specific row and stopped sending the HTML.

Check for any 'BeforeShow' or 'Before Show Row' events that might be attempting to check or change a value using a label or variable - it might not exist or might be the wrong data type.

Also, avoid trying to edit code directly in the JSP pages - that's a good way of introducing errors as CCS will stop updating any parts you have edited and you will chase your tail for hours (or days) See if you can edit any properties in the CCS IDE before *carefully* changing code (obviously CustomCode can be changed - CCS let's you do what you want in those blocks.

If you can get the SQL for the Grid, try running it directly on the Database and see if it throws up any odd results (maybe a really long value or so mis-handled NULLS)

Let us know how you go

Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
jpaolucc

Posts: 2
Posted: 04/05/2015, 11:48 AM

Eric,

After finally getting to run the code through a debugger (NetBeans) I can see that the problem is that somehow a form_action tag is being utilized outside of a grid or record tag. However, when I look at the .jsp file that is spawning this error I cannot find an instance where a form_action tag is not nested under either a grid or record tag. The code below is what is throwing the error. This occasionally happens in 1 other location as well. Is this a bug in the version of the CodeCharge library I am using or user error? Thanks for the help.

<table border="0" width="950px">  
  <tr>  
  <td width="10%">  
    <ccs:record name='delete_list'>  
       <form id="delete_list" method="post" name="delete_list" action="<ccs:form_action/>">  
            <input id="Button_Delete" alt="Delete" src="images/btn_deleteList.png" type="image" name="Button_Delete" onClick='delete_listButton_Delete_OnClick();'>  
       </form>  
    </ccs:record>  
  </td>  
  
 <td width="100%" align="right">  
      <ccs:block name='Link1'><a href="<ccs:control name='Link1' property='href'/>" id="Link1" target="_top"><img border="0" alt="[ Run Sustainability Report ]"  src="images/template/btn_calculateSeafood.png"></a></ccs:block></td>  
    <td width="10%"> </td>  
  </tr>  
</table>

This ends up producing the following result in the browser:

<table border="0" width="950px">  
  <tr>  
  <td width="10%">  
      
       <form id="delete_list" method="post" name="delete_list" action="

_________________
Jay Paolucci
View profile  Send private message
eratech


Posts: 513
Posted: 04/06/2015, 7:50 PM

Jay - good work debugging. As I said I'm not sure about JSP, but I think the '<ccs:form_action/>' etc are the CCS templating for inserting it's own code and properties and I wouldn't normally expect to see them in the HTML or Design views (usually HTML has HTML Comments like '<!-- Start Grid1-->' )

It's possible that the Template has become mis-aligned with the CCS design and throwing problems. I would suggest trying to add a new Record or Grid to the page and see if it works properly and then maybe re-do the delete_list you have problems with.

I've seen CCS get confused sometimes and after some mucking around it is sometimes easier to delete the item and re-add it (as CCS makes is fairly quick)

Interested in your findings through.

Eric

_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.