Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Server-Client Errors: #8627

Open
andrewnordlund opened this issue Apr 11, 2019 · 6 comments
Open

Merge Server-Client Errors: #8627

andrewnordlund opened this issue Apr 11, 2019 · 6 comments

Comments

@andrewnordlund
Copy link
Member

On https://wet-boew.github.io/wet-boew/demos/formvalid/formvalid-server-en.html there are .NET examples of server-side validation with WET.

Are there any Java examples?

@ghost
Copy link

ghost commented Apr 11, 2019

I was able to get it work. It was ages ago, but see #8275 (comment).

@duboisp
Copy link
Member

duboisp commented Apr 11, 2019

@andrewnordlund not that I am aware but you should be able to do your own java implementation by following the .net server component example here: https://github.com/wet-boew/asp.net-formvalid-serverside

@andrewnordlund
Copy link
Member Author

The problem here is that .NET is a wildly different beast than well.......just about every other back-end language/framework out there.

https://wet-boew.github.io/v4.0-ci/docs/ref/formvalid/formvalid-en.html, for example, says for .NET, put this in your code:
<asp:CustomValidator ID="TypeOfPrestationCv" ErrorMessage = "Your server error message" ControlToValidate="TypeOfPrestation" OnServerValidate="TypeOfPrestationCvServer" Display="Dynamic" EnableClientScript="false" Cssclass="label label-danger wb-server-error" runat="server"></asp:CustomValidator>

That doesn't tell me how to implement that in any other language/framework.

I have clients not using WET validation in Java because of of things like this. So they end up writing their own validation and bypassing WET validation entirely, which often introduces accessibility issues. I ask them to use WET validation. They ask how to do it in Java. And I don't know what to tell them.

@mingjiongliao
Copy link

The problem here is that .NET is a wildly different beast than well.......just about every other back-end language/framework out there.

https://wet-boew.github.io/v4.0-ci/docs/ref/formvalid/formvalid-en.html, for example, says for .NET, put this in your code:
<asp:CustomValidator ID="TypeOfPrestationCv" ErrorMessage = "Your server error message" ControlToValidate="TypeOfPrestation" OnServerValidate="TypeOfPrestationCvServer" Display="Dynamic" EnableClientScript="false" Cssclass="label label-danger wb-server-error" runat="server"></asp:CustomValidator>

That doesn't tell me how to implement that in any other language/framework.

I have clients not using WET validation in Java because of of things like this. So they end up writing their own validation and bypassing WET validation entirely, which often introduces accessibility issues. I ask them to use WET validation. They ask how to do it in Java. And I don't know what to tell them.

We have same problems in CRA, where most of the applications running in struts(JAVA framework).

@RobJohnston
Copy link
Contributor

And .NET WebForms (that has the working example) is wildly different from .NET Core (now .NET 5), and the same question has come up in #8581.

@ghost
Copy link

ghost commented Dec 29, 2020

@mingjiongliao JAVA the simple solution works no problem.

See my earlier comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants