Just another site

Datamodel and Factory method

We need to add @Out annotation to make it work

private List<NationalAccount> masterNationalAccountList;

public void findMasterNationalAccounts(){
masterNationalAccountList =  em.createNamedQuery("NationalAccount.findAllNationalAccountByMaster")
.setParameter("master", AdvisorUtil.getMaster(getCurrentUser().getAdvisor()))

<h:outputLabel for="goto"  value="National Account:" />
<h:selectOneMenu id="nationalAccount"  styleClass="input smaller"  value="#{prospectController.nationalAccount}" >
<s:selectItems value="#{masterNationalAccountList}"


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: