About PRWidgets
Lukas Renggli
renggli at iam.unibe.ch
Mon Apr 30 19:16:23 MEST 2007
Hi Martial,
> I was a bit busy those days so I could sent this email before. I told
> you I got problems with the 'Magritted' PRWidgets. Actually what I
> would
> like to understand is why mightn't I write those lines (a bit
> incorrect
> because I should write a custom #initialize and #children:
> WAComponent/PRWidget>>renderContentOn: html
> html render: (PRTreeWidget new)
this is Seaside code that will not work. You have to initialize your
child component in #initialize and store it into an i-var and return
it from #children.
Your code will re-instantiate the PRTreeWidget every time you display
the page and it will be impossible for Seaside to keep the state and
to perform the callbacks. Have a look in the Seaside mailing-list
archives.
Hope this helps,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the smallwiki
mailing list