Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of @Hidden annotation for TouchUI #62

Open
pete-by opened this issue Jun 18, 2017 · 0 comments
Open

Support of @Hidden annotation for TouchUI #62

pete-by opened this issue Jun 18, 2017 · 0 comments

Comments

@pete-by
Copy link

pete-by commented Jun 18, 2017

Generation of "granite/ui/components/foundation/form/hidden" form field is not supported for TouchUI. Nothing is produces by the code below:

@Hidden @DialogField(name = "./showControls@TypeHint", value = "Boolean")
default String isShowControlsType() { return "Boolean"; } 

Expected output of the plugin:

<showControls cq:hideOnEdit="{Boolean}false" cq:showOnCreate="{Boolean}true" 
    disabled="{Boolean}false" jcr:primaryType="nt:unstructured" 
    name="./showControls@TypeHint" renderReadOnly="{Boolean}true" 
    required="{Boolean}false" sling:resourceType="granite/ui/components/foundation/form/hidden"
    value="Boolean" 
/>

Workaround: adding a sling:resourceType explicitly helps but it makes declarations cumbersome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant