Tobias Erdle

Results 29 comments of Tobias Erdle

I learned to like them within the past months :D In case you have nested resources like `/books/{id}/authors` it helps a lot to structure the code like the resource. I...

I pass the CDI beans from the main controller down to the sub-resource locator. But tbh, I'll need to have a deeper look into the spec for details.

> BTW: How does CDI injection work for sub-resources? I tried this a few weeks ago in a plain Jakarta REST resource and you did something similar to this: ```...

> I just wonder if this pattern works for real-world use cases. Because typically you will have to pass some kind of context to the sub resource instance. Like the...

Hi, I wonder if we can just store the `BindingResult` in the model after the controller processing and in case there are errors. When I remember correct, this way is...

This would be a possibility too. But it would need an API change, whereas the simple "put the binding result into the model" can be implemented relatively fast without it....

> Yeah, I agree. Although AFAIK we could simply add getBindingResult() to MvcContextImpl (our implementation class of MvcContext) and it should work. However, I'm not sure if this is a...

> But I guess we should discuss this on the new spec mailing list after the migration to EF has completed. I think that is the best idea :)

Hi @mthmulders, I could imagine the `Accept: ..., application/xml` causes the trouble. Are you receiving XML even if you remove this accepted content type? It'd be weird, as you defined...

Thanks for testing this. I'll have a look into that. Unfortunately RESTEasy seems to work differently on OpenLiberty than in WildFly, so I have no clue what the problem could...