Billy, yes, working example, please!
I couldn't get this running with Chromium quickly, not exactly sure why. My steps: 1. Download the two files you sent 2. $ pyjsbuild RegexTextBoxDemo.py (... creates all files fine in ./output folder) 3. $ chromium-browser --allow-file-access-from-files output/RegexTextBoxDemo.html Doesn't show anything, and the error console (F12) shows that there is a security issue. Hmmm... Would be great to see this running out, i.e. w/o trouble shooting (sorry!), of the box (even) for novice users. ExaMples... I'm loving it! :-) Cheers, Peter 2012/7/29 Billy Earney <[email protected]>: > Hi, > > I've written a simple component that uses a regular expression to validate > input into a TextBox. Enclosed is the demo I created. If this seems to be > of help to you, let me know and maybe I'll create an example for the > website. > > Billy > > > On Sunday, July 29, 2012 1:39:53 AM UTC-5, Maho wrote: >> >> Hi, >> >> Do we have any kind of validators in pyjs? >> >> By validator - I mean such mechanism, which is attached to user input >> (text box, date field, select, option, etc...) which checks if input is >> valid (valid field, state, number...) and if not, attach eg. red bulb >> with label to input saying "your input is wrong, please fix" >> >> If I need it, I should: >> >> 1. use what we have (I didn't find, but I'm still learning new things >> about pyjamaS), >> 2. port from gwt and use (could someone give me hint where to search it?) >> 3. write my own .... --
