Re: [Wt-interest] WTemplates, WString, UTF-8 and operator<

2016-10-28 Thread Koen Deforche
Hey, That sounds like a bug which has been fixed since as I now read: StringMap::const_iterator i = strings_.find(varName); if (i != strings_.end()) result << i->second.toUTF8(); (I can't recall a bug or a fix though) Regards, koen

Re: [Wt-interest] "ThreadPool in parent and child processes (dedicated mode)"

2016-09-29 Thread Koen Deforche
Hey Aaron, You can do that at http://redmine.emweb.be/projects/wt/issues Regards, koen 2016-09-28 22:32 GMT+02:00 Aarón Bueno Villares <abv15...@gmail.com>: > And how can I do that? > > 2016-09-28 21:12 GMT+02:00 Koen Deforche <k...@emweb.be>: > >> Hey Aaron,

Re: [Wt-interest] "ThreadPool in parent and child processes (dedicated mode)"

2016-09-28 Thread Koen Deforche
Hey Aaron, That sounds like a trick, but I wouldn't mind having a proper setting 'dispatcher-thread-pool' that's used only in dedicated process mode. If you still care for it, can you file a feature request? Regards, koen 2016-09-18 7:15 GMT+02:00 Aarón Bueno Villares : > I

Re: [Wt-interest] how to make a grid shrinks/grows the number of columns ?

2016-07-26 Thread Koen Deforche
Hey Nicolas, A WTreeView will automatically shrink/grow the first column based on available width. If you want something else then you need to do it manually, see also this thread: http://redmine.emweb.be/boards/2/topics/2659 Regards, koen 2016-07-13 5:23 GMT+02:00 Nicolas Jäger

Re: [Wt-interest] Can't get docroot ";" syntax to work

2016-07-18 Thread Koen Deforche
Hey, 2016-07-12 20:39 GMT+02:00 K. Frank : > >> On the other hand, a link (that evaluates) to: > >> > >>http://localhost/mixed_links/static_links/link1.html > >> > >> does not successfully link to the file. The ";" syntax does have an > >> effect, however. If I deploy

Re: [Wt-interest] Can't get docroot ";" syntax to work

2016-07-12 Thread Koen Deforche
Hey, Some follow up questions: > > Is the following true? If the deploy-path does not end in "/", then the > ";" > docroot syntax does nothing. That is, the ";" and anything after it is > effectively ignored. > Perhaps that statement wasn't as accurate: if the deploy-path does not end with

Re: [Wt-interest] Can't get docroot ";" syntax to work

2016-07-11 Thread Koen Deforche
Hey, 2016-07-11 16:24 GMT+02:00 K. Frank : > Hello List! > > I am building my app to be a wthttpd server. When I start it from the > command line, I pass it the --docroot argument, for example, as: > >mixed_links --http-address=0.0.0.0 --http-port=80 >

Re: [Wt-interest] Clean URLs

2016-05-27 Thread Koen Deforche
Hey Frank, 2016-05-26 23:34 GMT+02:00 K. Frank : > On Thu, May 26, 2016 at 5:00 PM, Rutger ter Borg > wrote: > > Hey all, > > > > I'm running a Wt application through wthttpd. It's deployed at '/'. In > > order to get clean URLs, I configured --docroot

Re: [Wt-interest] How do I determine boost::bad_any_cast source

2016-05-19 Thread Koen Deforche
Hey Mark, It's unfortunate that the cast itself does not reference the relevant typeid information (perhaps for some advanced good reason), ASFAIK. Thus, from the log files it's impossible to tell. You could however wrap all boost::cast<...>() calls into a helper function that throws an

Re: [Wt-interest] How to integrate Wt with "conventional" html / css?

2016-05-19 Thread Koen Deforche
Hey Frank, 2016-05-18 16:16 GMT+02:00 K. Frank : > Just to be sure I understand: > > Could this be as simple as reading in a well-formed html file (say, > content.html, > although the actual file name / extension is irrelevant -- could equally > well be > content.xyz), for

Re: [Wt-interest] Question about chat.js reference in Chat widget-embedding example

2016-05-19 Thread Koen Deforche
Hey Frank, 2016-05-18 17:13 GMT+02:00 K. Frank : > and I don't see any js source. > > I copied the js link in the blog post: > > > http://www.webtoolkit.eu/wt/examples/simplechat/chat.js?div=chat";> > > > into a local html file that I am experimenting

Re: [Wt-interest] How to integrate Wt with "conventional" html / css?

2016-05-17 Thread Koen Deforche
Hey, 2016-05-17 23:05 GMT+02:00 K. Frank : > Hello List! > > How might I approach mixing Wt with non-Wt web programming? > > To be concrete, let's say I have a simple static web site that's > implemented with html (say html5) / css and consists of a handful > of pages. > >

Re: [Wt-interest] Online hangman-high-scores example not working?

2016-05-17 Thread Koen Deforche
Hey, 2016-05-16 15:08 GMT+02:00 K. Frank : > Hello List! > > I am playing around with Wt and wish to experiment with Wt's > account / authentication features, so I am looking at the hangman > example, and running it on line. > >

Re: [Wt-interest] WComboBox using a proxy model: possible bug?

2016-04-28 Thread Koen Deforche
That sounds like a bug in WComboBox: the possibility to have 'no selection' is a relatively recent feature. Can you file it as a bug? 2016-04-16 19:18 GMT+02:00 Aarón Bueno Villares : > Sorry to ask so many things but, I think I've found a bug, or I'm doing > something wrong.

Re: [Wt-interest] deploy-path and docroot

2016-04-08 Thread Koen Deforche
Hey, 2016-04-05 20:36 GMT+02:00 Aaron Laws : > I'm having a bit of difficulty configuring --deploy-path and --docroot. > > When I launch from "." and use --docroot=".;css", I can access > ./css/styles.css through foobar.com/css/styles.css. This seems clear > enough. > > When

Re: [Wt-interest] Order of execution of signals

2016-04-04 Thread Koen Deforche
Hey Aaron, "manually" by the ItemDelegate class, and in that case, in my > understanding, the order is the one defined by the boost::signals2 library > (which is the order of connections). > In both cases there is an order assumed internally, but what we mean to say is that it is bad practice to

Re: [Wt-interest] About OAuth module: several questions

2016-03-31 Thread Koen Deforche
Hey, 2016-03-31 1:02 GMT+02:00 Aarón Bueno Villares : > First of all, sorry for my English. Second, because these email will have > different "question" about the use of that module, I want to contextualize > a bit my situation: > > A) Its the first time I deploy a

Re: [Wt-interest] XHTML Text

2016-03-13 Thread Koen Deforche
Hey, You're looking for WWidget::htmlText(). Note that the PDF renderer supports only a subset of HTML/CSS. Koen 2016-03-11 21:01 GMT+01:00 Chris Visser (GMail) : > Hi > > > > How can I get the XHTML text of a container? As far as I can see, printing > to PDF using the

Re: [Wt-interest] ItemDelegate shared for multiple columns

2016-02-26 Thread Koen Deforche
Hey Aaron, 2016-02-25 19:23 GMT+01:00 Aarón Bueno Villares : > Since Wt makes some lifecycle management of its WObjects, I want to know > if a WAbstractItemDelegate (or any of its derived class of course), can be > shared between different columns, for example, if the content

Re: [Wt-interest] Order of execution of signals

2016-02-25 Thread Koen Deforche
Hey Aaron, 2016-02-25 1:17 GMT+01:00 Aarón Bueno Villares : > I have a WFileUpload widget whose uploaded() signal is connected to two > different functions, one creating a database object, and another one > showing information about the newly created db object. > > It's

Re: [Wt-interest] Wt users list and Wt based blog

2016-02-22 Thread Koen Deforche
Hey, 2016-02-21 12:16 GMT+01:00 Jagadees.S : > Hi, > I am C++ programmer. I am interested in developing applications using Wt. > > 1. I am worried about the scalability and performance. > Can give me the details of some successful commercial websites url which > uses Wt. >

Re: [Wt-interest] financial candle plotting patch - early phase

2016-01-17 Thread Koen Deforche
Hey Matthew, I'm working on a patch for Wt that will allow it to plot candles (as used > in financial plots). > > https://en.wikipedia.org/wiki/Candlestick_chart > Nice. I know a few users who are going to be happy! > My current issue is that for each X value there are 4 Y values (high, low, >

Re: [Wt-interest] Understanding Dynamic FastCGI + SharedProcess/DedicatedProcess mode

2016-01-07 Thread Koen Deforche
Hey, 2016-01-07 0:24 GMT+01:00 Aarón Bueno Villares : > Ok, thanks. I'll deploy it as a static FastCGI application in dedicated > process mode (as a Wt newbie, I prefer to avoid risks using shared > processes, and I can't deploy it has a standalone server -wthttpd- for >

Re: [Wt-interest] Understanding Dynamic FastCGI + SharedProcess/DedicatedProcess mode

2016-01-06 Thread Koen Deforche
Hey Aaron, 2016-01-04 17:44 GMT+01:00 Aarón Bueno Villares : > I have lost about three days checking the Wt source code trying to figure > out what kind of risks there could be if I would choose a dynamic FastCGI > deployment for my Wt site, because there is nearly no

Re: [Wt-interest] Microsoft Edge browser

2015-10-15 Thread Koen Deforche
Hey, This has been fixed in git now and will be in Wt 3.3.5 Op 14 okt. 2015 20:26 schreef "Mario Diethelm Guallar" < mariodiethe...@gmail.com>: > Hi guys, > > probably you already noticed this but Wt identifies the new Microsoft > browser (Microsoft Edge, bundled with Windows 10) as a Chrome

Re: [Wt-interest] SSL Connections

2015-10-12 Thread Koen Deforche
Hey Daniel, It might have to do with more stringent security settings in browsers, and old ciphers that should not longer be used by your server. You'll need to provide more information to be sure though: Wt logs and browser error messages. Koen 2015-10-10 17:10 GMT+02:00 Daniel Horsey

Re: [Wt-interest] Unknown trace output; decodeSignal() not exposed

2015-09-14 Thread Koen Deforche
Hey Mark, These could be innocent, but aren't always. This error is given if an event is relayed from the browser to the server while the server hasn't exposed this event. Unfortunately, because events are posted in batch to the server (and queued up until you get a response), the typical case

Re: [Wt-interest] Issue with TableView and Responsive

2015-09-09 Thread Koen Deforche
Hey Mark, If you want widgets to respond to the height of the browser window, then you need to have a complete chain of layout managers from the root() of your application down to the widget that you want to respond to it. It's not sufficient to wrap that widget itself in a layout manager since,

Re: [Wt-interest] Unwanted Page Refresh Try 2

2015-08-21 Thread Koen Deforche
Hey, When, during event handling, an uncaught exception is thrown, then Wt will print out the exception and terminate the session. The next request from the browser will then trigger a new session to be created, causing in a page refresh. In your case, the exception that is being thrown is most

Re: [Wt-interest] two WDialog objects working together

2015-08-12 Thread Koen Deforche
to have such a function (raiseToFront). Regards. _ Mario Diethelm Guallar El 15-07-2015, a las 4:21, Koen Deforche k...@emweb.be escribió: Hey, The order of creation controls that. But perhaps we should add a raiseToFront() function, which we have internally already

Re: [Wt-interest] two WDialog objects working together

2015-08-12 Thread Koen Deforche
on (WDialog or some of the base classes)? Thanks a lot. Regards. Mario Diethelm Guallar -- Original Message -- From: Koen Deforche k...@emweb.be To: Mario Diethelm Guallar mariodiethe...@gmail.com Cc: witty-interest@lists.sourceforge.net witty-interest

Re: [Wt-interest] HTTP question

2015-08-11 Thread Koen Deforche
Hey Mario, It's still not entirely clear to me what the payment system expects. We have experience with two different types of systems: - systems that require the user's browser to be redirect to a payment site where the user will have to confirm the transaction (sometimes being redirect further

Re: [Wt-interest] Can one us wthttpd to mix internal paths and external links in the same folder?

2015-07-23 Thread Koen Deforche
Hey, 2015-07-23 21:03 GMT+02:00 K. Frank kfrank2...@gmail.com: Is it possible to support both link1, an app-rendered internal path, and page1.html, a plain, external html page, in the same folder? That is http://localhost/links/link http://localhost/links/page1.html (where

Re: [Wt-interest] WApplication / WMenu boost-connection duplicate-section issue

2015-07-16 Thread Koen Deforche
kfrank2...@gmail.com wrote: Hi Koen! On Wed, Jul 15, 2015 at 10:11 AM, Koen Deforche k...@emweb.be wrote: Hey, Since you're building your test case with a C++14 compiler, you probably didn't build Wt with the same compile flags. See the WT_CPP_11_MODE CMake flag for building Wt

Re: [Wt-interest] two WDialog objects working together

2015-07-15 Thread Koen Deforche
Hey, The order of creation controls that. But perhaps we should add a raiseToFront() function, which we have internally already? Regards, Koen Op 14 jul. 2015 23:53 schreef Mario Diethelm Guallar mariodiethe...@gmail.com: Hi, I am working on an application that uses two independent dialog

Re: [Wt-interest] WApplication / WMenu boost-connection duplicate-section issue

2015-07-15 Thread Koen Deforche
Hey, Since you're building your test case with a C++14 compiler, you probably didn't build Wt with the same compile flags. See the WT_CPP_11_MODE CMake flag for building Wt. Regards, koen 2015-07-15 16:06 GMT+02:00 K. Frank kfrank2...@gmail.com: Hello List! I get duplicate section ... has

Re: [Wt-interest] How to use wthttpd to host an html web page / site?

2015-07-06 Thread Koen Deforche
Hey, 2015-07-04 4:09 GMT+02:00 K. Frank kfrank2...@gmail.com: Just to confirm, is the following the minimal wthttpd server? #include Wt/WApplication #include Wt/WEnvironment using namespace Wt; WApplication *createApplication(const WEnvironment env) { return new

Re: [Wt-interest] How to use wthttpd to host an html web page / site?

2015-07-02 Thread Koen Deforche
Hey, The wthttpd is also a simple web server, serving static files from inside it's docroot. The simplest way to serve static contents is to put it into the docroot. You will need to implement a main() function to instantiate the server. From your use-case, it sounds logical and totally sensible

Re: [Wt-interest] WComboBox question

2015-06-23 Thread Koen Deforche
Hey, I am using some WComboBox objects based on WSortFilterProxyModel as underlying data model. With the WComboBox objects based on WStandardItemModel you can use setCurrentIndex(-1) to clear the current selection, but with the WComboBox objects based on WSortFilterProxyModel, even after

Re: [Wt-interest] WDateEdit calendar behavior

2015-04-14 Thread Koen Deforche
Hey Mario, the user to select a date. With Safari, the calendar windows appears for a second or less and then disappears. With FireFox, all the widgets in the form get erased (you get a 100% empty form, no application crash or logged errors at console level when the application runs using the

Re: [Wt-interest] Wt:Dbo doubt

2015-04-12 Thread Koen Deforche
Hey, 2015-04-09 21:47 GMT+02:00 Freddy Martinez Garcia freddy311...@gmail.com: Hi guys… I have some questions for you I’m developing an application using Qt where we generate dynamically a lot of table in our database. For that reason, we don’t have a class design to map our tables with

Re: [Wt-interest] Possible data races using wt-3.3.4-rc1 with boost 1_57_0

2015-02-19 Thread Koen Deforche
Hey, 2015-02-19 1:14 GMT+01:00 Joe VanAndel vanan...@ucar.edu: I’ve attached two of the races the helgrind detects. wt_boost_race1 http://pastebin.com/831vMuK5 This one would suggest that boost::lexical_cast is not thread-safe because of locale()? That can't be right? The following race

Re: [Wt-interest] Best practice for using valgrind with Wt ?

2015-02-17 Thread Koen Deforche
Hey Joe, Using the wthttpd, there's nothing particular to do: simply run the application with valgrind, and a Ctrl-C (or SIGTERM) should always terminate cleanly for a well-behaved application: this signal is caught to do a clean shutdown, cleaning up all current application sessions. Regards,

Re: [Wt-interest] Custom WLayout

2015-01-24 Thread Koen Deforche
Hey Tolga, No, there's no way to create a custom layout (easily). Layout management inside html/css is simply too nasty for us to provide a meaningful API on which you can build. If you want to do custom layout, you need to put the 'container' inside a layout manager. Within this container you

Re: [Wt-interest] animateShow failure

2015-01-19 Thread Koen Deforche
Hey, 2015-01-07 1:45 GMT+01:00 K. Frank kfrank2...@gmail.com: Please let me clarify to be sure I understand: 1) To use animation, I need a non-inline widget, e.g. setInline(false); But 2) Even with setInline(false);, my use case -- hiding and showing the same widget repeatedly -- is

Re: [Wt-interest] animateShow failure

2015-01-05 Thread Koen Deforche
Hey, Animation will not work on an 'inline' widget. You need to make the following change to your code: text_-setInline(false); And I also fixed a bug that prevented the same widget to be animated a second time in this case. Regards, koen 2015-01-03 3:54 GMT+01:00 K. Frank

Re: [Wt-interest] animateHide() / animateShow() on the same widget happens instantaneously

2015-01-05 Thread Koen Deforche
Hey, What do you want to happen though? That both animations run sequentially with no net effect? Koen 2014-12-31 16:23 GMT+01:00 K. Frank kfrank2...@gmail.com: Hello List! I wish to use some animation when tweaking the appearance of a widget -- say, changing the color of a button. If I

Re: [Wt-interest] How to animate filling in a WLineEdit?

2015-01-05 Thread Koen Deforche
Hey, I would do this with a small snippet of JavaScript code; e.g. a single function that you can call with a line edit and a text. fillAnimate(edit, text) { ... } This code itself could use JavaScipt setTimeout() to perform the animation. You can put this file in a JS file which you load

Re: [Wt-interest] Layout best practices

2014-12-31 Thread Koen Deforche
Hey Omar, It depends on what you want? Not everything can be shown on the screen so you need to decide. Either you add at line 74: container-setOverflow(Wt::WContainerWidget::OverflowHidden); Or you may want a scrollbar to appear at the level of the container, then change lines 65-: auto

Re: [Wt-interest] Compiling error

2014-12-31 Thread Koen Deforche
Hey, Only Wt 3.3.4-rc1 or the git version of Wt builds fine with boost 1.57. Regards, koen 2014-12-29 13:53 GMT+01:00 Freddy Martinez Garcia freddy311...@gmail.com: I have 1.57 cause i use the boost from homebrew repository... there is a problem with that ?

Re: [Wt-interest] Open link in new browser/tab

2014-12-03 Thread Koen Deforche
Hey Daniel, It's not a property of a WLink, but of WAnchor: WAnchor::setTarget(). Regards, koen 2014-11-17 7:04 GMT-08:00 Daniel Horsey dan.hor...@broadruntech.com: Hi: I need to allow the user to click a link to an external site. I want to open this site in a new browser, or new browser

Re: [Wt-interest] 2 Fast Clicks on different Items in a List are recognized as Doubleclick on the last Record

2014-11-24 Thread Koen Deforche
Hey Marco, Oops. It seems we need to add a criterion of nearness to the double click detection (for which we use JavaScript since the browser implementation is broken). This should be easy to fix -- can you file a bug report for this? Koen 2014-11-24 11:57 GMT+01:00 Marco Kinski

Re: [Wt-interest] Displaying Totals in WTableView (and perhaps WTreeView as well)

2014-11-10 Thread Koen Deforche
Hey Marc, It's not possible directly, but the following work-around is tried and tested: to have two tableviews on top of each other; one of them without headers, with a coupled horizontal scrollbar and with exactly the same column widths as the main one. Koen 2014-11-09 10:49 GMT+01:00 Marc

Re: [Wt-interest] error: implicit instantiation of undefined template

2014-11-10 Thread Koen Deforche
Hey, I could indeed reproduce this problem with CLang + boost 1.57. I believe it's a bug in boost but we can easily work around it. I've got a patch reay for Wt. Regards, koen 2014-11-07 18:44 GMT+01:00 Wim Dumon w...@emweb.be: Ouch. I think we'll need to take a look at boost 1.57 ASAP,

Re: [Wt-interest] WDialog AutoFocus default on

2014-11-09 Thread Koen Deforche
Hey Marco, I'm not sure I understand the bad behavior: a combo-box that is being focussed does not necessarily expand its option list? At least that's not the behavior I have ever seen? Regards, koen 2014-10-22 13:15 GMT+02:00 Marco Kinski wagner.ma...@gmail.com: Hi List, the default on of

Re: [Wt-interest] Layout best practices

2014-11-07 Thread Koen Deforche
Hey Omer, A layout manager will not change the 'overflow' settings of a widget that you insert. The superimposition is because the default CSS overflow setting is 'visible'. In practice you may want to change this to 'hidden' or 'auto' (to show scrollbars if necessary). I can't readily answer

Re: [Wt-interest] reporting using html and pdf rendering

2014-11-07 Thread Koen Deforche
Hey Mario, 2014-10-31 20:28 GMT+01:00 Mario Diethelm Guallar mari...@terra.cl: Hi everybody. I have another question about pdf rendering: Some of the reports that I am building have to be written in Spanish, so you have to use several special characters (like accents: á, é, í, ó, ú and

Re: [Wt-interest] PayPal interface

2014-11-05 Thread Koen Deforche
Hey, The paypal example still works for me. The response I get is in the form of: TOKEN=EC-5T539606ME4630649TIMESTAMP=2014-11-05T14:38:30ZCORRELATIONID=3459ed00d7634ACK=SuccessVERSION=92.0BUILD=13630372 Did you configure your developer account on paypal correctly and provide the information in

Re: [Wt-interest] reporting using html and pdf rendering

2014-10-27 Thread Koen Deforche
Hey Mario, Wt supports CSS page-break-before: always and page-break-after: always declarations to force page breaks in multi-page PDFs. Koen 2014-10-27 1:22 GMT+01:00 Mario Diethelm Guallar mari...@terra.cl: Hi, continuing with report development for my Web application, I need to include

Re: [Wt-interest] ORM Versioning

2014-10-23 Thread Koen Deforche
Hey Raymond, Op 11 okt. 2014 21:23 schreef Raymond Burkholder r...@oneunified.net: As a project evolves, database schema changes: tables come and go, columns come and go, relations come and go. In Sqlalchemy, there is a way to track the changes, and create a small module to apply changes

Re: [Wt-interest] Http client

2014-10-13 Thread Koen Deforche
Hey Daniel, There is no need to setup 'SSL' in a particular way to allow it to do its work of certificate validation: it's the default, and by default OpenSSL is configured to use a standard directory which contains broadly accepted certificates. It seems that this does not work properly in your

Re: [Wt-interest] Reg: Fatal error: failed loading ext/ext-base.js... Need help

2014-10-10 Thread Koen Deforche
Hey, It might still be working ... if you can locate a suitable (old) version of ExtJS. I believe that may be hard, and we're not allowed to redistribute it. Regards, koen 2014-10-10 14:11 GMT+02:00 Manikanta Kondeti mani.iiit...@gmail.com: Hi all, I'm a beginner in wt application

Re: [Wt-interest] stream from server to js

2014-10-06 Thread Koen Deforche
Hey Boris, Op 6 okt. 2014 07:19 schreef Nagaev Boris bnag...@gmail.com: Wt supports WebSocket. See configuration option web-socket in wt_config.xml. If you set it to true, then triggerUpdate and even ajax updates initiated by client are transmitted through WebSocket. WebSockets in Wt

Re: [Wt-interest] Http client

2014-10-04 Thread Koen Deforche
Hey Daniel, It's an upstream problem in boost::asio. I believe the comment reflects the fact that we've never got this to work. When we originally implemented this, we couldn't get any of it to work, but in later boost versions at least verification using the standard SSL certificates works.

Re: [Wt-interest] Expanding/Collapsing Nodes in a large WTreeView

2014-09-24 Thread Koen Deforche
Hey Marco, Yes please file a bug report -- this workaround should not be needed and this needs to be fixed in Wt. Regards, koen 2014-09-09 11:09 GMT+02:00 Marco Kinski wagner.ma...@gmail.com: Hi Stefan, thanks for your answer. Your solution works and i now use it to workaround that

Re: [Wt-interest] Wt on mobile: optimize Wt loading speed and user experience

2014-09-01 Thread Koen Deforche
Hey Boris, See results for my Wt based site kiset.org: http://developers.google.com/speed/pagespeed/insights/?url=webtoolkit.eutab=mobile We have indeed not properly implemented a mobile friendly wt homepage; something that is on our todo-list. 4. Eliminate render-blocking JavaScript and

Re: [Wt-interest] deferCreate function from Wt-home example with database returns null

2014-09-01 Thread Koen Deforche
Hey, What do you mean with 'database pointer', what is it, where do you store it, and how do you access it ? I would not foresee any problems related to deferCreate(). Regards, koen 2014-08-22 0:35 GMT+02:00 Jeffrey Scott Flesher Gmail jeffrey.scott.fles...@gmail.com: I am using the

Re: [Wt-interest] How do you iterate over WTemplate?

2014-08-01 Thread Koen Deforche
Hey Jeffrey, 2014-07-27 22:54 GMT+02:00 Jeffrey Scott Flesher Gmail jeffrey.scott.fles...@gmail.com: I have a temple like this: ?xml version=1.0 encoding=UTF-8 ? messages message id=x-template wt id='audio1' class='audio' type='audio/mpeg' width='640' height='360'

Re: [Wt-interest] I am getting a run time error warning: [error] WString: widen(): could not widen string:

2014-07-29 Thread Koen Deforche
long, I wanted to be clear. Thanks Flesher On Mon, 2014-07-14 at 16:43 +0200, Koen Deforche wrote: Hey, Cannot widen() really means, as Stefan suggests, that somewhere you are messing up character formats. You should always use UTF-8 within a Wt application, unless you really need

Re: [Wt-interest] I am getting a run time error warning: [error] WString: widen(): could not widen string:

2014-07-14 Thread Koen Deforche
Hey, Cannot widen() really means, as Stefan suggests, that somewhere you are messing up character formats. You should always use UTF-8 within a Wt application, unless you really need something else. As to memory size: if you are only shown static contents, there is no need for a widget to keep

Re: [Wt-interest] Replacing contemts of a WMenuItem

2014-07-11 Thread Koen Deforche
Hey Petric, There's no reason; it just needs to be implemented. Can you file a feature request for this? Regards, koen 2014-07-04 21:26 GMT+02:00 Petric Frank pfr...@gmx.de: Hello, The constructor of WMenuItem allows to pass a WWidget instance. There are also (public) methods to remove

Re: [Wt-interest] User Agent Detection and IE Compatibility View Settings

2014-06-04 Thread Koen Deforche
Hey Marc, in the past few days I have stumbled across a problem in determining the Internet Explorer version from the user agent string when Internet Explorer decides to use compatibility mode. In this case IE11 is considered to be IE7 for example, which is a big problem in my case. My

Re: [Wt-interest] How do you format a number string using locale?

2014-06-02 Thread Koen Deforche
Hey Jeffrey, There are indeed some choices we still need to make w.r.t. locale handling. Unfortunately, std::locale has issues in many embedded environments which is why we cannot rely on it, but we might want to use it if it is available. See the following feature I recently added:

Re: [Wt-interest] Using the Bootstrap 3 theme in Wt 3.3.3

2014-06-02 Thread Koen Deforche
Hey Joe, Indeed such an example would be nice. We'll add it to the gallery. Regards, koen 2014-05-31 1:44 GMT+02:00 Joe VanAndel vanan...@ucar.edu: The Wt documentation for WBootstrapTheme states: it is still important to understand how Bootstrap expects markup to be, especially related

Re: [Wt-interest] Using the Bootstrap 3 theme in Wt 3.3.3

2014-06-02 Thread Koen Deforche
Hey Boris, 2014-06-01 22:19 GMT+02:00 Nagaev Boris bnag...@gmail.com: Hello, I also do not know how to use Twitter Bootstrap Grids in Wt. I created site with chat in Wt: http://tete-a-tete.tk Bootstrap was used for this site. Here is how it looks in iPod:

Re: [Wt-interest] Formatting cells for WTableView

2014-05-28 Thread Koen Deforche
Hey, 2014-05-28 2:21 GMT+02:00 Muhammad Nasser Al-Noimi mnno...@gmail.com: Hi all, I'm using WTableView with model and I want to modify the data for one column (format the output or apply simple calculation on data cell). Any one can give me hint on how can I do this? Where I should be

Re: [Wt-interest] Query for Aggregate data

2014-05-28 Thread Koen Deforche
Hey, Instead of a tuple you can also use for example your own class/struct, for which you specialize Wt::Dbo::query_result_traits. You need to specialize at least two methods. You will need to specialize a few more if you want to use the Query inside a QueryModel. struct Foo { int a;

Re: [Wt-interest] JSignal parameters in javascript

2014-05-02 Thread Koen Deforche
Hey Marco, 2014-05-02 10:01 GMT+02:00 Marco Gulino marco.gul...@gmail.com: Sorry, I just saw your answer. Maybe I wasn't clear, or I didn't correctly understood you. I know how to connect a signal to custom javascript code (either with the string version of the connect method of JSignal, or

Re: [Wt-interest] Unrelated to Wt question.

2014-04-30 Thread Koen Deforche
Hey Tor, You're probably looking for this: http://en.wikipedia.org/wiki/Captive_portal Regards, koen 2014-04-30 12:30 GMT+02:00 Tor Arne Fallingen fallin...@gmail.com: Hey. I have a question outside of Wt, but you are a lot of people with diverse experiences and Ive been trying to search

Re: [Wt-interest] Problem with Auth Facebook Service

2014-04-15 Thread Koen Deforche
Hey, This is probably thrown from within FacebookService.C lines 76-80. This should be wrapped in a try/catch clause, which treats an exception in the same way as other errors. Please file a bug (including possibly a patch) for this? Regards, koen 2014-04-14 18:16 GMT+02:00 Trumae Trumae

Re: [Wt-interest] IE9 tableview error

2014-04-14 Thread Koen Deforche
Hey Daniel, 2014-04-09 17:59 GMT+02:00 Daniel Horsey dan.hor...@broadruntech.com: Hi Koen: I've finally found an opportunity to troubleshoot this. The test case confirmed that there is noting inherently wrong with Tableview. The problem actually appears to be related to my test

Re: [Wt-interest] Logging

2014-04-14 Thread Koen Deforche
Hey Tor, There isn't really an example that sets up a custom WLogger, but the the reference documentation contains one: http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WLogger.html#details Regards, koen 2014-04-10 8:52 GMT+02:00 Tor Arne Fallingen fallin...@gmail.com: Hey all,

Re: [Wt-interest] WPdfImage error 102b

2014-04-08 Thread Koen Deforche
Hey Pau, I checked the Haru headers and that error is HPDF_INVALID_ENCODING_NAME. I have no idea why this is happening. The Haru version in use is 2.2.1. Haru 2.2.1 does nog support utf-8 encoding. This is why you het the error. We could perhaps make this robust so that it stille works (with

Re: [Wt-interest] Reload is new session

2014-04-08 Thread Koen Deforche
Hey torsten, Op 28 mrt. 2014 09:24 schreef Torsten Schulz tssch...@gmx.net: Hi, I had set the following in my /etc/wt/wt_config.xml: trackingAuto/tracking reload-is-new-sessionfalse/reload-is-new-session My only guess is that there is some thing wrong with your

Re: [Wt-interest] WPdfImage error 102b

2014-04-08 Thread Koen Deforche
Hey Pau, Indeed, I believe we simply neglected compatibility with old haru versions, in the more recent years. Regards, koen 2014-04-08 18:43 GMT+02:00 Pau Garcia i Quiles pgqui...@elpauer.org: On Tue, Apr 8, 2014 at 8:10 AM, Koen Deforche k...@emweb.be wrote: I checked the Haru headers

Re: [Wt-interest] Question on Bootstrap theme in wt 3.3.2-1 on combo box

2014-04-05 Thread Koen Deforche
Hey Jeff, This is indeed a big difference between bootstrap 2 and bootstrap 3. It's one of the reasons why you cannot simply switch from bootstrap 2 to bootstrap 3. At Emweb, we keep all existing projects to bootstrap 2, and use bootstrap 3 only for new projects. Regards, koen 2014-03-29

Re: [Wt-interest] Forms models... throughts and questions

2014-03-31 Thread Koen Deforche
Hey Jason, 2014-03-30 19:52 GMT+02:00 Jason H scorp...@yahoo.com: Hi. So I continue learning Wt and I'm onto the forms. I'm looking at the FormModel.cpp. Originally I was doing it the old, manual way. But I had several problems. One was it was just so hard to produce a normal looking form.

Re: [Wt-interest] Go Fullscreen mode

2014-03-31 Thread Koen Deforche
Hey, For security reasons, full screen request will only work in direct response to a button click, i.e. without a server round trip. So you need to attach the JavaScript code directly to a clicked() handler: button-clicked().connect(function() { ... }); See

Re: [Wt-interest] Invalidating filtering in WSortFilterProxyModel

2014-03-26 Thread Koen Deforche
Hey, 2014-03-26 10:14 GMT+01:00 Georg Rudoy 0xd34df...@gmail.com: Probably just making a private method that does layoutAboutToBeChanged()(); resetMappings(); layoutChanged()(); will do? Indeed and I've called it ... There are two methods: the invalidate() public slot and

Re: [Wt-interest] Simple statement error

2014-03-26 Thread Koen Deforche
Hey, Indeed, we do not map std::wstring, because also most backends do not support this (and with 16-bit on Win32 platforms, they're a crippled type). Instead, for unicode text, we recommend using WString directly as a database-type which uses UTF-8 to talk to the back-end. You will need to

Re: [Wt-interest] Simple statement error

2014-03-26 Thread Koen Deforche
Hey Jason, IMO, std::string for everything but interaction with Wt; and WString in your presentation layer. The approach we take is to settle on UTF-8 encoded std::string's inside an application. In the rare cases that you really need to do character processing, only then convert the UTF-8

Re: [Wt-interest] Dbo Session

2014-03-21 Thread Koen Deforche
Hey Tor, 2014-03-21 11:48 GMT+01:00 Tor Arne Fallingen fallin...@gmail.com: Hey again koen, Im using the blog example, looking at the code and how its structured, plus using your library descriptions to try and understand how I would adopt the connection pool to my application. Im a little

Re: [Wt-interest] Fwd: wt bug?

2014-03-21 Thread Koen Deforche
Hey Tor, 2014-03-21 11:54 GMT+01:00 Tor Arne Fallingen fallin...@gmail.com: Hey, A fellow student is doing the guy of our application and he has encountered a strange issue. Since he hasn't got an subscription to this mailing list yet, I asked him to mail me and Id forward the question:

Re: [Wt-interest] requestAnimationFrame equivalent?

2014-03-20 Thread Koen Deforche
Hey Rutger, Wt does not have any support for that, and indeed you should be using this function, so simply use it inside your own JavaScript. Regards, koen 2014-03-17 16:20 GMT+01:00 Rutger ter Borg rut...@terborg.net: Hey all, I'm getting up to speed in WebGL. It looks like updateGL is

Re: [Wt-interest] Displaying dynamic data

2014-03-11 Thread Koen Deforche
Hey torsten, Op 11 mrt. 2014 08:39 schreef Torsten Schulz tssch...@gmx.net: At this point I'll make a comment: I tested the simplechat and the broadcast examples, but it was only working right with the build in server. At the fcgi version, i couldn't use it. After a year of searching I did

Re: [Wt-interest] setHidden don't work with WAnimation

2014-03-11 Thread Koen Deforche
Hey Thorsten, 2014-03-11 9:20 GMT+01:00 Torsten Schulz tssch...@gmx.net: this-_infoBox-setHidden(true); It works! But the following don't work: this-_infoBox-setHidden(true, WAnimation(WAnimation::Fade)); Is there anything I hadn't read or is it a bug? That sounds like a bug. Can you

Re: [Wt-interest] wt-3.3.2 release

2014-03-10 Thread Koen Deforche
Hey Muhammed, 2014-03-08 15:29 GMT+01:00 Muhammad Bashir Al-Noimi mbno...@gmail.com: Howdy, I'd like to thank you a lot for great recent RC (specially for Table View fixing). When you plan to build a release for Wt 3.2.2? Since things are looking good, it'll be fort this week.

Re: [Wt-interest] Dbo: Query Master-Detail relation

2014-03-10 Thread Koen Deforche
Hey, 2014-03-10 10:25 GMT+01:00 Muhammad Nasser Al-Noimi mnno...@gmail.com: Hi, Suppose I have two tables related in one-to-many relation: User: (Master table) - id - name (string) - docs (collection) Doc: (Details) - id - name (string) - status (string) - user (pointer to User)

Re: [Wt-interest] Displaying dynamic data

2014-03-10 Thread Koen Deforche
Hey Tor, There are two examples that demonstrate such a thing: feature/serverpush feature/broadcast The second one is perhaps more fitting for your use-case. Regards, koen 2014-03-10 14:59 GMT+01:00 Tor Arne Fallingen fallin...@gmail.com: Hey again, Its monday and Ive been trying to

Re: [Wt-interest] Qt with WT

2014-03-07 Thread Koen Deforche
Hey Torsten, 2014-03-07 15:12 GMT+01:00 Torsten Schulz tssch...@gmx.net: You're right if it is only a QT Application. But it I'll use the WQApplication(env, true) the QApplication is the only one that's accepted. I did try now to give the QApplication the parameter, but it isn't working

  1   2   3   4   5   6   7   8   9   10   >