SafeHtml and SafeStyles

2011-05-04 Thread Deyan Atanasov
Hi, I am trying to implement SafeHtml with some parameters in the HTML
style atribute:
Example:

@Template(div style=\{0}\div style=
\position:absolute;display:none;
+ \/divdiv{1}/div/div)
SafeHtml unsorted(SafeCSSWidth imageWidth, String text);

My SafeCSSWidth class implements SafeStyles, according to the contract
but the GWT compiler still outputs:
[INFO]   Generating method body for unsorted()
[INFO]  [WARN] Template with variable in CSS
attribute context: The template code generator cannot guarantee HTML-
safety of the template -- please inspect manually or use SafeStyle
s to specify arguments in a CSS attribute context
[INFO]Compiling 1 permutation
[INFO]   Compiling permutation 0...

I am using GWT 2.3.0.
Any suggestions ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem with maven-gwt-plugin and GWT 2.1

2010-11-04 Thread Deyan Atanasov
Hi. I'm getting the following exception when compiling my project with
GWT 2.1. and maven-gwt-plugin 1.3-SNAPSHOT from 
http://nexus.codehaus.org/snapshots
repository.
  Validating newly compiled units
 [ERROR] Errors in 'jar:file:/C:/Users/Dido/.m2/repository/com/
google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/emul/java/
lang/Enum.java'
[ERROR] Line 31: enumType.enumValueOfFunc cannot be resolved
or is not a field
 [ERROR] Errors in 'jar:file:/C:/Users/Dido/.m2/repository/com/
google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/emul/java/
math/BitLevel.java'
[ERROR] Line 55: val.sign cannot be resolved or is not a field
[ERROR] Line 59: The method getFirstNonzeroDigit() is
undefined for the type BigInteger
[ERROR] Line 60: val.sign cannot be resolved or is not a field
[ERROR] Line 61: val.numberLength cannot be resolved or is not
a field
[ERROR] Line 62: val.digits cannot be resolved or is not a
field
[ERROR] Line 67: val.digits cannot be resolved or is not a
field
[ERROR] Line 68: val.numberLength cannot be resolved or is not
a field
[ERROR] Line 69: val.digits cannot be resolved or is not a
field
[ERROR] Line 72: val.numberLength cannot be resolved or is not
a field
[ERROR] Line 83: val.sign cannot be resolved or is not a field
[ERROR] Line 86: val.numberLength cannot be resolved or is not
a field
[ERROR] Line 87: val.digits cannot be resolved or is not a
field
[ERROR] Line 87: val.numberLength cannot be resolved or is not
a field
[ERROR] Line 89: val.sign cannot be resolved or is not a field
[ERROR] Line 90: The method getFirstNonzeroDigit() is
undefined for the type BigInteger
[ERROR] Line 92: val.numberLength cannot be resolved or is not
a field

Any ideas ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.