Skip to content

RepresentationModelProcessor can't be applied to PagedModel #1525

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

Open
paco-ns opened this issue Apr 22, 2021 · 3 comments
Open

RepresentationModelProcessor can't be applied to PagedModel #1525

paco-ns opened this issue Apr 22, 2021 · 3 comments

Comments

@paco-ns
Copy link

paco-ns commented Apr 22, 2021

I'm trying to apply RepresentationModelProcessor to a PagedModel. For example I need to add link 'create' in the PagedModel. I need to be able to define RepresentationModelProcessor for a specific PagedModel, even it is empty.

@odrotbohm
Copy link
Member

Can please provide some sample code for what you're trying to do, ideally via a minimally reproducing example with a failing test case.

@Ickbinet
Copy link

When the are no models in the collection only the paging links are rendered because the process method of the processor is never called.
So it seems that a RepresentationModelProcessor is not the correct approach to add "create" links.

@fdutton
Copy link

fdutton commented Jan 18, 2022

Duplcates #1590, corrected in the following commit and release in 1.4.0.
a1d2752

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