HandyTapestry completions
The plugin adds helpful completions in the HTML template:- component type (jwcid attribute value)
- smart component type completion (jwcid attribute value)
- component reference (jwcid attribute value)
- component parameter names
- OGNL expressions
- listener name
- page attribute value
- asset
- message key
- key attribute value
- constant in OGNL
- component: expression
-
component type (jwcid attribute value)
Press Ctrl-Space after @ in the jwcid attribute value to see names of project and library Tapestry components:
-
smart component type completion (jwcid attribute value)
Enter name prefix and press Ctrl-Shift-Space to see names of project and library Tapestry components:
-
component reference (jwcid attribute value)
Press Ctrl-Space in the jwcid attribute value to see components declared in the component class and specification:
-
Component parameter names completion
If the HTLM element is Tapestry component (has the jwcid attribute) then attribute name completion contains tapestry component parameter names:
-
OGNL expressions completion
You can complete properties and methods names in the OGNL expression:
-
Listener name completion
Listener name completion helps to edit listener name after "listener:" prefix:
-
Page attribute value completion
Page name completion helps to edit page attribute value of the ExternalLink, PageLink components:
-
Asset completion
Asset completion helps to edit asset property name after "asset:" prefix:
-
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:
-
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:
-
OGNL Constant completion
OGNL supports expressions like @com.handyedit.pages.Login@NAME for referencing to public static final field of the class:
Example: @For component creation.
- Create div tag with jwcid attribute.
- Enter jwcid attribute value: enter @F, press Ctrl-Space and choose the "@For" variant.
- Create source attribute: press Ctrl-Space to see component parameter names and choose the "source" variant.
- Enter source attribute value: enter "ognl:" and choose the component property.