Author: tyrell Date: Tue Feb 17 22:26:44 2009 New Revision: 31029 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=31029
Log: Fixing MASHUP-1141 by adding a descriptive message. Modified: branches/mashup/java/1.5/java/modules/www/editor.jsp Modified: branches/mashup/java/1.5/java/modules/www/editor.jsp URL: http://wso2.org/svn/browse/wso2/branches/mashup/java/1.5/java/modules/www/editor.jsp?rev=31029&r1=31028&r2=31029&view=diff ============================================================================== --- branches/mashup/java/1.5/java/modules/www/editor.jsp (original) +++ branches/mashup/java/1.5/java/modules/www/editor.jsp Tue Feb 17 22:26:44 2009 @@ -283,7 +283,13 @@ ui_code_text.setCode(request.responseText); } } else { - wso2.wsf.Util.alertMessage(request.responseText); + var response=request.responseText; + if(response.indexOf("Service cannot be found.")>-1){ + wso2.wsf.Util.alertMessage("You have not yet saved the service. In order to generate a UI, please go to the 'Mashup Code' tab and save your service. "); + }else{ + wso2.wsf.Util.alertMessage(response); + } + } } catch(ex) { _______________________________________________ Mashup-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/mashup-dev
