001/** 002 * Copyright 2013 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 * 015 * Created by vgadiyak on 5/21/13 016 */ 017package org.kuali.rice.krad.web.form; 018 019import org.kuali.rice.krad.util.GlobalVariables; 020import org.kuali.student.common.uif.util.GrowlIcon; 021import org.kuali.student.common.uif.util.KSUifUtils; 022 023import javax.servlet.http.HttpServletRequest; 024 025/** 026 * This class provides a base form class for KS KRAD forms 027 * 028 * @author Kuali Student Team 029 */ 030public class KsUifFormBase extends UifFormBase { 031 032 @Override 033 public void postBind(HttpServletRequest request) { 034 035 String growlMessage = request.getParameter("growl.message"); 036 String temp = request.getParameter("growl.message.params"); 037 String[] growlMessageParams; 038 if(temp!=null){ 039 growlMessageParams = temp.split(","); 040 } 041 else{ 042 growlMessageParams=new String[0]; 043 } 044 045 if (growlMessage != null) { 046 KSUifUtils.addGrowlMessageIcon(GrowlIcon.SUCCESS, growlMessage, growlMessageParams); 047 } 048 049 super.postBind(request); 050 } 051 052}