it is trivial to make a third @Property worker
that adds getter and setter ...
so you have

@Persist @Property private String name;


I ve made such worker for my self easily following this wiki article:
http://wiki.apache.org/tapestry/Tapestry5ManipulateClassesAtRuntime

with difference ... that I used

configuration.add("GridRowBean", new GridRowBeanWorker(),
"after:Inject*","before:Persist");
instead of:
configuration.add("GridRowBean", new GridRowBeanWorker(), "after:Inject*")


Davor Hrg


On Feb 3, 2008 10:48 AM, Sven Homburg (JIRA) <[email protected]> wrote:
> @Retain and @Persist should generate a setter and/or getter for the decorated 
> field
> -----------------------------------------------------------------------------------
>
>                  Key: TAPESTRY-2116
>                  URL: https://issues.apache.org/jira/browse/TAPESTRY-2116
>              Project: Tapestry
>           Issue Type: New Feature
>           Components: tapestry-core
>             Reporter: Sven Homburg
>              Fix For: 5.0.10
>
>
> sometime code looks incredible unclear, because its peppered with getter and 
> setter methods.
> i think it should be ease to extend the Persist- and RetainWorker for doing 
> that job.
>
> @Retain(getter=true, setter=true)
>
> as an exmaple
>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to