onclick="window.open('/pages/PDocPreview.jsf?nid=#{pBeanDetail.id}&loadfirst=1&edit=true&fromPage=true¤tName=#{pBeanDetail.dName}&pId=#{pBeanDetail.user.id}', 'popupWindowName', 'dependent=yes, menubar=no, scrollbars=yes, resizable=1,toolbar=no,left =5, top=5, width=1100, height=800');"
Here, In currentName=#{pBeanDetail.dName}
part I am facing issue when value contains '
.
I have checked many possibilities but received error while page open.
- with use of inner output text
- With JSTL fn tag lib
- combination of 1 & 2
Code Examples:(Not Working)
currentName=<h:outputText value="#{fn:replace(pBeanDetail.dName,'\'', '\\'')}"></h:outputText>
currentName=#{fn:replace(pBeanDetail.dName,'\'', '\\'')}
*This question is different from similar question as I need to use EL expression with fn
functionality in Javascript event