Re: How to set cache scope for mapped resources

2014-12-08 Thread Boris Goldowsky
The mapper maps a url path to a filesystem directory, so we can mount, say, /static/* to a directory of static files anywhere on our server. It sets cache duration and MIME type properly along the way. I¹m certainly open to better ways to accomplish this goal! Boris On 12/8/14, 5:07 PM

Re: Wicket BootstrapDateTimePicker.

2014-12-08 Thread Vignesh Palanisamy
Thanks Martin. For time being i will use that patch. While the WB released let me know. -Vignesh On Mon, Dec 8, 2014 at 9:12 PM, Martin Grigorov wrote: > Hi, > > Recently I needed the same functionality and I ended up integrating with > https://github.com/Eonasdan/bootstrap-datetimepicker/tre

Re: How to set cache scope for mapped resources

2014-12-08 Thread Martin Grigorov
Hi, What is the reason to go so low level with AbstractMapper and ResourceStreamRequestHandler ? You can mount a ResourceReference with WebApplication#mountResource(), and this ResRef#getResource() should return IResource/AbstractResource where you have much better control on the response headers.

How to set cache scope for mapped resources

2014-12-08 Thread Boris Goldowsky
I have a request mapper that extends AbstractMapper, and returns a ResourceStreamRequestHandler from mapRequest(). The resource is being send with a Cache-Control: private header, which is unfortunate for caching in this case; we want the resources to be publicly cacheable. How can I set the c

Re: FormComponentFeedbackBorder / missing message display / Bug or Feature?

2014-12-08 Thread Martin Grigorov
Now the question is more clear! Thanks! I don't see anything in FormComponentFeedbackBorder code that consumes the feedback message, i.e. marks it as rendered. Please create a quickstart and attach it to a ticket in JIRA and we will take a look. Martin Grigorov Wicket Training and Consulting https

Re: Can't Get IAuthorizationStrategy Working

2014-12-08 Thread Martin Grigorov
Hi, Not certain about 1.4.x but in 6.x if a parent component is disabled then all its children are disabled as well. For AbstractLink there is a special #isLinkEnabled() method which combined with Component#canCallListenerInterface(Method) can make the link enabled even if any of its parents is di

Can't Get IAuthorizationStrategy Working

2014-12-08 Thread Richard W. Adams
We have a use case which requires an enabled link inside a disabled form. The form being disabled is based on user's security role, but the link being enabled depends on the results returned from a separate database query. Thus, we might have a disabled form, but an enabled link, or vice versa.

Re: FormComponentFeedbackBorder / missing message display / Bug or Feature?

2014-12-08 Thread Patrick Davids
Yes, FormComponentFeedbackBorder itself just shows an asterisk. So, ok, my question was still unclear. ;-) Is it a feature or a bug, that a FormComponentFeedbackBorder surpresses the messages of its child formcomponent, which possibly could be shown by a FeedbackPanel somewhere else in the uppe

Re: turning off page versioning

2014-12-08 Thread ChambreNoire
ok but it has only started happening since I added the single-page-instance code... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/turning-off-page-versioning-tp4667631p4668679.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: turning off page versioning

2014-12-08 Thread Martin Grigorov
This could happen even in a normal Wicket application. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Dec 8, 2014 at 2:37 PM, ChambreNoire wrote: > Hmm it's no really working for me. Occassionally ajax links within the > single > page cause a StalePageExce

Re: turning off page versioning

2014-12-08 Thread ChambreNoire
Hmm it's no really working for me. Occassionally ajax links within the single page cause a StalePageException which results in a refresh but without the expected panel change normally caused by the link which is jarring.. Any ideas? CN -- View this message in context: http://apache-wicket.18429

Re: FormComponentFeedbackBorder / missing message display / Bug or Feature?

2014-12-08 Thread Martin Grigorov
Well, according to https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/html/form/validation/FormComponentFeedbackBorder.html this border is supposed to show only a red asterisk in case the form component is invalid. Nothing more. So it is by design. Mart

Re: FormComponentFeedbackBorder / missing message display / Bug or Feature?

2014-12-08 Thread Patrick Davids
I wrapped a formcomponent into a FormComponentFeedbackBorder to get an asterisk in case of errors. I am asking if this is a bug or a feature, because currently I am implementing a custom behavior, which adds an error message in a special-case to the component CustomBehavior.onConfigure(Compone

Re: BreadCrumbLink + wicket event

2014-12-08 Thread Martin Grigorov
Hi, See the source code of this demo: http://www.wicket-library.com/wicket-examples-6.0.x/events/wicket/bookmarkable/org.apache.wicket.examples.events.DecoupledAjaxUpdatePage It should be clearer then how to achieve it. If NOT then please ask more specific questions. Martin Grigorov Wicket Train

Re: FormComponentFeedbackBorder / missing message display / Bug or Feature?

2014-12-08 Thread Martin Grigorov
Hi, Please give more information. The question is not very clear. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Dec 8, 2014 at 12:06 PM, Patrick Davids < patrick.dav...@nubologic.com> wrote: > Hi all, > is it a correct behavior, a FormComponentFeedbackBor

Re: Wicket BootstrapDateTimePicker.

2014-12-08 Thread Martin Grigorov
Hi, Recently I needed the same functionality and I ended up integrating with https://github.com/Eonasdan/bootstrap-datetimepicker/tree/v4beta. Since it is beta version I decided to not include it in Wicket Bootstrap for now. You may find its code at https://github.com/apache/isis/tree/master/comp

FormComponentFeedbackBorder / missing message display / Bug or Feature?

2014-12-08 Thread Patrick Davids
Hi all, is it a correct behavior, a FormComponentFeedbackBorder (asterisks for form inputs) does not display a / the message in a feedbackpanel (if available somewhere)? kind regards Patrick - To unsubscribe, e-mail: users-un

BreadCrumbLink + wicket event

2014-12-08 Thread Arunachalam Sibisakkaravarthi
Hi All, Good evening, How to use wicket event on BreadCrumbLink? I want to display the panel using wicket event while click on the BreadCrumbLink. *Thanks And RegardsSibi.ArunachalammCruncher*