<?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: Custom Forms and View Handlers in Sun Identity Management 8.0</title>
	<atom:link href="http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/</link>
	<description>Trond Pettersen on Web Development and Topic Maps</description>
	<lastBuildDate>Mon, 18 Apr 2011 15:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Michael Andrejews</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-13385</link>
		<dc:creator>Michael Andrejews</dc:creator>
		<pubDate>Mon, 18 Apr 2011 15:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-13385</guid>
		<description>I think you solved the problem right now ;) but it could be interesting for others: 

change the &#039;req&#039; with &#039;this.getRequestState()&#039; and it is possible to compile the code.</description>
		<content:encoded><![CDATA[<p>I think you solved the problem right now <img src='http://www.topicobserver.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  but it could be interesting for others: </p>
<p>change the &#8216;req&#8217; with &#8216;this.getRequestState()&#8217; and it is possible to compile the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trond</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-8090</link>
		<dc:creator>Trond</dc:creator>
		<pubDate>Mon, 07 Jun 2010 02:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-8090</guid>
		<description>Hi Anders,

You are absolutely right. I would suspect it is supposed to be the HttpServletRequest or the IdM specific req variable coming from the JSP. The GenericEditForm doesn&#039;t decalare this field? I guess obviously not since your code doesn&#039;t compile, but this was written for Sun IdM 8.0... Sorry I included such a bad variable name that even I as the author can&#039;t tell you what it is. As for how you can fix this problem, you&#039;d have to look into what type of argument the GenericViewSource constructor expects.

Unfortunately, I don&#039;t have my old IdM code lying around anymore, though, and even left the IdM world about a year ago -- with no plans of going back.</description>
		<content:encoded><![CDATA[<p>Hi Anders,</p>
<p>You are absolutely right. I would suspect it is supposed to be the HttpServletRequest or the IdM specific req variable coming from the JSP. The GenericEditForm doesn&#8217;t decalare this field? I guess obviously not since your code doesn&#8217;t compile, but this was written for Sun IdM 8.0&#8230; Sorry I included such a bad variable name that even I as the author can&#8217;t tell you what it is. As for how you can fix this problem, you&#8217;d have to look into what type of argument the GenericViewSource constructor expects.</p>
<p>Unfortunately, I don&#8217;t have my old IdM code lying around anymore, though, and even left the IdM world about a year ago &#8212; with no plans of going back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-8055</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Sun, 30 May 2010 09:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-8055</guid>
		<description>Hi there Trond,

In the createViewSource method  in class MyCustomForm there is a, seemingly unknown, identifier &#039;req&#039;. The code does not compile because of this. How can I fix the code?

Best Regards,
Anders</description>
		<content:encoded><![CDATA[<p>Hi there Trond,</p>
<p>In the createViewSource method  in class MyCustomForm there is a, seemingly unknown, identifier &#8216;req&#8217;. The code does not compile because of this. How can I fix the code?</p>
<p>Best Regards,<br />
Anders</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunny ajmera</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-6976</link>
		<dc:creator>sunny ajmera</dc:creator>
		<pubDate>Fri, 05 Mar 2010 03:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-6976</guid>
		<description>Hi,

Thanks for this helpful article. I would really appreciate if you could help me on achieving following requirement:

I have few custom extended attributes in SIM like groupname, endpointname and I have a custom java resource adapter configured on SIM 7.1. What I am doing is that I am trying to fetch value of these extended attributes in my custom java resource adapter and provision resource with these values. 

       For the first time, while creating the user and assigning the custom java resource adapter in SIM, I am able to retrieve value of my extended attributes using following function:
public WSUser getUser(WSUser user) {
WSuser user;
user.getAttributeValue(&quot;groupname&quot;);
}
and provision the user in the resource.

However, when  I again click on the user, I am getting null value. It seems to me that only while submitting the form, I am able to retrieve the value. I have tried various others methods also but none of them worked for me.

I would really appreciate if you could provide me some pointers.

Thanks
Sunny
ajmera.sunny@gmail.com</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for this helpful article. I would really appreciate if you could help me on achieving following requirement:</p>
<p>I have few custom extended attributes in SIM like groupname, endpointname and I have a custom java resource adapter configured on SIM 7.1. What I am doing is that I am trying to fetch value of these extended attributes in my custom java resource adapter and provision resource with these values. </p>
<p>       For the first time, while creating the user and assigning the custom java resource adapter in SIM, I am able to retrieve value of my extended attributes using following function:<br />
public WSUser getUser(WSUser user) {<br />
WSuser user;<br />
user.getAttributeValue(&#8220;groupname&#8221;);<br />
}<br />
and provision the user in the resource.</p>
<p>However, when  I again click on the user, I am getting null value. It seems to me that only while submitting the form, I am able to retrieve the value. I have tried various others methods also but none of them worked for me.</p>
<p>I would really appreciate if you could provide me some pointers.</p>
<p>Thanks<br />
Sunny<br />
<a href="mailto:ajmera.sunny@gmail.com">ajmera.sunny@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trond Pettersen</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-5574</link>
		<dc:creator>Trond Pettersen</dc:creator>
		<pubDate>Tue, 15 Sep 2009 10:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-5574</guid>
		<description>@Stavae:
You might want to look into IDMSchemaConfiguration where you can set up custom IDMAttributeConfigurations. 
See e.g. &lt;a href=&quot;http://docs.sun.com/app/docs/doc/820-5597/ahvbi?a=view&quot; rel=&quot;nofollow&quot;&gt;http://docs.sun.com/app/docs/doc/820-5597/ahvbi?a=view&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@Stavae:<br />
You might want to look into IDMSchemaConfiguration where you can set up custom IDMAttributeConfigurations.<br />
See e.g. <a href="http://docs.sun.com/app/docs/doc/820-5597/ahvbi?a=view" rel="nofollow">http://docs.sun.com/app/docs/doc/820-5597/ahvbi?a=view</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stavae</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-5538</link>
		<dc:creator>Stavae</dc:creator>
		<pubDate>Thu, 10 Sep 2009 12:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-5538</guid>
		<description>Hi :=)

I have been fighting with &quot;Customizing Forms&quot; for nearly 2 weeks now!

It&#039;s amazing just how SUN&#039;s website offers no help whatsoever!  They always talk about WHAT needs to be done. But, they never explain HOW it should be done.

Most of the things I was able to accomplish --- I did via trial &amp; error. 

I was finally able to modify a User Form, and import it into the IDM instance.

It&#039;s a simple User Form for inputing such details as : firstname, lastname, address, telepghone, etc, etc.

It seems to be working fine.

However, there is one big problem : after inputing the data, I save it without a hassle. But, whenever I try to VIEW or EDIT that user,  the form shows up blank.

In other words, I get an empty Form.  Most of the data I input has disappeared.

The only fields that still retain their data are :  firstname, lastname, email.

I am guessing that the reason why this is so is because : for all the field names, I used the prefix &quot;global&quot;  (global.firstname, global.address, etc, etc)

But, probably, IDM does not recognize a fieldname such as :  &quot;global.hometelephone&quot;, or &quot;global.height&quot; or &quot;global.weight&quot;

I don&#039;t know if this is important.

If it is, then, somewhere in IDM&#039;s repository, there is a list of all valid field names, all beginning with &quot;global&quot;.  And ONLY those field names are acceptable.

Is this the case??

Does anyone have an idea of what my problem is?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi :=)</p>
<p>I have been fighting with &#8220;Customizing Forms&#8221; for nearly 2 weeks now!</p>
<p>It&#8217;s amazing just how SUN&#8217;s website offers no help whatsoever!  They always talk about WHAT needs to be done. But, they never explain HOW it should be done.</p>
<p>Most of the things I was able to accomplish &#8212; I did via trial &amp; error. </p>
<p>I was finally able to modify a User Form, and import it into the IDM instance.</p>
<p>It&#8217;s a simple User Form for inputing such details as : firstname, lastname, address, telepghone, etc, etc.</p>
<p>It seems to be working fine.</p>
<p>However, there is one big problem : after inputing the data, I save it without a hassle. But, whenever I try to VIEW or EDIT that user,  the form shows up blank.</p>
<p>In other words, I get an empty Form.  Most of the data I input has disappeared.</p>
<p>The only fields that still retain their data are :  firstname, lastname, email.</p>
<p>I am guessing that the reason why this is so is because : for all the field names, I used the prefix &#8220;global&#8221;  (global.firstname, global.address, etc, etc)</p>
<p>But, probably, IDM does not recognize a fieldname such as :  &#8220;global.hometelephone&#8221;, or &#8220;global.height&#8221; or &#8220;global.weight&#8221;</p>
<p>I don&#8217;t know if this is important.</p>
<p>If it is, then, somewhere in IDM&#8217;s repository, there is a list of all valid field names, all beginning with &#8220;global&#8221;.  And ONLY those field names are acceptable.</p>
<p>Is this the case??</p>
<p>Does anyone have an idea of what my problem is?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-3918</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 29 Jun 2009 07:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-3918</guid>
		<description>Hi.... how can I print the content of an IDM form??</description>
		<content:encoded><![CDATA[<p>Hi&#8230;. how can I print the content of an IDM form??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trond</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-3718</link>
		<dc:creator>Trond</dc:creator>
		<pubDate>Fri, 22 May 2009 13:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-3718</guid>
		<description>You&#039;re spot on on the undocumented part. Sometimes it&#039;s really frustrating ... isn&#039;t it interesting how open source communities often have way better documented systems than those costing thousands of dollars?

I def. see the need for a IdM java programming site, and it would probably be a good idea to set up such a thing. But that&#039;s not for me ;)</description>
		<content:encoded><![CDATA[<p>You&#8217;re spot on on the undocumented part. Sometimes it&#8217;s really frustrating &#8230; isn&#8217;t it interesting how open source communities often have way better documented systems than those costing thousands of dollars?</p>
<p>I def. see the need for a IdM java programming site, and it would probably be a good idea to set up such a thing. But that&#8217;s not for me <img src='http://www.topicobserver.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimit Tsichevski</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-3699</link>
		<dc:creator>Vladimit Tsichevski</dc:creator>
		<pubDate>Wed, 20 May 2009 11:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-3699</guid>
		<description>Hi,

using custom viewers is the way the IdM creators did most of IdM itself. Unfortunately, the technology is completely undocumented :-( During the last year of implementing SUN IdM-based system, I digged out the way view handlers might be used and I&#039;m completely happy with them. Did you ever thougth of creating a site dedicated specially to &quot;IdM Java programming&quot;, so we and other people can share their experience in the field?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>using custom viewers is the way the IdM creators did most of IdM itself. Unfortunately, the technology is completely undocumented <img src='http://www.topicobserver.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  During the last year of implementing SUN IdM-based system, I digged out the way view handlers might be used and I&#8217;m completely happy with them. Did you ever thougth of creating a site dedicated specially to &#8220;IdM Java programming&#8221;, so we and other people can share their experience in the field?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Etienne</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/comment-page-1/#comment-3567</link>
		<dc:creator>Etienne</dc:creator>
		<pubDate>Thu, 23 Apr 2009 17:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=204#comment-3567</guid>
		<description>Hi,

I used your article to build a custom page with IdM 7.1. My form uses the User View with a custom Form and a custom JSP. I built my custom view handler by extending the UserViewer class, but that causes a weird problem.

When using the UserViewer class as a View handler, IDM resolves the Form by itself using the System Configuration (Form configured on the page Configure -&gt; Form and process mapping in IDM Admin). Logged in with a user, it returns the Form with the Form type:  endUserChangePassword.

I want to have a custom page returned, so in the method getForm(), like in your example, I do:

        formId = &quot;MyCustomForm&quot;;
        return super.getForm(vm, view, formId, options);

The result seems to work since my custom form is displayed. However, the &quot;Checkout view&quot; and &quot;Refresh View&quot; steps don&#039;t go through my Form, only the &quot;render HTML&quot;. This method override fails to affect the global behaviour of my form... And so all my Derivation or Expansions set in the form are not executed, which is a huge problem.

Any ideas?! I can provide the necessary code if anybody can help.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I used your article to build a custom page with IdM 7.1. My form uses the User View with a custom Form and a custom JSP. I built my custom view handler by extending the UserViewer class, but that causes a weird problem.</p>
<p>When using the UserViewer class as a View handler, IDM resolves the Form by itself using the System Configuration (Form configured on the page Configure -&gt; Form and process mapping in IDM Admin). Logged in with a user, it returns the Form with the Form type:  endUserChangePassword.</p>
<p>I want to have a custom page returned, so in the method getForm(), like in your example, I do:</p>
<p>        formId = &#8220;MyCustomForm&#8221;;<br />
        return super.getForm(vm, view, formId, options);</p>
<p>The result seems to work since my custom form is displayed. However, the &#8220;Checkout view&#8221; and &#8220;Refresh View&#8221; steps don&#8217;t go through my Form, only the &#8220;render HTML&#8221;. This method override fails to affect the global behaviour of my form&#8230; And so all my Derivation or Expansions set in the form are not executed, which is a huge problem.</p>
<p>Any ideas?! I can provide the necessary code if anybody can help.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

