Re: WOConditional and WOCheckbox Display Problems
Re: WOConditional and WOCheckbox Display Problems
- Subject: Re: WOConditional and WOCheckbox Display Problems
- From: Alex Finkel <email@hidden>
- Date: Tue, 13 Dec 2005 13:57:16 -0500
Shouldn't that be a post-processing? After the call to super.appendToResponse.
On 12/13/05, Ken Anderson <email@hidden> wrote:
> You can't change the structure of the page until WO has completely
> parsed the post. What I usually do is hold any changes that could
> change the structure of the page until appendToResponse, and do
> something like:
>
> public void appendToResponse(WOResponse aResponse, WOContext aContext) {
> shouldShowCheckbox = pendingShouldShowCheckbox;
>
> super.appendToResponse(aResponse, aContext);
> }
>
> Ken
>
> On Dec 13, 2005, at 9:48 AM, email@hidden wrote:
>
> >
> > Hi All -
> >
> > I have a form that contains a wopopup that uses on change to submit
> > the
> > form. The form is refreshed and depending on the value of the
> > wopopoup,
> > some wocheckboxes (wrapped in a woconditional) are displayed.
> >
> > Example:
> > If 'number' is selected in the wopopup, a Is Zero Filled? checkbox is
> > displayed using the woconditional.
> >
> > I have set the checkbox boolean to true in the objects constructor,
> > but
> > since the checkboxes are not displayed initially (a null value is
> > initially
> > displayed in the wopopup), the checkboxes remain unchecked when
> > they are
> > finally displayed.
> >
> > When I move the checkboxes out of the woconditional (so that they are
> > always displayed) the checkboxes are displayed correctly.
> >
> > Has anyone experienced this before or have pointers towards a
> > solution?
> >
> > Thanks.
> >
> > Cord
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > 40anderhome.com
> >
> > This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden