Re: weird popup problem
Re: weird popup problem
- Subject: Re: weird popup problem
- From: Ken Anderson <email@hidden>
- Date: Thu, 29 Sep 2005 17:10:48 -0400
James,
It is very common to change the structure of a page, which is what
Jerry is talking about. For instance, if you have a conditional
based on a flag, and you can change that flag directly from a UI
control on the page, you will have this problem.
As an example, say you have a WOConditional where, when true, you
show some details for an item, but when false, you just show a
summary. You have a hyperlink next to it, and that hyperlink toggles
the flag between true and false (and back again).
When the user hits that link, the flag will be set, and then
webobjects will be lost, because the conditionals are now set
differently from the time it rendered the page. This often has
bizarre side-effects.
What I usually do is keep a set of pending flags, and then move
pending to real in appendToResponse(). That way, you can be sure
that the page structure stays the same until you're ready to render
the next page.
Ken
On Sep 29, 2005, at 4:58 PM, James Cicenia wrote:
Other popups are working just as one would expect. Just not this
one. What do you mean "changing" the WO template structure?
This is a very simple popup window with one conditional changing
the contents. Even after removing this conditional there was no
change in the incorrect behavior of this one F#$%ing popup, to put
it mildly.
- james
On Sep 29, 2005, at 3:35 PM, Jerry W. Walker wrote:
Hi, James,
It's sounding more and more like the old "changed the WO template
structure between appendToResponse and the next
takeValuesFromRequest" issue.
I would check for that very carefully.
Regards,
Jerry
On Sep 29, 2005, at 3:55 PM, James Cicenia wrote:
Nothing is standing out. All javascript was removed same
behavior. Take out the no selection binding it works. Put in a
noSelectionString binding and it acts as though it is null.
Checked the RR loop nothing there at all. Very mysterious,
baffling, etc.
Not reusing anything, etc.
It has to be something obvious or very very very subtle.
- james
On Sep 29, 2005, at 11:27 AM, Arturo Perez wrote:
James Cicenia wrote:
Hello -
I have never seen this problem before but, if I put a string in
the No Selection binding, than my popup won't show the current
selection. If I remove the no selection binding then editing
works (shows the current selection) but then when entering
data for the first time it will have the first value selected
which is wrong. Here is my bindings:
PopUpButton1: WOPopUpButton {
displayString = portfolioTicketResource.fullName;
item = portfolioTicketResource;
list = session.portfolio.ticketResources;
noSelectionString = "--- please select ---";
selection = assignee;
}
Any ideas? I seem to think I have been doing popups like this
forever.
Well, make sure you're not reusing the variable
portfolioTicketResource elsewhere in your page.
Make sure you're not mutating the list
session.portfolio.ticketResources during the RR loop.
You don't have javascript doing submits behind your back, do you?
-arturo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40codefab.com
This email sent to email@hidden
--
__ Jerry W. Walker, Partner
C o d e F a b, LLC - "High Performance Industrial Strength
Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax
_______________________________________________
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