Custom PagingNavigation Back-Button -Problem

2011-07-14 Thread brazz
I wrote a custom PagingNavigation which renders page links in the form: [1-5...11-15 *16-20* 21-25...196-200]. The page size is adjustable by a DropDownChoice. Everything works fine until i hit the back-button and then click on one of the links (e.g. 11-15). What happens then is that in class

Autocomplete Text field

2011-07-14 Thread Wiliam Bacchi
Hi, it seems to me that autocomplete text field fires twice onchange event when you tab out of the field after selecting an item with arrows. It does not happen if you select the item pressing enter or clicking with the mouse. I read that this behaviour was present even for enter key and

Re: BookmarkableLink to download a CSV file

2011-07-14 Thread Martin Grigorov
see IMarkupResourceStreamProvider I recommend you to use a resource instead. You can inject the Spring bean with Injector.get().inject(this) in the constructor On Thu, Jul 14, 2011 at 1:18 AM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I want to have a link that when hit will

Re: Autocomplete Text field

2011-07-14 Thread Wiliam Bacchi
Il 14/07/2011 9.32, Wiliam Bacchi ha scritto: Hi, it seems to me that autocomplete text field fires twice onchange event when you tab out of the field after selecting an item with arrows. It does not happen if you select the item pressing enter or clicking with the mouse. I read that this

Re: Skip validation on nested form's form level validators

2011-07-14 Thread Martin Grigorov
Christian, Can you try the patch in https://issues.apache.org/jira/browse/WICKET-3899 ? On Mon, Jul 11, 2011 at 10:02 PM, Christian Huber hub...@butterbrot.org wrote: Hi, well i _could_ decouple the two forms but that would kinda break my usecase and also the layout due to the changed

Re: introducing wicket:for attribute

2011-07-14 Thread Erik van Oosten
Its not @literal that removes the linebreaks. If you combine it with pre it works. (No need to add code as well.) *pre{@literal * label wicket:for=name * span class=label-textName/span: * /label * input wicket:id=name type=text/ * }/pre * Regards, Erik. Op 13-07-11 17:55, Igor Vaynberg

Generate ajax link

2011-07-14 Thread Lurtz Nazgul
Hi all; I can generate normal links in to my dynamic menu lia href='?thePanel=com.test.PanelOne'/a/li ... I wonder if i can generate those links in ajax link format ? Thanks.

Re: Howto mark a FormComponent as invalid without having a feedbackmessage?

2011-07-14 Thread rebecca
Hello Dears, Regarding Matt's question from 2008 - Is there a way to mark a form component as invalid without using the error() method? Rebecca -- View this message in context:

Re: Howto mark a FormComponent as invalid without having a feedbackmessage?

2011-07-14 Thread Martin Grigorov
Looking at the code the answer is No. On Thu, Jul 14, 2011 at 1:29 PM, rebecca rivka.shis...@gmail.com wrote: Hello Dears, Regarding Matt's question from 2008 - Is there a way to mark a form component as invalid without using the error() method? Rebecca -- View this message in context:

Re: Howto mark a FormComponent as invalid without having a feedbackmessage?

2011-07-14 Thread rebecca
thanks Martin:-( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Howto-mark-a-FormComponent-as-invalid-without-having-a-feedbackmessage-tp1871821p3667171.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Howto mark a FormComponent as invalid without having a feedbackmessage?

2011-07-14 Thread Martin Grigorov
What is the use case ? On Thu, Jul 14, 2011 at 1:42 PM, rebecca rivka.shis...@gmail.com wrote: thanks Martin:-( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Howto-mark-a-FormComponent-as-invalid-without-having-a-feedbackmessage-tp1871821p3667171.html Sent

Re: Generate ajax link

2011-07-14 Thread Andrea Del Bene
Hi, you can use Loop component to generate a dynamic number of links. For example: HTML code: ol title=Menù class=main_menu li style=list-style: none; wicket:id=itemList a wicket:id=menuItem/a /li /ol Java code: ListAbstractLink linkList = ... Loop loop = new Loop(itemList,

IHeaderContributor of invisible Components

2011-07-14 Thread Benedikt Rothe
I have a problem with IHeaderContributor and invisible Components: A Panel MyPanel implements IHeaderContributor. The renderHead-Methods adds some JavaScript-References. When the page is rendered this panel is invisible. So these JavaScript-References are not loaded when the page is loaded.

Re: Generate ajax link

2011-07-14 Thread Lurtz Nazgul
I mean; generating ajax link format Instead of lia href='?thePanel=com.test.PanelOne'/a/li I want to generate ajax link on the fly Example : a onclick=var wcall=wicketAjaxGet('wicket/page?2-1.IBehaviorListener.0-c1--link',function() { }.bind(this),function() { }.bind(this), function()

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Mike Mander
Hello again, call me stupid, but i don't get it (ImageButton loading shared image resource). What i did so far is: Application.init() code String key = new CompressedResourceReference(WicketApplication.class, res/img/search_go.png).getSharedResourceKey();

Re: Generate ajax link

2011-07-14 Thread Martin Grigorov
See how AjaxLink generates its markup. On Thu, Jul 14, 2011 at 2:31 PM, Lurtz Nazgul lu...@ymail.com wrote: I mean; generating ajax link  format Instead of lia href='?thePanel=com.test.PanelOne'/a/li I want to generate ajax link on the fly Example : a onclick=var

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Martin Grigorov
That's why we have examples : http://www.wicket-library.com/wicket-examples/images/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?SourcesPage_class=org.apache.wicket.examples.images.Homesource=ImagesApplication.java If this doesn't help then do something like: WebComponent img

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Mike Mander
Thanks Martin, SharedResourceReference and your solution seems to be 1.5. I'm using 1.4.17. Is there something for 1.4.x? Mike That's why we have examples :

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Martin Grigorov
It should be the same. Just some minor naming changes. On Thu, Jul 14, 2011 at 3:06 PM, Mike Mander wicket-m...@gmx.de wrote: Thanks Martin, SharedResourceReference and your solution seems to be 1.5. I'm using 1.4.17. Is there something for 1.4.x? Mike That's why we have examples :

Re: IHeaderContributor of invisible Components

2011-07-14 Thread Rodrigo Heffner
When you say my javascript is not loaded, do you mean it's not added to the page or it's added but doesn't work? On 14 Jul 2011 12:21, Benedikt Rothe benedikt.ro...@qleo.de wrote: I have a problem with IHeaderContributor and invisible Components: A Panel MyPanel implements IHeaderContributor.

Re: Adding a javascript function to wicket

2011-07-14 Thread Pepijn de Geus
If you use WiQuery (which we do too, it's great), you can just let your component (Panel, WebMarkupContainer, Page) implement IWiQueryPlugin and implement statement(). On 13 jul 2011, at 20:01, Martin Grigorov wrote: Browse the sources at

RE: url for images from database

2011-07-14 Thread Miroslav F.
Still be lost :-( This code I have in AppStart class: mountSharedResource(/images/image1.jpg, new ResourceReference(Images.class, image1.jpg).getSharedResourceKey()); Now after reading recomended example still not idea how to replace new ResourceReference(... in above code snippet in a way in

Problem with SCRIPT Tag in Ajax-Response in Wicket 1.5 RC5.1

2011-07-14 Thread Sergiy Barlabanov
Hi, if a JavaScript script tag is added to AjaxRequestTarget (via JavaScriptUtils.writeJavaScript), it is not evaluated on Chrome browser. While debugging through wicket-ajax.js, it turns out, that replaceOuterHtmlSafari function is not called for Chrome, but the Gecko version gets executed

Re: Problem with SCRIPT Tag in Ajax-Response in Wicket 1.5 RC5.1

2011-07-14 Thread Martin Grigorov
Yes, this has been changed recently. Chrome behaves like Firefox (Gecko) in many other respects but apparently it fails here ... Please file a ticket with a quickstart. On Thu, Jul 14, 2011 at 5:41 PM, Sergiy Barlabanov cont...@sergiy-barlabanov.de wrote: Hi, if a JavaScript script tag is added

target.addComponent and impact

2011-07-14 Thread Brown, Berlin [GCG-PFS]
If you have an ajax event and then you call target.addComponent on another component or collection of other components. Are there issues with calling target.addComponent on components that aren't visible or maybe detached from the page? Or calling target.addComponent more than once on a

Can i include an external html fragment?

2011-07-14 Thread Mike Mander
Hi, i would like to provide a way for our designer to change the homepage layout outside of the web-app. But i'm not sure how to do it. Usecase: Wicket homepage contains a div-placeholder for the main-content. Designer uploads a html fragment with divbla/div to a file-server. In the HomePage

Re: target.addComponent and impact

2011-07-14 Thread Andrea Del Bene
Hi, If you have an ajax event and then you call target.addComponent on another component or collection of other components. What do you mean with another component? You should be able to add any component you want, except AbstractRepeater subclasses (ListView, RepeatingView, ecc...). These

Re: target.addComponent and impact

2011-07-14 Thread vineet semwal
in last case i think rendering will be once because the components are kept in map with markupid of component as key in ajaxrequesttarget. On Thu, Jul 14, 2011 at 9:11 PM, Andrea Del Bene adelb...@ciseonweb.it wrote: Hi, If you have an ajax event and then you call target.addComponent on

Re: Can i include an external html fragment?

2011-07-14 Thread Andrea Del Bene
Hi Mike, take a look at interfaces IMarkupResourceStreamProvider and IMarkupCacheKeyProvider. Using the first one you can implement method getMarkupResourceStream which returns an IResourceStream with your custom HTML. The second interface has a method called getCacheKey. You must override

Re: target.addComponent and impact

2011-07-14 Thread Andrea Del Bene
Right, I've looked at code and it uses an hashmap in last case i think rendering will be once because the components are kept in map with markupid of component as key in ajaxrequesttarget. On Thu, Jul 14, 2011 at 9:11 PM, Andrea Del Beneadelb...@ciseonweb.it wrote:

Re: introducing wicket:for attribute

2011-07-14 Thread Igor Vaynberg
sweet, i will give that a go in the future. thanks. -igor On Thu, Jul 14, 2011 at 3:05 AM, Erik van Oosten e.vanoos...@grons.nl wrote: Its not @literal that removes the linebreaks. If you combine it with pre it works. (No need to add code as well.) *pre{@literal * label wicket:for=name *

Re: Can i include an external html fragment?

2011-07-14 Thread Martin Grigorov
Also see org.apache.wicket.markup.html.include.Include On Thu, Jul 14, 2011 at 6:51 PM, Andrea Del Bene adelb...@ciseonweb.it wrote: Hi Mike, take a look at interfaces IMarkupResourceStreamProvider and IMarkupCacheKeyProvider. Using the first one you can implement method

RE: target.addComponent and impact

2011-07-14 Thread Brown, Berlin [GCG-PFS]
Let's say that I have a component in the hashmap that needs to get updated and let's that I call target.addComponent on some parent component, in that case will the child get updated twice. E.g. Target.addComponent(someChildComponent); Target.addComponent(someParentOfTheChild); In this case,

Re: url for images from database

2011-07-14 Thread Igor Vaynberg
look at the very bottom of that page -igor On Thu, Jul 14, 2011 at 6:50 AM, Miroslav F. mir...@seznam.cz wrote: Still be lost :-( This code I have in AppStart class: mountSharedResource(/images/image1.jpg, new ResourceReference(Images.class, image1.jpg).getSharedResourceKey()); Now

Re: target.addComponent and impact

2011-07-14 Thread Martin Grigorov
just once. the parent will be rendered On Thu, Jul 14, 2011 at 7:06 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Let's say that I have a component in the hashmap that needs to get updated and let's that I call target.addComponent on some parent component, in that case will the

RE: target.addComponent and impact

2011-07-14 Thread Brown, Berlin [GCG-PFS]
One more question. Is it is a hint to update this particular component? Or will wicket fully rerender the component the user whether it needs to get updated or not? -Original Message- From: Brown, Berlin [GCG-PFS] Sent: Thursday, July 14, 2011 12:06 PM To: 'users@wicket.apache.org'

Re: target.addComponent and impact

2011-07-14 Thread Martin Grigorov
You added the component so it has to be re-rendered. On Thu, Jul 14, 2011 at 7:18 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: One more question. Is it is a hint to update this particular component?  Or will wicket fully rerender the component the user whether it needs to get

Re: Resource auto-reload with the Quickstart project

2011-07-14 Thread Matt Brictson
Hmm. I would expect that your LoginPage would see changes reflected when you hit the browser refresh button. Sounds like a bug to me. Is it related to this one? https://issues.apache.org/jira/browse/WICKET-3891 On Jul 13, 2011, at 12:10 PM, Andrew Todd wrote: On Wed, Jul 13, 2011 at 2:40 PM,

getRelativePathPrefixToWicketHandler String index out of range

2011-07-14 Thread Jonathan Gray
please excuse me if this is a dupe - i posted to the general apache forum and then MOVED it to the users forum i wasn't sure if the post would go to the mailing list if it was moved rather than originally posted there...anyway: i have seen this error reported several times and i have seen

Re: Resource auto-reload with the Quickstart project

2011-07-14 Thread Andrew Todd
On Thu, Jul 14, 2011 at 1:22 PM, Matt Brictson m...@55minutes.com wrote: Hmm. I would expect that your LoginPage would see changes reflected when you hit the browser refresh button. Sounds like a bug to me. Is it related to this one? https://issues.apache.org/jira/browse/WICKET-3891 This

Re: Generate ajax link

2011-07-14 Thread Lurtz Nazgul
Thanks Martin; but it doesn't make sense to me, sorry. Wicket generates below code for a simple counter increment example. var wcall = wicketAjaxGet('?wicket:interface=:2:panel1:okla::IBehaviorListener:0:', function() { }.bind(this), function() { }.bind(this),

[Announce] Wicket Stuff Core 1.4.17.3 Released

2011-07-14 Thread Michael O'Cleirigh
Hello, Following just over 1 month from the 1.4.17.2 point release today I am pleased to announce the new 1.4.17.3 wicketstuff-core release.This is the third point release against the current stable wicket release of 1.4.17. The artifacts have been promoted and have synced into the