[aida] Issue in WebGrid>setNumbering

nico petton.nicolas at gmail.com
Sat Feb 14 00:46:23 CET 2009


Le vendredi 13 février 2009 à 21:52 +0100, Janko Mivšek a écrit :
> Hi Herbert,
> 
> Herbert König pravi:
> 
> > when using setNumbering in WebGrid, a link is created above the
> > numbering column.
> > 
> > When clicking this the browser shows "500 Internal Server Error" and
> > the image shows a MNU.
> > 
> > The reason is in WebGrid>>sortColumnsIfNecessary the (missing) aspect
> > for the numbering column is performed.
> > 
> > A simple guard clause prevents this but numbering isn't reversed in
> > this case. I would prefer if the click just where ignored.
> > 
> > What's the preferred solution here?
> 
> I just implemented your proposal. Numbering column cannot be sorted anymore.
> 
> WebGrid>>sortLinkColumn: aWebGridColumn
>   | dummyLink |
>   "Cannot sort a column which has an addBlock or is numbered"
>   aWebGridColumn hasAddBlock
>       ifTrue: [^WebText text: aWebGridColumn name].
>   aWebGridColumn isNumbered
>       ifTrue: [^WebText text: aWebGridColumn name].
>   ...
> 
> Thanks for notifying that!
> 
I may be wrong, but I think I already fixed all those bugs with
unsortable columns (not only numbers). At least it should be on the
squeak version.

Cheers!

Nico

> Janko
> 
> 
-------------- section suivante --------------
Une pi�ce jointe non texte a �t� nettoy�e...
Nom: non disponible
Type: application/pgp-signature
Taille: 197 octets
Desc: Ceci est une partie de message
 =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20090214/7e5f4c8d/attachment.sig 


More information about the Aida mailing list