Re: ListMultipleChoice - How to wrap the text in the list.
Thank you Martin! On Tue, Mar 29, 2016 at 10:33 AM, Martin Grigorov wrote: > Hi, > > Which text exactly you need to be wrapped ? > ListMultipleChoice should be used with a , so I guess you mean > THIS TEXT. I am not sure you can do any CSS manipulation > on this text. You can > override > org.apache.wicket.markup.html.form.AbstractChoice#appendOptionHtml() > and cut long text at the server side. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue, Mar 29, 2016 at 4:28 PM, durairaj t > wrote: > > > Is it possible to Wrap text in the wicket ListMultipleChoice? I tried > > through CSS and SimpleAttributeModifier (I used: "word-wrap"and > > "overflow-x:scroll" ), both are not working. > > > > Any help? > > > > Thanks. > > >
Re: ListMultipleChoice - How to wrap the text in the list.
Hi, Which text exactly you need to be wrapped ? ListMultipleChoice should be used with a , so I guess you mean THIS TEXT. I am not sure you can do any CSS manipulation on this text. You can override org.apache.wicket.markup.html.form.AbstractChoice#appendOptionHtml() and cut long text at the server side. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Mar 29, 2016 at 4:28 PM, durairaj t wrote: > Is it possible to Wrap text in the wicket ListMultipleChoice? I tried > through CSS and SimpleAttributeModifier (I used: "word-wrap"and > "overflow-x:scroll" ), both are not working. > > Any help? > > Thanks. >
ListMultipleChoice - How to wrap the text in the list.
Is it possible to Wrap text in the wicket ListMultipleChoice? I tried through CSS and SimpleAttributeModifier (I used: "word-wrap"and "overflow-x:scroll" ), both are not working. Any help? Thanks.
Re: Resources can't object HTTP request body
Please create a ticket at JIRA. With a quickstart would be nice! Thank you! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Mar 29, 2016 at 3:30 PM, Илья Нарыжный wrote: > Martin, > > There are 3 problems: > > 1) Map can not guarantee that order of keys remain the same. In my > case Jetty use HashMap as underling storage. > 2) Some part of content might be URL encoded. So after collecting all > back: it's hard to revert exectly to initial value due to fact that > some parts contained URL encoded stuff. > 3) POST can contain huge body. So it looks very strange. > > As a work-around I use Filter configured prior to wicket to intercept > body whenever it's needed: > > https://github.com/OrienteerDW/wicket-orientdb/commit/c9e706d9e84a828901a5ad97ed50aa46521f7bfb > > Is it really required for isAjax() method check POST parameters as > well? I mean, may be flag is in query string and there is even no goal > to check POST body. > > Thanks, > > Ilia > > 2016-03-27 4:07 GMT-07:00 Martin Grigorov : > > Hi, > > > > I remember dealing with this in the past but I cannot find the mail > thread > > now. > > I think the complete body should be available as a valueless key in the > > post parameters: > > getRequest().getPostParameters().getParameterNames().iterator().next(). > > Please confirm whether this works! > > If it does then I think it would be good to add a helper method to > simplify > > this. > > > > Martin Grigorov > > Wicket Training and Consulting > > https://twitter.com/mtgrigorov > > > > On Sat, Mar 26, 2016 at 5:28 AM, Илья Нарыжный wrote: > > > >> It seems that Wicket Resource can't obtain whole HTTP POST body. > >> The reason of that is the following: > >> Mappers invoke WebRequest.isAjax() and isAjax() is trying to > >> getRequestParameters() - so body of POST parsed prior to actual > >> getInputStream() in a Resource object. > >> > >> Is there any chances to allow Resources to get request body? > >> > >> Thanks, > >> > >> Ilia > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Resources can't object HTTP request body
Martin, There are 3 problems: 1) Map can not guarantee that order of keys remain the same. In my case Jetty use HashMap as underling storage. 2) Some part of content might be URL encoded. So after collecting all back: it's hard to revert exectly to initial value due to fact that some parts contained URL encoded stuff. 3) POST can contain huge body. So it looks very strange. As a work-around I use Filter configured prior to wicket to intercept body whenever it's needed: https://github.com/OrienteerDW/wicket-orientdb/commit/c9e706d9e84a828901a5ad97ed50aa46521f7bfb Is it really required for isAjax() method check POST parameters as well? I mean, may be flag is in query string and there is even no goal to check POST body. Thanks, Ilia 2016-03-27 4:07 GMT-07:00 Martin Grigorov : > Hi, > > I remember dealing with this in the past but I cannot find the mail thread > now. > I think the complete body should be available as a valueless key in the > post parameters: > getRequest().getPostParameters().getParameterNames().iterator().next(). > Please confirm whether this works! > If it does then I think it would be good to add a helper method to simplify > this. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Sat, Mar 26, 2016 at 5:28 AM, Илья Нарыжный wrote: > >> It seems that Wicket Resource can't obtain whole HTTP POST body. >> The reason of that is the following: >> Mappers invoke WebRequest.isAjax() and isAjax() is trying to >> getRequestParameters() - so body of POST parsed prior to actual >> getInputStream() in a Resource object. >> >> Is there any chances to allow Resources to get request body? >> >> Thanks, >> >> Ilia >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org