[Laszlo-user] Strange LazyReplication behaviour with checkboxes - and some other questions
Tim Dauer
tim.dauer at evision.de
Wed Jun 24 07:30:55 PDT 2009
Hello again!
OK, at least I figured out (with a little help :) ) why the
checkox-glitch occurs: The value of the checkbox was not stored in a
dataset. I used the onvalue-handler to update the data in the dataset.
The sad thing is, that I have to have an additional TAG in my XML to
have use a checkbox in my object... but anyway: That workaround does the
trick for me!
It may very well be, that my second question solved itself, but my third
question still stands: will I encounter problems, when I try to display
informations from another dataset?
Greets
Tim
Tim Dauer schrieb:
> Hi List!
>
> I experienced a strange behaviour when I tried to use some fancy
> LazyResizeReplication to boost my applications performance compiled
> with OL 4.3. I want to display a large set of Inboxentries (could be
> more than 200 or 300 entries) - each of these replicated Objects is a
> view that contains several Icons, Buttons, Text-Elements and, last but
> not least, a checkbox to mark this item.
>
> First of all: When I mark one item and scroll down, suddenly other
> items are selected as well... at least their checkbox is appareantly
> (Have a look at the code-example below). Is this a glitch or am I
> missing somethin important?
>
> Second thing: When I scroll down, the data of the Items is not changed
> correctly (not in the attached example, but in my "big" application
> which is a little bit more complicated). Is this a common issue and
> how do I avoid that? It seems, that the same kind of Objects is rolled
> over an over again - but surprisingly the marked checkbox appears at
> different items. Very strange and seriously anoying...
>
> Third question: I am replicating the Objects in my inbox using a
> dataset, which is filled during the startup of the application
> (servlet call). But in my Objects I have to display some more
> Information which is not located in my "inbox-dataset" but in my
> addressbook - such as name of the sender of the message. In the
> developer guide you can read somethin like "All displayed data has to
> be provided through the underlying dataset - if you change information
> you should store the changes in the Dataset". But what does happen if
> some of the displayed data is not locatet in the dataset which
> triggers the replication?! Please don't tell me to add datanodes to
> the replication-dataset, that are copies of the other dataset to
> display their information :)
>
> So, any thoughts? See the attached File for further information!
>
> Greets
> Tim
>
More information about the Laszlo-user
mailing list