adrnsoh / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Setting Navigation value in List model doesn't appear to work. #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Add a list component
2.Populate the list model, setting a 'Navigation' value

What is the expected output? What do you see instead?
Expecting the list to navigate to the form populated in the navigation value 
when clicked. Nothing happens when you click on the element. 

What version of the product are you using? On what operating system?
0.1 build 20120228 on Ubuntu 11.10

Original issue reported on code.google.com by 1815...@coolman.ca on 9 Mar 2012 at 8:56

GoogleCodeExporter commented 9 years ago
I know I said I wouldn't but I fixed it by now. It was a bit harder which was 
why I was hesitant.
I'm not sure if it made it into the version we are releasing right now but we 
will make multiple updates in the coming weeks so it'll be there.

Original comment by shai.almog on 9 Mar 2012 at 9:01

GoogleCodeExporter commented 9 years ago
Looks like it got into the build, I'm getting a NullPointerException when I 
click the list element though, here's the stack:

java.lang.NullPointerException
    at com.codename1.ui.util.UIBuilder.fetchResourceFile(UIBuilder.java:1363)
    at com.codename1.ui.util.UIBuilder.showContainerImpl(UIBuilder.java:1998)
    at com.codename1.ui.util.UIBuilder.showContainer(UIBuilder.java:1884)
    at com.codename1.ui.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2384)
    at com.codename1.ui.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
    at com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
    at com.codename1.ui.Form.actionCommandImpl(Form.java:1157)
    at com.codename1.ui.Form.dispatchCommand(Form.java:1123)
    at com.codename1.ui.list.GenericListCellRenderer$Monitor.actionPerformed(GenericListCellRenderer.java:547)
    at com.codename1.ui.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
    at com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
    at com.codename1.ui.List.fireActionEvent(List.java:1430)
    at com.codename1.ui.List.pointerReleasedImpl(List.java:1884)
    at com.codename1.ui.List.pointerReleased(List.java:1893)
    at com.codename1.ui.Form.pointerReleased(Form.java:1986)
    at com.codename1.ui.Component.pointerReleased(Component.java:2134)
    at com.codename1.ui.Display.handleEvent(Display.java:1566)
    at com.codename1.ui.Display.edtLoopImpl(Display.java:843)
    at com.codename1.ui.Display.mainEDTLoop(Display.java:793)
    at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:119)
    at java.lang.Thread.run(Thread.java:662)

Original comment by 1815...@coolman.ca on 9 Mar 2012 at 10:09

GoogleCodeExporter commented 9 years ago
I think this is related to issue 78, I think you are effectively using the 
older version of the libraries because of that bug.

Original comment by shai.almog on 10 Mar 2012 at 6:18

GoogleCodeExporter commented 9 years ago
I still don't think this one is quite right, I am on build 20120311, It's now 
navigating properly one time, but when I click back button, it's like the list 
is disabled.  Sometimes it'll work for two tries then stop.

Original comment by 1815...@coolman.ca on 12 Mar 2012 at 1:33

GoogleCodeExporter commented 9 years ago
Ugh, its a difficult one... Do you use physical keys to navigate?

Original comment by shai.almog on 12 Mar 2012 at 3:58