HandyTapestry completions

The plugin adds helpful completions in the HTML template:
  1. component type (jwcid attribute value)
  2. smart component type completion (jwcid attribute value)
  3. component reference (jwcid attribute value)
  4. component parameter names
  5. OGNL expressions
  6. listener name
  7. page attribute value
  8. asset
  9. message key
  10. key attribute value
  11. constant in OGNL
  12. component: expression
Most completions are available in the attribute values of the Tapestry component (tag with jwcid attribute). But the key attribute value completion is available for all tags, and the component parameters names completion is used to complete tag attribute names.
  1. component type (jwcid attribute value)

    Press Ctrl-Space after @ in the jwcid attribute value to see names of project and library Tapestry components:
    Complete component name
  2. smart component type completion (jwcid attribute value)

    Enter name prefix and press Ctrl-Shift-Space to see names of project and library Tapestry components:
    Smart component type completion
  3. component reference (jwcid attribute value)

    Press Ctrl-Space in the jwcid attribute value to see components declared in the component class and specification:
    Complete component reference
  4. Component parameter names completion

    If the HTLM element is Tapestry component (has the jwcid attribute) then attribute name completion contains tapestry component parameter names:
    Complete component parameter
  5. OGNL expressions completion

    You can complete properties and methods names in the OGNL expression:
    Completion in OGNL expressions
  6. Listener name completion

    Listener name completion helps to edit listener name after "listener:" prefix:
    Complete listener name
  7. Page attribute value completion

    Page name completion helps to edit page attribute value of the ExternalLink, PageLink components:
    Complete page
  8. Asset completion

    Asset completion helps to edit asset property name after "asset:" prefix:
    Complete asset
  9. Message key completion

    If your component has properties file then you can type "message:name" in the Tapestry component attribute value for rendering the name property from the properties file. Press Ctrl-Space after "message:" prefix to see the properties file keys:
    Complete message key
  10. Key attribute value completion

    If your component has properties file then you can use a tag with key attribute to write the property in the template. Press Ctrl-Space in the key attribute value to see properties file keys:
    Complete key
  11. OGNL Constant completion

    OGNL supports expressions like @com.handyedit.pages.Login@NAME for referencing to public static final field of the class:
    Complete constant field

Example: @For component creation.

  1. Create div tag with jwcid attribute.
  2. Enter jwcid attribute value: enter @F, press Ctrl-Space and choose the "@For" variant.
  3. Create source attribute: press Ctrl-Space to see component parameter names and choose the "source" variant.
  4. Enter source attribute value: enter "ognl:" and choose the component property.