Re: Errors with rendering feedback labels on a form during unit testing. Works fine when viewed from the browser.

2010-06-14 Thread Igor Vaynberg
onbeforerender is called before every render, so the second render that is invoked after onsubmit() is running onbeforerender() again and adding duplicate components. your visitor should check if the component it is trying to add already exists using component#get(id) -igor On Thu, Jun 10, 2010

Errors with rendering feedback labels on a form during unit testing. Works fine when viewed from the browser.

2010-06-10 Thread Todd Nine
Hi all, I'm getting some strange behavior from my tests. I have an abstract class that all ajax feedback forms inherit from. BaseFeedBackForm http://pastebin.com/NWALFWvi I have this test code http://pastebin.com/zZyzG1e6 What's happening is my onBeforeRender of my BaseFeedbackForm is