title: getSupportFragmentManager() is not working on onCreateView() method of the fragment class.
body: <p>Goodevening. I have read several questions here in stackoverflow and some tutorial articles and site about fragments. I'm currently passing some data on the first fragment class to the second fragment class. But I've got some error on the part of transaction in the bundle, It says in the error that the method getSupportFragmentManager() method is undefined. </p>
  
  <pre><code> getSupportFragmentManager().beginTransaction()
           .replace(R.id.content_frame, cblf).commit();
  </code></pre>
  
  <p>What is the bestway to fix this problem?
  Anyways, here is my whole code,</p>
  
  <pre><code>package com.example.navigationdrawerexample;
  
  import android.app.Fragment;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.view.ViewGroup;
  import android.widget.Button;
  import android.widget.TextView;
  import android.widget.Toast;
  
  public class CollegeBulletinFragment extends Fragment implements OnClickListener {
  
      Button ccs;
      Button coe;
      Button coed;
      Button con;
      Button cba;
      Button cas;
      Button cihm;
      Button gn;
      public CollegeBulletinFragment(){   
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View rootView = inflater.inflate(R.layout.fragment_collegebulletin, container, false);
  
          gn = (Button) rootView.findViewById(R.id.gn);
          ccs = (Button) rootView.findViewById(R.id.ccs);
          coe = (Button) rootView.findViewById(R.id.coe);
          coed = (Button) rootView.findViewById(R.id.coed);
          con = (Button) rootView.findViewById(R.id.con);
          cba = (Button) rootView.findViewById(R.id.cba);
          cas = (Button) rootView.findViewById(R.id.cas);
          cihm = (Button) rootView.findViewById(R.id.cihm);
  
          gn.setOnClickListener(this);
          ccs.setOnClickListener(this);
          coe.setOnClickListener(this);
          coed.setOnClickListener(this);
          con.setOnClickListener(this);
          cba.setOnClickListener(this);
          cas.setOnClickListener(this);
          cihm.setOnClickListener(this);
  
          return rootView;
      }
  
      @Override
      public void onClick(View arg0) {
          String passingword = "";
          switch (arg0.getId()){
          case R.id.ccs:
              passingword = "CCS";
              break;
          case R.id.coe:
              passingword = "COE";
              break;
          case R.id.gn:
              passingword = "GN";
              break;
          case R.id.coed:
              passingword = "COED";
              break;
          case R.id.con:
              passingword = "CON";
              break;
          case R.id.cba:
              passingword = "CBA";
              break;
          case R.id.cas:
              passingword = "CAS";
              break;
          case R.id.cihm:
              passingword = "CIHM";
              break;
  
          }
  
          CollegeBulletinListFragment cblf = new CollegeBulletinListFragment();
          Bundle args = new Bundle();
          args.putString("passingWord", passingword);
          cblf.setArguments(args);
  
           getSupportFragmentManager().beginTransaction()
           .replace(R.id.content_frame, cblf).commit();
      }
  }
  </code></pre>