Quantcast
Channel: SmartClient Forums
Viewing all 4756 articles
Browse latest View live

Issues with Calender and CalendarEvent.

$
0
0
Hi,

GWT Version : 2.4.0
SmartGWT Version : 5.0p
SmartGWT Build Date : 19/03/2015 10:13
Browser: IE11


We are having issues using these two classes: com.smartgwt.client.widgets.calendar.Calendar AND com.smartgwt.client.widgets.calendar.CalendarEvent.


We have two instances of the same program. One shows the events on Calendar while other one doesn't.

The data passed to both is identical. The only difference I can see is one program is running on tomcat/SQL-Server 2008 (works fine) and other one on tomcat/SQL-Server 2005 (doesn't work).


Here are two little pieces of code:


public static CalendarEvent convertToCalendarEvent(ListGridRecord listRecord) {
CalendarEvent event = new CalendarEvent();
for (String attributeName : listRecord.getAttributes()) {
if (!attributeName.startsWith("__")) {
event.setAttribute(attributeName, listRecord.getAttributeAsObject(attributeName));
}
}
return event;
}

---

private void createCalendar() {
calendar = new Calendar() {
@Override
protected String getDayBodyHTML(Date date, CalendarEvent[] events, Calendar calendar, int i, int i1) {
String returnStr = date.getDate() + "";
if(events != null && events.length > 0) {
returnStr += imgHTML(ImageConstants.DEADLINE_16, 16, 16, "image", "style='margin-top:6px'", null);
}
return returnStr;
}
};
calendar.setWidth(visibleWidth);
calendar.setCanHover(true);
calendar.setHoverWidth(500);
........


We need to show this little icon (imgHTML as above) on Calendar when there is an Event on a date. As I mentioned it seems to work for one instance of program and doesn't work for other.


Can you please help?


Regards,
.

Default to first option, is it possible?

$
0
0
Hi all,

For SelectItem form items, there is the option of setDefaultToFirstOption().

Is it possible to default a select list to the first option, only if 1 record is in the list?

I guess I could do this with a addDataArrivedHandler handler, but is there a simpler way?

Thanks,
Dale

Add buttons to Splitbar

$
0
0
How is it possible to extend Splitbar and add two buttons somewhere near central grip to show/hide left pane (same behaviour to present double-click behaviour)

Using SmartGWT 4.1p and 5.1d. Browsers - FF, Chrome

Use FormulaBuilder to ctreate custom dialog for group formula editing

$
0
0
We want to use formulabuilder for certain use-case:

User clicks on custom menuitem in list-grid header and calls dialog in which he can setup grouping and apply formulas for selected columns/ The columns list may include not only numeric columns but also DATE, TIME and DATETIME.


How we can acheive such functionality?


We are using smartGWT 4.1p LGPL

Export date format

$
0
0
Hello,
I used smartGWT 5.0 version. On Ui I can can date fields on my format dd.MM.yyyy, but when I made an export like datasource.exportData(dsRequest) the exported data is in format yyyy-MM-dd. How could I set the export format for date?
Example: in UI date is 17.04.2015 in export csv fiel data is 2015-04-17.

Also some german characters are not looking on export file for example "Geändert am" is "Geändert am" even if I use UTF-8 encoding

Best regards,
Marius

BUG: ListGrid Expanded Record on smartgwt 5.0

$
0
0
Recently I hit a strange bug involving an expandable ListGrid.
I have attached a small TestCase that will reproduce the problem.

I was able to reproduce the problem using the latest nightly build for SmartGwt 5.0 (SmartClient Version: v10.0p_2015-04-17/LGPL Development Only (built 2015-04-17))

Steps to reproduce:

1) Expand the ListGrid.
2) Resize (widen) a column in order to get a horizontal scroll-bar on the grid.
3) Scroll to the end of the grid. (So far everything is fine...).
4) Widen more a column in order to get a bigger scroll-bar.
5) Now try scrolling to the of the grid -> BUG -> It appears that the nested layout becomes unaware of its actual boundaries.


P.S.
There are two notes I wish add:
1) When overriding getExpansionComponent(..) and the returned layout's width is set to setWidth100(), it doesn't auto-scale when a horizontal scroll-bar appears. It stays locked in the grid's viewport. This may or may not be related to the bug I've described, but still it's unexpected behavior.

2) I wasn't able to find a way to refresh (invalidate) a nested component, except collapsing and re-expanding it...

Attached Files
File Type: java TestCase.java (2.6 KB)

Sort specifiers removed by update on a ListGrid DataSource sorted on a datetime field

$
0
0
Hi

I get an issue by using smartgwt pro 4.1 (nightly build (v9.1p_2015-03-24/Pro Deployment 2015-03-24)). Actually I am not quite sure if this is a bug or a feature :).

I have a data bound ListGrid in paging mode sorted on a datetime field.
The ListGrid get unsorted (the sort specifiers are deleted) after an update or add operation on the ListGrid DataSource.
Is this deliberate?

The sort specifiers retain after update or add operation when sorting on fields of type text or long.
I would like keeping the sort specifiers when sorting on fields of any type. Is this possible?

This occurs not only in that nightly build.

I would appreciate if someone checks this.

Ts. Vasilev

Recommended way to insert wsse:UsernameToken in SOAP header

$
0
0
Hi,

I'm currently evaluating SmartGWT for purchase in the near future, and a very important capability I'm interested in is the WSDL Binding capability. This question is generic and isn't specific to any code sample, SmartGWT version or WSDL.

I'm dealing with a WSDL for a third party web service, where I don't have access to make changes to the schema. In order to authenticate with the web service, each SOAP request needs to include the following header:
Code:

<soapenv:Header>
  <wsse:Security mustUnderstand="1">
      <wsse:UsernameToken wsu:Id="Example-1">
        <wsse:Username> ... </wsse:Username>
        <wsse:Password Type="..."> ... </wsse:Password>
        <wsse:Nonce EncodingType="..."> ... </wsse:Nonce>
        <wsu:Created> ... </wsu:Created>
      </wsse:UsernameToken>
  </wsse:Security>
</soapenv:Header>

My understanding is that this is a fairly standard WSSE security header. It's standard enough that it isn't explicitly defined in the WSDL schema.

If I were to use SOAP-UI, the instructions to perform this operation are specified here: http://www.soapui.org/soap-and-wsdl/authenticating-soap-requests.html. By simply setting, the username, password and 'WSS-Password Type' field to "PasswordText" SOAP-UI is intelligent enough to generate and use the header automatically.

Digging through the Javadoc, I'd assume that the header could be set using:
Code:

WSRequest.setHeaderData()
Since the WSDL doesn't define this header, and it isn't defined in a physical xsd file, adding a username field to the header data will yield the following response:
Code:

headerData passed for SOAP header partName: Username, no schema available, not outputting
Failing to enter the header in the SOAP message yields an error (summarized):
Code:

<faultstring>Security Requirements not met - No Security header in message</faultstring>
I've looked at the Salesforce example hiding in the Smartclient zip file, and it doesn't provide the information I need. It uses a very specific login, log off capability clearly defined in the WSDL, and my WSDL uses a more generic authentication. Also, I am trying to evaluate SmartGWT and not SmartClient, so a Java based solution would be better.

Does SmartGWT provide a way to specify this SOAP-UI style of authentication header (knowing that it is not explicitly defined in the WSDL)? In the worst case, I would fine entering manual text as the header section rather than using the xml serialization.

I think this question is generic enough across multiple projects and WSDLs.
What is the recommended way to authenticate SOAP requests with SmartGWT?

How to resize timeline view?

$
0
0
I just started using Smart Client and trying out its Timeline view. By default I see in the demo that the timeline view provides 21 days view and that fills the screen. However, when I change it to just 7 days view it doesn't display in full width of the page and just shows up in condensed view.

For example, consider following demo link of simple timeline -

https://www.smartclient.com/docs/release/a/system/reference/SmartClient_Explorer.html#simpleTimeline


Here, if I just change the number of days in the end date to display only 7 days instead of 21 days it just cuts those days from the view and so the 7 days shows only in half the screen instead of stretching through the width of the page.

Code:

var developers = [
    { name: "charlesMadigen", title: "Charles Madigen" },
    { name: "tamaraKane", title: "Tamara Kane" },
    { name: "darcyFeeney", title: "Darcy Feeney" },
    { name: "kaiKong", title: "Kai Kong" },
    { name: "shellyFewel", title: "Shelly Fewel" },
    { name: "garretMonroe", title: "Garret Monroe" }
];

var _calStart = isc.DateUtil.getStartOf(new Date(2012, 6, 5), "W");
var _calEnd = _calStart.duplicate();
_calEnd.setDate(_calEnd.getDate() + 5);

isc.Timeline.create({
    ID: "timeline",
    height: 451,
    startDate: _calStart,
    endDate: _calEnd,
    data: events,
    lanes: developers,
    headerLevels: [ { unit: "week" }, { unit: "day" } ],
    laneFields: [ { name: "title", title: "Developer", width: 120 } ],
    canEditLane: true,
    showEventDescriptions: false,
    columnsPerPage: 5
});

How do I make it consume full width of the page? I looked up Smart Client documentation but couldn't find anything that helped. I will appreciate any help as I am finding it frustrating as a starter of Smart Client.

Error creating bean with name 'supplyItemDaoTarget'

$
0
0
I am installing SmartClient_v91p_2015-04-18_Evaluation on Windows 7 Premium 64 bit using Mozilla Firefox 37.0.1 with Firebug.

Starting Tomcat I get an org.springframework.beans.factory.BeanCreationException right away.

This is the server log.
Quote:

Using user-defined JAVA_HOME: "C:\Program Files (x86)\Java\jdk1.7.0"

Active code page: 65001
Setting Tomcat <Connector> property (port 8080): maxThreads=1000
Setting Tomcat <Connector> property (port 8080): maxHeaderCount=200
Setting Tomcat <Connector> property (port 8080): maxKeepAliveRequests=1000
Setting Tomcat <Connector> property (port 8080): maxHttpHeaderSize=65536
=== 2015-04-19 13:07:07,891 [main] INFO Embedded - Starting tomcat server
=== 2015-04-19 13:07:08,062 [main] INFO StandardEngine - Starting Servlet Engine: Apache Tomcat/5.5.23
=== 2015-04-19 13:07:08,109 [main] INFO StandardHost - XML validation disabled
ISC: Configuring log4j from: file:/D:/My%20Websites/Planet%20Project/WEB-INF/classes/log4j.isc.config.xml
log4j:WARN No such property [encoding] in com.isomorphic.log.RevolvingMemoryAppender.
=== 2015-04-19 13:07:13,429 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
=== 2015-04-19 13:07:13,444 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
=== 2015-04-19 13:07:13,538 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/D:/My%20Websites
/Planet%20Project/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
=== 2015-04-19 13:07:13,538 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
=== 2015-04-19 13:07:13,538 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
=== 2015-04-19 13:07:13,538 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/D:/My%20Web
sites/Planet%20Project/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
=== 2015-04-19 13:07:13,538 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
=== 2015-04-19 13:07:13,538 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/D:/My%20Websites/Planet
%20Project/WEB-INF/classes/server.properties
=== 2015-04-19 13:07:13,553 [main] INFO Logger - Logging system started.
=== 2015-04-19 13:07:13,553 [main] INFO ISCInit - Auto-detected webRoot - using: D:\My Websites\Planet Project
=== 2015-04-19 13:07:13,553 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (v9.1p_2015-04-18/EVAL Deployment 2015-04-18) - Initializa
tion Complete
=== 2015-04-19 13:07:13,943 [main] INFO JSSyntaxScannerFilter - Couldn't load list of FileAssembler URLs - if the filter intercepts those URLs, they w
ill be scanned.
=== 2015-04-19 13:07:14,006 [main] INFO AuthenticationFilter - AuthExampleAuthenticator - URI Cache enabled - max size: 10000 entries
=== 2015-04-19 13:07:14,037 [main] INFO [/] - Initializing Spring root WebApplicationContext
=== 2015-04-19 13:07:16,736 [main] ERROR [/] - StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'supplyItemDaoTarget' defined in ServletContext resource [/WEB-I
NF/applicationContext.xml]: Cannot resolve reference to bean 'hibernateSessionFactory' while setting bean property 'sessionFactory'; nested exception i
s org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateSessionFactory' defined in ServletContext resource [
/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hsqldb.DatabaseURL.parseURL(Lj
ava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateSessionFactory' defined in ServletContext r
esource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hsqldb.DatabaseURL.pa
rseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
Caused by: java.lang.NoSuchMethodError: org.hsqldb.DatabaseURL.parseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:110
0)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:82)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.startup.Embedded.start(Embedded.java:822)
at com.isomorphic.embedded_tomcat.EmbeddedTomcat.main(EmbeddedTomcat.java:270)
=== 2015-04-19 13:07:16,783 [main] ERROR [/] - Servlet threw load() exception
java.lang.NoSuchMethodError: org.hsqldb.DatabaseURL.parseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:110
0)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:82)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.startup.Embedded.start(Embedded.java:822)
at com.isomorphic.embedded_tomcat.EmbeddedTomcat.main(EmbeddedTomcat.java:270)
=== 2015-04-19 13:07:17,048 [main] INFO TilesPlugin - Tiles definition factory loaded for module ''.
=== 2015-04-19 13:07:17,079 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validator-rules.xml'
=== 2015-04-19 13:07:17,079 [main] INFO ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml'
=== 2015-04-19 13:07:17,219 [main] INFO PreCache - Isomorphic PreCache servlet loading
=== 2015-04-19 13:07:17,297 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\builtinTypes.xml: 15ms
=== 2015-04-19 13:07:17,313 [main] INFO PoolManager - SmartClient pooling started for 'simpleTypes' objects
=== 2015-04-19 13:07:17,719 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DataSource.ds.xml: 0ms
=== 2015-04-19 13:07:17,890 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DataSourceField.ds.xml: 0ms
=== 2015-04-19 13:07:18,015 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Validator.ds.xml: 0ms
=== 2015-04-19 13:07:18,124 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ValueMap.ds.xml: 0ms
=== 2015-04-19 13:07:18,124 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\InstantDataApp.ds.xml: 0ms
=== 2015-04-19 13:07:18,327 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Application.ds.xml: 0ms
=== 2015-04-19 13:07:18,358 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAPage.ds.xml: 0ms
=== 2015-04-19 13:07:18,374 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAUserType.ds.xml: 0ms
=== 2015-04-19 13:07:18,389 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\IDAOperation.ds.xml: 0ms
=== 2015-04-19 13:07:18,421 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Canvas.ds.xml: 16ms
=== 2015-04-19 13:07:18,467 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\MethodDeclaration.ds.xml: 0ms
=== 2015-04-19 13:07:18,499 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Img.ds.xml: 0ms
=== 2015-04-19 13:07:18,530 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\StatefulCanvas.ds.xml: 0ms
=== 2015-04-19 13:07:18,545 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\Button.ds.xml: 0ms
=== 2015-04-19 13:07:18,561 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ListViewer.ds.xml: 0ms
=== 2015-04-19 13:07:18,577 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\ListGrid.ds.xml: 16ms
=== 2015-04-19 13:07:18,623 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DynamicForm.ds.xml: 0ms
=== 2015-04-19 13:07:18,639 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\FormItem.ds.xml: 0ms
=== 2015-04-19 13:07:18,686 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DetailViewer.ds.xml: 0ms
=== 2015-04-19 13:07:18,701 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\DetailViewerField.ds.xml: 0ms
=== 2015-04-19 13:07:18,717 [main] DEBUG XML - Parsed XML from D:\My Websites\Planet Project\isomorphic\system\schema\isomorphicXML.ds.xml: 0ms
=== 2015-04-19 13:07:18,717 [main] INFO PreCache - Isomorphic PreCache complete (1498ms)
=== 2015-04-19 13:07:18,935 [main] INFO Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080
=== 2015-04-19 13:07:18,998 [main] INFO Http11BaseProtocol - Starting Coyote HTTP/1.1 on http-8080
When I try to start the Admin Console I get a java.lang.NoSuchMethodError. Below is the developer console.
Quote:

09:11:34.952:INFO:Log:initialized
09:11:35.293:DEBUG:Log:deferred code being placed on class: [Class AdvancedHiliteEditor]
09:11:36.356:INFO:Log:isc.Page is loaded
09:11:55.390:XRP0:WARN:RPCManager:java.lang.NoSuchMethodError: org.hsqldb.DatabaseURL.parseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:243)
at com.isomorphic.sql.PoolableSQLConnectionFactory.makeUnpooledObject(PoolableSQLConnectionFactory.java:270)
at com.isomorphic.sql.PoolableSQLConnectionFactory.makeObject(PoolableSQLConnectionFactory.java:367)
at com.isomorphic.pool.PoolManager.borrowNewObject(PoolManager.java:156)
at com.isomorphic.sql.SQLConnectionManager.getNewConnection(SQLConnectionManager.java:219)
at com.isomorphic.tools.AdminConsole.getConnectionForConfig(AdminConsole.java:233)
at com.isomorphic.tools.AdminConsole.testDBCore(AdminConsole.java:182)
at com.isomorphic.tools.AdminConsole.getDefinedDatabases(AdminConsole.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:975)
at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:805)
at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:309)
at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
at org.apache.jsp.tools.adminConsoleOperations_jsp._jspService(adminConsoleOperations_jsp.java:112)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:252)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:722)
undefined - response: {operationId: "custom",
clientContext: undef,
internalClientContext: undef,
context: Obj,
transactionNum: 0,
httpResponseCode: 200,
httpResponseText: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//isc_RPCResponseSta..."[9878],
xmlHttpRequest: [object XMLHttpRequest],
transport: "xmlHttpRequest",
status: -1,
clientOnly: undef,
httpHeaders: Obj,
isStructured: true,
callbackArgs: null,
results: Obj,
data: "java.lang.NoSuchMethodError: org.hsqldb...."[3882]}
09:11:55.451:XRP0:WARN:RPCManager:java.lang.NoSuchMethodError: org.hsqldb.DatabaseURL.parseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at com.isomorphic.hibernate.HibernateDataSource.initStaticConfigAndSessionFactory(HibernateDataSource.java:798)
at com.isomorphic.hibernate.HibernateDataSource.getStaticHibernateConfig(HibernateDataSource.java:598)
at com.isomorphic.hibernate.HibernateDSGenerator.getConfigFromMapping(HibernateDSGenerator.java:155)
at com.isomorphic.hibernate.HibernateDSGenerator.fromMapping(HibernateDSGenerator.java:133)
at com.isomorphic.hibernate.HibernateDataSource.init(HibernateDataSource.java:289)
at com.isomorphic.datasource.DataSource.initialize(DataSource.java:528)
at com.isomorphic.datasource.BasicDataSource.fromConfig(BasicDataSource.java:177)
at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:513)
at com.isomorphic.datasource.FileSystemDSRepo.loadDS(FileSystemDSRepo.java:110)
at com.isomorphic.datasource.DataSource.forName(DataSource.java:272)
at com.isomorphic.datasource.DataSource.forName(DataSource.java:264)
at com.isomorphic.datasource.DataSource.forName(DataSource.java:253)
at com.isomorphic.datasource.PoolableDataSourceFactory.makeUnpooledObject(PoolableDataSourceFactory.java:135)
at com.isomorphic.datasource.PoolableDataSourceFactory.makeObject(PoolableDataSourceFactory.java:151)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:964)
at com.isomorphic.pool.ISCKeyedObjectPool.borrowObject(ISCKeyedObjectPool.java:106)
at com.isomorphic.pool.PoolManager.borrowObject(PoolManager.java:84)
at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:135)
at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:86)
at com.isomorphic.tools.BuiltinRPC.getDefinedDataSourcesAsList(BuiltinRPC.java:685)
at com.isomorphic.tools.BuiltinRPC.getDefinedDataSources(BuiltinRPC.java:731)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:975)
at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:805)
at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:309)
at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
at org.apache.jsp.tools.adminConsoleOperations_jsp._jspService(adminConsoleOperations_jsp.java:112)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:252)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:722)
undefined - response: {operationId: "custom",
clientContext: undef,
internalClientContext: undef,
context: Obj,
transactionNum: 0,
httpResponseCode: 200,
httpResponseText: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//isc_RPCResponseSta..."[9878],
xmlHttpRequest: [object XMLHttpRequest],
transport: "xmlHttpRequest",
status: -1,
clientOnly: undef,
httpHeaders: Obj,
isStructured: true,
callbackArgs: null,
results: Obj,
data: "java.lang.NoSuchMethodError: org.hsqldb...."[5550]}
09:12:12.018:XRP6:WARN:drawing:isc_globalWarn_body:Attempt to draw child of an undrawn parent - ignoring
Canvas.readyToDraw()
Canvas.draw(_1=>undef)
Window.$7h()
Window.layoutChildren(_1=>"resized", _2=>-375, _3=>0, _4=>undef)
Canvas.$t1(_1=>undef)
Canvas.resizeBy(_1=>-375, _2=>null, _3=>undef, _4=>undef, _5=>undef, undef, undef, undef, undef, undef)
[a]MathFunction.invokeSuper(_1=>[Class Window], _2=>"resizeBy", _3=>-375, _4=>null, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
Window.resizeBy(_1=>-375, _2=>null, _3=>undef, _4=>undef, _5=>undef)
Canvas.resizeTo(_1=>360, _2=>undef, _3=>undef, _4=>undef, _5=>undef, undef, undef, undef, undef, undef)
** recursed on [a]MathFunction.invokeSuper

09:12:12.093:XRP6:WARN:RPCManager:java.lang.NoSuchMethodError: org.hsqldb.DatabaseURL.parseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:243)
at com.isomorphic.sql.PoolableSQLConnectionFactory.makeUnpooledObject(PoolableSQLConnectionFactory.java:270)
at com.isomorphic.sql.PoolableSQLConnectionFactory.makeObject(PoolableSQLConnectionFactory.java:367)
at com.isomorphic.pool.PoolManager.borrowNewObject(PoolManager.java:156)
at com.isomorphic.sql.SQLConnectionManager.getNewConnection(SQLConnectionManager.java:219)
at com.isomorphic.tools.AdminConsole.getConnectionForConfig(AdminConsole.java:233)
at com.isomorphic.tools.AdminConsole.testDBCore(AdminConsole.java:182)
at com.isomorphic.tools.AdminConsole.getDefinedDatabases(AdminConsole.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:975)
at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:805)
at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:309)
at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
at org.apache.jsp.tools.adminConsoleOperations_jsp._jspService(adminConsoleOperations_jsp.java:112)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:252)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:722)
undefined - response: {operationId: "custom",
clientContext: undef,
internalClientContext: undef,
context: Obj,
transactionNum: 1,
httpResponseCode: 200,
httpResponseText: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//isc_RPCResponseSta..."[4111],
xmlHttpRequest: [object XMLHttpRequest],
transport: "xmlHttpRequest",
status: -1,
clientOnly: undef,
httpHeaders: Obj,
isStructured: true,
callbackArgs: null,
results: Obj,
data: "java.lang.NoSuchMethodError: org.hsqldb...."[3882]}
I did upgrade my Java version some weeks ago.

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

I added slf4j-api-1.7.7.jar to the embeddedTomcat.bat file without fixing or changing the result.

The fix that worked was to add ' "..\..\WEB-INF\lib\*" ' at the end of the jars in place of all the individual and explicit references.

Now I can get the business of getting my app to run in version 9.1.

I hope posting this helps someone trying to install SmartClient. It has enabled me to prototype a fairly large and complex application. At least so far.

Rick

Dev environment setup to use Reify

$
0
0
Hi,

Are there instructions to set up a dev env to use Reify?
I couldn't find any in the FAQ and in the forums. I expected
it to be included in the showcase.war package like VB. I am
using SmartGwt Pro 5.0.

I would like to set it up to use as a standalone tool. Going
thru the BalsamiqImport description, I can't tell what inherits
to include etc.

Thanks.

Flat Tabs with SmartGWT 5

leaveScrollbarGap not working as expected

$
0
0
SmartClient Version: v10.0p_2015-03-10/Pro Deployment (built 2015-03-10)

I have a problem with a layout where setLeaveScrollbarGap(true) doesn't work.

I have created the following test case which shows the problem.

Code:

public Layout getMainLayout() {
       
        final VLayout mainLayout = new VLayout();
       
        HLayout layout1 = new HLayout(5);
        layout1.setHeight(100);
        layout1.setWidth(200);
        layout1.setOverflow(Overflow.AUTO);
        layout1.setLeaveScrollbarGap(true);
        layout1.setBorder("2px solid blue");
        layout1.setMembers(getLayouts(4,50));
       
        HLayout layout2 = new HLayout(5);
        layout2.setMinMemberSize(100);
        layout2.setHeight(100);
        layout2.setWidth(200);
        layout2.setOverflow(Overflow.AUTO);
        layout2.setLeaveScrollbarGap(true);
        layout2.setBorder("2px solid red");
        layout2.setMembers(getLayouts(4,50));
       
        HLayout layout3 = new HLayout(5);
        layout3.setHeight(100);
        layout3.setWidth(200);
        layout3.setOverflow(Overflow.AUTO);
        layout3.setLeaveScrollbarGap(true);
        layout3.setBorder("2px solid green");
        layout3.setMembers(getLayouts(4,200));
       
        HLayout layout4 = new HLayout(5);
        layout4.setMinMemberSize(100);
        layout4.setHeight(100);
        layout4.setWidth(200);
        layout4.setOverflow(Overflow.AUTO);
        layout4.setLeaveScrollbarGap(true);
        layout4.setBorder("2px solid yellow");
        layout4.setMembers(getLayouts(4,200));
       
        mainLayout.addMember(layout1);
        mainLayout.addMember(layout2);
        mainLayout.addMember(layout3);
        mainLayout.addMember(layout4);
   
        return mainLayout;
}

private VLayout[] getLayouts(int numOfLayouts, int height)
{
        VLayout[] layouts = new VLayout[numOfLayouts];
       
        for (int i = 0; i < numOfLayouts; i++) {
                VLayout layout = new VLayout();
                layout.setHeight(height);
                layout.setBackgroundColor("black");
                layouts[i] = layout;
        }
        return layouts;
}

I expected layout2 to display the same kind of gap as layout1 but as you can see in the screenshot, that is not the case.

Am I misunderstanding the intended behavior or is this a bug?

Attached Images
File Type: png ScrollbarGapBug.PNG (9.3 KB)

Next month button in the DateChooser of a Calendar

$
0
0
Hello,

the buttons next/prev month and next/prev year in the DateChooser opened from a calendar are strange.

When clicking for example on the next month button, the DateChooser close and the chosen dates is set to the first day in the next month.
I can't choose a spezial date or can go to another month.

Is this what you want?

My customer want's the normal DateChooser functions.

You can test it with the demos in the showcase.

We are using version v10.0p_2015-04-19/Pro Deployment.

Regards

Peter

CustomSql Update Failure doesn't give clue to cause

$
0
0
SmartClient Version: v9.1p_2015-02-07/PowerEdition Deployment (built 2015-02-07)

I'm as usual executing a custom SQL procedure,which fails without giving me a clue as to why or where to look.

Here is what the datasource .ds.xml looks like in parts:

Code:


<DataSource ID="BCG_Import_Block" serverType="sql" tableName="FULL_NAV_TREE"
        dropExtraFields="false" requiresAuthentication="false">
        <fields>

                <field name="PK_Fake" primaryKey="true" type="sequence" hidden="true" />
                <field name="FK_idProject" tableName="FULL_NAV_TREE" hidden="true" />
                <field name="idBlock_Props" tableName="FULL_NAV_TREE" hidden="true" />
                <field name="Instance_Id"  hidden="true" type="integer"/>
                <field name="Instance"  hidden="true" type="text"/>
                <field name="Macro" hidden="true" type="text" />
               
....... more field definitions

                  <operationBinding operationType="update" operationId="importSynthData" allowMultiUpdate="true" >
                <customSQL>
                BEGIN
        DECLARE        @return_value int
        DECLARE @PK_Fake  bigint = $values.PK_Target
 
        EXEC  @return_value = [dbo].[usp_ImportSynthRundir]
                      @Source_PK_Synth_Rundir  = $values.PK_Source,
                      @Target_PK_Synth_Rundir  = $values.PK_Target,
                      @FS_Run_Type = 'Release',
                      @FS_Run_Name  = 'Not Required',
                      @Source_idBlock_Props = 0,
                      @createLock = 0,
                      @debug = 0

      SELECT @return_value as PK_Fake               
          END
          </customSQL>
          </operationBinding>

This is what the client side call looks like:

Code:

Record synthRec = new Record();
                                synthRec.setAttribute("PK_Source",importHierResultRec.getAttributeAsLong("Orig_Synth_PK_Synth_Rundir"));
                                                                synthRec.setAttribute("PK_Target",importHierResultRec.getAttributeAsLong("Synth_PK_Synth_Rundir"));
                                                        //        synthRec.setAttribute("PK_Fake",0L);
                                                               
                                                                DataSource.get("BCG_Import_Block").updateData(synthRec, new DSCallback () {

                                                                        @Override
                                                                        public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) {
                                                                                //  Auto-generated method stub
                                                                                if (dsResponse.getStatus() != 0 ) {
                                                                                        SC.say("Import Data Failure: Import Synth Data failure in server");
                                                                                        return;
                                                                                }
                                                                                Record [] synthRec = dsResponse.getData();
                                                                                if (synthRec[0].getAttributeAsInt("ReturnValue") == 0) {
                                                                                        importStatusRecords[0].setAttribute(importStatusGridFieldNames[2], "Imported");
                                                                                }
                                                                                else {
                                                                                        importStatusRecords[0].setAttribute(importStatusGridFieldNames[2], "Failure. Code: " + synthRec[0].getAttributeAsString("ReturnValue"));
                                                                                }
                                                                                importStatusGrid.setData(importStatusRecords); // Update grid
                                                                       
                                                                        }
                                                                }, new DSRequest() {{setOperationId("importSynthData");}} );

Sorry the copy-n-paste seemed to expand the above code to the right.

The server logs show the following happening:

Code:

=== 2015-04-20 12:20:35,402 [l0-4] DEBUG RPCManager - Request #1 (DSRequest) payload: {
    criteria:{
    },
    values:{
        PK_Source:41320,
        PK_Target:51449
    },
    operationConfig:{
        dataSource:"BCG_Import_Block",
        repo:null,
        operationType:"update",
        textMatchStyle:"exact"
    },
    appID:"builtinApplication",
    operation:"importSynthData",
    oldValues:{
        PK_Source:41320,
        PK_Target:51449
    }
}
=== 2015-04-20 12:20:35,404 [l0-4] INFO  IDACall - Performing 1 operation(s)
=== 2015-04-20 12:20:35,404 [l0-4] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2015-04-20 12:20:35,404 [l0-4] DEBUG DeclarativeSecurity - DataSource BCG_Import_Block is not in the pre-checked list, processing...
=== 2015-04-20 12:20:35,405 [l0-4] DEBUG AppBase - [builtinApplication.importSynthData] No userTypes defined, allowing anyone access to all operations for this application
=== 2015-04-20 12:20:35,405 [l0-4] DEBUG AppBase - [builtinApplication.importSynthData] No public zero-argument method named '_importSynthData' found, performing generic datasource operation
=== 2015-04-20 12:20:35,405 [l0-4] INFO  SQLDataSource - [builtinApplication.importSynthData] Performing update operation with
        criteria: {}        values: {PK_Source:41320,PK_Target:51449}
=== 2015-04-20 12:20:35,405 [l0-4] INFO  SQLValuesClause - [builtinApplication.importSynthData] Ignored data for non-existent or included columns: [PK_Source, PK_Target]
=== 2015-04-20 12:20:35,405 [l0-4] INFO  SQLWhereClause - [builtinApplication.importSynthData] empty condition
=== 2015-04-20 12:20:35,410 [l0-4] DEBUG PoolableSQLConnectionFactory - [builtinApplication.importSynthData] DriverManager fetching connection for BEER_QA via jdbc url jdbc:sqlserver://db-qa-beer.broadcom.com:1433;DatabaseName=BEER;User=SmartGWT_UI;Password=Kepler12
=== 2015-04-20 12:20:35,410 [l0-4] DEBUG PoolableSQLConnectionFactory - [builtinApplication.importSynthData] Passing JDBC URL only to getConnection
=== 2015-04-20 12:20:35,467 [l0-4] DEBUG PoolableSQLConnectionFactory - [builtinApplication.importSynthData] makeObject() created an unpooled Connection '566980078'
=== 2015-04-20 12:20:35,467 [l0-4] DEBUG SQLConnectionManager - [builtinApplication.importSynthData] Borrowed connection '566980078'
=== 2015-04-20 12:20:35,478 [l0-4] DEBUG SQLTransaction - [builtinApplication.importSynthData] Started new BEER_QA transaction "566980078"
=== 2015-04-20 12:20:35,478 [l0-4] DEBUG SQLDriver - [builtinApplication.importSynthData] About to execute SQL update in 'BEER_QA' using connection'566980078'
=== 2015-04-20 12:20:35,478 [l0-4] INFO  SQLDriver - [builtinApplication.importSynthData] Executing SQL update on 'BEER_QA': BEGIN
        DECLARE        @return_value int
        DECLARE @PK_Fake  bigint = 51449
 
        EXEC  @return_value = [dbo].[usp_ImportSynthRundir]
                      @Source_PK_Synth_Rundir  = 41320,
                      @Target_PK_Synth_Rundir  = 51449,
                      @FS_Run_Type = 'Release',
                      @FS_Run_Name  = 'Not Required',
                      @Source_idBlock_Props = 0,
                      @createLock = 0,
                      @debug = 0

      SELECT @return_value as PK_Fake               
          END
=== 2015-04-20 12:20:47,675 [l0-4] DEBUG SQLDriver - [builtinApplication.importSynthData] FAILED to execute SQL update in 'BEER_QA' using connection'566980078'
=== 2015-04-20 12:20:47,675 [l0-4] WARN  RequestContext - dsRequest.execute() failed:
com.microsoft.sqlserver.jdbc.SQLServerException: A result set was generated for update.
        at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:417)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:350)
        at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)

If I run this exact procedure in the SQL Server Studio it works just fine:

Code:

BEGIN
        DECLARE        @return_value int
        DECLARE @PK_Fake  bigint = 51449
 
        EXEC  @return_value = [dbo].[usp_ImportSynthRundir]
                      @Source_PK_Synth_Rundir  = 41320,
                      @Target_PK_Synth_Rundir  = 51449,
                      @FS_Run_Type = 'Release',
                      @FS_Run_Name  = 'Not Required',
                      @Source_idBlock_Props = 0,
                      @createLock = 0,
                      @debug = 0

      SELECT @return_value as PK_Fake               
END

It returns 0 indicating no errors in the procedure.

Is the problem that the Datasource, 'BCG_Import_Block' does not contain field definitions for 'PK_Source' and 'PK_Target' ?

I thought that the datasource directive 'dropExtraFields="false"' worked around that validation problem.

What is the server telling me if it says simply:

=== 2015-04-20 12:20:47,675 [l0-4] DEBUG SQLDriver - [builtinApplication.importSynthData] FAILED to execute SQL update in 'BEER_QA' using connection'566980078'

??

creatRecordComponent Not Invoking

$
0
0
I Used SmartGwt4.0 LGPL Version.

Code:


import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Widget;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;

public class ViewChart extends Composite{

        private static ViewChartUiBinder uiBinder = GWT
                        .create(ViewChartUiBinder.class);

        interface ViewChartUiBinder extends UiBinder<Widget, ViewChart> {
        }

        @UiField HTMLPanel ht;

       

       
        public ViewChart() {
                initWidget(uiBinder.createAndBindUi(this));
                ListGrid grid = getLGrid();
               
                ht.add(grid);
        }
       
        private ListGrid getLGrid() {
                final ListGrid Lgrid = new ListGrid(){
                        @Override
                        protected Canvas createRecordComponent(ListGridRecord record,
                                        Integer colNum) {
                                // TODO Auto-generated method stub
                                System.out.println("Invoking...");
                                return super.createRecordComponent(record, colNum);
                        }
                };
                Lgrid.refreshFields();
                Lgrid.setSize("250px", "250px");
                Lgrid.setSortField("first");
               
                Lgrid.setFields(getListGridFields());
                Lgrid.setRecords(getListGridRecords());
                return Lgrid;
        }

        private ListGridRecord[] getListGridRecords() {
                ListGridRecord[] records=new ListGridRecord[10];
                for (int i = 0; i < records.length; i++) {
                        ListGridRecord rec=new ListGridRecord();
                        rec.setAttribute("first", "First "+(i+1));
                        rec.setAttribute("sec", "Second "+(i+1));
                        records[i]=rec;
                }
                return records;
        }

        private ListGridField[] getListGridFields() {
                ListGridField[] fields=new ListGridField[2];
                ListGridField lf1=new ListGridField("first","First");
                fields[0]=lf1;
                ListGridField lf2=new ListGridField("sec","Second");
                fields[1]=lf2;
                return fields;
        }

       
}

I Created Listgrid its shown but createRecordComponent is not invoking..
Here i attached my output.Please do needful for how can i invoke createRecordComponent.

Thanks in Advance.

Attached Images
File Type: jpg Capture.JPG (19.9 KB)

Adding columns to ListGrid which are not present in datasource

$
0
0
Smartgwt 3.1 version:

We have a requirement, where-in based upon user request we have to display additional columns in a list grid. The list grid is binded to a data source, but the additional columns that has to be displayed are not present in data source definition(i.e., in ds.xml file). Can we achieve this?

Thanks

[Possible bug] Problem with clearing all columns in data grid

$
0
0
Be sure your post includes:

1. Problem appears in smart client 10.0 and olders (we have noticed that in 8.3 version and 9 version too)

2. All browsers : chrome, mozilla and IE, newest versions.

3. There is no bug log, but problem appears on java script side. I have tried to remove all columns from list grid and it has worked, but when i have tried to add them again there was no filters in the grid. Redrawing and setting showFilterEditor to true not works.

6. Below there is a sample of code. I have added two buttons. One is responsible for selecting all columns, the second one for removing them from grid. After removing all, seleect all not works properly.

getColumnPickerItems : function() {
var allColumns = this.Super("getColumnPickerItems", arguments);
var notSortColumns = new Array();
for (var i = 0; i < allColumns.length; i++) {
//if (!this.getSortSpecifier(allColumns[i].fieldName)) {
notSortColumns.push(allColumns[i]);
//}
}
var grid = this;
notSortColumns.sort(function(a, b) {
return a.title.localeCompare(b.title);
});
var clearAllColumns = {
autoDismiss : false,
checkIf : function (target, menu, item) {
return false;
},
click : function(target, item, menu) {
if (menu.data) {
var fieldsToHide = new Array();
if (allColumns.size() == (notSortColumns.size()-3)) {
for (var i = 0; i < menu.data.length; i++) {
var gridColumn = menu.data[i];
if (gridColumn.fieldName !== undefined && gridColumn.checked){
fieldsToHide.push(gridColumn.fieldName);
}
}
} else {
for (var i = 0; i < menu.data.length; i++) {
var gridColumn = menu.data[i];
if ((gridColumn.fieldName != undefined) && gridColumn.checked && gridColumn.fieldName !='') {
fieldsToHide.push(gridColumn.fieldName);
}
}
}
fieldsToHide.shift();
grid.hideFields(fieldsToHide);
grid.setCriteria(null);
menu.body.delayCall("markForRedraw");
}

},
enableIf : function (target, menu, item) {
return true;
},
title : "CLEAR"
};
var selectAllColumns = {
autoDismiss : false,
checkIf : function (target, menu, item) {
return false;
},
click : function(target, item, menu) {
if (menu.data) {
var fieldsToShow = new Array();
for (var i = 0; i < menu.data.length; i++) {
var gridColumn = menu.data[i];
if ((gridColumn.fieldName != undefined) && !gridColumn.checked) {
fieldsToShow.push(gridColumn.fieldName);
}
}
grid.showFields(fieldsToShow);
grid.setCriteria(null);
menu.body.delayCall('markForRedraw',null,1000);
}
},
enableIf : function (target, menu, item) {
return true;
},
title : "SELECT ALL"
};
notSortColumns.add(clearAllColumns, 0);
notSortColumns.add(selectAllColumns, 1);
notSortColumns.add({isSeparator:true}, 2);
return notSortColumns;
}

Hint in TextItem and markForRedraw results in empty FormItem

$
0
0
Hey guys,

I want to set a hint in a TextItem, if the set value is an empty string.
This works fine, except when the same event, which sets the value, calls a "markForRedraw" on the form of the TextItem.

You can repduce this behaviour if you click the button 1 and after that the button 2.

Here is an example:
Code:

isc.VLayout.create({
        "width" : "100%",
        "members" : [
                isc.ToolStrip.create({
                        "width" : "100%",
                        "members" :
                        [isc.Button.create({
                                        "width" : 200,
                                        "click" : function () {
                                                theTextItem.setValue("");
                                                theTextItem2.setValue("you pushed button 1");
                                        },
                                        "title" : "Button 1 (without markForRedraw)",
                                }),
                                isc.Button.create({
                                        "width" : 200,
                                        "click" : function () {
                                                theTextItem.setValue("you pushed button 2");
                                                theTextItem2.setValue("");
                                                theForm.markForRedraw();
                                        },
                                        "title" : "Button 2 (with markForRedraw)",
                                })
                        ]
                }),
                isc.DynamicForm.create({
                        "ID" : "theForm",
                        "width" : "100%",
                        "fields" :
                        [{
                                        "ID" : "theTextItem",
                                        "title" : "Textitem 1",
                                        "type" : "text",
                                        "hint" : "this is the hint",
                                        "showHintInField" : true
                                }, {
                                        "ID" : "theTextItem2",
                                        "title" : "Textitem 2",
                                        "type" : "text",
                                        "hint" : "this is the hint",
                                        "showHintInField" : true
                                }
                        ],
                        "values" : {
                                "theTextItem" : "",
                                "theTextItem2" : "",
                        }
                })
        ]
})

This issue is reproducible with the latest nightly SmartClient_v100p_2015-04-21_Pro and all current browser versions (Firefox, Chrome and IE).

Best regards

Online SmartGwtEE samples show no data

$
0
0
Hi Isomorphic,

please see this samples:

http://www.smartclient.com/smartgwtee/showcase/#large_valuemap_sql

http://www.smartclient.com/smartgwtee/showcase/#livegrid_sql

These show no data for me.

Tested using FF26/IE11 and online showcase v10.0p_2015-04-16 (from Developer Console).

Best regards,
Blama
Viewing all 4756 articles
Browse latest View live