Skip to Content
author's profile photo Former Member
Former Member

Creating a New CMS Action

Hello Hybris experts, I made a new cms action following the wiki page(https://help.hybris.com/6.0.0/hcd/8aca1eb2866910149701ec3a51e79e17.html) But, I can not see the component (add to wishlist button) with following error.


org.apache.catalina.core.ApplicationDispatcher invoke 驥榊、ァ: 繧オ繝シ繝悶Ξ繝・ヨ DispatcherServlet 縺ョServlet.service()縺御セ句、悶r謚輔£縺セ縺励◆ javax.servlet.ServletException: JSP 繝輔ぃ繧、繝ォ "/WEB-INF/views/desktop/cms/wishlistaction.jsp" 縺瑚ヲ九▽縺九j縺セ縺帙s at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:417) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:384) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

WARN [hybrisHTTP28] [DefaultCMSComponentRendererRegistry] Error processing component tag. currentComponent [WishlistActionModel (8796191392828)] exception: JSP 繝輔ぃ繧、繝ォ "/WEB-INF/views/desktop/cms/wishlistaction.jsp" 縺瑚ヲ九▽縺九j縺セ縺帙s WARN [hybrisHTTP28] [CMSActionRestrictionEvaluator] parentComponent attribute was not passed in the cms:component tag restriction evaluation skipped for CMSActionRestriction


I have already made jsp file, and put it in /mystorefront/web/webroot/WEB-INF/views/desktop/cms/

Can somebody please help on this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 09, 2016 at 11:33 AM

    Please import the following ImpEx as it is and then import it again after replacing the text, 'Staged' with 'Online' in the ImpEx. Finally, go to product details page and please let me know if you are still not able to see the button

     $contentCatalog=electronicsContentCatalog
     $contentCatalogName=Electronics Content Catalog
     $contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]
     
     # this relation is used by CMSActionRestriction, by adding ActionRestriction to your action
     INSERT_UPDATE ApplicableCmsActionsTypeForCmsComponent;target(code)[unique=true];source(code)[unique=true];
     ;ProductAddToCartComponent;AddToWishlistAction;
       
     # CMS Action Restrictions
     INSERT_UPDATE CMSActionRestriction;$contentCV[unique=true];uid[unique=true];name;
     ;;ActionRestriction;A CMSAction restriction;
       
     # CMS ProductAddToCart Components
     INSERT_UPDATE ProductAddToCartComponent;$contentCV[unique=true];uid[unique=true];name;actions(&actionRef);&componentRef
     ;;AddToCart;Product Add To Cart;PickUpInStoreAction,AddToCartAction,ShareOnSocialNetworkAction,AddToWishlistAction;AddToCart
     # Wishlist Action,
     INSERT_UPDATE AddToWishlistAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
     ;;AddToWishlistAction;/wishlistaction/act;Wishlist Action;ActionRestriction;AddToWishlistAction
     INSERT_UPDATE AddToCartAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
     ;;AddToCartAction;/cart/add;Product Add To Cction;ActionRestriction;AddToCartAction
     # CMS PickUpInStoreAction Action
     INSERT_UPDATE PickUpInStoreAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
     ;;PickUpInStoreAction;/store-pickup/{productCode}/pointOfServices;Pickup in Store Action;ActionRestriction;PickUpInStoreAction
     # CMS ShareOnSocialNetwork Action
     INSERT_UPDATE ShareOnSocialNetworkAction;$contentCV[unique=true];uid[unique=true];url;name;restrictions(uid,$contentCV);&actionRef
     ;;ShareOnSocialNetworkAction;/;Share On Social Network Action;ActionRestriction;ShareOnSocialNetworkAction
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.