ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Themes with 5.0.4

acrv
26 Aug 2010 06:27:07 GMT
26 Aug 2010 06:27:07 GMT

Hello,

I have an theme generated with ZKThemer and works perfectly with 5.0.3, but with 5.0.4 does not work. I have to do to use it.

Thank you very much.

acrv
26 Aug 2010 06:45:42 GMT
26 Aug 2010 06:45:42 GMT

The theme breeze does not work. Any ideas?

mjablonskiTop Contributor
26 Aug 2010 07:03:18 GMT
26 Aug 2010 07:03:18 GMT

Please see:

http://www.zkoss.org/forum/listComment/13469

Cheers, Maik

acrv
26 Aug 2010 07:09:30 GMT
26 Aug 2010 07:09:30 GMT

Thank you very much. Suppose that zk themes for 5.0.3 to 5.0.4 are not compatible. Right?

mjablonskiTop Contributor
26 Aug 2010 07:15:47 GMT
26 Aug 2010 07:15:47 GMT

Exactly.

Cheers, Maik

PeterKuo
26 Aug 2010 08:01:27 GMT
26 Aug 2010 08:01:27 GMT

not compatible for FL version, but in official version, it will be compatible.

acrv
1 Sep 2010 02:40:15 GMT
1 Sep 2010 02:40:15 GMT

Hello,

I test a theme that works with 5.0.3 and 5.0.4 does not work. What should I change?.

Thank you very much

PeterKuo
1 Sep 2010 02:49:34 GMT
1 Sep 2010 02:49:34 GMT

http://www.zkoss.org/download/premium.dsp#demo

Breeze theme for ZK 5.0.4 and later, available to all ZK members.

acrv
1 Sep 2010 02:53:27 GMT
1 Sep 2010 02:53:27 GMT

OK, but I need to use a theme generated with zkthemer and than works correctly with 5.0.3. What changes should I do?

Thank you very much.

acrv
1 Sep 2010 04:27:42 GMT
1 Sep 2010 04:27:42 GMT

Is necessary change the structure from files?

PeterKuo
1 Sep 2010 20:01:44 GMT
1 Sep 2010 20:01:44 GMT

Because zkthemer simply do some color code transform and png/jpg color transform.
Therefore you should not have to change structure from files.

acrv
2 Sep 2010 05:33:00 GMT
2 Sep 2010 05:33:00 GMT

Thank you very much.

I've solved, the problem is with the file layout.css. This file is not properly processing by the ThemeProvider generated by zkTheme.

PeterKuo
2 Sep 2010 06:20:43 GMT
2 Sep 2010 06:20:43 GMT

@acrv
Can you explain more about not properly processing?

acrv
2 Sep 2010 08:15:09 GMT
2 Sep 2010 08:15:09 GMT

Of course.

The code generated by zkTheme is:

public String beforeWidgetCSS(Execution exec, String uri)
    {
        String fileName = uri.substring(uri.lastIndexOf("/") + 1);
        if(fileList.indexOf(fileName) >= 0)
            uri = (new StringBuilder("~./")).append(themeName).append("/").append(uri.substring(3)).toString();
        return uri;
    }

And the code correct is:

public String beforeWidgetCSS(Execution exec, String uri)
    {
        String fileName = uri.substring(uri.lastIndexOf("/") + 1);
        if(!fileName.equalsIgnoreCase("layout.css.dsp") && fileList.indexOf(fileName) >= 0)
            uri = (new StringBuilder("~./")).append(themeName).append("/").append(uri.substring(3)).toString();
        return uri;
    }

vinhvo
17 Sep 2010 04:54:00 GMT
17 Sep 2010 04:54:00 GMT

@acrv : huge credit for you ;). May be somebody needs to update the code in Here as well.
Thank.