Package org.ajaxtags.helpers

Examples of org.ajaxtags.helpers.AjaxXmlBuilder


    /* (non-Javadoc)
     * @see com.adito.core.actions.AuthenticatedAction#onExecute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                    HttpServletResponse response) throws Exception {
        AjaxXmlBuilder builder = new AjaxXmlBuilder();     
        try {
            onAjaxRequest(mapping, form, request, response, builder);
            String content = builder.toString();
           
            // Set content to xml
            response.setContentType("text/xml; charset=UTF-8");
            Util.noCache(response);
            PrintWriter pw = response.getWriter();
View Full Code Here


    /* (non-Javadoc)
     * @see com.adito.core.actions.AuthenticatedAction#onExecute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    protected ActionForward onExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                    HttpServletResponse response) throws Exception {
        AjaxXmlBuilder builder = new AjaxXmlBuilder();     
        try {
            onAjaxRequest(mapping, form, request, response, builder);
            String content = builder.toString();
           
            // Set content to xml
            response.setContentType("text/xml; charset=UTF-8");
            Util.noCache(response);
            PrintWriter pw = response.getWriter();
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  public String getXmlContent(HttpServletRequest request, HttpServletResponse response)
      throws Exception {
    TextFacet textfacet = MultifacetedBrowsing.getMfb(request).getTextFacetById(request.getParameter("facetId"));
    AjaxXmlBuilder builder = new AjaxXmlBuilder();
    Collection<String> values = textfacet.listMatching(request.getParameter("substring"));
   
    for(String key : values){
      builder.addItem(key, key);
    }
   
   
    return builder.toString();
  }
View Full Code Here

TOP

Related Classes of org.ajaxtags.helpers.AjaxXmlBuilder

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.