-
Notifications
You must be signed in to change notification settings - Fork 36
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
DynamicList returns list of entities with null values #91
Comments
Hi, Many thanks |
Hi Paul,
Sorry for the delay.
I have attached a document with screenshots of the schema, models and
controller we are using.
Let me know if you need anything else.
…--
Thanks and regards,
Sudha Mathew
On 4/6/2018 11:13 AM, Paul Adams wrote:
Hi,
I'm looking into this issue and was wondering if you could give me a
few more details regarding your actual code, schema & models. If
possible could you supply the schemas/models you are using and the
code you are using. Such as your DynamicList<,> implementation,
browser query and usage of these. I'm trying to set up an environment
to reproduce these issues so this would save a lot of time if you
could supply this.
Many thanks
Paul.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARZcyB9kDKQJRlgyOqU4XX8ZF3SMdIflks5tlyOsgaJpZM4TIQSK>.
|
Hi Sudha, |
HTML page source contains both a blank href and a href with the publi…
…I-3061 to develop * commit '6bf0ece6e3167ab1e97f3d1343a4ff54861ad678': Revert "TSI-3966 replace & when encoding (TSI-3061, CRQ-8774)"
Hi,
Did you receive my email. Do you think it is getting blocked somehow.
…--
Thanks and regards,
Sudha Mathew
On 4/10/2018 9:05 AM, Sudha wrote:
Hi Paul,
Sorry for the delay.
I have attached a document with screenshots of the schema, models and
controller we are using.
Let me know if you need anything else.
--
Thanks and regards,
Sudha Mathew
On 4/6/2018 11:13 AM, Paul Adams wrote:
>
> Hi,
> I'm looking into this issue and was wondering if you could give me a
> few more details regarding your actual code, schema & models. If
> possible could you supply the schemas/models you are using and the
> code you are using. Such as your DynamicList<,> implementation,
> browser query and usage of these. I'm trying to set up an environment
> to reproduce these issues so this would save a lot of time if you
> could supply this.
>
> Many thanks
> Paul.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#91 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ARZcyB9kDKQJRlgyOqU4XX8ZF3SMdIflks5tlyOsgaJpZM4TIQSK>.
>
|
Originally, I had extended
DynamicList<FAQs, SimpleBrokerQuery>
from my custom model FAQsContentList where I want to execute a SimpleBrokerQuery on a few filterKeywords. In the logs I can see that I get query results but when it goes through the default Model Builder, the entity returns n results with null values. Originally I get a list of entity objects but with null valuesc.s.d.t.m.impl.DefaultModelBuilder - Expected class is pre-set to class com.sdl.dxa.modules.faqs.model.FAQs for model EntityModelData(id=4979, componentTemplate=null, linkUrl=null, content=null, binaryContent=null, externalContent=null)
Now, I get the another error (shown below) when I played around with the template, but the bottom issue is that I am not getting any field values. FAQs schema comes under module FAQs and my DynamicList is under another module ContentList.
The exception is
.api.mapping.semantic.SemanticMappingException: Ambiguous semantic mapping for http://www.sdl.com/web/schemas/core:FAQs, found these mappings: [class com.sdl.dxa.modules.faqs.model.FAQs, class com.sdl.dxa.modules.faqs.model.FAQs]
but there are no core schemas called FAQsTo resolve the SemanticMappingException caused by Ambiguous semantic mapping, I then created a customTeaser which is mapped to my schema FAQs
@SemanticEntity(entityName = "FAQs", vocabulary = SDL_CORE, prefix = "f")
. In my custom ContentListController.enrichModel function, when it calls
contentProvider.populateDynamicList(dynamicList, webRequestContext.getLocalization());
, I can see from the logs that it calls my custom DynamicList and the DefaultModelBuilder that is called after this prints the following logs.The text was updated successfully, but these errors were encountered: