system calendar image background color

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

system calendar image background color

#1

Postby xren » Fri Aug 14, 2015 8:44 pm

Hi,

How to set the background color for the system calendar image? It is transparent now.

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Aug 17, 2015 9:48 am

Xiaoli,

It's just a gif image file - in webapps/ufs/shared/images/calendar.gif. We don't let you use an image from another location so your only option is to replace the existing one with something else.

Regards
Jon
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Mon Aug 17, 2015 2:31 pm

Hi Jon,

It is not this image. What I would like to change is the big one when you click this small image then the real calendar opens with year, month, days and you pick. That is transparent. It is hard to see the date when it is over other fields.

Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Mon Aug 17, 2015 4:31 pm

My system doesn't have this problem. The calendar popup has a white background but it's not transparent and I can't see fields through it. Which Ebase version are you using and which browser? Does it do this with all browsers?
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#5

Postby xren » Mon Aug 17, 2015 5:24 pm

It is ebase 4.5.3.

My browser is Google Chrome.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#6

Postby Jon » Tue Aug 18, 2015 1:40 pm

Xiaoli,

I don't know why you have this problem. I don't see it with Chrome and Ebase 4.5.3. You might check if you get it with all forms or just one specific form, and if you get it with other browsers. You could try refreshing the page in Chrome with Ctrl-R in case you have something strange cached, or you could try clearing the Chrome browser cache. The calendar popup is built by JS file calendar453.js, but I don't think it's a good idea to try changing this.

Regards
Jon
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#7

Postby xren » Wed Aug 19, 2015 1:06 pm

Hi Jon,

I tried other browser. It is the same. Fresh doesn't work. It the same on other forms.

I wonder if the css for the image is not included. Do you know anything about this?

Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#8

Postby Jon » Wed Aug 19, 2015 2:40 pm

Could you send a screen shot of the problem to support@ebasetech.com. I don't think there is any externall css for the calendar - it's all contained within the javascript which builds HTML for the popup dynamically. The popup isn't an image.
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#9

Postby xren » Thu Aug 20, 2015 1:51 pm

Hi Jon,

I have sent the screen shot.

Xiaoli
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#10

Postby xren » Mon Aug 24, 2015 5:15 pm

Hi Jon,

It is just happens to this form.
I also sent you the form and associated script for this form.

Can you take a look?

please let me know if you need more information.

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#11

Postby Jon » Tue Aug 25, 2015 1:01 pm

Xiaoli,

I suspect that you have something in one of the style sheets which is interfering with the calendar. I had a look at your form, but it didn't help much as all the style sheets are missing - they are in the shared directory on the server. You could check these style sheets for anything suspicious or you could try removing them one by one to see if the problem goes away.

Are you familar with debugging your browser using Firebug? This could make debugging this issue much easier - you can use this to check the CSS which is being applied to the calendar and see which CSS file it's come from.

Regards
Jon
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#12

Postby xren » Thu Aug 27, 2015 2:42 pm

Hi Jon,

It was related to CSS. There is one setting background as transparent in one of the css files.

It shows correctly now. Thank you.
However, eventually, I would like to use jquery, which doesn't work for this form (but ok on other forms) now. Can you check the form and script what can be the reason?

The other thing I would like to ask your help is that can you check this form and scripts see what can cause memory leak/high usage, etc.?
My system often report outofmemory PERMGEM error.

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#13

Postby Jon » Thu Aug 27, 2015 3:07 pm

Xiaoli,

It's most unlikely that anything in your form will cause a permgen error. We have had lots of problems with permgen errors - you will see plenty of logs in this forum. The parameters that matter should look like this:

-XX:PermSize=256m
-XX:MaxPermSize=512m

Note that we have previously told you to use -Dxx, which is wrong, for these parameters. The reason you are having problems is almost certainly because these parameters are not configured correctly.

Sorry for any confusion.

Regards
Jon
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#14

Postby xren » Thu Aug 27, 2015 7:44 pm

Hi Jon,

Is the following exception related to permgen space well or it leads to permgen space exception?

java.lang.VerifyError: (class: javassist/CannotCompileException, method: getReason signature: ()Ljava/lang/String;) Illegal constant pool index
at javassist.ClassPool.toClass(ClassPool.java:1099)
at javassist.CtClass.toClass(CtClass.java:1265)
at com.ebasetech.ufs.runtime.external.api.impl.ApiClassBuilder.buildResourcesApiClass(ApiClassBuilder.java:443)
at com.ebasetech.ufs.runtime.external.api.impl.ApiClassBuilder.makeResourcesApiImpl(ApiClassBuilder.java:396)
at com.ebasetech.ufs.runtime.RuntimeHeadless.makeResourcesApiImpl(RuntimeHeadless.java:941)
at com.ebasetech.ufs.runtime.RuntimeHeadless.generateAPIClasses(RuntimeHeadless.java:864)
at com.ebasetech.ufs.runtime.RuntimeForm.initialise(RuntimeForm.java:119)
at com.ebasetech.ufs.runtime.FormEngine.makeRuntimeHeadless(FormEngine.java:669)
at com.ebasetech.ufs.runtime.FormEngine.generateCachedRuntimeHeadless(FormEngine.java:581)
at com.ebasetech.ufs.runtime.FormEngine.getRuntimeHeadless(FormEngine.java:511)
at com.ebasetech.ufs.runtime.FormEngine.getRuntimeForm(FormEngine.java:446)
at com.ebasetech.ufs.runtime.FormUserState.lookupRuntimeFormInFormEngine(FormUserState.java:153)
at com.ebasetech.ufs.runtime.FormUserState.resetRuntimeForm(FormUserState.java:133)
at com.ebasetech.ufs.runtime.HeadlessUserState.hookupRuntime(HeadlessUserState.java:396)
at com.ebasetech.ufs.runtime.FormEngineSession.registerRuntimeUsed(FormEngineSession.java:15)
at com.ebasetech.ufs.runtime.UserState.setUserForm(UserState.java:183)
at com.ebasetech.ufs.runtime.UserState.setUserForm(UserState.java:154)
at formservlets.FormProcessingUtil.initialiseForm(FormProcessingUtil.java:399)
at formservlets.FormProcessor.initialiseForm(FormProcessor.java:112)
at formservlets.FormProcessor.prepareForm(FormProcessor.java:97)
at formservlets.FormProcessor.runForm(FormProcessor.java:44)
at formservlets.FormClient.process(FormClient.java:112)
at formservlets.FormClient.doGet(FormClient.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at formservlets.EbaseFilter.processHtmlRequest(EbaseFilter.java:291)
at formservlets.EbaseFilter.processRequest(EbaseFilter.java:197)
at formservlets.EbaseFilter.performFilter(EbaseFilter.java:141)
at formservlets.EbaseFilter.doFilter(EbaseFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thu Aug 27 15:12:47: ERROR Unexpected exception initialising form

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#15

Postby Jon » Fri Aug 28, 2015 7:48 am

Possibly yes, this exception is in the area where we see permgen problems. But I would expect to also see an OutOfMemoryError if it is a permgen problem.
0 x


Who is online

Users browsing this forum: No registered users and 14 guests