title: Getting Null value in liferay custom field?
body: <p>I am using Liferay 6.1 CE version. I added my custom attribute in User entity from control panel. I want to add this my custom field in create_account.jsp hook page. I added like this way.</p>
  
  <pre><code>&lt;div class="exp-ctrl-holder"&gt;
  &lt;liferay-ui:custom-attribute className="&lt;%=User.class.getName()%&gt;"
  classPK="&lt;%=0%&gt;" editable="&lt;%=true%&gt;" label="&lt;%=true%&gt;"
  name="user-default-group-name" /&gt;
  </code></pre>
  
  <p>After that i am trying to getting this value in UserLocalService hook class which extends UserLocalServiceWrapper class - (hook). I find each value from this but can not able to get my custom field value. </p>
  
  <p>I am trying to get custom field value like this.</p>
  
  <pre><code>String defaultGroup = (String) User.getExpandoBridge().getAttribute("defaultGroupName");
  log.info("Default Group Name :" + defaultGroup);
  </code></pre>
  
  <p>But I am getting null value or default value which I set at the time of adding custom attribute. I can not find my entered value from jsp page.</p>
  
  <p>Please help me.</p>
  
  <p>Regards :
  Pradip Bhatt
  pradip.bhatt@aspiresoftware.in</p>