Peter,

I've copied the files over to verify they still work with the current 
master.  It looks like I needed to send you a few more files, if you want 
to run the example
you need some extra files:

build.sh should go in the same directory as the previous py files from my 
earlier email (I'm assuming this would be  examples/RegexTextBoxDemo).
the enclosed html and css file should be placed in a directory called 
public  (ie, examples/RegexTextBoxDemo/public).

run build.sh, and goto the output directory and run the chrome command you 
used earlier.   Let me know if you continue to have issues.

On Tuesday, July 31, 2012 7:13:34 PM UTC-5, peter.bittner wrote:
>
> 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 .... 
>

-- 



#!/bin/sh
../../bin/pyjsbuild $@ RegexTextBoxDemo
.gwt-TextBox-ok {
 color:green;
}

.gwt-TextBox-error {
 color:red;
 background-color:yellow;
}

Reply via email to