Helma Logo
main list history

Version 7 by maks on 25. January 2008, 05:49

40Then copy the provided hop action files (.hac file attachment attachments at the bottom of this page), actions actions, HopObject.js and skins into your apps HopObject prototype folder.
41Copy the attached htmlpage.skin into your apps Global folder.
46etc.
48While I have generic create.skin, edit.skin, etc. in HopObject, if you put a more customised one in any of your prototypes it will "override" my generic ones in the HopObject prototype. Likewise you can create your own edit function that will be called instead of the generic one in HopObject.

Version 6 by maks on 25. January 2008, 05:41

5==== Ensure <strong>Ensure each Prototype defines a _children collection of its own type====type</strong>
11==== Create <strong>Create mountpoints for each Prototype you want to access directly ====directly</strong>
17==== copy <strong> Ensure there is a skin named itemList available for each prototype in order to render each HopObject item in the provided hop action files (list skin.hac file attachement at the bottom of this page), actions and skins into your HopObject prototype folder</strong>
18eg.
19User/listItem.skin
19You can now use the default create, list, etc actions with urls like:<tr>
20    <td>
21        <% this.id %>           
22    </td>
23    <td>
24        <% this.username %>
25    </td>
26    <% this.href name="editDelete" %>
27  </tr>
21
22and HopObject/skins/editDelete.skin has something like:
23  <td>
24    <a href="<% this.href %>edit" >EDIT</a>
25  </td>
26  <td>
27    <a href="<% this.href %>delete" >DELETE</a>
28  </td>
29
30Then copy the provided hop action files (.hac file attachment at the bottom of this page), actions and skins into your HopObject prototype folder
31
32You can now use the default create, list, etc. actions with urls like:
33
26
27Note: I expect that there is a skin named itemList available for each prototype in order to render each HopObject item in the list skin.

Version 5 by maks on 25. January 2008, 05:32

1While I prefer Helma over RubyOnRailRubyOnRails, I have been influenced by reading up about Rails and the convenience of their scaffolding system.
5* ==== Ensure each Prototype defines a _children collection of its own type:type====
9  _children = collection(User)
11* ==== Create mountpoints for each Prototype you want to access directly: directly ====
15  users = mountPoint(User)
17* ==== copy the provided hop action files (.hac file attachement at the bottom of this page), actions and skins into your HopObject prototype folder
19You can now use the default create, list list, etc actions with urls like:
24While I have generic create.skin, edit.skin, etc etc. in HopObject, if you can just put a more customised one in any of your prototypesprototypes it will "override" my generic ones in the HopObject prototype.
25
26Note: I expect that there is a skin named itemList available for each prototype in order to render each HopObject item in the list skin.
27
26
27Note: make sure you add the jala.ListRender.js as one of your applications repositories, eg:
28
29  myapp.repository.2 = modules/jala/code/ListRenderer.js

Version 4 by maks on 25. January 2008, 00:34

17* copy the provided js fileshop action files (.hac file attachement at the bottom of this page), actions and skins into your HopObject prototype folder

Version 3 by zumbrunn on 24. July 2007, 12:45

27<% this.attachments %>

Version 2 by maks on 24. July 2007, 04:00

19You can now use the default listcreate, list actions with urls like:
20
21http://localhost:8080/myapp/users/create 
22http://localhost:8080/myapp/users/list
23
24While I have generic create.skin, edit.skin, etc in HopObject, you can just put a more customised one in any of your prototypes.
25Likewise the generic processForm() in HopObject that is called by create.hac and edit.hac can be over-ridden by a custom one if you need to do special processing on form data for any particular prototype and finally you can of course create custom create,edit,list, delete actions in each prototype to completely change this default processing.
26
27

Version 1 by maks on 13. July 2007, 04:19

1While I prefer Helma over RubyOnRail, I have been influenced by reading up about Rails and the convenience of their scaffolding system.
2So I've created a basic work-alike system (but not a straight port!) using actions/skins for HopObject that depends on following some coding conventions.
3The conventions are:
4* Ensure each Prototype defines a _children collection of its own type:
5eg.
6Root/User/type.properties
7
8_children = collection(User)
9
10* Create mountpoints for each Prototype you want to access directly:
11eg.
12Root/type.properties
13
14users = mountPoint(User)
15
16* copy the provided js files, actions and skins into your HopObject prototype folder
17
18You can now use the default list,