IRC Chat : 2011-09-10 - OpenMRS

00:09:00 *** burke has joined #openmrs
00:09:00 *** ChanServ sets mode: +o burke
00:13:46 *** burke has quit IRC
00:20:28 *** rafa has quit IRC
00:23:41 *** wyclif has joined #openmrs
00:25:35 *** burke has joined #openmrs
00:25:35 *** ChanServ sets mode: +o burke
00:25:48 *** burke has quit IRC
00:41:09 *** lh has joined #openmrs
02:30:44 *** sunbiz has joined #openmrs
02:30:44 *** ChanServ sets mode: +v sunbiz
02:33:57 *** gbastien has joined #openmrs
03:02:43 *** pascal`` has joined #openmrs
03:05:24 *** pascal` has quit IRC
03:23:10 *** gbastien has quit IRC
03:24:04 *** deadpool has joined #openmrs
03:24:46 *** bryq has joined #openmrs
03:24:50 *** ChanServ sets mode: +v bryq
03:25:33 <deadpool> djazayeri: quick question i am trying to do a redirect view return new ModelAndView("module/Billing/UnPaid?id=" + invid, "msg",errmsg); with a question mark is there a way to make it work cause i want to send an error msg in there?
03:25:54 <deadpool> i tried Unpaid.htm and it didn't work either
03:26:05 <djazayeri> Is this a SimpleFormController? or MVC-driven?
03:26:29 <deadpool> yeah
03:26:37 <deadpool> SimpleFormController
03:26:46 <djazayeri> try UnPaid.form
03:27:47 <deadpool> in my moduleapplicationcontext it is UnPaid.htm is that allright?
03:28:01 <djazayeri> It shouldn't be .htm...
03:28:10 <djazayeri> i.e. that bypasses the controller and jsp processing
03:28:23 <deadpool> oh
03:28:30 <djazayeri> or is the idea that unpaid is plain html?
03:28:36 <deadpool> nope
03:28:40 <deadpool> i didn't know that
03:28:43 <deadpool> i will change it
03:28:54 <deadpool> thanks for the insight
03:29:13 <djazayeri> oh, wait
03:29:16 <djazayeri> you want to redirect?
03:29:52 <djazayeri> that's something like: return new ModelAndView(new RedirectView(urlToRedirectTo));
03:30:28 <deadpool> yeah but the redirect view i can't send an error msg to it
03:30:49 <djazayeri> you sure?
03:31:01 <djazayeri> I'm pretty sure I've done that before.
03:32:13 <deadpool> yeah i have tried
03:33:45 <djazayeri> okay, not sure off the top of my head
03:33:45 <deadpool> djazayeri: .form doesn't work either
03:34:00 <djazayeri> you also switched it to .form in your moduleApplicationContext.xml?
03:34:02 <deadpool> it doesn't like the question mark
03:34:04 <deadpool> yup
03:35:18 <djazayeri> try this
03:35:19 <djazayeri> http://forum.springsource.org/showthread.php?80613-RedirectView-and-query-parameters
03:35:24 <OpenMRSBot> <http://ln-s.net/9+Uf> (at forum.springsource.org)
03:38:23 <deadpool> what is the true there for?
03:38:40 <djazayeri> controls whether the url is relative to the web server, or the context path, I think
03:39:26 <deadpool> meaning?
03:39:54 <deadpool> like wheter if i put /openmrs or module/ as the beginning?
03:40:19 <djazayeri> yeah
03:44:03 *** upul` has joined #openmrs
03:44:03 *** ChanServ sets mode: +v upul`
03:45:09 <deadpool> djazayeri: so that adds the object to the top to the address bar instead of the jsp page
03:45:30 <djazayeri> what do you mean?
03:45:49 <djazayeri> "redirect" means you're going to a new url, and you're including a request parameter in the url
03:47:09 <deadpool> so i am getting the request parameter but the error msg gets added to the address bar to instead of going to the jsp page
03:47:47 <djazayeri> Does your JSP page display that parameter as a message? Or are you expecting OpenMRS to do it automatically?
03:48:09 <djazayeri> (In the latter case you need to set a session variable before doing the redirect, rather than passing it in the url.)
03:48:53 <deadpool> well at first i didn't know that openmrs could display the error so i my other jsp pages with an error display both openmrs and i display the error msg
03:51:26 <djazayeri> okay, well, if you are getting the request parameter in the url, then you just need to make sure your controller/jsp can display it
03:52:35 *** sunbiz has left #openmrs
03:57:18 *** deadpool has quit IRC
03:58:04 *** bryq has left #openmrs
04:10:35 *** deadpool has joined #openmrs
04:24:54 <deadpool> djazayeri: thanks for the help i figured away around that
04:25:11 <djazayeri> cool
04:25:17 <djazayeri> (gotta mute, so going offline)
04:25:24 *** djazayeri has left #openmrs
04:34:32 *** deadpool has quit IRC
05:25:00 *** muthah has joined #openmrs
05:50:41 *** upul` has left #openmrs
05:56:43 *** firc has joined #openmrs
05:59:22 *** firc has quit IRC
08:19:41 *** muthah has quit IRC
09:08:36 *** chughgaurav has joined #openmrs
09:10:50 *** chughgaurav_ has joined #openmrs
09:12:48 *** chughgaurav has quit IRC
09:15:22 *** chughgaurav_ has quit IRC
09:17:04 *** rafa has joined #openmrs
09:17:04 *** ChanServ sets mode: +v rafa
09:37:04 *** morristic has quit IRC
09:53:49 *** lh has quit IRC
09:53:50 *** lh has joined #openmrs
10:15:05 *** gauravpaliwal has joined #openmrs
10:15:05 *** ChanServ sets mode: +v gauravpaliwal
10:15:28 *** finbrein has joined #openmrs
10:35:48 *** rafa has quit IRC
10:40:48 *** rafa has joined #openmrs
10:40:48 *** ChanServ sets mode: +v rafa
10:55:13 *** lh has quit IRC
11:01:45 *** gauravpaliwal has left #openmrs
11:04:02 *** upul` has joined #openmrs
11:04:02 *** ChanServ sets mode: +v upul`
11:04:26 *** upul` has quit IRC
11:34:49 *** bwolfe has joined #openmrs
11:34:51 *** ChanServ sets mode: +o bwolfe
11:37:03 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: i2b2 Export 1.1.1 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=i2b2export&ampversion=&amp1.1.1>
11:53:23 *** gauravpaliwal has joined #openmrs
11:53:23 *** ChanServ sets mode: +v gauravpaliwal
12:09:05 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: i2b2 Export 1.1.2.0 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=i2b2export&ampversion=&amp1.1.2.0>
12:28:12 *** gauravpaliwal has left #openmrs
13:18:12 *** gbastien has joined #openmrs
14:04:03 *** upul has joined #openmrs
14:04:03 *** ChanServ sets mode: +v upul
14:07:12 *** bryq has joined #openmrs
14:07:12 *** ChanServ sets mode: +v bryq
14:53:17 *** upul has left #openmrs
15:52:37 *** goutham has joined #openmrs
16:23:00 *** deadpool has joined #openmrs
16:31:21 *** pascal`` has quit IRC
16:32:39 *** deadpool has quit IRC
16:35:46 *** pascal`` has joined #openmrs
16:44:52 *** chughgaurav has joined #openmrs
16:45:09 *** deadpool has joined #openmrs
16:50:35 *** deadpool has quit IRC
16:55:54 *** chughgaurav has quit IRC
16:56:27 *** bryq1 has joined #openmrs
16:57:29 *** bryq has quit IRC
17:01:36 *** lh has joined #openmrs
17:03:58 *** gauravpaliwal has joined #openmrs
17:03:58 *** ChanServ sets mode: +v gauravpaliwal
17:04:09 *** gauravpaliwal has left #openmrs
17:28:45 *** bryq has joined #openmrs
17:28:45 *** ChanServ sets mode: +v bryq
17:29:09 *** rafa has quit IRC
17:29:44 *** bryq1 has quit IRC
17:33:40 *** goutham has quit IRC
17:44:30 *** bryq has left #openmrs
17:59:53 *** gbastien has quit IRC
18:11:16 *** lh has quit IRC
18:23:00 *** gbastien has joined #openmrs
18:33:54 *** dkayiwa has joined #openmrs
19:17:59 *** morristic has joined #openmrs
19:18:38 *** lh has joined #openmrs
19:25:24 *** pbrandt has joined #openmrs
19:27:48 *** pascal`` has quit IRC
19:36:18 *** bwolfe has quit IRC
20:22:50 *** rafa has joined #openmrs
20:22:50 *** ChanServ sets mode: +v rafa
20:36:59 *** muthah has joined #openmrs
20:44:15 *** rafa has quit IRC
20:50:51 *** pascal`` has joined #openmrs
20:53:17 *** pbrandt has quit IRC
21:03:59 *** muthah has quit IRC
21:08:06 *** dkayiwa has quit IRC
21:49:43 *** pascal`` has quit IRC
22:48:25 *** lh has quit IRC