Package org.apache.shale.usecases.view

Examples of org.apache.shale.usecases.view.Domains


        list.add(new Locale("es"));
        application.setSupportedLocales(list);

    // simulate a managed bean
    ValueBinding vb = application.createValueBinding("domains");
    vb.setValue(facesContext, new Domains());
   
    vc = new ListLocales();
 
  }
View Full Code Here


        list.add(new Locale("es"));
        application.setSupportedLocales(list);

    // simulate a managed bean
    ValueBinding vb = application.createValueBinding("domains");
    vb.setValue(facesContext, new Domains());
   
    vc = new ListCategories();
 
  }
View Full Code Here

   public void cityAndStateForZip() throws IOException {

       FacesContext context = getFacesContext();
       Map requestParams = getRequestParameterMap();
       String zip = (String)requestParams.get("zip");
       Domains domains = (Domains) getBean("domains");

       if (zip != null)
         selectItems(context, domains.getCityAndStateItems(zip));
       else
         selectItems(context, domains.getBlankCityAndStateItems());

   }
View Full Code Here

     *
     * @param context <code>FacesContext</code> for the current request
     */
    protected SelectItem[] supportedCategories(FacesContext context) {

        Domains domains = (Domains) getBean("domains");
        return domains.getSupportedCategories(context.getViewRoot().getLocale());

    }
View Full Code Here

     *
     * @param context <code>FacesContext</code> for the current request
     */
    protected SelectItem[] supportedLocales(FacesContext context) {

        Domains domains = (Domains) getBean("domains");
        return domains.getSupportedLocales(context.getViewRoot().getLocale());

    }
View Full Code Here

TOP

Related Classes of org.apache.shale.usecases.view.Domains

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.