• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOConditional and WOCheckbox Display Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOConditional and WOCheckbox Display Problems


  • Subject: Re: WOConditional and WOCheckbox Display Problems
  • From: Ken Anderson <email@hidden>
  • Date: Tue, 13 Dec 2005 13:42:18 -0500

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
  • Follow-Ups:
    • Re: WOConditional and WOCheckbox Display Problems
      • From: Alex Finkel <email@hidden>
References: 
 >WOConditional and WOCheckbox Display Problems (From: email@hidden)

  • Prev by Date: Re: WOConditional and WOCheckbox Display Problems
  • Next by Date: Re: WOConditional and WOCheckbox Display Problems
  • Previous by thread: Re: WOConditional and WOCheckbox Display Problems
  • Next by thread: Re: WOConditional and WOCheckbox Display Problems
  • Index(es):
    • Date
    • Thread