WidgetGallery example
Added by Damon Gogul almost 13 years ago
Hi,
When trying to run the WidgetGallery example, I am getting a very basic, skeletal version that is very different from the one viewable at http://www.webtoolkit.eu/widgets
Am I missing any crucial libraries/files needed in order to build these examples properly?
Thanks,
Damon Gogul
Replies (8)
RE: WidgetGallery example - Added by David Hubbard almost 13 years ago
Damon
Are you getting any 404s shown in the console where you run the server? I suspect by default the required "resources" folder isn't referenced in the example folder - you may either need to create a link to it or copy it in from /resources.
Dave
RE: WidgetGallery example - Added by Damon Gogul almost 13 years ago
Dave,
I am getting the 404s, and I have tried both moving the resources folder to the example folder AND linking the original resources directory to widgetgallery.wt, but the 404 errors are still showing up in the console and the example page still looks very skeletal.
One of the 404s shown that really puzzles me (among others) is:
"GET /style/dragdrop.css HTTP/1.1" 404 85
considering that the Style folder is contained inside the C:\wt-3.1.9\examples\widgetgallery directory.
Thanks,
Damon Gogul
RE: WidgetGallery example - Added by David Hubbard almost 13 years ago
What do you have on your command line? Do you have "docroot" defined as in
widgetgallery.wt --docroot . --http-address 0.0.0.0 --http-port 8080
RE: WidgetGallery example - Added by Damon Gogul almost 13 years ago
My command arguments are as follows: ---http-address=0.0.0.0 ---http-port=8080 ---docroot=.
RE: WidgetGallery example - Added by Damon Gogul almost 13 years ago
Sorry, I should probably mention that I am running this from VisualC 2010 Express, from WT.sln
RE: WidgetGallery example - Added by David Hubbard almost 13 years ago
But where are you running the executable from (what's it's working directory) - if you are launching from within IDE is this getting set. By using "docroot=." you are saying "look in current folder" - have you tried running the executable from command line with pwd set to location of sub-folders?
RE: WidgetGallery example - Added by Wim Dumon almost 13 years ago
The working directory seems to be the issue here. In MSVC, you can set it by right-clicking on the project, then select properties, and in the 'debug' section you can set the working directory. It must be set to the directory where the source of the example is located, rather than the build directory. Also, the resources folder should be copied to the source directory of the example.
RE: WidgetGallery example - Added by Damon Gogul almost 13 years ago
It was the working directory for MSVC - it was set to build directory. Thanks!
Damon Gogul