EDI Solutions

An error occurred while processing the template.
Error while invoking the "journal-article" JSP custom tag; see cause exception

----
FTL stack trace ("~" means nesting-related):
	- Failed at: @liferay_journal["journal-article"] a...  [in template "20101#20128#243713" at line 29, column 1]
----
1<#-- 
2Widget templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#assign tmpArticleId = "" /> 
10 
11 
12<#assign tmpArticleId  = paramUtil.getString(request, "selectedArticleId") /> 
13<#assign editmode  = paramUtil.getString(request, "p_l_mode") /> 
14 
15<#if tmpArticleId?has_content> 
16<#--     ArticleId found in request = "${tmpArticleId}" is_string = ${tmpArticleId?is_string?string("true", "false")}<br> 
17<#else> 
18    No article In request object<br>--> 
19</#if> 
20 
21<#-- <#if !tmpArticleId?has_content> 
22    <#assign tmpArticleId = defaultArticleId /> 
23    ArticleId set to default = ${tmpArticleId}<br> 
24</#if>--> 
25<#if tmpArticleId?has_content> 
26<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
27<#assign journalArticle = JournalArticleLocalService.getArticle(groupId, tmpArticleId) /> 
28 
29<@liferay_journal["journal-article"] 
30    articleId=journalArticle.getArticleId() 
31    ddmTemplateKey=journalArticle.getDDMTemplateKey() 
32    groupId=journalArticle.getGroupId() 
33/> 
34<script> 
35$(document).ready(function() { 
36    if ($(".navaccordion li").length > 0) { 
37        if (!$(".navaccordion li.current a").attr('href')) { 
38            let navUrl = $(".navaccordion li:first li a").attr('href'); 
39            window.location = navUrl; 
40        }  
41
42}); 
43</script> 
44<#else>  
45    <#if !editmode?has_content> 
46     <script> 
47         $(document).ready(function() 
48
49             if($(".navaccordion li").length > 0){ 
50                let navUrl = $(".navaccordion div.collapse ul li:first a").attr('href'); 
51                if(navUrl.indexOf("selectedArticleId") > 0) 
52
53
54                    var urlParams = new URLSearchParams(window.location.search); 
55                    if (urlParams.toString()) { 
56                        window.location = navUrl + '&' + urlParams; 
57                    } else { 
58                        window.location = navUrl; 
59
60
61
62
63        }); 
64     </script> 
65    </#if> 
66  
67</#if> 

Helpful Resources

EDI Front End Rejection Code Lookup Tool
Reset My EDI Password

Contact the EDI Help Desk

877-273-4334

Available by phone or email Monday–Friday*
8:00 a.m.–4:00 p.m. ET
8:00 a.m.–4:00 p.m. CT

* Closed for training on the 2nd and 4th Friday of the month.
12:00 p.m.–4:00 p.m. ET
11:00 a.m.–3:00 p.m. CT

Form(s) you'll need:

EDI Email Inquiry Form

Helpful Resources

EDI Front End Rejection Code Lookup Tool
Reset My EDI Password

Contact the EDI Help Desk

888-379-9132

Available by phone or email Monday–Friday*
8:00 a.m.–4:00 p.m. ET
8:00 a.m.–4:00 p.m. CT

* Closed for training on the 2nd and 4th Friday of the month.
12:00 p.m.–4:00 p.m. ET
11:00 a.m.–3:00 p.m. CT

Form(s) you'll need:

EDI Email Inquiry Form