my settings are:
Textbox:InputType = EMail
Textbox:InvalidMessage = “mail format is invalid”
(Textbox:CausesValidation = true)
But nothing happens when I type e.g. “xyz” in the textbox-control … is it a bug or is there no email-validation-implementation in wisej/web forms?
There is no postback with Wisej. The architecture is a Single Page Application (SPA), so there is no form tag and to action and no postback, as instead it’s the case with traditional HTML based, pages that post back the content of the form to the server and reload the page or navigate to a new page.
Some SPA systems are simply workarounds the traditional HTML page approach and still emulate the post. Wisej doesn’t use the <form> tag and doesn’t post anything. It’s all based on real time ajax keeping the client and the server in sync.
Additionally, the InputType property is purely an HTML attribute and it’s not something we implemented. It’s not supported equally by the browsers and its main purpose was not to validate an email field, but it’s to allow the browser to accept input (which is always a string) in different ways. A mobile device may show a date wheel, some browsers support the color picker, etc.
actually it doesn’t help me simplifying frontend development 😉 … but it’s okay, in the meantime I found annother solution for me.
It’s a little bit confusing for me that there are (GUI designer) properties in Wisej’s controls that are not supported in the postback.
Does a manual exist that describes which properties are supported or not in the postback of Wisej?
Furthermore is there a Manual that describes the architecture of Wisej in detail (more in detail than in the “Docs” section)?
InputType is an HTML5 setting that is entirely managed by the browser.
The validation (if supported by the browser) only shows when the input is part of an HTML form and form is posted using the traditional submit.
Find more information here:
Wisej does not submit fields in postback, so the handling of InputType is out of Wisej´s control.
Hope that helps.
Please login first to submit.