Re: Loading items in repeater the facebook/twiiter way

2011-08-31 Thread Hans Lesmeister 2
Hi, Maybe this http://code.google.com/p/jquery-images-ondemand/ and this http://api.jquery.com/scroll/ help - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loading-items-in-repeater-the-facebook-twiiter-way-tp3780809p378

Re: How to handle errors in RequestCycle.onEndRequest

2011-09-26 Thread Hans Lesmeister 2
Hi, maybe you can override WebRequestCycleProcessor.respond: but I did not try if that's too late as well - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-handle-errors-in-RequestCycle-onEndRequest-tp3824649p384624

Re: Jump to specific page of AjaxFallbackDefaultDataTable

2011-10-06 Thread Hans Lesmeister 2
DataTable.setCurrentPage(int) - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Jump-to-specific-page-of-AjaxFallbackDefaultDataTable-tp3878357p3878396.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: AjaxFormComponentUpdatingBehavior broken after invalid submit

2011-10-27 Thread Hans Lesmeister 2
Hi, did you already try a call to form.modelChanged() in onUpdate? - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-broken-after-invalid-submit-tp3945964p3946955.html Sent from the Users f

Re: IAjaxIndicatorAware/Busy Indicator Problems

2011-11-10 Thread Hans Lesmeister 2
Hi, you can add Javascript to the current AjaxRequestTarget in the onClose-Method of your Modal Window, i.e. like: AjaxRequestTarget.get().appendJavaScript(...) - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IAjaxIndi

Re: Dynamically choosing component to add

2011-11-29 Thread Hans Lesmeister 2
Hi, Thomas Götz wrote > > final TextField textField = new TextField("textField", new Model()); > textField.setVisible(false); > add(textField); > ... > Because textField is initially invisible, Don't forget to textField.setOutputMarkupPlaceholderTag(true); - -- Regards, Hans http://

Re: Event or Notice when a ListView's Model changes

2011-12-06 Thread Hans Lesmeister 2
Hi, hfriederichs wrote > > I'm trying to do this, to send an Event in the DataView's > onBeforeRender(), but now I encounter another issue. On the receiving > side of the Event, in the onEvent(Component component, IEvent event), I > need a > AjaxRequestTarget. Can I create an AjaxRequestTarge

Re: Wicket on Google App Engine

2012-01-04 Thread Hans Lesmeister 2
Hi Daniel, Daniel Watrous-2 wrote > > I tried putting in this: > getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); > GAE does not allow you to start additional threads and that's what setResourcePollFrequency(...) does I think - -- Regards, Hans http://cantaa.de -

Re: I want update value in second textfield when i type something in second Textfield

2012-03-12 Thread Hans Lesmeister 2
Hi, showCalculatorModel.setTxtIntrinsicValueCE(txtLtpPriceCE.getInput()); txtIntrinsicValueCE.modelChanged(); // < target.addComponent(txtIntrinsicValueCE); - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/I-want-upd

Re: Package Not Found

2012-03-12 Thread Hans Lesmeister 2
Hi, seems to me that some of the classes moved to org.apache.wicket.request.resource - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Package-Not-Found-tp4466108p4466328.html Sent from the Users forum mailing list archive a

Re: 1.5 Stared blind patterndateconverter

2012-04-16 Thread Hans Lesmeister 2
Hi, if I run your test, the result is just a space. If I change the Date-Pattern to "HH:mm", the test goes green May be you are in the wrong time-zone... :-) - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-Stared-blind

Re: Applying jQuery Effects (fadeIn, fadeOut) to Wicket 6 components issue.

2013-01-07 Thread Hans Lesmeister 2
Martin Grigorov-4 wrote > I.e. at the server side add "style='display:none'" to the Panel. Wicket JS > will replace > the old with the new one and then your fadeIn effect will show it. And with: panel.setVisible(false); panel.setOutputMarkupPlaceholderTag(true); the style-attribute is added for yo

Re: Applying jQuery Effects (fadeIn, fadeOut) to Wicket 6 components issue.

2013-01-08 Thread Hans Lesmeister 2
> Hans, like Martin said, this doesn't work, and I already tried it. When > you > use those options, it just renders the element tag with no contents. Yes, I realised that too. I am sorry if my answer caused you effort. > Thank you very much, guys! When you come to Brazil, the beer is on me :)

Re: setResponsePage weirdness

2011-02-02 Thread Hans Lesmeister 2
syg6 wrote: > > ... > setResponsePage(SecondPage.class) in FirstPage's constructor is called the > url remains: > > http://localhost:8080/myapp/first > > when I am actually now on SecondPage? But when I call > setResponsePage(ThirdPage.class) from SecondPageForm's onSubmit() > (SecondPage cont

Re: cleanup form values and feedback messages

2011-02-09 Thread Hans Lesmeister 2
Hi, hrbaer wrote: > > > ... > try { > pm.makePersistent( ent ); > modal.show( target ); > target.add(feedback); <=== I guess this was missing > } > > - > You need to add the feedback to the target on success as well Cheers Hans

Re: how do I get the selected entity of a table

2011-02-15 Thread Hans Lesmeister 2
hrbaer wrote: > > I'm trying to get the entity of the choosen row. > Can someone provide me how do achieve that? Thanks in advance! > protected void populateItem( ListItem item ) { final Entity entity = item.getModelObject(); // cast not needed

Re: how do I get the selected entity of a table

2011-02-15 Thread Hans Lesmeister 2
Hi, James Carman wrote: > > For safety, you probably want to get the entity from the item again, > right? > Why would that be safer? You mean in case the item's ModelObject has been replaced somewhere? Cheers Hans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com

Re: how do I get the selected entity of a table

2011-02-15 Thread Hans Lesmeister 2
James Carman wrote: > > No, I mean in case the model is a LDM and they would be getting a > "fresh" copy of the entity from the database, as opposed to a detached > one. > Thanks James, that's a good hint - -- Regards, Hans http://cantaa.de "Voetbal is heel erg simpel. Het moeilijkste a

Re: how do I get the selected entity of a table

2011-02-16 Thread Hans Lesmeister 2
hrbaer wrote: > > >... > protected void populateItem( ListItem item ) { > > final Entity e = item.getModelObject(); > item.add( new Label( "text", e.getName() ) ); e not null? > item.add( new Link( "Details_Link" ) { > >

Re: how to access component values within a dynamic table?

2011-02-17 Thread Hans Lesmeister 2
> > String htmlCodeInputfield = erzeugeEingabefeld( q ); > Label label = new Label( "Input", htmlCodeInputfield ); > label.setEscapeModelStrings( false ); > item.add( label ); > > Use a textfield instead of plain html. Bind it to a

Re: how to access component values within a dynamic table?

2011-02-18 Thread Hans Lesmeister 2
hrbaer wrote: > > In a fit of despair I tried to replace my ListView component with a > RepeatingView component to access either my "ListFragen" or > "Frage"/"Input" - unfortunatelly without success :( > If you use a RepeatingView you can add any Component to it (I think) so erzeugeEingabeFeld

Re: how to access component values within a dynamic table?

2011-02-22 Thread Hans Lesmeister 2
Not tested, but this is the way it should work (more or less...) public class MyBean { String question; String answer; // plus Getters and Setters... } public class Test extends WebPage { public Test() { add( new TestForm( "TestForm" ) ); } @SuppressWarnings("serial") public

Re: German umlauts in Wicket-Message Tag

2011-03-02 Thread Hans Lesmeister 2
MattyDE wrote: > > But we now realize that its not the "umlauts" which create problems. its > the ">" > > We was using but wicket interprets the first < inside the key-Attribute > as closing tag. This is a bug right? > Hi, I think it is generally good practice to not use special characters l

Re: IHeaderContributor problem - How to render the page css after all css styles from components

2011-03-02 Thread Hans Lesmeister 2
Poko Booth wrote: > > Can't you just use !important at page CSS definition to override what > the component defines as default? > "!important" is not recognized by all browsers (IE6 for instance) - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wic

Re: IHeaderContributor problem - How to render the page css after all css styles from components

2011-03-02 Thread Hans Lesmeister 2
Ernesto Reinaldo Barreiro-4 wrote: > > Is that really a stopper? > Well, that depends on the demands of the OP. IE6 is still used in many big companies (and because IE6 is buggy concerning !important, it can be (mis)used for nice CSS-hacks) But what if the !important-directive is already used

Re: Attribute Inheritance or Copying?

2011-03-03 Thread Hans Lesmeister 2
> I've to access the ComponentTag of my Panel but dont know how, except > iam in "onComponentTag". > Yes, in onComponentTag of the surrounding WebmarkupContainer, you can get and preserve the desired attributes and then remove them. In onComponentTag of the TextArea you add the previously

Re: Integrating jquery scripts with wicket

2011-03-03 Thread Hans Lesmeister 2
Maybe you can find something here: http://www.google.de/#q=wicket+jquery+integration&fp=1 - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-jquery-scripts-with-wicket-tp3332998p234.html Sent from the Users f

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Hans Lesmeister 2
+1 for making Page.onInitialize() non-final. Since 1.4.12 we have migrated a lot of code moving construction of the component hierarchies to onInitialize. We are really very happy with the way it is now in 1.4. +1 for clear documentation/Javadoc explaining proper use of onInitialize. (Developers

Re: update label using (Ajax)Link

2011-03-15 Thread Hans Lesmeister 2
Ernesto Reinaldo Barreiro-4 wrote: > > final Label vorname = new Label( "Vorname", new > PropertyModel(selectedEintrag, "vorname")); > This option will not work because: > selectedEintrag = item.getModelObject(); > The reference "selectedEintrag" is overwritten. - -- Regards, Hans

Re: update label using (Ajax)Link

2011-03-15 Thread Hans Lesmeister 2
Ernesto Reinaldo Barreiro-4 wrote: > > Yes you are right... but I think new PropertyModel(this, > "selectedEintrag.vorname") will work I guess. > I guess you are right. That will work, but it is not very elegant to put a reference to the page or panel into the model. He probably should not over

Re: fter 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2011-04-05 Thread Hans Lesmeister 2
You can take a look at DataTable.onPageChanged() - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/fter-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3423610p3428429.html Sent from the Users forum mailing list

Re: Drop

2011-06-21 Thread Hans Lesmeister 2
Hi, FeanorsCurse wrote: > > Instead of using the getName()-method it's using toString, despite of what > is set in the property model. As far as I understand, this is because > getName() returns a String and not a UserAccountEntity itself. > ... > Any advice? > You can use a IChoiceRenderer a

Re: Drop

2011-06-21 Thread Hans Lesmeister 2
FeanorsCurse wrote: > > However, I still feel like that is an unnecessary step; I don't see any > reason why the PropertyModel should not be enough on its own. > Please correct me if I am wrong: The model passed in tells the dropdown which object from the list should be the active one shown. If

RE: Fundamental forms/models issue

2013-02-18 Thread Hans Lesmeister 2
Hi Michael, Michael Chandler wrote > To conclude, my issues stemmed from not properly linking from page to > page. I did a lot of this: > > BookmarkablePageLink > > ("link", MyClass.class); > > Instead of this: > > Link > > ("link") { > public void onClick() { > setRespo

Re: Sending Data via Javascript and AJAX

2013-03-07 Thread Hans Lesmeister 2
https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sending-Data-via-Javascript-and-AJAX-tp4657008p4657065.html Sent from the Users forum mailing list archiv

Re: Free Wicket guide now available!

2013-03-22 Thread Hans Lesmeister 2
Hi Andrea, fantastic work! Thank you very much for sharing this. - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Free-Wicket-guide-now-available-tp4657407p4657435.html Sent from the Users forum mailing list archive at Na

Re: how to create a new Session

2013-03-27 Thread Hans Lesmeister 2
you might be looking for Session.replaceSession() - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-create-a-new-Session-tp4657553p4657574.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: anything like AjaxEditableCheck?

2013-04-04 Thread Hans Lesmeister 2
Hi, you can put the checkbox in a panel and add the panel to the Column. - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/anything-like-AjaxEditableCheck-tp4657730p4657732.html Sent from the Users forum mailing list arch

Re: Get the selected item in the DropDownChoice using Scala

2013-05-05 Thread Hans Lesmeister 2
Hi, you can pass a IModel to the constructor as well. This model will receive the currently selected Customer. - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-the-selected-item-in-the-DropDownChoice-using-Scala-tp465

Re: Wicket free guide updated!

2013-05-31 Thread Hans Lesmeister 2
Hi Andrea, great job. Thank you very much! - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-free-guide-updated-tp4659158p4659179.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Browser Back Button Question

2013-05-31 Thread Hans Lesmeister 2
Hi, dhongyt wrote > I'm wondering if its because of hibernate? Its trying to get the query of > the page to display but the query has been closed? You have serialized an object which contains properties proxied by Hibernate. On deserializing, the proxy tries to resolve with the now closed embed

html5-validation and Ajax Form Submit

2013-07-25 Thread Hans Lesmeister 2
Hi everybody, with HTML5 we now have this nice browser built in validation showing a bubble and a colored outline if a validation on a field does not pass. However if I add an AjaxSubmitLink to the form, then the html5-validation is no longer working. I have tried all kind of tricky things with p

Re: html5-validation and Ajax Form Submit

2013-07-25 Thread Hans Lesmeister 2
alidation. > And the improved version at: > https://github.com/code-troopers/wicket-jsr303-parsley > > > On Thu, Jul 25, 2013 at 10:22 AM, Hans Lesmeister 2 < > hans.lesmeister@ >> wrote: > >> Hi everybody, >> >> with HTML5 we now have this nice

Mounted Dynamic Resource: IllegalStateException

2013-08-16 Thread Hans Lesmeister 2
Hi all, To deliver resources (mainly images) dynamically, we have created a custom ResourceReference and mounted that to a path: As long as the image is there and an inputstream can be retrieved from our service, everything works fine. However if a stream is not available, we throw an AbortExce

Re: Mounted Dynamic Resource: IllegalStateException

2013-08-16 Thread Hans Lesmeister 2
Hi Martin, Martin Grigorov-4 wrote > Please create a ticket with a quickstart and we will take a look. > Thanks! Quickstart attached https://issues.apache.org/jira/browse/WICKET-5318 Thanks a lot - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wi

target.prependJavaScript and JQuery-Animation in IE8

2013-10-28 Thread Hans Lesmeister 2
Hi Everybody, To enable animation with JQuery on replacing a component with Ajax, we have followed the construct with the "|"-Symbol (pipe) in the Javascript that is added with target.prependJavaScript (see http://wicketinaction.com/2013/02/replace-components-with-animation => Thank you, Martin)

Re: target.prependJavaScript and JQuery-Animation in IE8

2013-10-28 Thread Hans Lesmeister 2
Hi Martin, Martin Grigorov-4 wrote > AFAIK it is not known. > The code looks pretty simple for IE8 to break. > Which version of jQuery do you use ? It is 1.8.3., the one that is shipped with Wicket 6.8. I will try with Wicket 6.11 which is shipped with jQuery 1.10.1 - -- Regards, Hans

Re: target.prependJavaScript and JQuery-Animation in IE8

2013-10-28 Thread Hans Lesmeister 2
Hans Lesmeister 2 wrote > Same behavior with jQuery 1.10.1. Okay, then I will create a ticket with a > quick start then. > Thanks for helping so far. https://issues.apache.org/jira/browse/WICKET-5397 - -- Regards, Hans http://cantaa.de -- View this message in conte

Re: target.prependJavaScript and JQuery-Animation in IE8

2013-10-28 Thread Hans Lesmeister 2
Martin Grigorov-4 wrote > AFAIK it is not known. > The code looks pretty simple for IE8 to break. > Which version of jQuery do you use ? Hans Lesmeister 2 wrote > It is 1.8.3., the one that is shipped with Wicket 6.8. > I will try with Wicket 6.11 which is shipped with jQue