change css dynamically via javascript?

17 views
Skip to first unread message

Elhanan

unread,
Aug 7, 2011, 2:48:00 PM8/7/11
to google-we...@googlegroups.com
hi..
is it possible to do the following

create custom annotions on a class and on it's members like so
@Permission("")
public class Foo{
@Permission("") String name;
}

have the gwt compiler convert said annotations into custom attributes on each member's dom (if that's not possible i can always use create the custom attribute myself instead of using annotations).

use a javascsipt query to retrieve all nodes which have said attributes and send them to the server, which will give back a css class for each attribute value
apply these attributes as css styles. 


Reply all
Reply to author
Forward
0 new messages