Hot answers tagged

5

With Web 8.5 the Content Delivery framework is via microservices. So it really doesn’t matter what versions of Spring or Hibernate the app is using, unless you’re trying to use the legacy “in-process” configuration approach. If you upgrade to using microservices, then the Spring and Hibernate dependency is on the service itself, which is separate from your ...


5

I am assuming you have understanding of basic flow of DD4T based content model where Component Template is directly connected with component view and Page Template is directly connected with Page view in your MVC based application. DXA 1.2 come up with a ready-made website solution in Java. If you setup the DXA website code and debug the whole application ...


4

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-CAC4-4DA5-8128-3EDD4F0C9C50 Please also note that DXA 1.2 was the first Java version, so you will find quite a lot of changes in the project layout and source ...


4

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.4 http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v4/GUID-D3920FCA-F021-4CC6-8ECF-0E7B31C5AC90 1.5 http://docs.sdl.com/LiveContent/content/en-US/SDL%...


4

The problem, as it turns out, is a missing instruction in the SDL documentation. I had recently upgraded from SDL Web 8.1.0 to 8.1.1 (aka the Cumulative Update 1). I followed the instructions on how to modify my REST-driven Java web application (http://docs.sdl.com/LiveContent/content/en-US/SDL%20Web-v1/GUID-D7B6BC6E-0965-4A16-AF1C-F59DABD78775). But I never ...


4

There is a file "urlmapping.xml" in WEB-INF. In the file, there is following code. <bean id="dd4t" class="org.dd4t.springmvc.controller.DynamicPageController" parent="parent_controller"> <property name="publication" value="25" /> <property name="subcontext" value="/dd4t" /> </bean> The ...


4

On the Tridion Templating side DD4T 2.0 Java uses the same TBBs as for .Net, so you can use the exact same installer. The reason this is not documented in the dd4t-2-java project is mainly because version 2.0 of the templating project came out after dd4t 2.0 for java. This will be corrected when DD4T-Java 2.0 GA will be released. Update: with the release ...


4

By returning a view name you tell Spring MVC to find this view in web resources and then to invoke the code in that view. If your view contains jsp:useBean tag, it obviously look for a PageModel bean in the requested scope. I don't see where you set the requested bean in your controller. Default DXA controllers do it. Then the main question if whether you ...


3

After doing a lot of trial and error, I was finally able to cache my object. Here are my findings for anyone trying to implement caching in DXA. These are not specific to DXA but common for Springs+EHCache. @EnableCaching annotation on your context configuration class, provide appropriate cache manager beans, separate service bean into interface and ...


3

Got it working. Basically, It seems that forms in DXA need to be tied to csrf-token. So inside your form include this tag <dxa:csrf-token/> to something like <form method="POST" action="/example/userdetails" > <dxa:csrf-token/> <table> <tr> <td><label path="firstName"&...


3

I can give you a view from the .NET DXA - I guess its similar for Java. Do you want to create a hyperlink to the linked content? If so its rather simple, you simply have a property of type String or Link in your model, and the DXA will populate the model with a resolved link URL to the linked content. Alternatively you may be looking to embed the linked ...


2

I had the opportunity to talk to Huston in person and that gaves another angel on the problem. I cannot answer the component link question, but we can solve the left hand side / right hand side content without using component links. Like Will suggested in his comment. After careful inspection of the HTML design it turned out that the left hand links and ...


2

You probably can use Spring's JMS listener combined with OSB. Configuration looks this this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="cacheMessageListener" class="org.dd4t.core.caching.jms.impl....


2

It seems you use dd4t 2. In the dispatcher-servlet.xml file you need to add your controller: <!-- Configure me: change this to the base-package where your overridden controllers are --> <context:component-scan base-package="org.dd4t.test.web.controller,my.base.package" annotation-config="true"/> For my.base.package use the base ...


1

In a DXA 1.7 Web App, EHCache is used by both DD4T and CIL. The log messages reveal that the issue is in a section of the CIL cache which caches Discovery Service Capabilities. Your theory that the issue is induced by unavailability of the Context Service seems plausible. If this is reproducible, it should be reported with SDL Customer Support as a ...


1

Found a workaround but not the correct answer So I was using this code to display page @RequestMapping(value = "/{locale}/pegasus", method = RequestMethod.GET) public String pegasus(ModelMap model) { RestTemplate rest = new RestTemplate(); String response=rest.getForEntity("http://url.co.uk/pegasus/", String.class).getBody(); model....


1

Configuration mentioned by Raimond above works and the spring webapp is now able to make connection to the JMS topic defined in OSB. Just couple of minor corrections thats why pasting the conf again here: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> ...


1

Even if everything is configured fine, you may get a warning that the preview is not up-to-date if your Page or any of the Components on the Page is checked out with a permanent lock. If this is the case, you will see that if you make a change on the Page (in XPM) and then click the Update Preview button, your change remains visible (meaning that XPM ...


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