-
1. Re: deactivate ajax4JSF code genereation to work on css
ilya_shaikovsky May 30, 2007 5:33 AM (in response to zhamdi)Not sure that understand you right .. :/
-
2. Re: deactivate ajax4JSF code genereation to work on css
jmiguel77 May 30, 2007 7:38 PM (in response to zhamdi)If i understand right, what you want is to disable the a4j css style pages automatic generation, so you can append your own styles to the a4j / rich elements the way you want
i would like to know if you find any "easy" way
Another thing i propose is that the css style pages i include with the a4j:loadStyle tag, are included last in the list of css pages, so my styles have precedence over the ones automatically generated -
3. Re: deactivate ajax4JSF code genereation to work on css
zhamdi May 31, 2007 6:48 AM (in response to zhamdi)Sorry I surely didn't explain clearely the problem:
If you select on your browser "view source" on a page with ajax capabilities, you won't see a normal HTML code, but a set of javascript calls. On the other side, if you use standard JSF (ex. myfaces) you get simple HTML that you can send to a designer to make it look better through css manipulations (in his dreamweaver or whatever). You overrride the old css with the new one and you're done.
Now! adding Ajax4JSF over your standard JSF application takes some time, if you want to change the look and feel after your app is complete, you can't give pages by right clicking on your browser and selecting "view source" because you'd get javascipt asynchronous calls instead of simple HTML.
The good news are that you don't need to use Ajax4JSF tags instead of jsf tag but only around them, so we can imagine a sort of "desactivation" of the work done by Ajax4JSF tags to retreive the original JSF output before the A4J tags were added.
The first idea of a "home solution" is to replace the jar file of a4j with one with an identical tld that outputs only children (that does as if the tag weren't there).
The second "open source" approch is add a parameter in the list of a4j web.xml params to tell all tags : "do as if weren't there".