Jahia Dev Forum > Does not display...

2 (2 Good)
0 (0 Bad)

Does not display custom components

by  bhadreshshiroya »  2014/01/21 08:59

i have  to created  .cnd file 

 

<jnt = 'http://www.jahia.org/jahia/nt/1.0'>
<jmix = 'http://www.jahia.org/jahia/mix/1.0'>
 
 
[jnt:newsItem] > jnt:content,jmix:droppableContent
- title (string)
- body (string)
- date (date)
- image (string)
- breakingNews (boolean)
 
And also same  structure directory jsp file and put the content
 
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.jahia.org/tags/templateLib" prefix="template"%>
<%@ taglib prefix="jcr" uri="http://www.jahia.org/tags/jcr"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<jcr:nodeProperty node="${currentNode}" name="image" var="varName"/>
${varName.format}
 
 
<c:set var="textProp" value="${currentNode.properties.image}" />
<c:if test="${not empty textProp}">
<div>${textProp.string}</div>
</c:if>
 
 
</body>
</html>
 
 
when i have to add components  and put the value image string 
show the preview 
does not apper in jsp view file
“No render set for node of type
 
 
 
 

  (bhadreshshiroya)

Number of messages  18
Registration date
0 (0 Good)
0 (0 Bad)

Re: Does not display custom components

by  rvt »  2014/01/21 12:46

what are the exact name's of your directory structures and jsp filenames?

 

  • Re: Does not display custom components
    2014/01/21 12:46

    rvt <p> what are the exact name&#39;s of your directory structures and jsp filenames?</p> <p> &nbsp;</p>

  • Number of messages  185
    Registration date Jan 21, 2014
    1 (1 Good)
    0 (0 Bad)

    Re: Re: Does not display custom components

    by  bhadreshshiroya »  2014/01/21 12:56

    what are the exact name's of your directory structures and jsp filenames?

     

    i hope u understood  

    E:\jahia\wdxjahia\TestComponents\src\main\webapp\wdxjwnt_newsItem\html\wdxjwnt_newsItem.jsp

    E:\jahia\wdxjahia\TestComponents\src\main\webapp\META-INF\definitions.cnd

     

    generate .war file 

    add  components our template file '

    at that time got errror 

      (bhadreshshiroya)

    Number of messages  18
    Registration date
    1 (1 Good)
    0 (0 Bad)

    Re: Re: Re: Does not display custom components

    by  rvt »  2014/01/21 13:39

    Try changing it to this structure:

    E:\jahia\wdxjahia\TestComponents\src\main\webapp\jnt_newsItem\html\newsItem.jsp

  • Re: Re: Re: Does not display custom components
    2014/01/22 12:13

    rvt <p> Try changing it to this structure:</p> <p> <span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">E:\jahia\wdxjahia\TestComponents\src\main\webapp\jnt_newsItem\html\newsItem.jsp</span></p>

  • Number of messages  185
    Registration date Jan 21, 2014
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: Does not display custom components

    by  bhadreshshiroya »  2014/01/22 12:15

    Thanx u  components Work

      (bhadreshshiroya)

    Number of messages  18
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page