You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2007/12/11 11:18:43 UTC
[jira] Resolved: (SLING-130) microjax: @ValueFrom, mapping from
form field names to JCR properties in forms
[ https://issues.apache.org/jira/browse/SLING-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz resolved SLING-130.
---------------------------------------
Resolution: Fixed
Implemented in revision 603193, see ValueFromTest class for examples.
> microjax: @ValueFrom, mapping from form field names to JCR properties in forms
> ------------------------------------------------------------------------------
>
> Key: SLING-130
> URL: https://issues.apache.org/jira/browse/SLING-130
> Project: Sling
> Issue Type: Improvement
> Reporter: Bertrand Delacretaz
> Priority: Minor
>
> We had this in our r-jax prototype, and it can be useful when "porting" existing forms to microjax so I'll add it to the MicrojaxPostServlet.
> A @ValueFrom suffix in a form field can be used to define mappings between form fields and JCR properties, for example to keep an existing field name in a form.
> Adding a hidden field like
> <input name="./Text@ValueFrom" type="hidden" value="fulltext" />
> causes the JCR Text property to be set to the value of the fulltext form field.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.