Author: maksimkaszynski
Date: 2007-10-16 05:55:27 -0400 (Tue, 16 Oct 2007)
New Revision: 3391
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLElement.java
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLTags.java
Log:
added style to passThru attributes
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLElement.java
===================================================================
---
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLElement.java 2007-10-16
01:39:55 UTC (rev 3390)
+++
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLElement.java 2007-10-16
09:55:27 UTC (rev 3391)
@@ -48,7 +48,7 @@
private static final String PASS_THRU_ATTR = "x:passThruWithExclusions";
- private static final List<String> DEFAULT_EXCLUSIONS =
Arrays.asList("class", "id", "style" );
+ private static final List<String> DEFAULT_EXCLUSIONS =
Arrays.asList("class", "id");
private static final String TEMPLATE =
A4JRendererElementsFactory.TEMPLATES_TEMPLATECOMPILER_PATH
+ "/HTMLElement.vm";
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLTags.java
===================================================================
---
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLTags.java 2007-10-16
01:39:55 UTC (rev 3390)
+++
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/html/HTMLTags.java 2007-10-16
09:55:27 UTC (rev 3391)
@@ -28,6 +28,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.TreeSet;
import java.util.Map.Entry;
import org.richfaces.dtd.DocumentDefinition;
@@ -81,6 +82,8 @@
Map<String, List<String>> m =
(Map<String, List<String>>) stream2.readObject();
+ Set<String> newAttrs = new TreeSet<String>();
+
Set<Entry<String,List<String>>> entrySet = m.entrySet();
for (Entry<String, List<String>> entry : entrySet) {
String element = entry.getKey();
@@ -91,9 +94,13 @@
if (attributeList != null && attributes != null) {
attributes.removeAll(attributeList);
}
+ newAttrs.addAll(attributes);
+
System.out.println(element + attributes);
}
+
+ System.out.println(newAttrs);
}
Show replies by date