Question

ForEach jsp tag is messed up when switching saving a Paragraph rule - forEach end tag is followed by forEach start tag

I have a paragraph rule which has forEach jsp tag defined with page list. Every time i switch the "Source" button, it gives me an error with forEach tag. When i save the rule, the forEach end tag is moved after forEach tag.

Actual Code:

<pega:foreach name=".BusinessChannelforCurrencyList">

<pega:withembedded name="$this">

Some code to display data

</pega:withembedded></pega:foreach>

After save:

<pega:foreach name=".BusinessChannelforCurrencyList">

<pega:withembedded name="$this">

</pega:withembedded></pega:foreach>

Some code to display data

Due to this issue, it is taking lot of time to edit a paragraph rule which has forEach tags in it.

any workaround to this issue?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
March 15, 2018 - 9:02am

This usually happens if you have dangling or self closing tags in between. Also there is a source only mode where you get to enter your jsp in a TextArea instead of the RTE. Which version of Pega are you on?

March 15, 2018 - 1:53pm
Response to chavs2

Hi,

We are using Pega7.1.8 and am referring Paragraph rule where we have RTE. if we just use plain html then there is no issue. If we use forEach tags then the above mentioned issue is coming. Also if we switch between Source view to normal, Pega is adding "<p>&nbsp;</p>" in the code. This is basic feature in Paragraph rule and we are spending so much time on this due these issues. It should be very smooth between normal view and Source view.