I found the solution
In my class, I declare this attr:
ResourceReference SHORTCUTS_CSS = new
CompressedResourceReference(New_Policy.class,"/css/style.css");
ResourceReference SHORTCUTS_JAVASCRIPT = new
CompressedResourceReference(New_Policy.class,"/js/jquery-1.3.2.min.js");
ResourceReference SHORTCUTS_JAVASCRIPT2 = new
CompressedResourceReference(New_Policy.class,"/js/ToggleHighLigh.js");
Implement the interfaz: IHeaderConstributor
In its method I ask to render my JS and CSS:
@Override
public void renderHead(IHeaderResponse response) {
response.renderCSSReference(SHORTCUTS_CSS);
response.renderJavascriptReference(SHORTCUTS_JAVASCRIPT);
response.renderJavascriptReference(SHORTCUTS_JAVASCRIPT2);
response.renderOnLoadJavascript("alert('page loaded!');");
}
And, that's it!!!
The last problem that I have, is, on my DataView, the items are declared
"final", that is the reason because on RunTime, the row does not get
highlighted.
Now I avanced on my app
Thanks for the help every body !!!!
Con eso ya puedo hacer referencia a mis clases felizmente, me funciona el JS
perfectamente, y todo.
Ahora, me di cuenta, que, dentro de mi DataView, no es aƱadida la clase que
necesito (la que sombrea la fila), porque el item (la fila), en su
populateItem, es trabajado como final (es decir, no modificable).... Total
que ahora me toca inventarme una para hacer funcionar esto en mi tabla (es
por ello que cuando apago el servidor si me funciona la cosa en la tabla)
Se hizo la luz!
--
| Daniela Valero
"No hay vientos favorables para quien no sabe a donde quiere ir!