Hi Bryan I've not written any <do-part...> - i don't understand how that works yet :-)
I've got various code has_many and has_many :through relationships (eg company has many contacts). When I use the edit page of a parent record for any of these, I've got default ajax + - buttons to add and subtract child records. So for example I can add contacts when editing a company. After installing the datepicker I've overridden the Date input in application.dryml... <def tag="input" for="Date"><hjq-datepicker dateFormat="dd-mm-yy" merge/></def> as I said above, the calendar appears when i click in date fields for existing records (eg existing contacts as sub forms in my company edit form), but it doesn't appear when i use the ajax + button to create a new record and then click in one of its date fields. I wondered if it's something i've done, but I get the same effect on all my child models. For testing I've even tried using the datepicker to override Integer and String to make sure it's not something to do with date fields specifically. Same result - the calendar pops up for integer fields, or string fields... but only on existing records. On 15 June, 05:17, Bryan Larsen <[email protected]> wrote: > Works for me. Here's my test code: > > <show-page:> > <content-body:> > <do part="mypart"> > <if test="&!request.xhr?"> > <update-button label="Go" update="mypart"/> > </if> > <else> > <form update="mypart"/> > </else> > </do> > </content-body:> > </show-page:> > > Can you explain what you're trying to do enough that I can try and > reproduce here? > > thanks, > Bryan > > On 10-06-14 06:22 PM, storitel wrote: > > > After more looking into this... > > > when I add a new ajax subform item that has date fields, the > > datepicker does not appear if I click in the datefields > > > when I edit existing ajax subform items, the datepicker *does* appear > > if I click in the datefields > > > so I think it is a bug? > > > br > > paul -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
