Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread Alex Harui
On 9/20/16, 11:43 AM, "OK" wrote: >Thanks Peter and Alex, I'll try to implement it. It's probably a good >exercise. >I'll start with studying the existing code... we'll see... don't expect >too >much ;-) Hi Olaf, Thanks for volunteering. I don't remember how familiar

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread OK
Thanks Peter and Alex, I'll try to implement it. It's probably a good exercise. I'll start with studying the existing code... we'll see... don't expect too much ;-) Thanks, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexJS-TextInput-Form-validation

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread Peter Ent
If you use beads, the JS code in the bead would add "require", for example, to the element, but the SWF code might be empty since there is nothing on the SWF side to support a required input field. One day you or someone might fill in that SWF code block. If you use beads, the developer would

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread OK
ion works and also have to add the properties to the TextInput component to make sure that the JS version works? Thanks, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexJS-TextInput-Form-validation-tp13577p13592.html Sent from the Apache Flex Users mailing lis

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread Alex Harui
Yes, beads would be a good thing, but IMO, it is only necessary for the COMPILE::SWF code, since it is the SWF code that doesn't have built-in functionality to rely on. Because we have a regular org.apache.flex.html.TextInput that can serve as the baseline for folks who don't need these form

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread Peter Ent
Hi, If you want to make this modification you should do it in the HTML5 project. Keep in mind that "required" and "pattern" should be implemented for SWF as well or at least do something suitable. I would suggest using beads: The beads would then have their JS code all

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread OK
>Want to make it happen? I could give it a first try tonight. Any help how to achieve this is appreciated ;-) Thanks, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexJS-TextInput-Form-validation-tp13577p13585.html Sent from the Apache Flex Us

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread Alex Harui
On 9/20/16, 12:00 AM, "OK" wrote: >Alex Harui wrote >> What APIs are you referring to? > >My understanding is that FlexJS converts "org.apache.flex.html5.TextInput" >to "". >The html5 "" element provides an "required" and "pattern" attribute >[1][2]. >So the question is

Re: [FlexJS] TextInput/Form validation

2016-09-20 Thread OK
makes sense (and if it would be possible) to make all these html5 "build in" attributes available as properties in "org.apache.flex.html5.TextInput". Thanks, Olaf [1] [2] https://codepen.io/ok-at-codepen/pen/pEEmKj -- View this message in context: http://apache-flex-users.246.n4

Re: [FlexJS] TextInput/Form validation

2016-09-19 Thread Alex Harui
On 9/19/16, 11:41 AM, "OK" wrote: >Thanks Peter, found the PasswordInputBead. >I wonder if there's any way do tell FlexJS to just use the html5 build in >validation features? What APIs are you referring to? At least for now, the components in the HTML.swc should not

Re: [FlexJS] TextInput/Form validation

2016-09-19 Thread Peter Ent
That I don't know. If it is something possible with JavaScript, then you could code that within COMPILE::JS { } block. ‹peter On 9/19/16, 2:41 PM, "OK" wrote: >Thanks Peter, found the PasswordInputBead. >I wonder if there's any way do tell FlexJS to just use the html5

Re: [FlexJS] TextInput/Form validation

2016-09-19 Thread OK
Thanks Peter, found the PasswordInputBead. I wonder if there's any way do tell FlexJS to just use the html5 build in validation features? Thanks, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexJS-TextInput-Form-validation-tp13577p13579.html Sent from

Re: [FlexJS] TextInput/Form validation

2016-09-19 Thread Peter Ent
as required using FlexJS? Thanks, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexJS-TextInput-Form-validation-tp13577.html Sent from the Apache Flex Users mailing list archive at Nabble.com<http://Nabble.com>.

[FlexJS] TextInput/Form validation

2016-09-19 Thread OK
Hi, is there already any chance to validate input fields and mark it as required using FlexJS? Thanks, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexJS-TextInput-Form-validation-tp13577.html Sent from the Apache Flex Users mailing list archive