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
Support Record as Back Bean property #1820
Comments
Sounds good. Let's see what we can do to support this. My gut feeling says it's an Expression Language issue and not directly something Faces does. |
I am not sure if this is just an EL binding work. |
Oh well, we can investigate it here first and see what's needed. |
I think that must be implemented in BeanElResolver in el-specs |
It's indeed in EL. See also https://balusc.omnifaces.org/2020/11/using-java-14-records-in-jsf-via-eclipse.html |
It can not bind values from a HTML form. There is no copy method like the Kotlin data class, ideally when set a new value, create a new instance and copy values from the old instance. |
create a issue in EL specs |
Jakarta EE 11 will be Java 21+ and will include Jakarta Persistence 3.2 which has support for java records https://jakarta.ee/specifications/persistence/3.2/ ... Did someone forgot to align the specs with the "web" tier? |
thats up to EL |
Assume we have a backing bean like this.
And
TodoForm
here is arecord
.In the faceslets xhtml page, it should can be bound to a html form.
The text was updated successfully, but these errors were encountered: