|
|
Re: CSS validation problems [message #1100170 is a reply to message #1098942] |
Mon, 02 September 2013 19:46 |
Marten de Groot Messages: 6 Registered: August 2013 |
Junior Member |
|
|
Hi Tom, thanks for your reply! I just read the css validation on your blog.
The problem is that I encounter warnings on every piece of css I write. Even if it works. And then I'm doing the most basic things you can think of.
For example:
.root {
-fx-background-color: red;
}
I'm getting a warning on that single line already.
[Updated on: Mon, 02 September 2013 19:49] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: CSS validation problems [message #1141815 is a reply to message #1140961] |
Thu, 17 October 2013 07:53 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
So are those 2 projects setup equally, do they both e.g. have
javafxrt.jar? Are they based on Java7 or Java8? To me it sounds like we
are not appropriately detecting that the project is a JavaFX project and
so we don't load the cssext-Files for them.
I'll try to add some debugging information so that we can find the root
cause of the problem.
Tom
On 16.10.13 22:20, Matheus Silva wrote:
> Marten,
>
> Did you managed to solve the problem? I have a similar issue, but what
> is weird on mine is that I have two (JavaFX) project on my Eclipse
> workspace, and I use the exactly same css for both projects, one
> projects doesn't show me any warnings and the other one shows me one
> warning for each property, that is "Unknown property".
>
> I'm trying to understand what causes this, but I have no clues so far.
>
> Any help would be appreciated.
>
> Regards,
> Matheus
|
|
|
Re: CSS validation problems [message #1149695 is a reply to message #1098942] |
Tue, 22 October 2013 08:36 |
Mikael Lantz Messages: 4 Registered: April 2011 Location: Sweden |
Junior Member |
|
|
Hi,
I'm experiencing the same problem with warnings that Marten reported above with the css editor. I have a clean installation of the Eclipse Kepler SDK and the latest e(fx)clipse plugin.
Here's my setup:
Eclipse SDK version 4.3.1.M20130911-1000
e(fx)clipse - IDE - Kepler version 0.9.0.201310220709
I use the JDK version 1.7.0_45_x64.
Everything else works fine, it's just the css editor that has these problems.
[Updated on: Tue, 22 October 2013 08:37] Report message to a moderator
|
|
|
|
Re: CSS validation problems [message #1149828 is a reply to message #1149735] |
Tue, 22 October 2013 10:38 |
Matheus Silva Messages: 6 Registered: October 2013 |
Junior Member |
|
|
Thomas,
I found out and solved my problem, it happens when the project name has spaces on it, for example, I renamed "My Project" to "MyProject" and the warnings are gone, if I change it back to "My Project" the warnings come back. Simple like that.
I'm using Windows 8 64-bit, jdk1.7.0_25, Eclipse Version: Kepler Release, Build id: 20130614-0229.
If you need more information please let me know.
[Updated on: Tue, 22 October 2013 10:48] Report message to a moderator
|
|
|
|
Re: CSS validation problems [message #1149830 is a reply to message #1149828] |
Tue, 22 October 2013 10:39 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
Ok - that's interesting! We'll try to reproduce locally with that
information.
Tom
On 22.10.13 12:38, Matheus Silva wrote:
> Thomas,
>
> I found out and solved my problem, it happens when the project name has
> spaces on it, for example, I renamed "My Project" to "MyProject" and the
> errors are gone, if I change it back to "My Project" the errors come
> back. Simple like that.
>
> I'm using Windows 8 64-bit, jdk1.7.0_25, Eclipse Version: Kepler
> Release, Build id: 20130614-0229.
>
> If you need more information please let me know.
|
|
|
|
|
|
|
|
Re: CSS validation problems [message #1152340 is a reply to message #1152147] |
Thu, 24 October 2013 00:18 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
For the text-field there was a bug!
Generally speaking in fx 2.x controls inherit from Parent and so they
css-editor is right when saying that there's no -fx-background-color!
My educated guess why it still works is because of the
skin-implementation. In fx8 Control inherits from Region.
-fx-color is a color variable and we currently don't support them, hence
it is marked as a warning, we hope to fix this one day and teach the
editor those variables.
Tom
On 24.10.13 01:39, Philipp Keck wrote:
> Hi,
>
> I also have an issue with the validation of my stylesheet:
> (Sidenote: My project name contains a ".", but the error also occurs in
> a new project named "sdf")
>
> When using selectors like ".text-field" or ".toggle-button", which are
> resolved to the classes in javafx.scene.control according to the
> ToolTip, I get warnings on all -fx-properties inside, like:
> "-fx-background-color" is not supported by the given selectors.
> The warnings are shown in both the e(fx)clipse and the normal CSS
> editor. Despite the warnings, the CSS rules work and have visible effect
> on the UI.
>
> Additionally, I get "Unknown property: -fx-color" whenever I use the
> property, no matter where.
>
> Philipp
|
|
|
|
|
Re: CSS validation problems [message #1314993 is a reply to message #1152340] |
Fri, 25 April 2014 18:38 |
Matheus Silva Messages: 6 Registered: October 2013 |
Junior Member |
|
|
Hi Thomas, I'm back with more doubts!
I downloaded a sample named javafx-samples-2.2.40, I'm sorry but I can't remember where from.
There are lots of cool samples there, then I decided to copy one css from there to a project of mine.
It worked fine, however there are lots of warnings showing up to me, please see the image below:
All the warnings says: "-fx-some-property" is not supported by the given selectors; example: -fx-background-color, -fx-background-radius, -fx-background-insets, etc.
I'm wondering on how could I fix the warnings, or at least dismiss them. I tried really really hard, but I can't get rid of them. Do you have any advice?
Regards,
Matheus
|
|
|
Re: CSS validation problems [message #1315974 is a reply to message #1314993] |
Sat, 26 April 2014 07:50 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
I assume you are developing against a JDK7 and there if you look at the
CSS-Docs you'll find out that [1]
Button extends ButtonBase extends Labeled extends Control extends Parent
extends Node
and according to the docs the properties you use are all defined on
Region. Now I know that those properties work as well on Java7 but
Oracle doced it this way and so does the tooling behave.
If you switch your project to Java8 you notice the warnings are gone
because there Oracle spec'ed [2]
Button extends ButtonBase extends Labeled extends Control *extends
Region* extends Parent extends Node.
Tom
[1]http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html
[2]http://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html
On 25.04.14 20:38, Matheus Silva wrote:
> Hi Thomas, I'm back with more doubts!
>
> I downloaded a sample named javafx-samples-2.2.40, I'm sorry but I can't
> remember where from.
>
> There are lots of cool samples there, then I decided to copy one css
> from there to a project of mine.
>
> It worked fine, however there are lots of warnings showing up to me,
> please see the image below:
>
>
>
> All the warnings says: "-fx-some-property" is not supported by the given
> selectors; example: -fx-background-color, -fx-background-radius,
> -fx-background-insets, etc.
>
> I'm wondering on how could I fix the warnings, or at least dismiss them.
> I tried really really hard, but I can't get rid of them. Do you have any
> advice?
>
> Regards,
> Matheus
|
|
|
|
|
|
|
|
|
|
|
|