Re: WicketModal customization
Hi, I'd recommend you to use Wicket-JQuery-UI library. It provides an integration with this dialog widget and many (all ?!) other JQueryUI widgets and even KendoUI. On Fri, Jan 4, 2019, 22:17 Entropy I'm trying to use WicketModal with a newer, more accessibility friendly > modal > that our front-end guy picked out. > > http://api.jqueryui.com/dialog/ > > I copied the source from wicket-extensions ModalWindow and was replacing > javascript and customizing until I came to the getWindowOpenJavaScript() > method. In that, it's doing alot more than javascript. It has the > following code block. > > So I am guessing this is creating a whole other page because i think the > wicket modal is in an iframe. I kind of feel, therefore, that I can dump > all of this. Or does it serve some greater purpose than i realize? > > Page page = createPage(); > if (page == null) > { > throw new WicketRuntimeException("Error > creating page for modal > dialog."); > } > CharSequence pageUrl; > RequestCycle requestCycle = RequestCycle.get(); > > page.getSession().getPageManager().touchPage(page); > if (page.isPageStateless()) > { > pageUrl = > requestCycle.urlFor(page.getClass(), > page.getPageParameters()); > } > else > { > IRequestHandler handler = new > RenderPageRequestHandler(new > PageProvider(page)); > pageUrl = requestCycle.urlFor(handler); > } > > -- > Sent from: > http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
WicketModal customization
I'm trying to use WicketModal with a newer, more accessibility friendly modal that our front-end guy picked out. http://api.jqueryui.com/dialog/ I copied the source from wicket-extensions ModalWindow and was replacing javascript and customizing until I came to the getWindowOpenJavaScript() method. In that, it's doing alot more than javascript. It has the following code block. So I am guessing this is creating a whole other page because i think the wicket modal is in an iframe. I kind of feel, therefore, that I can dump all of this. Or does it serve some greater purpose than i realize? Page page = createPage(); if (page == null) { throw new WicketRuntimeException("Error creating page for modal dialog."); } CharSequence pageUrl; RequestCycle requestCycle = RequestCycle.get(); page.getSession().getPageManager().touchPage(page); if (page.isPageStateless()) { pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters()); } else { IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page)); pageUrl = requestCycle.urlFor(handler); } -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUploadField in a form in a modalWindow
The response : 400 Bad Request Connection close Content-Length 1082 Content-Typetext/html;charset=ISO-8859-1 DateFri, 04 Jan 2019 07:54:37 GMT Server GlassFish Server Open Source Edition 4.1 X-Powered-By Servlet/3.1 JSP/2.3 (GlassFish… Java/Oracle Corporation/1.8) What's weird is that the response 's parameters contains the file and its data that i'm uploading ... -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org