[Seaside] radio button and checked attribute
Avi Bryant
avi@beta4.com
Wed, 29 May 2002 21:54:27 -0700 (PDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--1293455216-746709529-1022734435=:4007
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.30.0205292154011.4007@cable.beta4.com>
Thanks. Fix attached.
Avi
On Thu, 30 May 2002, Rob Whitfield wrote:
> Avi, sorry for the formatting but here's the dump:
>
> Error: this collection is empty
>
> Error(Exception)>>handlerAction
>
> self
> an Error
> t1
> 1
> t2
> [] in IASession>>performAction:
> t3
> nil
>
>
> Error(Exception)>>signal
>
> self
> an Error
> t1
> nil
>
>
> Error(Exception)>>signal:
>
> self
> an Error
> t1
> 'this collection is empty'
>
>
> String(Object)>>error:
>
> self
> ''
> t1
> 'this collection is empty'
>
>
> String(Collection)>>errorEmptyCollection
>
> self
> ''
>
>
> String(SequenceableCollection)>>first
>
> self
> ''
>
>
> [] in IAImplicitIDExpansion>>expand:
>
> self
> an IAImplicitIDExpansion
> aNode
> an IAParserNode
> attr
> 'name'->'@subgroup'
> id
> nil
> assoc
> 'checked'->''
>
>
> Dictionary(Set)>>do:
>
> self
> a Dictionary('checked'->'' 'name'->'@subgroup'
> 'type'->'radio' 'value'->'bc' )
> t1
> [] in IAImplicitIDExpansion>>expand:
> t3
> 5
> t2
> 'checked'->''
> t2LimiT
> 6
>
>
> Dictionary>>associationsDo:
>
> self
> a Dictionary('checked'->'' 'name'->'@subgroup'
> 'type'->'radio' 'value'->'bc' )
> t1
> [] in IAImplicitIDExpansion>>expand:
>
>
> IAImplicitIDExpansion>>expand:
>
> self
> an IAImplicitIDExpansion
> aNode
> an IAParserNode
> attr
> 'name'->'@subgroup'
> id
> nil
> assoc
> 'checked'->''
>
>
> [] in IANodeExpander>>expand:
>
> self
> an IANodeExpander
> aNode
> an IAParserNode
> node
> an IAParserNode
> recursionLimit
> 100
> m
> an IAImplicitIDExpansion
>
>
> SmallInteger(Integer)>>timesRepeat:
>
> self
> 100
> t1
> [] in IANodeExpander>>expand:
> t2
> 1
>
>
> IANodeExpander>>expand:
>
> self
> an IANodeExpander
> aNode
> an IAParserNode
> node
> an IAParserNode
> recursionLimit
> 100
> m
> an IAImplicitIDExpansion
>
>
> [] in IANodeExpander>>expandChildren:
>
> self
> an IANodeExpander
> aNode
> an IAParserNode
> newChild
> an IAParserNode
> child
> ' '
>
>
> OrderedCollection>>do:
>
> self
> an OrderedCollection(' ' an IAParserNode ' ' an IAParserNode
> ' ' an IAParserNode 'Biz cards' an IAP...etc...
> t1
> [] in IANodeExpander>>expandChildren:
> t2
> 6
>
>
> IANodeExpander>>expandChildren:
>
> self
> an IANodeExpander
> aNode
> an IAParserNode
> newChild
> an IAParserNode
> child
> ' '
>
>
> [] in IANodeExpander>>expandChildren:
>
> self
> an IANodeExpander
> aNode
> an IAParserNode
> newChild
> an IAParserNode
> child
> an IAParserNode
>
>
> OrderedCollection>>do:
>
> self
> an OrderedCollection(' ' an IAParserNode ' ')
> t1
> [] in IANodeExpander>>expandChildren:
> t2
> 4
>
>
> IANodeExpander>>expandChildren:
>
> self
> an IANodeExpander
> aNode
> an IAParserNode
> newChild
> an IAParserNode
> child
> an IAParserNode
>
>
> IATemplate>>expandTemplate:
>
> self
> an IATemplate
> aParserNode
> an IAParserNode
>
>
> IATemplate>>loadTemplate
>
> self
> an IATemplate
>
>
> IATemplate>>root
>
> self
> an IATemplate
> newRoot
> nil
>
>
> IATemplate>>prepareToPrintTo:
>
> self
> an IATemplate
> aContext
> an IAPageViewContext
> e
> nil
>
>
> GetSubGroupStationery(IAPage)>>prepareToPrintTo:
>
> self
> a GetSubGroupStationery
> aViewContext
> an IAPageViewContext
>
>
> GetSubGroupStationery(IAPage)>>printContentsTo:
>
> self
> a GetSubGroupStationery
> context
> an IAPageViewContext
>
>
> IAPageViewContext>>handleResponse:
>
> self
> an IAPageViewContext
> aResponse
> an IAKomResponse
>
>
> IASession>>viewPage:
>
> self
> an IASession
> pageKey
> '133'
>
>
> IASession>>handleView
>
> self
> an IASession
>
>
> [] in IASession>>performAction:
>
> self
> an IASession
> actionKey
> 'view'
> e
> an Error
>
>
> BlockContext>>on:do:
>
> self
> [] in IASession>>performAction:
> t1
> Exception
> t2
> [] in IASession>>performAction:
> t3
> false
>
>
> IASession>>performAction:
>
> self
> an IASession
> actionKey
> 'view'
> e
> an Error
>
>
> [] in IASession>>performAction:withRequest:response:
>
> self
> an IASession
> actionKey
> 'view'
> aRequest
> an IARequest
> aResponse
> an IAKomResponse
>
>
> IASession>>inTransaction:do:
>
> self
> an IASession
> transactionKey
> 'top'
> aBlock
> [] in IASession>>performAction:withRequest:response:
> transaction
> an IATransaction
>
>
> [] in IASession>>performAction:withRequest:response:
>
> self
> an IASession
> actionKey
> 'view'
> aRequest
> an IARequest
> aResponse
> an IAKomResponse
>
>
> [] in BlockContext>>newProcess
>
> self
> [] in IASession>>performAction:withRequest:response:
>
>
> At 08:49 PM 5/29/2002 -0700, you wrote:
> >On Wed, 29 May 2002, Rob Whitfield wrote:
> >
> > > Following causes error:
> > >
> > > <input type=radio checked name="@subgroup" value="bc">bc
> > >
> > > If I remove "checked" the error goes away. Has anyone seen this
> > > problem? Or am I doing something wrong here?
> >
> >What kind of error does it cause? Attaching the stack trace to a report
> >like that is very helpful.
> >
> >By default, the input above will be bound to the 'subgroup' property of
> >your component. If you want that radio button to start off checked,
> >initialize subgroup to 'bc' instead of putting the checked attribute in
> >yourself.
> >
> >Still, it shouldn't actually cause a problem to have the checked attribute
> >there, it'll just be ignored. So I'd like to see the walkback.
>
>
--1293455216-746709529-1022734435=:4007
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="emptyAttrFix.cs"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.30.0205292153550.4007@cable.beta4.com>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="emptyAttrFix.cs"
J0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