Re: DownloadLink

2012-10-15 Thread Michael Jaruska
Yes, thank you, this example helps. On 15.10.2012 3:42, Dan Retzlaff wrote: This should get you going: new ResourceLinkVoid(pdf, new AbstractResource() { @Override protected ResourceResponse newResourceResponse(Attributes attributes) { final byte[] pdfBytes = getPdfBytes(); ResourceResponse r

Re: Highlight invalid field in form with wicket 6.x

2012-10-15 Thread Martin Grigorov
MarkupComponentBorder has been renamed to org.apache.wicket.markup.html.border.BorderBehavior for Wicket 1.5.0 On Mon, Oct 15, 2012 at 3:28 AM, delta458 delta...@hotmail.com wrote: Hi, I found something but thats for wicket 1.4 and does not work anymore. Because there is not

Re: Multiple AjaxLazyLoadingPanel's never load

2012-10-15 Thread Martin Grigorov
Hi, On Fri, Oct 12, 2012 at 5:43 PM, Michael Zhavzharov mzhavzha...@alee.ru wrote: Hi, Martin! Thank You for your reply. I realized, that it is not an option for me to use ALLP. I need to load different data - Labels, Link and Image in one lazy panel, also I should be able to interact with

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread Bert
Hi, are you looking for a generic way to highlight invalid components? If so, have a look at https://code.google.com/p/londonwicket/downloads/detail?name=LondonWicket-FormsWithFlair.pdf as an inspiration point. Depending on the wicket version, you might have to adopt the code a bit. Hope that

Re: Load table rows lazy when click browser scrollbar

2012-10-15 Thread vineet semwal
that AjaxPageScrollEventBehavior is equal to AjaxEventBehavior(onscroll){ public void onevent(AjaxRequestTarget target){ quickView.addItemsForNextPage(); } } so all the work is basically done by quickview ,the only useful thing that behavior provides is javascript which only lets server

Re: DownloadLink

2012-10-15 Thread Michael Jaruska
Ok, so this is my code (works, irrelevant striped): public class PageIndex extends PageBase{ ... ... ... final Integer fileDbIdTmp = (Integer) oneResult.get(fileId); final byte[] bytes = new String(content of the created file for download).getBytes(); ResourceLinkVoid downloadLink = new

Re: Multiple AjaxLazyLoadingPanel's never load

2012-10-15 Thread Michael Zhavzharov
you'll need to acquire the page lock, i.e. you will face the same problem. i.e. there is no way to load components in page, showing loading indicator and give user an opportunity to work with another elements on page? Thank you for your concern. I don't know were to load app, that's why I

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread Martin Grigorov
What exactly doesn't work ? On Mon, Oct 15, 2012 at 1:26 PM, delta458 delta...@hotmail.com wrote: Yes I tried it. But its not working with the wicket 6.0 version... As a newbie its hard to adopt for me, where can I see the new changes? or what I should change? -- View this message in

Re: Multiple AjaxLazyLoadingPanel's never load

2012-10-15 Thread Martin Grigorov
Hi, On Mon, Oct 15, 2012 at 11:50 AM, Michael Zhavzharov mzhavzha...@alee.ru wrote: you'll need to acquire the page lock, i.e. you will face the same problem. i.e. there is no way to load components in page, showing loading indicator and give user an opportunity to work with another elements

Re: Multiple AjaxLazyLoadingPanel's never load

2012-10-15 Thread Martin Grigorov
On Mon, Oct 15, 2012 at 2:56 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Mon, Oct 15, 2012 at 11:50 AM, Michael Zhavzharov mzhavzha...@alee.ru wrote: you'll need to acquire the page lock, i.e. you will face the same problem. i.e. there is no way to load components in page, showing

Re: Multiple AjaxLazyLoadingPanel's never load

2012-10-15 Thread Michael Zhavzharov
Thank You very much, Martin! I am ashamed that I did not solve this problem by myself. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-AjaxLazyLoadPanel-s-never-load-tp4652907p4652975.html Sent from the Users forum mailing list archive at Nabble.com.

Toggle AjaxEditableLabel from other component?

2012-10-15 Thread Ondrej Zizka
Hi all, I'd like to toggle AjaxEditableLabel into edit mode and back based on user's interaction with other components. How can I do that? Also, it seems that AEL switches the representing element between span and input. I would rather have it an input which only changes styles and gets

Thread safety of various Wicket classes?

2012-10-15 Thread Ondrej Zizka
Hi all, for repeaters, I didn't like adding a new validators, attribute modifiers etc for each single row. So I create just one and pass the reference. 1) Is it ok to have just one at component instance level? 2) Is it ok to make it a static final instance at app level? And about thread safety

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread delta458
I used the ShinyFormVisitor principle as described in the pdf: and I get following errors(in bold): public class ShinyFormVisitor implements IVisitor, Serializable { Set visited = new HashSet(); public Object component(Component c) { if (!visited.contains(c)) {

Re: Toggle AjaxEditableLabel from other component?

2012-10-15 Thread Nick Pratt
Just use a regular TextField and toggle its enabled status in the Ajax callback handler. Be sure to refresh the element (target.add( yourTextComponent ) ); or the containing form if you have multiple components to toggle. For custom bindings, take a look at AbstractDefaultAjaxBehavior and its

AbstractTransformerBehavior in ajax target

2012-10-15 Thread Frederico Rodrigues
Hi, i have put AbstractTransformerBehavior to component inside form i want change output to show error message for this component, but when call method transform gives me the error: Message: Error while transforming the output of component: [DropDownChoice [Component id = type]] Root

Re: AbstractTransformerBehavior in ajax target

2012-10-15 Thread Martin Grigorov
Hi, Do you override org.apache.wicket.markup.transformer.AbstractTransformerBehavior#beforeRender() ? This method setup the BufferedWebResponse and later #afterRender() restores the original. Make sure you call super.beforeRender(). On Mon, Oct 15, 2012 at 5:41 PM, Frederico Rodrigues

Re: AbstractTransformerBehavior in ajax target

2012-10-15 Thread Frederico Rodrigues
Yes i have: public class ValidationStyleBehavior extends AbstractTransformerBehavior { @Override public void onComponentTag(Component component, ComponentTag tag) { FormComponent c=(FormComponent)component; if(!c.isValid()) {

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread Martin Grigorov
On Mon, Oct 15, 2012 at 4:58 PM, delta458 delta...@hotmail.com wrote: I used the ShinyFormVisitor principle as described in the pdf: and I get following errors(in bold): public class ShinyFormVisitor implements IVisitor, Serializable { Set visited = new HashSet(); public Object

Re: AbstractTransformerBehavior in ajax target

2012-10-15 Thread Martin Grigorov
Does it still fail ? Your #beforeRender() does nothing, so you can remove it. On Mon, Oct 15, 2012 at 6:04 PM, Frederico Rodrigues frederico_rodrig...@ano.pt wrote: Yes i have: public class ValidationStyleBehavior extends AbstractTransformerBehavior { @Override public void

Semicolons in URL-Parameters

2012-10-15 Thread Arne
I would like to know what the specification for semicolons in wicket URLs is. May they be used and to what end? I have for example these URLs (using wicket 1.5.8): http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html http://localhost:8080/dor/abc_1234:56%3B023:456_def_78%3B90.html

Re: AbstractTransformerBehavior in ajax target

2012-10-15 Thread Frederico Rodrigues
i have changed AbstractTransformerBehavior to behavior and works. now i use #beforeRender() before #transform for implement my validation code transform On 15-10-2012 16:09, Martin Grigorov wrote: Does it still fail ? Your #beforeRender() does nothing, so you can remove it. On Mon, Oct

Re: Wicket + Guice + unittests

2012-10-15 Thread Daniel Watrous
Dan, Thanks for all your help. I finally worked through all the details and have it working. Here's my write up: http://software.danielwatrous.com/wicket-guice-including-unittests/ The last bit I needed clarification on was how to pass parameters to the WicketFilter. I think the integration

Re: Showing label while processing request

2012-10-15 Thread Ernesto Reinaldo Barreiro
See IAjaxIndicatorAware On Mon, Oct 15, 2012 at 6:06 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi I want to show a label like Processing Do not click submit button again. when AjaxSubmitLink is clicked. AjaxSubmitLink processes large volume of data, and is slow, and clicking the

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread delta458
Alright, I have something like this now: Problems/Errors are *bold* * //Here is a problem with the class: it says: ShinyFormVisitor is not abstract and does not override abstract method component(Object,IVisit) in IVisitor* public class *ShinyFormVisitor* implements IVisitor, Serializable {

Re: Load table rows lazy when click browser scrollbar

2012-10-15 Thread Martin Grigorov
Hi, quickview6 is for Wicket 6. https://github.com/vineetsemwal/quickview/tree/wicket-quickview-1.5.x is for Wicket 1.5.x On Tue, Oct 16, 2012 at 4:05 AM, steven.li steven...@skyworthglobal.com wrote: do you have a sample how to create the decorator in 1.5 ? I tried to run the quickview6.0 in