<?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 How to get Current Bean Instance in a JSP in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235843#M188973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok I am sitting in a JSP and I want to get the reference(instance) of the current bean in a scriplet. Similar thing is already working in a repo.tld tag. Look at the following line of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;r:propertySheetGrid id="document-props" value="#{DialogManager.bean.document}" &lt;BR /&gt;var="documentProps" columns="1" mode="view" labelStyleClass="propertiesLabel" externalConfig="true" /&amp;gt; &lt;SPAN class="line-numbers-rows"&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;"r" is the prefix of "repo.tld" .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In above code DialogManager.bean returns the current instance of the bean. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want the same thing in a scriptlet, but the problem is that how would I get the current bean reference?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanna do something like this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;%&lt;BR /&gt;DialogManager dm = get the current bean reference …&lt;BR /&gt;&lt;BR /&gt;DocumentDetailsDialog ddd = (DocumentDetailsDialog)dm.getBean();&lt;BR /&gt;%&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help as I am stuck at this thing …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2009 12:01:35 GMT</pubDate>
    <dc:creator>alihammad</dc:creator>
    <dc:date>2009-11-17T12:01:35Z</dc:date>
    <item>
      <title>How to get Current Bean Instance in a JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235843#M188973</link>
      <description>Ok I am sitting in a JSP and I want to get the reference(instance) of the current bean in a scriplet. Similar thing is already working in a repo.tld tag. Look at the following line of code&amp;lt;r&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ropertySheetGrid id="document-props" value="#{DialogManager.bean.document}" var="documentProps" columns="</description>
      <pubDate>Tue, 17 Nov 2009 12:01:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235843#M188973</guid>
      <dc:creator>alihammad</dc:creator>
      <dc:date>2009-11-17T12:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Bean Instance in a JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235844#M188974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please answer this .. somebody?? I really need help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 20:22:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235844#M188974</guid>
      <dc:creator>alihammad</dc:creator>
      <dc:date>2009-11-17T20:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Bean Instance in a JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235845#M188975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;scriptlets do not have a "current bean".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However scriptlet can reference a bean by name.&amp;nbsp;&amp;nbsp; In the example you gave there is one called "DialogManager".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 23:40:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235845#M188975</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-11-17T23:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Bean Instance in a JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235846#M188976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this will not be an answer, but I'm pretty sure there can be a better solution than using scriptlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What are you trying to achieve ? Maybe we can help you do it differently ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 10:25:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-bean-instance-in-a-jsp/m-p/235846#M188976</guid>
      <dc:creator>jayjayecl</dc:creator>
      <dc:date>2009-11-18T10:25:33Z</dc:date>
    </item>
  </channel>
</rss>

