Re: validation and #updateModel

2010-07-21 Thread Ray Weidner
I haven't done that before, so I'll have to figure out how to do it. Thanks for the adviceI'll look into doing that, because I have seen this recommendation made to others, so I should probably learn. However, in the meantime, I think I may have a theory as to why this is happening. When

Re: OnChangeAjaxBehavior() - problem with id

2010-07-21 Thread Romeo Sheshi
hi you can try in this way setting item.getModelObject() as final final StandardTekst st = item.getModelObject(); and in the sva button you have to save the ListTekst final ListView list = new ListView(stListing, ListTekst) { @Override protected void populateItem(final ListItemStandardTekst

Re: new feature in trunk and branch: Component#onConfigure()

2010-07-21 Thread Johan Compagner
can we now deprecate protected boolean callOnBeforeRenderIfNotVisible() ?? because you could do it now in onConfigure right? I hate multiply things do do the same thing :( On Wed, Jul 21, 2010 at 07:05, Igor Vaynberg igor.vaynb...@gmail.com wrote:  protected boolean

Re: new feature in trunk and branch: Component#onConfigure()

2010-07-21 Thread Igor Vaynberg
its already deprecated -igor On Tue, Jul 20, 2010 at 11:46 PM, Johan Compagner jcompag...@gmail.com wrote: can we now deprecate  protected boolean callOnBeforeRenderIfNotVisible() ?? because you could do it now in onConfigure right? I hate multiply things do do the same thing :( On Wed,

Re: validation and #updateModel

2010-07-21 Thread Ray Weidner
Update: I was able to confirm my theory below. It was specifically MultiFileUploadField's validation of file size via Form#setMaxSize that was causing the problem. Again, I question the value of this method if this is the result. It sounds like you have to put attachment uploading in its own

Re: new feature in trunk and branch: Component#onConfigure()

2010-07-21 Thread vineet semwal
very nice feature, thank you !! On Wed, Jul 21, 2010 at 10:35 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: another new callback added to 1.4/trunk that is aimed at making life easier when managing component states such as visibility, enabled, etc. /** * Called once per

Re: new feature in trunk and branch: Component#onConfigure()

2010-07-21 Thread Erik van Oosten
Excellent! Op 21-07-10 07:05, Igor Vaynberg wrote: another new callback added to 1.4/trunk that is aimed at making life easier when managing component states such as visibility, enabled, etc. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/

dateField pattern with no separator

2010-07-21 Thread rasheed
hello, i've a problem when formatting dateField value to pattern ddMM , for example for 01/07/2010 it shows 172010 instaed of 01072010. NB : it works well with separator. this is my source code : protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel){

FW: Accessing transport within wicketGlobalFailureHandler

2010-07-21 Thread thorbjoern
I am searching for something similar for my current project. Unfortunately no answers til now? There must however be a better solution, or not? Any help would be appreciated. Thorbjørn -Original Message- From: Gast, Thorsten [mailto:thorsten.g...@wirecard.com] Sent: Wednesday, July

Re: Welcome Martin Grigorov as a core team member

2010-07-21 Thread Laurentiu Trica
Congratulations Martin! Keep up the good work! On Mon, Jul 19, 2010 at 7:58 PM, Jeremy Thomerson jer...@wickettraining.com wrote: The Wicket team is happy to announce that Martin Grigorov was invited to join the Wicket team as a committer and PMC member, and he accepted! Martin's

Additional attributes to ajax events

2010-07-21 Thread Brown, Berlin [GCG-PFS]
With the onblur ajax calls, is it possible to add my own javascript . final AjaxFormComponentUpdatingBehavior blurText = new AjaxFormComponentUpdatingBehavior(onblur) { @Override protected void onUpdate(AjaxRequestTarget target) { checkPageNextLink(target); }

AjaxPagingNavigation change style

2010-07-21 Thread Ivoneta
Hello everyone. I need to change the wicket navigator style. I read in previous posts the solution to this so I created my own subclass AjaxPagingNavigatorModified: public class AjaxPagingNavigatorModified extends AjaxPagingNavigator{ public AjaxPagingNavigatorModified(String id,

Size of ListView

2010-07-21 Thread Danny van Bruggen
Hello all, We're developing a non-Ajax application that displays a bunch of big tables - about five columns, 300 rows. Since session size was increasing a lot, we looked into the cause of it, and (after making everything detachable and switching to PropertyListModel) found out that the ListItems

[wicketstuff-push] NPE when CometdService.initBayeux()

2010-07-21 Thread smallufo
Hi , I am trying Wicketstuff-push with a small chat program , but encounter this problem : org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = sayForm]] threw an

Clean URLs without /?wicket:interface=:0:::: stuff - is it possible?

2010-07-21 Thread Laurentiu Trica
Hello, I'm rather new to wicket but I'm amazed about it's power. I still have a bothering question: is it possible to make the website with clean URLs? I mean I want to have the first page like /welcome, the about page like /about and somehow to get rid of the /?wicket:interface=:0 stuff -

Why is Component.setDefaultModelObject() checking for equality before setting ?

2010-07-21 Thread Joseph Pachod
hi I was surprised to see, in Component.setDefaultModelObject(), the following code: // Check whether this will result in an actual change if (!getModelComparator().compare(this, object)) { modelChanging(); model.setObject(object);

Re: Clean URLs without /?wicket:interface=:0:::: stuff - is it possible?

2010-07-21 Thread MZemeck
https://cwiki.apache.org/WICKET/url-coding-strategies.html Laurentiu Trica laurentiu.tr...@finalfolder.biz 07/21/2010 11:24 AM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Clean URLs without /?wicket:interface=:0 stuff - is it possible? Hello,

RE: Clean URLs without /?wicket:interface=:0:::: stuff - is it possible?

2010-07-21 Thread Jeffrey Schneller
Look into page mounting, BookmarkablePageLink mount(new BookmarkablePageRequestTargetUrlCodingStrategy(nicename, your.package.PageName.class, null)); BookmarkablePageLink nicenameLink = new BookmarkablePageLink(nicename_link, your.package.PageName.class); -Original Message- From:

Re: Why is Component.setDefaultModelObject() checking for equality before setting ?

2010-07-21 Thread Igor Vaynberg
the added value is that if wicket detects that the set is a noop because the objects are the same it doesnt need to create a new version of the page. -igor On Wed, Jul 21, 2010 at 8:25 AM, Joseph Pachod j...@thomas-daily.de wrote: hi I was surprised to see, in

Re: Size of ListView

2010-07-21 Thread Igor Vaynberg
if the data is strictly read-only and does not contain any links you can try removing the list items in afterrender() -igor On Wed, Jul 21, 2010 at 7:50 AM, Danny van Bruggen tsuih...@gmail.com wrote: Hello all, We're developing a non-Ajax application that displays a bunch of big tables -

Lambdas in Java Preview - Part 5: Apache Wicket

2010-07-21 Thread robert.mcguinness
very cool: http://stronglytypedblog.blogspot.com/2010/07/lambdas-in-java-preview-part-5-apache.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lambdas-in-Java-Preview-Part-5-Apache-Wicket-tp2297512p2297512.html Sent from the Wicket - User mailing list archive

Re: Additional attributes to ajax events

2010-07-21 Thread Pedro Santos
You can override the getAjaxCallDecorator method from AjaxFormComponentUpdatingBehavior and return an IAjaxCallDecorator that append your custom javascript On Wed, Jul 21, 2010 at 10:26 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: With the onblur ajax calls, is it possible to

Animated page switch possible?

2010-07-21 Thread Per Newgro
Hi *, has someone implemented an animation while switching pages with setResponsePage? I would like to use effects like scriptaculous.Effect.Grow or Shrink while switching pages. Cheers Per - To unsubscribe, e-mail:

Re: Animated page switch possible?

2010-07-21 Thread Martin Makundi
Have you asked your users if they like it? ** Martin 2010/7/21 Per Newgro per.new...@gmx.ch: Hi *, has someone implemented an animation while switching pages with setResponsePage? I would like to use effects like scriptaculous.Effect.Grow or Shrink while switching pages. Cheers Per

Re: Animated page switch possible?

2010-07-21 Thread Martin Makundi
Just do it with static html. After few minutes of heavy use they will probably decide otherwise. ** Martin 2010/7/21 Per Newgro per.new...@gmx.ch: They would like to see it in action. Then they decide. Per - To

Re: Animated page switch possible?

2010-07-21 Thread Per Newgro
Ok thats a point. Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Animated page switch possible?

2010-07-21 Thread James Carman
If not, hit them with this... These are not the page switching animations you're looking for. Move along. On Wed, Jul 21, 2010 at 3:38 PM, Per Newgro per.new...@gmx.ch wrote: Ok thats a point. Thanks Per - To

RE: Additional attributes to ajax events

2010-07-21 Thread Brown, Berlin [GCG-PFS]
Is it possible to add the javascript function in the markup and somehow copy that value and append to the ajax onblur. E.g. This is in my markup : onblur=alert('update') Based on what you said, it looks like you are suggesting adding the javascript method in the Java code. -Original

Re: Additional attributes to ajax events

2010-07-21 Thread Pedro Santos
Hi Brown, as you are using an behavior that changes the value of the onblur tag attribute from the java code, you need to customize the javascript on your java code also. If you add some javascript on the tag attribute, and then add some behavior that change that tag attribute, you will lose your

Re: Size of ListView

2010-07-21 Thread Vincent Lussenburg
I remember trying that, but getting slapped by wicket for trying to change the component tree after rendering.. Or am I missing something? We'll doublecheck it tomorrow. Groet, Vincent On Jul 21, 2010, at 18:37, Igor Vaynberg igor.vaynb...@gmail.com wrote: if the data is strictly read-only

Re: AjaxPagingNavigation change style

2010-07-21 Thread Ivoneta
ohh I see the problem. I used a markup for AjaxPagingNavigator, but it doesn't have one. The markup is for PagingNavigator. I need to use AjaxPagingNavigator, so I implemented my own class MyAjaxPagingNavigator - copying exactly the same AjaxPagingNavigator code - and then I create a subclass

Re: Animated page switch possible?

2010-07-21 Thread 7zark7
Folks I think there is a valid usage here for mobile device apps which use animations between panels. I've run into this myself. Granted a webapp is not native, but some clients do desire a close to native experience and this is a nice touch. Sent from my iPod On Jul 21, 2010, at 12:48 PM,

[announce] wicketstuff-core 1.4.9.2 released

2010-07-21 Thread Michael O'Cleirigh
Hello, I've staged and promoted a new wicketstuff-core version 1.4.9.2 and it is available through maven central now. The artifacts can be retrieved like this: dependency groupIdorg.wicketstuff/groupId artifactIddatatable-autocomplete/artifactId version1.4.9.2/version /dependency The

Line breaks and label

2010-07-21 Thread Nii Amon Dsane
Hello, I have a label that's displayed on a page. The label displays but with a linebreak and this breaks the sentence that I am writing. How do I get rid of the line break after the label? My code is below (the problematic label is svcName): List list = getServices(); ListView listview = new

Re: TextArea StringValidator and DateValidator

2010-07-21 Thread Nivedan Nadaraj
Hi All This is related to validating two types of Form components with Wicket 1.4.9 1.Validating a TextArea using the StringValidator to check for a min and max length. studyDescriptionTxtArea.add(StringValidator.lengthBetween(1, 255)); When I tested with a text content that triggers this

Re: AjaxPagingNavigation change style

2010-07-21 Thread Fernando Wermus
Ivonetta, If you wanna change the styles, you can also add an id attribute to AjaxPaginavigator and use style css in the way: #myPageN { your style } in this way you would not have to overwrite the markup. It is easier. On Wed, Jul 21, 2010 at 5:50 PM, Ivoneta ietaraz...@gmail.com