<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need to Access the Custom model feild in JSP file. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/need-to-access-the-custom-model-feild-in-jsp-file/m-p/191328#M144458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created content model, named custom-contentmodel.xml, its working fine, i can able to access the property in view details page, and also able to edit the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my requirement is the access the same feild in JSP file which i created newly. i have to access the custom content model feild data in that page (like ${person.properties.userName}). and put that data into vo object and store it to the different DB by using some Jdbc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i need to access the custom content model data in JSP page. can one help me out in this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;help would be highly appriciated.thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Lenin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2008 07:05:08 GMT</pubDate>
    <dc:creator>lmanoh</dc:creator>
    <dc:date>2008-12-18T07:05:08Z</dc:date>
    <item>
      <title>Need to Access the Custom model feild in JSP file.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-access-the-custom-model-feild-in-jsp-file/m-p/191328#M144458</link>
      <description>Hi,I have created content model, named custom-contentmodel.xml, its working fine, i can able to access the property in view details page, and also able to edit the data.Now my requirement is the access the same feild in JSP file which i created newly. i have to access the custom content model feild</description>
      <pubDate>Thu, 18 Dec 2008 07:05:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-access-the-custom-model-feild-in-jsp-file/m-p/191328#M144458</guid>
      <dc:creator>lmanoh</dc:creator>
      <dc:date>2008-12-18T07:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Access the Custom model feild in JSP file.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-access-the-custom-model-feild-in-jsp-file/m-p/191329#M144459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;r&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ropertySheetGrid&lt;/STRONG&gt;&lt;SPAN&gt; is your friend. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within this tag, you can define a property as well, which should only be displayed to the user. But if you leave them emty, all nodeproperties will be displayed(which been configured).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, if you have a node, you might want to store regarding properties in a more JDBC-way (as you descriped in you post), you´ll have to read firstly the node from the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an example, you can create a ManagedBean with following procedure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;NodeRef ref = nodeService.getChildByName(…, …, …)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, its time to make this node readable by the propertySheetGridTag creating a new "PseudoNode":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Node propertiesNode = TransientNode.createNew(dictService, type of node, name of node, nodeService.getProperties(ref))&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you can store via value-binding this node upon the propertySheetGridTag within the jsp-file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ropertySheetGrid value="ManagedBean.node" externalConfig="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r:/propertySheetGrid&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Externalconfig &lt;/STRONG&gt;&lt;SPAN&gt; means, that its configured over web-client-config-custom.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;config evaluator="node-type" condition="your type"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property-sheet&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property-sheet&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Here comes the cool thing now. If you have defined a wizard/dialog, JSF keeps that properties synchron against the node which been defined earlier in the ManagedBean. This means, if you want to store properties from this sheet into another database, you have just to read down the node &lt;/SPAN&gt;&lt;STRONG&gt;propertiesNode &lt;/STRONG&gt;&lt;SPAN&gt; to obtain data entered through the web-client. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 08:06:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-access-the-custom-model-feild-in-jsp-file/m-p/191329#M144459</guid>
      <dc:creator>cheffilet</dc:creator>
      <dc:date>2009-01-22T08:06:49Z</dc:date>
    </item>
  </channel>
</rss>

