tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/159-question-about-mediatormaphasmediatorforviewRobotlegs: Discussion 2018-10-18T16:35:16Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/27730852010-09-01T09:46:30Z2010-09-01T09:46:30ZQuestion about mediatorMap#hasMediatorForView<div><p>Hi Jiri,</p>
<p>what you're doing doesn't really make sense to me.</p>
<p>The mediator is only created for the view at the moment when it is added to the contextView display list - so you would always get a false result here as your view is not yet on the display list, and thus cannot be mediated.</p>
<p>Why do you need to check it? If you're creating the view in the command itself then surely you know which view type you're creating, and whether it has been mapped... unless this is some sort of async issue? Either way, this makes me wonder whether there's some better way to solve your 'checking' problem.</p>
<p>Do you want to describe your problem more generally? Maybe we can suggest something else?</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/27730852010-09-01T18:02:03Z2010-09-01T18:02:03ZQuestion about mediatorMap#hasMediatorForView<div><p>Yes you are right. I realized is a bit later. Also if the mapping should not be there, then robotlegs is throwing an error, so that is sufficient.</p>
<p>Thank you for your reply.</p></div>jiri