Skip to content

Instantly share code, notes, and snippets.

View AshfaqMemon's full-sized avatar

Ashfaq Memon AshfaqMemon

  • Streebo Solutions Pvt Ltd.
  • India
View GitHub Profile
@AshfaqMemon
AshfaqMemon / hcl-dam-picker.js
Created September 5, 2023 06:04
HCL DAM Picker Helper
/**
* @author Mohammad Ashfaq
* @data 16 Aug 2023
* @version 1.0
* Dependencies: jQuery, wpModules.dialog
* Utility to interact with HCL DAM Picker dialog
*
*/
(function( hcldamhelper, $ ) {
//Private Property
@AshfaqMemon
AshfaqMemon / web.xml
Created August 31, 2023 09:41
JSF 2.0 on HCL DX 9.5 and WebSphere Application Server 9.0.5.x
<!-- To allow composite components inside sub directories, as 2.2 has new way for composite components -->
<context-param>
<param-name>org.apache.myfaces.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME
</param-name><param-value>true</param-value>
</context-param>
<!-- Run in compatibility mode with 2.0.
This will enable JSF 2.0 features like inheritance of parent template parameters to child template and many more-->
<context-param>
<param-name>org.apache.myfaces.STRICT_JSF_2_FACELETS_COMPATIBILITY</param-name>
@AshfaqMemon
AshfaqMemon / metadata.jsp
Created August 31, 2023 09:40
Get metadata in WebSphere Portal's JSR286 portlet JSP
Metdata: ${wp.metadata[wp.selectionModel.selected]['my.metadata.key']}
@AshfaqMemon
AshfaqMemon / edit-mode-status.jsp
Last active August 29, 2023 09:14
Determine status of Edit Mode in WebSphere Portal theme
<%!--
In Any of the JSP file of the theme, place below code. You can modify according to your needs.
I had placed it in head.jsp
--%>
<c:set var="editModeQName" value="{http://www.ibm.com/xmlns/prod/websphere/portal/publicparams}editMode" />
<c:set var="isEditModeActive" value="${wp.publicRenderParam[editModeQName]}" />
<c:if test="${isEditModeActive}">
<p>Edit mode is turned on</p>
</c:if>