Mercurial > hg > LGDataverses
comparison doc/Architecture/bootstrap-migration-tips.md @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Sep 2015 17:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:5926d6419569 | 10:a50cf11e5178 |
---|---|
1 Bootstrap Migration Tips | |
2 ======================== | |
3 | |
4 * `p:panel` -> `ui:fragment`, or just the content, when possible. | |
5 * Whenever possible, no xhtml at all | |
6 * `<h:outputText value="abc"/>` -> abc | |
7 * conditional rendering based on `ui:fragment`'s `rendered` property. | |
8 * Cant use HTML entities. Use the actual unicode char instead. | |
9 * HTML5's attributes using passthrough: | |
10 | |
11 h:inputText id="email" value="#{bean.email}"> | |
12 <f:passThroughAttribute name="type" value="email"/> | |
13 <f:passThroughAttribute name="placeholder" | |
14 value="Enter email"/> | |
15 </h:inputText> | |
16 | |
17 * More on html5 and JSF 2.2 at http://jsflive.wordpress.com/2013/08/08/jsf22-html5/ | |
18 * We have a bootstrap component lib, `iqbs`. | |
19 * Need to manually convert the font references to JSF compliant: | |
20 * from `url('../fonts/glyphicons-halflings-regular.eot');' | |
21 * to `url("#{resource['bs/fonts/glyphicons-halflings-regular.eot']}");` | |
22 * from `url('../fonts/glyphicons-halflings-regular.eot?SomeThings');' (note the parameter at the end) | |
23 * to `url("#{resource['bs/fonts/glyphicons-halflings-regular.eot']}?someThings");` | |
24 * same for `?` parameters at the end. | |
25 |