Not sure if this is the best approach, but it might work: try adding a clientId parameter to FlexDate and forwarding it to the date field. Sorry, I haven't tested it!
FlexDate.tml: <div class="flexDateEditor" xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <t:dateField value="date1" clientId="prop:clientId"/> </div> FlexDate.java: @Parameter(defaultPrefix = TapestryConstants.LITERAL_BINDING_PREFIX) @Property // so I don't have to write out the getters/setters ;> private String _clientId; AppPropertyEditBlocks.tml (snippet): <t:block t:id="flexDate"> <t:label for="flexDateEditor" /> <t:flexDateEditor t:id="flexDateEditor" clientId="prop:context.propertyId" /> </t:block> AppPropertyEditBlocks.java: @Environment @Property private PropertyEditContext _context; On Wed, Apr 16, 2008 at 6:42 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > I've got a custom data type called FlexDate, and I've made a simple > <t:flexdateeditor> component for it which (for now) just holds a date > field. It will get more complex later. I put this editor into my > AppPropertyEditBlocks.tml. Code is below. Then I have a data object with > an instance var of FlexDate type. I pump this into a beanformeditor. The > problem is that the elementName arg of processSubmission (in > FlexDateEditor.java) never seems to be in my _request.getParameterNames() > so > I can extract the date! Help? > > FlexDateEditor.tml: > > <div class="flexDateEditor" xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> > > <t:dateField value="date1" /> > > </div> > > Date1 is defined in FlexDateEditor.java and evaluated to new Date() during > beginRender(). > > AppPropertyEditBlocks.tml (snippet): > > <t:block t:id="flexDate"> > > <t:label for="flexDateEditor" /> > <t:flexDateEditor t:id="flexDateEditor" /> > > </t:block> > > The elementName arg of processSubmission in FlexDateEditor.java is always > the name of the instance variable in my data object that goes into > beanformeditor. Grr. How can I get the fields of the datefield to be > named > that way so I can extract the value? > > -- > Bill @ PeoplePad >