Thursday, September 4, 2014

Ordering Categories By Sequence in Left Navigation

Without adding the logic below in CategoryFacetDisplay.jspf, OOB gets the categories by quantity product under each category by default to change that ordering to by sequence no in CATGRPREL. You need to add the following code to reorder the list. This would fix the left navigation.

This is a good example of ArrayList manipulation in JSP


<wcf:useBean var="sequenceBasedFacetFieldList" classname="java.util.ArrayList"/>
<wcbase:useBean id="currentCategoryDataBean" classname="com.ibm.commerce.catalog.beans.CategoryDataBean">
<c:set target="${currentCategoryDataBean}" property="categoryId" value="${WCParam.categoryId}" />
</wcbase:useBean>
<c:forEach var="catDB" items="${currentCategoryDataBean.subCategories }">
<c:forEach var="item1" items="${facetField.entry }">
<c:if test="${item1.value == catDB.categoryId }">
<wcf:set target="${sequenceBasedFacetFieldList}" value="${item1 }"/>
</c:if>
</c:forEach>
</c:forEach>
<wcf:useBean var="categoryFacetList" classname="java.util.ArrayList"/>


<c:forEach var="item" items="${sequenceBasedFacetFieldList}" varStatus="aStatus">

....................

31 comments:

  1. Nice information. I was searching for the same. It helped me alot and saved my time. Thanks alot SAP BPC ONLINE TRAINING

    ReplyDelete
  2. What a dazzling completed venture! I need to simply find a comfortable place to sit and unwind for some time. sap training in indore

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Hello everyone,
    I have gone through your posts and came to see that the posts made by you are informatica. As well as I am already a reader of your RSS feed. And I will be following you all the way of my research. Thanks for providing information.

    ReplyDelete
  5. Thanks for Sharing such a useful information....

    Learn INFORMATICA through Online for Details Please go through the Link...

    Online INFORMATICA Training | USA | UK | AUSTRALIA | CANADA | SINGAPORE | JAPAN

    ReplyDelete
  6. This is such a amazing blog you share with us, looking forward to more amazing blog
    Crazy Bulk Reviews

    ReplyDelete
  7. I have read your information its very useful topic for me. Thanks for providing information. Hyderabadsys providing online training services
    Informatica Online Training

    ReplyDelete
  8. Crazy Bulk - Crazy bulk is one of the ideal options to build quality and strongest muscles masses just in 2 to 3 weeks. This is the greatest product for muscle growth & Read Crazy Bulk Review first. Provides the good muscle size. The person who is looking for the right muscle gaining supplement they can choose this crazy bulk product to gain powerful muscles as well as the crazy bulk helps to increase your stamina.
    http://www.crazybulkstacks.com/

    ReplyDelete
  9. Crazy Bulk - Crazy bulk is one of the ideal options to build quality and strongest muscles masses just in 2 to 3 weeks. This is the greatest product for muscle growth & Read Crazy Bulk Review first. Provides the good muscle size. The person who is looking for the right muscle gaining supplement they can choose this crazy bulk product to gain powerful muscles as well as the crazy bulk helps to increase your stamina.
    http://www.crazybulkstacks.com/
    https://youtu.be/MY-X-0GTcNg

    ReplyDelete
  10. Thank you for this valuable information. I have got some important suggestions from it. Get your business to the next level in simple steps.
    ERP Software Solutions in Chennai.

    ReplyDelete
  11. Thank you for Sharing. I'm working in brave technologies private limited, We are the best erp software developers based in chennai. erp providers in chennai

    ReplyDelete
  12. You post explain everything in detail and it was very interesting to read. Thank you.
    Best institute chennai

    ReplyDelete
  13. Awesome blog., In JSP the example of ordering categories by sequence in left navigation was superb as well as explained clearly., Thank u for sharing. Software Testing Training in Chennai | Six Sigma Certification Training in Chennai | Selenium Training in Chennai

    ReplyDelete
  14. Helpful post.Really great and useful.Thanks for sharing and keep updating more blogs.
    Final Year Project Center in Chennai | Final Year Project Center in Velachery

    ReplyDelete
  15. Thanks you very much for sharing this great information. Please Keep updating us.
    Digital Marketing Training Indore

    ReplyDelete
  16. Very interesting blog which helps me to get the in depth knowledge about the technology, Thanks for sharing such a nice blog... Best CCNA Training Institute in Chennai | Best CCNP Training Institute in Chennai

    ReplyDelete
  17. Awesome Blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog.
    Summer Course for Computer Science in Medavkkam | Summer Course for Computer Science in Tambaram | Summer Courses for Computer Science in Velachery

    ReplyDelete
  18. Awesome post. Really you have shared very informative concept... Thank you for sharing. Keep on updating... Tata Sky | Tata Sky New Connection | Tata Sky DTH New Connection

    ReplyDelete
  19. Nice Post i learned a lot From the Post Thanks for sharing, learn the most ON-DEMAND software Traininig in Best Training Institutions
    Instructor-LED Salesforce Online Training
    Best Salesforce Online Training
    Salesforce Online Training in Bangalore

    ReplyDelete
  20. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
    Salesforce certification training

    ReplyDelete
  21. here is one of the best seo training course in indore offered by leading and trusted institute of india

    ReplyDelete
  22. Muy chulo el artículo, contiene información muy interesante, gracias por tu interés.

    ReplyDelete
  23. Me encanta todo lo que cuentas en el post, es muy interesante y me encantaría que explicaras más sobre el tema.

    ReplyDelete
  24. No es lo que buscaba en estos momentos, pero me he parado a leerlo y me ha interesado más de lo que me esperaba , muchísimas gracias.

    ReplyDelete