In a saucepan over medium heat, cook onions and corn until onions are tender. Transfer mixture to a 3 1/2 quart slow cooker. Add stewed tomatoes, beans, water, rice, chili powder, Mexican seasoning, and salt. Cover and cook on low for five hours or until rice is cooked.