Feature #1754
closedcannot run Widget Gallery Layout Manager examples
0%
Description
I'm looking at the docs on this page;
http://www.webtoolkit.eu/widgets/layout/layout-managers
I'm entering the codes basically identically to what's shown in these examples. But, instead of getting nice colored boxes as shown on that page, I have just a white page with black letters and not boxes or colors. Not really quite sure what I'm doing wrong, but I'm sure its css related. I believe I have all my resources and css folders set up correctly, launching the app from its folder and so on.
My code is really quite simple, just a few nested layouts as shown in the examples from that page. It's just not rendering properly.
Here is the server output;
mark@HGS:~/projects/Wt/trafficboard/src$
mark@HGS:~/projects/Wt/trafficboard/src$ make && ./wt-run.sh
make: Nothing to be done for `first'.
[2013-Mar-19 23:43:37.320173] 23537 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = './trafficboard.wt')"
[2013-Mar-19 23:43:37.321264] 23537 - [info] "WServer/wthttp: initializing built-in wthttpd"
[2013-Mar-19 23:43:37.321561] 23537 - [info] "wthttp: started server: http://0.0.0.0:10001"
[2013-Mar-19 23:43:49.779921] 23537 - [info] "Wt: session created (#sessions = 1)"
[2013-Mar-19 23:43:49.780071] 23537 [/ cnSBdUebaTBvX7n1] [info] "WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"
192.168.1.5 - - [2013-Mar-19 23:43:49.780880] "GET / HTTP/1.1" 200 1846
[2013-Mar-19 23:43:49.780958] 23537 - [info] "WebRequest: took 1.122ms"
[2013-Mar-19 23:43:49.796912] 23537 - [info] "Wt: session created (#sessions = 2)"
[2013-Mar-19 23:43:49.796997] 23537 [/ QhMZIPEQSEtPwYgk] [info] "WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"
[2013-Mar-19 23:43:49.797047] 23537 [/ QhMZIPEQSEtPwYgk] [info] "Wt: signal from dead session, sending reload."
[2013-Mar-19 23:43:49.797157] 23537 [/ QhMZIPEQSEtPwYgk] [info] "Wt: session destroyed (#sessions = 1)"
192.168.1.5 - - [2013-Mar-19 23:43:49.797395] "POST /?wtd=9Rc7BXUQAdjjhC9U HTTP/1.1" 200 72
[2013-Mar-19 23:43:49.797452] 23537 - [info] "WebRequest: took 0.626ms"
192.168.1.5 - - [2013-Mar-19 23:43:49.830102] "GET /?wtd=cnSBdUebaTBvX7n1&request=style HTTP/1.1" 200 89
[2013-Mar-19 23:43:49.830184] 23537 - [info] "WebRequest: took 6.245ms"
192.168.1.5 - - [2013-Mar-19 23:43:49.847272] "GET /?wtd=cnSBdUebaTBvX7n1&sid=1687253408&htmlHistory=true&deployPath=%2F&request=script&rand=2765936522 HTTP/1.1" 200 48918
[2013-Mar-19 23:43:49.847394] 23537 - [info] "WebRequest: took 18.729ms"
192.168.1.5 - - [2013-Mar-19 23:43:49.947572] "GET /resources//themes/default/wt.css HTTP/1.1" 304 0
192.168.1.5 - - [2013-Mar-19 23:43:49.947590] "GET /resources/moz-transitions.css HTTP/1.1" 304 0
192.168.1.5 - - [2013-Mar-19 23:43:49.997219] "POST /?wtd=cnSBdUebaTBvX7n1 HTTP/1.1" 200 50
[2013-Mar-19 23:43:49.997278] 23537 - [info] "WebRequest: took 0.573ms"
Updated by Koen Deforche over 11 years ago
- Tracker changed from Support to Feature
- Assignee set to Koen Deforche
- Target version set to 3.3.1
We should improve the widget gallery such that there is no dependence on CSS not mentioned in the src.
In this case: you need to include the following stylesheet (using WApplication::useStyleSheet()) :
.yellow-box {
background-color: #ffffb4;
border: 1px solid black;
margin-top: 1ex;
margin-bottom: 1ex;
}
.green-box {
background-color: #c4ffb4;
min-height: 30px;
text-align: center;
padding: 3px;
}
.blue-box {
background-color: #65dae8;
min-height: 30px;
text-align: center;
padding: 3px;
}
Updated by Koen Deforche about 11 years ago
- Target version changed from 3.3.1 to 3.3.2
Updated by Koen Deforche almost 11 years ago
- Target version changed from 3.3.2 to 3.3.3
Updated by Koen Deforche over 10 years ago
- Status changed from Resolved to Closed