Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn RAP simply use CSS for styling, such as e.g. GWT?

CSS gwt rap styling
0
Posted

Why doesn RAP simply use CSS for styling, such as e.g. GWT?

0

In GWT for example, every widget has a configurable style name that is rendered as class attribute. Styling is done by adding a CSS file to the target HTML document. Although this is a simple technique, it does not work out for RAP for a number of reasons: 1. One of the main objectives of RAP is to prevent vendor lock-in by allowing for exchangeable client implementations. Although our current client-side technique is based on JavaScript, there are completely different technologies out there that might be interesting candidates for RAP clients (GWT, Flex, Silverlight …). Not all of those technologies can necessarily deal with CSS. 2. In RAP, all layouts are computed on the server side, thus the server also needs to know about any variable dimensions like paddings and borders. This is not possible if a style sheet is applied only on the client side. 3. Due to browser bugs and differences, writing cross-browser CSS code is a complex task. Client technologies may work around those brows

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123