<?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 build a custom component in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-build-a-custom-component/m-p/109956#M77202</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;BR /&gt;&lt;SPAN&gt;I would like to build my owns component generators in order to execute javascript during some events (onBlur, onClick, â€¦).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Staring with TextFieldGenerator.java component generator, I tried to add javascript for the onChange event with the line&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;component.getAttributes().put("onChange", "alert('Hello !');");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the generated page do not contains any javascript for the event. I am sure that my component generator is used as the modification I made for the maxlength attribute is visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have to implement my own component at myFaces level by developing a my own myFaces component type and use it in a component generator with the line &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIComponent component = context.getApplication().createComponent("my_own_component");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 09:48:39 GMT</pubDate>
    <dc:creator>nahanni</dc:creator>
    <dc:date>2007-05-18T09:48:39Z</dc:date>
    <item>
      <title>How to build a custom component</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-build-a-custom-component/m-p/109956#M77202</link>
      <description>Hi,I would like to build my owns component generators in order to execute javascript during some events (onBlur, onClick, â€¦).Staring with TextFieldGenerator.java component generator, I tried to add javascript for the onChange event with the line&amp;nbsp; component.getAttributes().put("onChange", "alert('H</description>
      <pubDate>Fri, 18 May 2007 09:48:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-build-a-custom-component/m-p/109956#M77202</guid>
      <dc:creator>nahanni</dc:creator>
      <dc:date>2007-05-18T09:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a custom component</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-build-a-custom-component/m-p/109957#M77203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are just using the standard default text renderer that JSF provides. The JSF component is actually looking for a property called "onchange", so try changing your property name to lowercase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 09:59:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-build-a-custom-component/m-p/109957#M77203</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-05-21T09:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a custom component</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-build-a-custom-component/m-p/109958#M77204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"onchange" in lowercase works fine. thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 23:02:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-build-a-custom-component/m-p/109958#M77204</guid>
      <dc:creator>nahanni</dc:creator>
      <dc:date>2007-05-21T23:02:25Z</dc:date>
    </item>
  </channel>
</rss>

