title: WebViewFragment webView is null after doing a FragmentTransaction
body: <p>I currently have my application set up with a <code>ListFragment</code> on the left and a <code>DetailsFragment</code> on the right (similar to the layout on the tablet below).</p>
  
  <p><img src="https://developer.android.com/images/fundamentals/fragments.png" alt="layout"></p>
  
  <p>On the details fragment (fragment next to the list) I have a goto deal button, which when pressed should replace the detailsFragment with a <code>WebViewFragment</code>.</p>
  
  <p>The problem I am having is that when trying to load a url in the webviewfragment the <code>WebView</code> is null.</p>
  
  <pre><code>WebViewFragment webViewFragment = new WebViewFragment();
  
  FragmentTransaction transaction = getFragmentManager().beginTransaction();
  
  // Replace whatever is in the fragment_container view with this fragment,
  // and add the transaction to the back stack
  transaction.replace(R.id.deal_details_fragment, webViewFragment);
  transaction.addToBackStack(null);
  
  // Commit the transaction
  transaction.commit();
  
  // Set the url
  if (webViewFragment.getWebView()==null)
      Log.d("webviewfragment", "is null");
  webViewFragment.getWebView().loadUrl("http://www.google.com");
  </code></pre>
  
  <p>Below is my main layout which has the original two fragments defined.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/main_activity_layout"
  
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="horizontal" &gt;
  
    &lt;fragment
        android:name="com.bencallis.dealpad.DealListFragment"
        android:id="@+id/deal_list_fragment"
        android:layout_weight="1"
        android:layout_width="0px"
        android:layout_height="match_parent" &gt;
        &lt;!-- Preview: layout=@layout/deal_list_fragment --&gt;
    &lt;/fragment&gt;
    &lt;fragment
        android:name="com.bencallis.dealpad.DealDetailsFragment"
        android:id="@+id/deal_details_fragment"
        android:layout_weight="2"
        android:layout_width="0px"
        android:layout_height="match_parent" &gt;
        &lt;!-- Preview: layout=@layout/deal_details_fragment --&gt;
    &lt;/fragment&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>It seems that the webViewFragment is not being created fully as the <code>WebView</code> has not been initialised. I have looked online but there is very little information regarding the <code>WebViewFragment</code>.</p>
  
  <p>Any ideas how to ensure <code>WebView</code> is initialised in the <code>WebViewFragment</code>?</p>