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
 
 
 
 
  • Does not display custom components
    2014/03/04 06:23

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

  • Number of messages  18
    Registration date Jan 21, 2014
    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 

  • Re: Re: Does not display custom components
    2014/03/04 06:23

    bhadreshshiroya <blockquote> <p> what are the exact name&#39;s of your directory structures and jsp filenames?</p> <p> &nbsp;</p> </blockquote> <p> i hope u understood &nbsp;</p> <p> E:\jahia\wdxjahia\TestComponents\src\main\webapp\wdxjwnt_newsItem\html\wdxjwnt_newsItem.jsp</p> <p> E:\jahia\wdxjahia\TestComponents\src\main\webapp\META-INF\definitions.cnd</p> <p> &nbsp;</p> <p> generate .war file&nbsp;</p> <p> add &nbsp;<span style="color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 1.2em; font-style: italic; line-height: 20px;">components our template file &#39;</span></p> <p> at that time got errror&nbsp;</p>

  • Number of messages  18
    Registration date Jan 21, 2014
    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

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

    bhadreshshiroya <p> Thanx u &nbsp;<span style="color: rgb(51, 51, 51); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 1.2em; font-style: italic; line-height: 20px;">components&nbsp;</span><span style="font-style: italic; line-height: 20px;">Work</span></p>

  • Number of messages  18
    Registration date Jan 22, 2014
    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