I have wt compiled on a freebsd 7.2 system and its linked with boost and has
the ExtJs widgets working without a hitch. I have a simple app im trying to
make and i cant seem to
get the text from a xml file to load and display properly. I use the
following in my class
SomeClass::SomeClass(const WEnvironment& env)
: WApplication(env)
{
setTitle("Welcome");
useStyleSheet("my.css");
Wt::WApplication* app = Wt::WApplication::instance();
app->messageResourceBundle().use("intro");
Wt::WText *welcome = new
Wt::WText(WString::tr("welcome-visitor").arg("welcome-text"));
root()->addWidget(welcome);
}
I have the following the in the intro.xml file in the root level of the app.
cat intro.xml
<?xml version="1.0" encoding="UTF8"?>
<messages>
<message id='welcome-text'>
Welcome dear visiter, {1} of the WFooBar magic website !
</message>
</messages>
Then when i view the page i see this
??welcome-visitor??
This must be somthing simple im missing ive tried alot of different things
with this and still get the same data.
Any help would be appreciated or a simple xml load example, thanks
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest