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

Field populator needs access to object for ExtraField #184

Open
carterpage opened this issue Oct 1, 2012 · 0 comments
Open

Field populator needs access to object for ExtraField #184

carterpage opened this issue Oct 1, 2012 · 0 comments
Assignees

Comments

@carterpage
Copy link
Member

@ExtraField will typically need to access data from the object being populated.

For example

@ExtraField("recommendedAlbums")
public List<Album> getRecommendedAlbums()
{
    return someService.getRecommendedAbumsFor(USER_ID);
}

or

@ExtraField("total")
public int getTotal()
{
    return ONE_PART + ANOTHER_PART;
}

I don't see how to get these fields from within the populator.

@ghost ghost assigned cepage Jul 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants