Menu

#40 v1.1 Grid crash example

open
nobody
5
2004-10-06
2004-10-06
No

Running this code with the new Grid implementation in v1.
1 will end up in an unregistered peer exception at render
time.

the crash only happens if the removeAll() call is there.

public static class delme extends nextapp.echo.Grid
{
public delme()
{
}

public void init\(\)
\{
    super.init\(\);

    add\(0, 0, new nextapp.echo.Label\("asd"\)\);
\}

public void validate\(\)
\{
    removeAll\(\);

    add\(1, 0, new nextapp.echo.Label\("qwe"\)\);

    super.validate\(\);
\}

}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB