hendrk what version of tapestry are you using? On 23 Mar 2016 16:00, "Hendrik Grewe" <tapestry-u...@b4ckbone.de> wrote:
> Hi @ list! > > I have a loop within a Form containing a formfragment per row. > The FormFragment is displayed within a (bootstrap) modal dialog, which > is opened by a click of a button in the current Row of the loop. > Fields within those formfragments are required. > The problem arises if one opens the modal-dialog containing the > FormFragment, then closing the dialog again without entering data. > Now if one tries to submit the form the (hidden!) Fields within the > modal dialog are flagged as errornous because they are not filled in. > > Why is the formfragment seen as "visible" and thus it is tried to submit > when the containing div is NOT visible? > > Is there a way to force the visibility status of a formfragment (via > clientSide javascript?) > > Is there any further documentation about when a formFragment is seen as > visible/hidden? > > I played a little with visibleBound on the formfragment like: > > <div class="modal fade" > id="myModal_specialId" > tabindex="-1" role="dialog" > aria-labelledby="myModalLabelEdit"> > > <t:formfragment visible="true" > visibleBound='jQuery("#myModal_specialId").is(":visible")'> > > </t:formfragment> > </div> > > Which also did not help any further. > > Any help is greatly appreciated > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >