Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
GridCell throws null pointer when binding to editable property
Forum Index -> DataTable
Author Message
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

Binding the e:gridTd editable property throws null pointer in GridCell.
Before RENDER_RESPONSE 6 /testMain.jsp

TESTBEAN setting Data

<Nov 5, 2007 3:10:13 PM MST> <Error> <ServletContext-/champs> <BEA-000000> <null
java.lang.NullPointerException
at ecruiser.advanced.datatable.GridCell.getEditable(Unknown Source)
at ecruiser.advanced.datatable.render.html.HTML_GridTableRenderer.encodeJSInitialization(Unknown Source)
at ecruiser.advanced.datatable.render.html.HTML_DataTableRenderer.renderMainRow(Unknown Source)
at ecruiser.advanced.datatable.render.html.HTML_BasicDataTableRenderer.encodeEnd(Unknown Source)
at ecruiser.advanced.datatable.render.html.HTML_DataTableRenderer.encodeEnd(Unknown Source)
Truncated. see log file for complete stacktrace
>
Nov 5, 2007 3:10:13 PM com.sun.faces.lifecycle.LifecycleImpl phase
WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@aa48bc) threw exception
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

One other question is I do not see a way to set the default inputText box size and maxlength in the gridTd. I did put in a custom editor with the inputText but you don't the same behavior in rendering or entering the edit mode.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

In this version, we don't support "editable" at gridCell's level, but only for the entire column. We plan to add this feature, but it's hard to say exactly when we can do that.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

cobar wrote:
One other question is I do not see a way to set the default inputText box size and maxlength in the gridTd. I did put in a custom editor with the inputText but you don't the same behavior in rendering or entering the edit mode. 


Did you use something like this?


cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

Yes, but the behavior was that once you entered the edit mode the inputText box disapeared and the defaut edit box appeared. The user can then type unlimitedly until the page goes nuts and the server throws an error. The best solution is to add size and maxlength to the default editor.

FYI, The e:window is way cool!!! I have it hooked to a valuechangelistener on a e:selecttable. Is there anyway to fire an event from a double click?
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

This seems to work fine in our test pages. I tested these files on Tomcat 5.0 with jsf 1.1_02. Please, look into it.
 Filename Spreadsheet.java [Disk] Download
 Description
 Filesize 2 Kbytes
 Downloaded:  486 time(s)

 Filename faces-config.xml [Disk] Download
 Description
 Filesize 431 bytes
 Downloaded:  467 time(s)

 Filename jsfComp.jsp [Disk] Download
 Description
 Filesize 2 Kbytes
 Downloaded:  430 time(s)

 
Forum Index -> DataTable
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2012 Simplica Corporation. All rights reserved.