[Seaside] GRPharoUtf8CodecStream dnu #json:

Esteban Lorenzano estebanlm at gmail.com
Sun May 4 09:04:30 UTC 2014


yep, that was the problem 
thanks!
Esteban

ps: shouldn’t JSON be a part of the default group?

On 02 May 2014, at 19:06, Johan Brichau <johan at inceptive.be> wrote:

> Esteban,
> 
> I suspect you do not have the Seaside-Json-Core package loaded.
> Add ‘JSON’ group to the load.
> 
> Mind also that Json is rendered differently in Seaside 3.1 [1].
> 
> cheers
> Johan
> 
> [1] https://code.google.com/p/seaside/wiki/Seaside310Changelog
> 
> On 02 May 2014, at 18:34, Esteban Lorenzano <estebanlm at gmail.com> wrote:
> 
>> Hi,
>> 
>> I installed Seaside31 and tried to migrate some of my apps and now I’m experiencing this DNU. 
>> I have this code: 
>> 
>> openPopoverScriptOn: canvas
>> 	^ canvas jQuery getJson
>> 		text: [ :stream | 
>> 			stream json: (Dictionary new 
>> 				at: 'title' put: self titleAsString;
>> 				at: 'content' put: self tooltipAsString;
>> 				yourself) ];
>> 		onSuccess: (JSScript new
>> 			add: (self view asClient 
>> 				call: 'popover'with: (Dictionary new
>> 					at: 'trigger' put: 'hover';
>> 					at: 'html' put: true;
>> 					at: 'placement' put: self placement;
>> 					at: 'title' put: ((self canvas jQuery alias: 'data') access: 'title');
>> 					at: 'content' put: ((self canvas jQuery alias: 'data') access: 'content');
>> 					yourself));
>> 			asFunction: #(data))
>> 
>> and then this DNU: 
>> 
>> GRPharoUtf8CodecStream(Object)>>doesNotUnderstand: #json:
>> RESimplePopoverDecoration>>openPopoverScript in Block: [ :stream | ...
>> JQGetJson(JQAjax)>>text: in Block: [ :response | ...
>> WARequestContext>>respond:
>> JQGetJson(JQAjax)>>respond: in Block: [ self requestContext respond: aBlock ]
>> JQGetJson(JQAjax)>>processCallback
>> JQGetJson(JQAjax)>>enableCallbacks in Block: [ self processCallback ]
>> BlockClosure>>valueWithPossibleArguments:
>> JSAjaxCallback>>evaluateWithArgument:
>> JSAjaxCallback(WACallback)>>evaluateWithFieldValues:
>> WACallbackRegistry>>handle: in Block: [ :callback | callback evaluateWithFieldValues: (f...etc...
>> Array(SequenceableCollection)>>do:
>> WACallbackRegistry>>handle:
>> WACallbackProcessingActionContinuation>>basicPerformAction
>> WACallbackProcessingActionContinuation(WAActionPhaseContinuation)>>performAction in Block: [ self basicPerformAction ]
>> BlockClosure>>on:do:
>> WADebugErrorHandler(WAExceptionHandler)>>handleExceptionsDuring:
>> WACallbackProcessingActionContinuation(WARenderLoopContinuation)>>withNotificationHandlerDo: in Block: [ currentHandler handleExceptionsDuring: aBlock ]
>> BlockClosure>>on:do:
>> WACallbackProcessingActionContinuation(WARenderLoopContinuation)>>withNotificationHandlerDo:
>> WACallbackProcessingActionContinuation(WAActionPhaseContinuation)>>performAction
>> WACallbackProcessingActionContinuation>>performAction in Block: [ super performAction ]
>> BlockClosure>>ensure:
>> WACallbackProcessingActionContinuation>>performAction
>> WACallbackProcessingActionContinuation(WAActionPhaseContinuation)>>handleFiltered:
>> WACallbackProcessingActionContinuation(WARequestHandler)>>handle: in Block: [ self filter handleFiltered: aRequestContext ]
>> BlockClosure>>on:do:
>> WACurrentRequestContext class(WADynamicVariable class)>>use:during:
>> WARequestContext>>push:during: in Block: [ WACurrentRequestContext use: self during: aBlock...etc...
>> BlockClosure>>ensure:
>> 
>> I just installed vanilla seaside + REST: 
>> 
>> seaside3: spec
>> 	spec project: 'Seaside3' with: [ 
>> 		spec
>> 			className: 'ConfigurationOfSeaside3';
>> 			versionString: #stable;
>> 			loads: #('default' 'REST');
>> 			repository: 'http://smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main' ].
>> 
>> so… any idea?
>> 
>> thanks!
>> Esteban_______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list