0

customize component

asked 2014-09-20 03:34:46 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

I am just following this URL to customize component

BUT window.css.dsp is not created. Please help

Here is my Maven Project Structure image description

Here is my window.less

Here is my POM.XML

Here is my web.xml

delete flag offensive retag edit

11 Answers

Sort by ยป oldest newest most voted
1

answered 2014-09-23 11:34:29 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2014-09-23 11:38:04 +0800

So it needs to make sure that LESS should not cause any parsing error.

you cannot check this without any error message!

At time it costs about 4x more time to work with zk less. I have now spent a lot of time to evaluate all the new releases. It's very frustrating.

Please correct the variable name @grayDrak to @grayDark. Next please give the @meshStripeBackground variable a new name, because it's the same as in bootstrap. What i'm absolute missing is the mapping table which bootstrap variable corresponds to zk less variable. I have at time only 60% evaluated.

best Stephan

link publish delete flag offensive edit

Comments

Sorry for the inconvenience, we will try to provide messages for more details in the later version.

RaymondChao ( 2014-09-24 02:40:44 +0800 )edit
0

answered 2014-09-22 02:24:29 +0800

RaymondChao gravatar image RaymondChao
386 1 4
ZK Team

Hi,

The LESS files need to be complied to *.css.dsp first. ZK introduces a ZK-Less Compiling Engine in Node.js Environment, you can refer the blog or the document or more details. Thanks.

link publish delete flag offensive edit

Comments

Yes i followed all the steps in Compile LESS to DSP during Development phase, but it is not creating the DSP File

Senthilchettyin ( 2014-09-22 02:29:33 +0800 )edit
0

answered 2014-09-22 02:34:24 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Here is my Tomcat server start up log. It is showing that it is compiling , but no dsp file created

22 Sep, 2014 7:02:36 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\AMD APP\bin\x8664;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files\Java\jdk1.6.045\bin;E:\Java\apache-maven-3.0.4\bin;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;E:\Java\apache-ant-1.9.4\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\nodejs\;C:\Users\senthil\AppData\Roaming\npm;. 22 Sep, 2014 7:02:36 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:ZKExampleTheme' did not find a matching property. 22 Sep, 2014 7:02:37 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] 22 Sep, 2014 7:02:37 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] 22 Sep, 2014 7:02:37 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 597 ms 22 Sep, 2014 7:02:37 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina 22 Sep, 2014 7:02:37 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 22 Sep, 2014 7:02:37 AM org.apache.tomcat.websocket.server.WsSci onStartup INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINAHOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINABASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 22 Sep, 2014 7:02:38 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(F:\MyDocuments\Java\ZK7Examples\Examples\ZK7Theme1.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ZKExampleTheme\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 22 Sep, 2014 7:02:41 AM org.zkoss.zk.ui.http.WebManager <init> INFO: Starting ZK 7.0.3 CE (build: 2014090212) 22 Sep, 2014 7:02:41 AM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml INFO: Loading system default 22 Sep, 2014 7:02:41 AM org.zkoss.zk.ui.sys.ConfigParser parse INFO: Parsing jar:file:/F:/MyDocuments/Java/ZK7Examples/Examples/ZK7Theme1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ZKExampleTheme/WEB-INF/lib/zul-7.0.3.jar!/metainfo/zk/zk.xml 22 Sep, 2014 7:02:41 AM org.zkoss.zk.ui.sys.ConfigParser parse INFO: Parsing jndi:/localhost/ZKExampleTheme/WEB-INF/zk.xml 22 Sep, 2014 7:02:42 AM org.zkoss.less.ZKLessServlet compileLess INFO: Compiling... F:\MyDocuments\Java\ZK7Examples\Examples\ZK7Theme1.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ZKExampleTheme\less\window.less 22 Sep, 2014 7:02:46 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] 22 Sep, 2014 7:02:46 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] 22 Sep, 2014 7:02:46 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 9760 ms 22 Sep, 2014 7:02:48 AM org.zkoss.util.resource.impl.LabelLoaderImpl loadLabels INFO: Loading labels for en_US 22 Sep, 2014 7:02:48 AM org.zkoss.util.resource.impl.LabelLoaderImpl loadLabels INFO: Loading labels for en

link publish delete flag offensive edit
0

answered 2014-09-22 05:41:45 +0800

RaymondChao gravatar image RaymondChao
386 1 4
ZK Team

Hi,

As the log show, the ZKLessServlet have compiled the Less files to the deploy folder.

So the *css.dsp should be founded in F:\MyDocuments\Java\ZK7Examples\Examples\ZK7Theme1.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ZKExampleTheme\less\

I think the style should be changed when modify LESS and reload the browser. If it still does not work, please check if the compiled css.dsp in the deploy folder are blank or not. Thanks.

link publish delete flag offensive edit
0

answered 2014-09-22 06:04:32 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

updated 2014-09-22 06:05:11 +0800

you are absolutely right. But the documentation says it will be available on the same folder.

So i got confused.

i can find the file in the above said folder. As you said, the file window.css.dsp does not have any content in it . So what will be the problem ?

link publish delete flag offensive edit
0

answered 2014-09-22 13:52:34 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

You must look in the generated jar file. There you can evalutae the folder wehere is it in.

best Stephan

link publish delete flag offensive edit
0

answered 2014-09-23 03:42:25 +0800

RaymondChao gravatar image RaymondChao
386 1 4
ZK Team

Hi,

The zkless-servlet seems to have some problems. The current workaround is update the version to 0.9.4.2:

<dependency>
    <groupId>org.zkoss.maven</groupId>
    <artifactId>zkless-servlet</artifactId>
    <version>0.9.4.2</version>
</dependency>

and put the ZK header files including _header.less, _zkmixins.less and _zkvariables.less, in the same folder. Those file could be found in zk-archetyoe-theme project

image description

If there is any problem, please feel free to contact us. Thanks.

link publish delete flag offensive edit
0

answered 2014-09-23 06:51:50 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

I tried as per your instructions. Now window.css.dsp File created on the same folder. But it is zero bytes. And do not see any changes in the Component.

Here is the complete project code.

Please help me to resolve this

image description

link publish delete flag offensive edit
0

answered 2014-09-23 07:52:50 +0800

RaymondChao gravatar image RaymondChao
386 1 4
ZK Team

Hi,

If the LESS compiled failed, the result would be empty without any error message.

So it needs to make sure that LESS should not cause any parsing error.

Please change your import path in window.less from @import "~./zul/less/_header.less"; to @import "_header.less";.

And it seems that some variables you used in window.less are not defined. Please update the _zkvariables.less to _zkvariables.less.

After that, I think it should work.

link publish delete flag offensive edit

Comments

No it is not working.

Senthilchettyin ( 2014-09-23 08:17:13 +0800 )edit
0

answered 2014-09-23 08:18:18 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Here is my updated project

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-09-20 03:34:46 +0800

Seen: 55 times

Last updated: Sep 23 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More