[Seaside] Glamour - JQCheckTree

Mirko mirko.kiefer at arcor.de
Thu Nov 26 00:39:53 UTC 2009


Figured out that I need to put a serializeThisWithHidden for each
checkbox to trigger a callback.

renderCheckTreeFor: aClass on: html

	html listItem: [
		html checkbox onChange: (html jQuery ajax serializeThisWithHidden);
		callback: [:value | aClass name inspect].
		html label: aClass name, 'abc'.
		aClass subclasses isEmpty ifFalse: [
			html unorderedList: [
				aClass subclasses do: [:each | self renderCheckTreeFor: each on:
html]]]]


The default Glamour Seaside rendering is not really what I'm looking for
because it doesn't allow things like drag & drop, icons, ...

So I want to try and change the rendering using JQCheckTree instead of
the html select.
Anyone who has already put some work into that direction?

Mirko Kiefer
	

-------- Forwarded Message --------
> From: Mirko <mirko.kiefer at arcor.de>
> Reply-to: mirko.kiefer at arcor.de
> To: seaside at lists.squeakfoundation.org
> Bcc: themailarchiv at gmail.com
> Subject: JQCheckTree callback
> Date: Wed, 25 Nov 2009 00:56:44 +0100
> 
> Hi,
> I'm trying to get the CheckTree from the JQWidgetBox library to return
> the selected items everytime a checkbox is checked.
> 
> I tried out the following two modifications to JQCheckTreeExample that
> didn't work:
> 
> renderContentOn: html
> 	|id|
> 	id := 'ul.tree'.
>  	html unorderedList 
> 		class: 'tree'; 
> 		script: ((html jQuery id: id) checkTree onCheck: (html jQuery ajax
> callback: [:values | values ...]));
> 		with: [self renderCheckTreeOn: html]
> 
> and:
> 
> renderContentOn: html
> 	|id|
> 	id := 'ul.tree'.
>  	html unorderedList 
> 		class: 'tree'; 
> 		script: ((html jQuery id: id) checkTree onCheck:
> 			(trigger: [ :values | values ... ]
> 				passengers: (html jQuery this find 'li'));
> 		with: [self renderCheckTreeOn: html]
> 
> Would be great if someone could help me on this.
> 
> Thanks,
> Mirko




More information about the seaside mailing list