smartwgtpower 3.1p
Hello,
I whish to configure a datasource in a way it derives all column properties (except where noted) to be shown from the table and/or bean.
The client code instantiates a ListGrid and sets setShowAllColumns(true).
my datasource is
Where's the trick?
Thank you.
Hello,
I whish to configure a datasource in a way it derives all column properties (except where noted) to be shown from the table and/or bean.
The client code instantiates a ListGrid and sets setShowAllColumns(true).
my datasource is
Code:
<DataSource ID="customer_DataSource" serverType="sql" tableName="Stakeholder" beanClassName="com.realanywhere.domain.Stakeholder" autoDeriveSchema="true" schemaBean="com.realanywhere.domain.Stakeholder"> <fields> <field name="id" hidden="true" /> <field name="version" hidden="true" /> </fields> </DataSource>
Code:
[INFO] ISC: Configuring log4j from: file:/home/lrkwz/car/car-parent/websales-car-customermanagement/target/websales-car-customermanagement-0.0.1-SNAPSHOT/WEB-INF/classes/log4j.isc.config.xml [INFO] === 2013-01-23 11:12:56,018 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.InitListener [INFO] === 2013-01-23 11:12:56,019 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing [INFO] === 2013-01-23 11:12:56,025 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH [INFO] === 2013-01-23 11:12:56,202 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/home/lrkwz/car/car-parent/websales-car-customermanagement/target/websales-car-customermanagement-0.0.1-SNAPSHOT/WEB-INF/lib/isomorphic_core_rpc-3.1.jar!/framework.properties [INFO] === 2013-01-23 11:12:56,202 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH [INFO] === 2013-01-23 11:12:56,203 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH [INFO] === 2013-01-23 11:12:56,211 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/home/lrkwz/car/car-parent/websales-car-customermanagement/target/websales-car-customermanagement-0.0.1-SNAPSHOT/WEB-INF/lib/isomorphic_core_rpc-3.1.jar!/isc_interfaces.properties [INFO] === 2013-01-23 11:12:56,211 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH [INFO] === 2013-01-23 11:12:56,219 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/home/lrkwz/car/car-parent/websales-car-customermanagement/target/websales-car-customermanagement-0.0.1-SNAPSHOT/WEB-INF/classes/server.properties [INFO] === 2013-01-23 11:12:56,230 [main] INFO Logger - Logging system started. [INFO] === 2013-01-23 11:12:56,231 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (v8.3p_2013-01-13/PowerEdition Deployment 2013-01-13) - Initialization Complete [INFO] === 2013-01-23 11:12:56,235 [main] INFO ISCInit - Auto-detected webRoot - using: /home/lrkwz/car/car-parent/websales-car-customermanagement/target/websales-car-customermanagement-0.0.1-SNAPSHOT [INFO] === 2013-01-23 11:12:56,257 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Base [INFO] === 2013-01-23 11:12:56,257 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized [ERROR] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [ERROR] log4j:WARN Please initialize the log4j system properly. [ERROR] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. [INFO] === 2013-01-23 11:12:56,368 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Init [INFO] === 2013-01-23 11:12:56,368 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized [INFO] === 2013-01-23 11:14:05,560 [l0-0] INFO Compression - /websales-car-customermanagement.html: 1387 -> 626 bytes [INFO] === 2013-01-23 11:14:05,866 [l0-2] INFO RequestContext - URL: '/websales_car_customermanagement/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0': Moz (Gecko) with Accept-Encoding header [INFO] === 2013-01-23 11:14:05,899 [l0-2] INFO PoolManager - SmartClient pooling disabled for 'customer_DataSource' objects [INFO] === 2013-01-23 11:14:06,054 [l0-0] INFO Compression - /websales_car_customermanagement/sc/modules/ISC_Core.js: 784933 -> 205656 bytes [INFO] === 2013-01-23 11:14:10,236 [l0-2] INFO RequestContext - URL: '/websales_car_customermanagement/sc/skins/Enterprise/images/DynamicForm/date_control.png', User-Agent: 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0': Moz (Gecko) with Accept-Encoding header [INFO] === 2013-01-23 11:14:10,278 [l0-2] INFO Download - done streaming: /home/lrkwz/car/car-parent/websales-car-customermanagement/target/websales-car-customermanagement-0.0.1-SNAPSHOT/websales_car_customermanagement/sc/skins/Enterprise/images/DynamicForm/date_control.png [INFO] === 2013-01-23 11:14:10,446 [l0-2] INFO RequestContext - URL: '/websales_car_customermanagement/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0': Moz (Gecko) with Accept-Encoding header [INFO] === 2013-01-23 11:14:10,507 [l0-2] INFO IDACall - Performing 1 operation(s) [INFO] === 2013-01-23 11:14:10,516 [l0-2] INFO SQLDataSource - [builtinApplication.customer_DataSource_fetch] Performing fetch operation with [INFO] criteria: {} values: {} [INFO] === 2013-01-23 11:14:10,519 [l0-2] WARN RequestContext - dsRequest.execute() failed: [INFO] java.lang.ClassCastException: com.isomorphic.datasource.BasicDataSource cannot be cast to com.isomorphic.sql.SQLDataSource [INFO] at com.isomorphic.sql.SQLDataSource.getField2ColumnMap(SQLDataSource.java:2496) [INFO] at com.isomorphic.sql.SQLDataSource.getField2ColumnMap(SQLDataSource.java:2486) [INFO] at com.isomorphic.sql.SQLSelectClause.<init>(SQLSelectClause.java:70) [INFO] at com.isomorphic.sql.SQLSelectClause.<init>(SQLSelectClause.java:86) [INFO] at com.isomorphic.sql.SQLDataSource.getClausesContext(SQLDataSource.java:2267) [INFO] at com.isomorphic.sql.SQLDataSource.SQLExecute(SQLDataSource.java:1275) [INFO] at com.isomorphic.sql.SQLDataSource.processRequest(SQLDataSource.java:306) [INFO] at com.isomorphic.sql.SQLDataSource.executeFetch(SQLDataSource.java:250) [INFO] at com.isomorphic.datasource.DataSource.execute(DataSource.java:1367) [INFO] at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:726) [INFO] at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658) [INFO] at com.isomorphic.application.AppBase.execute(AppBase.java:491) [INFO] at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2031) [INFO] at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:216) [INFO] at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:173) [INFO] at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:138) [INFO] at com.isomorphic.servlet.IDACall.doPost(IDACall.java:74) [INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) [INFO] at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) [INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [INFO] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [INFO] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) [INFO] at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259) [INFO] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) [INFO] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) [INFO] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [INFO] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [INFO] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) [INFO] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) [INFO] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [INFO] at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) [INFO] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [INFO] at org.mortbay.jetty.Server.handle(Server.java:324) [INFO] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) [INFO] at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) [INFO] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) [INFO] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) [INFO] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) [INFO] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) [INFO] at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) [INFO] === 2013-01-23 11:14:10,527 [l0-2] INFO Compression - /websales_car_customermanagement/sc/IDACall: 213 -> 166 bytes
Thank you.
Comment