Robby Pelssers, AGP <mailto:[EMAIL PROTECTED]> schreef: > > Suppose I have a set of objects whose properties I either want to > show in Mode 'edit' or 'output'. Depending on some event (user > changes Mode of one object by > clicking on button in repeaterrow), I want to change the state of > the property-i widgets from 'output' to 'active'.
This sounds like something you should do in the validation of the widget the user clicked on. I'd have to look up the details, but you can do that too. > Also I would like > myl layout to change like example below. In non-ajax mode this is no > problem, since the jx-template is processed again. How could I > accomplish this behaviour with AJAX=true ?? > > In my jx-template looks like this: [edited a bit for brevity] > > <jx:choose> > <jx:when test="${Mode.equals('edit')}"> > <tr> > <td><ft:widget-label id="property1"/></td> > <td><ft:widget id="property1"/></td> > </tr> > </jx:when> > <jx:otherwise> > <tr> > <td><ft:widget id="property1"/></td> > </tr> > </jx:otherwise> > </jx:choose> This won't work, because cforms-ajax only updates individual widgets that have changed. It won't remove a widget for you. To change the apppearance of a widget, you'll have to override the default form styling in a custom styling xsl. You can either use that to turn your label invisible, or you can make the label part of the widget itself. mcv. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]