[Seaside] Rendering components in ajax

Esteban A. Maringolo emaringolo at gmail.com
Mon Jul 21 17:19:39 UTC 2014


2014-07-21 14:03 GMT-03:00 Sebastian Sastre <sebastian at flowingconcept.com>:
> cheap tip: sounds like you have a message send to itself somehow

How so?

However, after checking for what you said I found I was passing self
as the argument to the #with: message, using parenthesis instead of
brackets (passing self instead of a closure).

I had:
html tableData
  id: 'justification';
  with: (self model justification
     ifNil: [ self renderJustificationEditorOn: html ]
     ifNotNil: [ :j | j name ] )

Instead of:
html tableData
  id: 'justification';
  with: [self model justification
     ifNil: [ self renderJustificationEditorOn: html ]
     ifNotNil: [ :j | j name ]]


Regards!


More information about the seaside mailing list