<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: AEM Sling Model Injectors Annotations Cheat Sheet Reference Guide	</title>
	<atom:link href="https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide/feed" rel="self" type="application/rss+xml" />
	<link>https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide</link>
	<description>AEM Blog Made Just for You.</description>
	<lastBuildDate>Thu, 19 Jan 2023 03:25:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.8</generator>
	<item>
		<title>
		By: briankasingli		</title>
		<link>https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1312</link>

		<dc:creator><![CDATA[briankasingli]]></dc:creator>
		<pubDate>Thu, 19 Jan 2023 03:25:38 +0000</pubDate>
		<guid isPermaLink="false">https://sourcedcode.com/?p=1180#comment-1312</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1311&quot;&gt;Amit&lt;/a&gt;.

Thanks for letting me know, added @Model(adaptables = {Resource.class, SlingHttpServletRequest.class}, both classes to remove any confusion.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1311">Amit</a>.</p>
<p>Thanks for letting me know, added @Model(adaptables = {Resource.class, SlingHttpServletRequest.class}, both classes to remove any confusion.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Amit		</title>
		<link>https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1311</link>

		<dc:creator><![CDATA[Amit]]></dc:creator>
		<pubDate>Wed, 18 Jan 2023 12:55:42 +0000</pubDate>
		<guid isPermaLink="false">https://sourcedcode.com/?p=1180#comment-1311</guid>

					<description><![CDATA[regarding 1) where adatables is Resource.class and you used
// @Inject @Source(&quot;script-bindings&quot;) @Named(&quot;request&quot;)
    // @Inject @Source(&quot;script-bindings&quot;)
    @ScriptVariable
    private SlingHttpServletRequest request;

I dont think so request object we can get when adatables Is Resoruce.class]]></description>
			<content:encoded><![CDATA[<p>regarding 1) where adatables is Resource.class and you used<br />
// @Inject @Source(&#8220;script-bindings&#8221;) @Named(&#8220;request&#8221;)<br />
    // @Inject @Source(&#8220;script-bindings&#8221;)<br />
    @ScriptVariable<br />
    private SlingHttpServletRequest request;</p>
<p>I dont think so request object we can get when adatables Is Resoruce.class</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: briankasingli		</title>
		<link>https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1241</link>

		<dc:creator><![CDATA[briankasingli]]></dc:creator>
		<pubDate>Sat, 05 Nov 2022 19:36:11 +0000</pubDate>
		<guid isPermaLink="false">https://sourcedcode.com/?p=1180#comment-1241</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1238&quot;&gt;Tomasz Sz&lt;/a&gt;.

@tom, thank you for pointing out this typo, I have edited the documentation, and I tested it, it should be working as expected now.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1238">Tomasz Sz</a>.</p>
<p>@tom, thank you for pointing out this typo, I have edited the documentation, and I tested it, it should be working as expected now.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tomasz Sz		</title>
		<link>https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-cheat-sheet-reference-guide#comment-1238</link>

		<dc:creator><![CDATA[Tomasz Sz]]></dc:creator>
		<pubDate>Thu, 03 Nov 2022 08:11:38 +0000</pubDate>
		<guid isPermaLink="false">https://sourcedcode.com/?p=1180#comment-1238</guid>

					<description><![CDATA[Regarding [5. Request Attributes], if I&#039;m not wrong this will only work if model is adaptable from SlingHttpServletRequest (adaptables = SlingHttpServletRequest.class)]]></description>
			<content:encoded><![CDATA[<p>Regarding [5. Request Attributes], if I&#8217;m not wrong this will only work if model is adaptable from SlingHttpServletRequest (adaptables = SlingHttpServletRequest.class)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
