Hot answers tagged

9 votes
Accepted

How to render component presentation dynamically based keyword in DXA 1.5

The recommended way to achieve such dynamic, query-based page assembly in DXA is by creating a custom Controller. Unfortunately, DXA doesn't support custom Region Controllers yet, but you can create ...
Rick Pannekoek's user avatar
7 votes
Accepted

Is it mandatory to use the STUB schema, installed by DXA Media Manager Module?

No you don't have to use the Media Manager ECL Stub Schema provided as part of the DXA Media Manager Module, as long as you ensure that the Schema title is exactly the same (it's the default title for ...
Rick Pannekoek's user avatar
7 votes
Accepted

Clicking Back Button on browser returns JSON Model of page

This is browser specific Cache issue, Add "Vary: Accept" to the response header and try to replicate your issue. I had resolved similar issue with above setting.
Raj Kumar's user avatar
  • 5,867
6 votes
Accepted

How to map Model for a Schema, which has multiple value Component link field with multiple allowed Schemas?

You need to create multiple properties corresponding the allowed Schema. The Semantic Property for all allowed schemas should be same. It should look something like this. [SemanticProperty("...
Manish Mehmood's user avatar
6 votes
Accepted

Why do entities which have embedded objects need semantic markup?

I think the problem is in the field name; the implicit mapping assumes that when a List-type property name is plural (e.g. buttons), the associated field name in CM is singular (e.g. button). It ...
Rick Pannekoek's user avatar
6 votes
Accepted

DXA Java 1.5 on Web 8.1.1 | Localization not found error when browsing homepage

You are requesting http://10.9.5.175:8080 You have your BaseUrls set as http://localhost:8080 Add a Base URL of http://10.9.5.175:8080 You can add a BaseURL with the Powershell command (assuming ...
Chris Morgan's user avatar
  • 7,327
6 votes
Accepted

DXA Failing to Map Images

Thanks to Rick's comment above we looked into our code. Somehow we pulled the wrong version of DXA (we were working on 1.1) when we added a custom area. After updating our code base to 1.5 and then ...
Nicholas Wetmore's user avatar
6 votes

How to redirect to a static (present in file system) 404 error page in DXA 1.5 Java instead of error-404.html

In case of 404 exception DXA indeed resolves a page error-404 and shows it. Such a case is handled by @ExceptionHandler(NotFoundException.class) annotation in PageController. I don't see any way how ...
Alexey's user avatar
  • 646
5 votes
Accepted

Why does DXA 1.5 require the Context Service?

DXA supports server-side responsiveness (e.g. image resizing) and uses (by default) the SDL Context Engine to get device data needed for that purpose. On SDL Web 8, DXA uses the Context Service to ...
Rick Pannekoek's user avatar
5 votes

How to map Model for a Schema, which has multiple value Component link field with multiple allowed Schemas?

As Rick mentioned, you can implement support for multiple schemas in component link by creating your own abstract base class, from which your different model types will inherit. There are couple of ...
Stan Kroshchenko's user avatar
5 votes

How to map Model for a Schema, which has multiple value Component link field with multiple allowed Schemas?

You can create separate View Model types for each Schema (ensure you have a proper semantic mappings to the Schemas on type level). If you want a property to be able to refer to multiple View Model ...
Rick Pannekoek's user avatar
5 votes
Accepted

DXA 1.5 TBBs do not output Multimedia Component Field - External Url, recursively

DXA follows the behavior that SDL Web (or Tridion if you will) delivers, when using an External URL in a Multimedia Component, at Publish time, the content of the External URL is fetched and published ...
Bart Koopman's user avatar
  • 29.6k
5 votes
Accepted

How to remove the HTML content from a Page when Region is used in DXA 1.5 Java?

As Bart says, DXA in general is designed to generate HTML, but in your case particularly the use of the dxa:region tag causes issues. You could let the Page View output the content from the "Code ...
Rick Pannekoek's user avatar
5 votes
Accepted

Error in cd_client.log file for DXA 1.5 Application

The error is not specific to DXA; it occurs in the Ambient Data Framework. Looking at the Stack Trace, it seems that there is some claim with an unexpected type (HttpResponseStream ?!) which cannot ...
Rick Pannekoek's user avatar
5 votes

Context Service giving Interim Errors

Please check the following Please check the folder structure of context service installed with installation media (all files and folder) and see if there is anything is missing. Also check the ...
Hem Kant's user avatar
  • 2,208
5 votes
Accepted

after DXA upgrade from 1.5 to 1.8 for Sites 9.1, Application showing 500 internal server error

That seems like the template you are using to publish such page is not using the DD4T Template Building Blocks or the format it uses to generate the output is incorrect. Double check the TBBs within ...
Jaime Santos Alcón's user avatar
4 votes
Accepted

Abstract model property mapping throws exception

There is only one "problem" in your implementation, which the error message is pointing out: The type must be String or a subclass of EntityModel. In your case, you are using class EntityModel itself....
Rick Pannekoek's user avatar
4 votes
Accepted

TokenService: Token expired message after a couple of minutes

Apparently the VM's time was running slow, it was 5 minutes behind, so the token was already expired.
MrSnowflake's user avatar
4 votes
Accepted

Accesssing fields inside embedded Schema from JSP

You have to ensure that your embedded View Models (class Link in this case) are also registered. See http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v5/GUID-FEDC295C-1D87-485E-B904-...
Rick Pannekoek's user avatar
4 votes
Accepted

'content.svc/RequestStartActionImport' is not allowed

You are not authenticating with the correct user. The various users have different roles, which in turn authorizes them to access different endpoints (URLs). As you are authenticating as the '...
Peter Kjaer's user avatar
  • 19.8k
4 votes
Accepted

Changing the favicon not reflecting on the site

After changing DXA configuration, like the HTML Design or items of it, you will always need to refresh the cache of the application, so it will load the updated configuration (from which the favicon ...
Bart Koopman's user avatar
  • 29.6k
4 votes

migration from DXA 1.2 to DXA 1.5

On top of what Chris mentioned, you will find a list of API changes of all previous versions in the documentation of DXA 1.5 http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v5/GUID-7AAF6049-...
Bart Koopman's user avatar
  • 29.6k
4 votes

migration from DXA 1.2 to DXA 1.5

You can follow the release notes, which are included in the documentation for each version 1.3 http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v3/GUID-D3920FCA-F021-4CC6-8ECF-0E7B31C5AC90 1....
Chris Morgan's user avatar
  • 7,327
4 votes
Accepted

Using regions inside of included Pages

Region names are normally unqualified (e.g. just "Header" instead of "Toerisme:Header"). Furthermore, for include Pages, the (unqualified) Region Name and (qualified) Region View Name is derived from ...
Rick Pannekoek's user avatar
4 votes

How to route a request to a static html file in DXA Java 1.5

SDL DXA, out of the box, has a PageController with the following Request Mapping @RequestMapping(value = "/**", produces = {MediaType.TEXT_HTML_VALUE, MediaType.ALL_VALUE}) This is handling ALL ...
Chris Morgan's user avatar
  • 7,327
4 votes

Accessing pdf as a Component using url

A pdf is also a multimedia item except it doesn't render on any page like images. If you place url of any pdf on any link or anchor tag, on link click it will automatically download that pdf file. DXA ...
Mukesh Kumar's user avatar
  • 4,074
4 votes
Accepted

Accessing the EntityModel values in Page Template

The Page View has access to the Page Model, which contains the Region Models, which in turn contain the Entity Models. That means that a Page View has direct access to al the Entity Models on the ...
Rick Pannekoek's user avatar
4 votes

Assets published to File System not loading, gives 404

DXA expects multimedia files published in Database. You can see this instruction at SDL Docs Url http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v7/GUID-6D3337B6-FC47-479A-A38B-6AF3C53B9A51. ...
Mukesh Kumar's user avatar
  • 4,074
4 votes

How to set timeout value for Content service?

As per best of my knowledge, there is no configuration available in the DXA framework to configure timeout of any request. You may do it using standard http request time out setting(code may vary for ....
Mukesh Kumar's user avatar
  • 4,074
4 votes

How to remove the HTML content from a Page when Region is used in DXA 1.5 Java?

It is a known issue that when you are trying to use empty Region views, you will get an additional <html>, <head> and <body> tag generated, see https://github.com/sdl/dxa-web-...
Bart Koopman's user avatar
  • 29.6k

Only top scored, non community-wiki answers of a minimum length are eligible