Messages by krebbl

One topic, 3 messages
Official announcements » New : Search engine on the forum

Nice feature, if it works correctly.

It would be nice, if someone can fix the forum search. So that it is possible to see all search results, not only the first page...

Thx!

Nevertheless, Kuix is great!

 

Kuix technical support » Issues with DynamicList

thx for reply.

The addLogEntry is called from the Frame (Controller) and the Frame is set as Listener of a ConnectionManager, that runs in a custom thread...

what should i do? synchronize?

Kuix technical support » Issues with DynamicList

Hello and big respect to your work. i really like it

But. I have some problems with adding items to a list dynamicly.
This is the xml definition of my list:

<scrollpane style="layout:inlinelayout(false,fill);padding:0">
    <list id="logList">
        <_renderer><![CDATA[
            <listitem>
                <container style="layout:inlinelayout(false,fill)">
                    <text> ${msg} </text>
                    <text class="info"> ${date}</text>
                </container>
            </listitem>
        ]]>
        </_renderer>
        <_items>@{logs}</_items>
    </list>
</scrollpane>

Well, when adding items to this list caused by some logging-events, it sometimes happens that the xml-parser throws an illegalArgumentException:

>> Uncaught exception java/lang/IllegalArgumentException: Unexpected end of file.

or

something like invalid tag name. then the item is not drawn correctly.

 

The code for adding items looks like this:

   public void addLogEntry(LogEntry entry){
        // logs.addElement(entry);
        int size = logProvider.countItemValues(PROPERTY_LOG_ENTRIES);
        if(size > 5)
            logProvider.removeItem(PROPERTY_LOG_ENTRIES, getLastItem(PROPERTY_LOG_ENTRIES));
        logProvider.addItem(PROPERTY_LOG_ENTRIES,entry,getFirstItem(PROPERTY_LOG_ENTRIES), false);
    }

i think its because the addItem-method is called to rapidly but i hope u can help me...

greetz