We have a Java web app using DXA 1.7 and SDL Web 8.5 out of the box (using my own models and views), we are having trouble using contextual expressions from the tag library and the evaluated value of
Without the use of smart target, what else needs to be configured in order to use contextual expressions and detect mobile devices?
We have noticed that the
device.tablet variables are never being set to true (keep using default false value) in the ClaimStore when testing on respective devices. Other expressions such as device.displayWidth and height are being updated and rendered.
JSP markup used:
<div class="row "> <div><context:eval expression="'Hello ' + browser.version" /></div> </div>
<div class="row "> <div></div> </div>
Do our test devices need to be added to a database for this to work? If so, is there any updated documentation after this: https://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v7/GUID-2AA5A172-654C-433C-B306-FF36B9E1A820
Failed ReferenceThe application was unable to locate content which was referenced here. This content may be important. You should contact your system administrator as soon as possible to resolve this issue.
Our intent is to render mobile specific content with the logic embedded within a JSP. Thanks.