Re: DownloadLink ContentDisposition
I thought so, but on the other hand, the problem gets solved without much hassle. I have created the pull request. Thank you, Elias "Sven Meier" wrote on 18/09/2019 07:55:08 μμ: > "Sven Meier" > 18/09/2019 07:55 μμ > > Please respond to > users@wicket.apache.org > > To > > users@wicket.apache.org > > cc > > Subject > > Re: DownloadLink ContentDisposition > > Hi, > > IMHO "download" sort of implies that the file is downloaded and not > shown inline. > > But feel free to create a pull request to make that configurable. > > Have fun > Sven > > > On 18.09.19 17:09, e.spyro...@teamconcepts.gr wrote: > > Hi all, > > > > I have a quick question (I hope) > > > > I wanted to display a PDF file from the file system directly in the > > browser. > > The first solution I used was based on the article "AJAX update and file > > download in one blow" from the wiki, changing the ContentDisposition to > > INLINE, in the onRequest() method of the AJAXDownload. > > > > AJAX was too much for my task, so I dug further and discovered that > > ContentDisposition is also set in the onClick() method of DownloadLink. > > So I just brutally copied DownloadLink to a new class, and changed > > ContentDisposition from ATTACHMENT to INLINE. > > > > But, this left me wondering: Is there any reason why ContentDisposition is > > not user controllable in DownloadLink, just like cacheDuration ? > > > > Thanks, > > > > Elias > > > > > > > > > > - > > 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 > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DownloadLink ContentDisposition
Hi all, I have a quick question (I hope) I wanted to display a PDF file from the file system directly in the browser. The first solution I used was based on the article "AJAX update and file download in one blow" from the wiki, changing the ContentDisposition to INLINE, in the onRequest() method of the AJAXDownload. AJAX was too much for my task, so I dug further and discovered that ContentDisposition is also set in the onClick() method of DownloadLink. So I just brutally copied DownloadLink to a new class, and changed ContentDisposition from ATTACHMENT to INLINE. But, this left me wondering: Is there any reason why ContentDisposition is not user controllable in DownloadLink, just like cacheDuration ? Thanks, Elias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
OAuth2 on google app engine - Same httpsession - new wicket sessions
Hi all, I have built a rather crude OAuth2 authentication / authorization of google apis mechanism. I am using wicketstuff.gae (and a customized wicket-auth-roles for internal app authorization). On the gae side, I am using the REST api for the shake of clarity and traceability. The problem, which I am facing is that during the flow wicket page -> google authentication -> redirection servlet(filter) -> wicket page new wicket sessions are created at every step. So far I have discovered the following: 1. Everything works fine on the local development server. The problem only happens on the deployed application. 2. The httpsession remains the same, so I think it is a problem with the combination wicket / app engine (maybe wicket session does not get stored in the httpsession?) Has anyone faced something similar / any suggestions ? Thank you, Elias. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Inline enclosure - i18n problem
Thanks for the pointer. I'll give it a try. Martin Grigorov wrote on 27/09/2013 12:07:32 AM: > Martin Grigorov > 27/09/2013 12:08 AM > > Please respond to > users@wicket.apache.org > > To > > "users@wicket.apache.org" , > > cc > > Subject > > Re: Inline enclosure - i18n problem > > Hi, > > It sounds like different platform encodings. > Try by adding -Dfile.encoding=UTF-8 to %CATALINA_OPTS% and read this page > http://wiki.apache.org/tomcat/FAQ/CharacterEncoding > > > On Thu, Sep 26, 2013 at 10:06 PM, wrote: > > > Hi All, > > > > I am using an inline enclosure with greek text in the HTML file, in order > > to show/hide parts of a Form. > > > > When running on Linux everything works fine. > > On Windows I get question marks (like ) where the greek characters > > should be - but only within the enclosure, the rest of the page is OK. > > On both machines I have Tomcat 7 installed. > > > > The Ajax debug console shows that the Ajax response includes UTF-8 > > encoding in the header, so I assume that some conversion happens before > > the text is sent to the browser. > > > > Does anyone have a hint on where to start looking for a solution? > > > > > > Thanks > > Elias > > > > > > - > > 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
Inline enclosure - i18n problem
Hi All, I am using an inline enclosure with greek text in the HTML file, in order to show/hide parts of a Form. When running on Linux everything works fine. On Windows I get question marks (like ) where the greek characters should be - but only within the enclosure, the rest of the page is OK. On both machines I have Tomcat 7 installed. The Ajax debug console shows that the Ajax response includes UTF-8 encoding in the header, so I assume that some conversion happens before the text is sent to the browser. Does anyone have a hint on where to start looking for a solution? Thanks Elias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can AjaxFormSubmitBehavior skip validation on form field updating
I think that, if you move your validations away from the fields, you will be able to handle this situation and others very gracefully. I usually perform my validations on the buttons, themselves. It requires quite more typing, but gives maximum flexibility. Elias wicket_new_user wrote on 12/02/2013 06:59:11 PM: > wicket_new_user > 12/02/2013 06:59 PM > > Subject > > Can AjaxFormSubmitBehavior skip validation on form field updating > > Is it possible to skip the Validation when using the AjaxFormSubmitBehavior. > > > > I have a text field (AutoComplete) and selecting will update the > MultiListbox. There is a provision to remove the element from the List box. > When trying to add new element from the Textbox to Listbox > if AjaxFormSubmitBehavior is used, then Other field validations are > getting fired and resulting in error page/message. > > If AjaxFormComponentUpdatingBehavior is used, then the deleted element > is getting dispalyed, as it is not been deleted from the model. > > > Also tried using by turning off the defaultFormProcessing on > AjaxFormSubmitBehavior, but unable to get the required Converted > > Thanks in advance > WNU > > > > -- > View this message in context: http://apache-wicket. > 1842946.n4.nabble.com/Can-AjaxFormSubmitBehavior-skip-validation-on- > form-field-updating-tp4656278.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > 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: Problem with Wicket distribution
Thank you for all your efforts. Martijn Dashorst wrote on 14/01/2013 10:05:01 AM: > Martijn Dashorst > 14/01/2013 10:05 AM > > Please respond to > users@wicket.apache.org > > To > > users@wicket.apache.org, > > cc > > Subject > > Re: Problem with Wicket distribution > > This is due to a change in release architecture where we have to push > our releases through svnpubsub. We migrated our infrastructure, but > not the latest releases. I'll upload those now. > > Martijn >
Re: Problem with Wicket distribution
Thanks, I did, and then followed the links to the entire mirror list. The distribution is not there. Later, I read a hint in the developers' mailing list and it seems that Apache Infrastructure have changed the distribution procedure, so it may be a problem there. Fortunately, I found it in the archives -> http://archive.apache.org/dist/wicket/ Jeremy Thomerson wrote on 14/01/2013 06:03:08 AM: > Jeremy Thomerson > 14/01/2013 06:03 AM > > Please respond to > users@wicket.apache.org > > To > > "users@wicket.apache.org" , > > cc > > Subject > > Re: Problem with Wicket distribution > > Have you tried the links on this page? > > http://wicket.apache.org/start/download.html > > > On Sat, Jan 12, 2013 at 11:41 PM, wrote: > > > Hi all, > > > > I cannot find anything in the distribution servers' wicket folder, except > > the KEYS file. > > > > Only one mirror in Pakistan, which has not been updated for several days, > > still holds the wicket files. > > > > Has something gone wrong? > > > > Best Regards > > Elias > > > > > -- > Jeremy Thomerson > http://wickettraining.com > *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Problem with Wicket distribution
Hi all, I cannot find anything in the distribution servers' wicket folder, except the KEYS file. Only one mirror in Pakistan, which has not been updated for several days, still holds the wicket files. Has something gone wrong? Best Regards Elias
Problem with Wicket distribution
Hi all, I cannot find anything in the distribution servers' wicket folder, except the KEYS file. Only one mirror in Pakistan, which has not been updated for several days, still holds the wicket files. Has something gone wrong? Best Regards Elias