[Seaside] Ajax delete component only works if #children still report all previously deleted components?

itsme213 itsme213 at hotmail.com
Sun Feb 17 06:08:52 UTC 2008


I can get a consistent WAComponentsNotFound failure in the attached minimal 
component C. Here I am #deleting components, following up on some things 
posted on an earlier thread.

To break: Run it at localhost://..../c. 'Add' a few nested components, then 
try several 'removes'.

To fix: remove the commented code in #children. In other words, if #children 
always reports all components ever rendered including those deleted, the 
failure does not occur. (Elsewhere in my fuller app I tried keeping just the 
last deleted component, hoping that would suffice between the calls to 
#children and #render, but it did not).

If this slow progress on my part reflects my slow understanding of how to 
use Seaside + SU, my apologies ... I have just not been able to figure it 
out by stepping through the debugger and inspecting the various 
continuations and renderingContexts. Hope my difficulties help someone 
else...

I am really hoping to find some 2.8 work-around, as I have already convinced 
others to follow this path to Ajax :-(

Longer term would this be helped by a clearer separation of different Ajax 
callbacks phases for (a) domain model update, then (b) component tree update 
+ re-rendering?

As always, thanks.

Sophie 


begin 666 C.st
M)T9R;VT at 4W%U96%K,RXY(&]F(#<@3F]V96UB97(@,C P-B!;;&%T97-T('5P
M9&%T93H@(S<P-C==(&]N(#$V($9E8G)U87)Y(#(P,#@@870@,3$Z,S(Z,C0@
M<&TG(0U704-O;7!O;F5N="!S=6)C;&%S<SH@(T,-"6EN<W1A;F-E5F%R:6%B
M;&5.86UE<SH@)VED('-U8G,@<&%R96YT(&1E;&5T960G#0EC;&%S<U9A<FEA
M8FQE3F%M97,Z("<G#0EP;V]L1&EC=&EO;F%R:65S.B G)PT)8V%T96=O<GDZ
M("=-07 M5')Y:6YG+4%J87 at G(0T-(4,@;65T:&]D<T9O<CH@)V%S('EE="!U
M;F-L87-S:69I960G('-T86UP.B G<VD@,B\Q-B\R,# X(#(S.C(X)R$-8F%S
M:6-296YD97)/;CH@:'1M;" -"6AT;6P@<&%R86=R87!H.B G;VYE($,G+ at T)
M:'1M;"!A;F-H;W(-"0EO;D-L:6-K.B H:'1M;"!U<&1A=&5R#0D)"0EI9#H@
M:60 at .PT)"0D)8V%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A<W-I9FEE9"<@<W1A;7 Z("=S:2 R+S$V+S(P,#@@,C(Z-#8G
M(0UI;FET:6%L:7IE#0E\(&%P<"!\#0EA<' @.CT@<V5L9B!R96=I<W1E<D%S
M07!P;&EC871I;VXZ("-C+ at T)87!P(&%D9$QI8G)A<GDZ(%-53&EB<F%R>2X-
5"2$@(0T-#4,@:6YI=&EA;&EZ92$-
`
end




More information about the seaside mailing list