Skip to content

Any way to add custom property map to binder target as target is Null in Spring 6.x #35176

Open
@Secret629

Description

@Secret629

Hi Team

It is general question, I asked in stackoverflow also but needed your input.
We are upgrading Spring 5.x to Spring 6.x. We have a use case where we have to populate some custom property during initbinder which used to work earlier but now not working anymore. Do we have a way to attach mutable properties in case binder target comes null ?
Something like this:
MutablePropertyValues map = new MutablePropertyValues(); // Any way to attach these in case target is null ?? map.addPropertyValue("Test", "123"); webDataBinder.bind(map);

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: feedback-providedFeedback has been providedstatus: waiting-for-triageAn issue we've not yet triaged or decided on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions