AW: Wicketstuff REST-Annotations: error handling impossible?

2015-02-25 Thread Hans Lesmeister
improvements :) Hello, have missed this useful component somehow Is there any way to get wsdl? and wadl? On Tue, Feb 24, 2015 at 4:20 PM, Hans Lesmeister hans.lesmeis...@lessy-software.de wrote: Hi Andrea, thank you for your quick response. Great to hear that the change

AW: Wicketstuff REST-Annotations: error handling impossible?

2015-02-24 Thread Hans Lesmeister
Hi Andrea, thank you for your quick response. Great to hear that the change will be committed :-) Regards, Hans -Ursprüngliche Nachricht- Von: andrea del bene [mailto:an.delb...@gmail.com] Gesendet: Dienstag, 24. Februar 2015 11:02 An: users@wicket.apache.org Betreff: Re: Wicketstuff

Wicketstuff REST-Annotations: error handling impossible?

2015-02-24 Thread Hans Lesmeister
Hi everybody, We are using the Wicketstuff REST-Annotations and we are very happy with it. Thank you very much :-) We have a small thingy however for which I would like to propose a minor change in the code. It is about the fact that it is very hard, if not impossible, to customize error

Wicketstuff Restannotations AbortWithHttpErrorCodeException always results in 500 Internal Server Error

2015-01-28 Thread Hans Lesmeister
Hi, We use the great rest-annotation from wicketstuff. One thing that bothers is if the AbortWithHttpErrorCodeException with a specific code (404, 402, etc) is thrown by the mapped method, those error codes do not make it to the calling client. The client always seems to get a 500. I debugged

AW: Wicketstuff Restannotations AbortWithHttpErrorCodeException always results in 500 Internal Server Error

2015-01-28 Thread Hans Lesmeister
AbortWithHttpErrorCodeException is part of Wicket core, not something meant to be used in rest-annotations. Hope this helps, Warren Bell On Jan 28, 2015, at 7:58 AM, Hans Lesmeister hans.lesmeis...@lessy-software.de wrote: Hi, We use the great rest-annotation from wicketstuff. One thing that bothers

AW: passing parameters to wicket panel

2015-01-08 Thread Hans Lesmeister
Hi, You can pass the parameters to the panel via the panel's constructor. You can also access the pageparameters in the panel with panel.getPage ().getPageParameters () Regards Hans Ursprüngliche Nachricht Von: K kondetiudayki...@gmail.com Datum:08.01.2015 14:38

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 context: http://apache

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 jQuery 1.10.1 Same behavior

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

AW: Mounted Dynamic Resource: IllegalStateException

2013-08-16 Thread Hans Lesmeister
Seems the code didn't make it: Hi all, To deliver resources (mainly images) dynamically, we have created a custom ResourceReference and mounted that to a path: // in our Application.init(): mountResource(assets/${path}/${name}, new CustomResourceReference()); // in

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:

AW: Mounted Dynamic Resource: IllegalStateException

2013-08-16 Thread Hans Lesmeister
Sorry, I had attached the WAR-file to the ticket. Now the ZIP-file is attached to the ticket. -Ursprüngliche Nachricht- Von: Hans Lesmeister 2 [mailto:hans.lesmeis...@lessy-software.de] Gesendet: Freitag, 16. August 2013 14:07 An: users@wicket.apache.org Betreff: Re: Mounted Dynamic

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

Re: html5-validation and Ajax Form Submit

2013-07-25 Thread Hans Lesmeister 2
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 browser built in validation showing a bubble and a colored outline if a validation on a field does not pass

AW: html5-validation and Ajax Form Submit

2013-07-25 Thread Hans Lesmeister
/mycompany/HomePage.java#L71 Maybe you need to do something similar. On Thu, Jul 25, 2013 at 4:04 PM, Hans Lesmeister 2 hans.lesmeis...@lessy-software.de wrote: Hi Martin, thank you for the feedback. What I really mean is the nativ html5-validation. If an input-field has the required

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

Re: Get the selected item in the DropDownChoice using Scala

2013-05-06 Thread Hans Lesmeister 2
Hi, you can pass a IModelCustomer to the constructor as well. This model will receive the currently selected Customer. - -- Regards, Hans http://cantaa.de -- View this message in context:

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

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: 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

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

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 String (link, MyClass.class); Instead of this: Link String (link) { public void onClick() {

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: 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 you by

AW: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
Hi, panel.getPage() gives you the current page which you can reload i.e. with setResponsePage() Cheers Hans -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 07:54 An: users@wicket.apache.org Betreff: How to reload a

Re: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
Please post your code -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 08:20 An: users@wicket.apache.org Betreff: Re: AW: How to reload a Wicket-page from Wicket-panel. Hi Hans, I have already tried this, but it doesn't

Re: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
I used this.getPage() in SignInPanel's constructor In the constructor, the page is not yet set (See onInitialize and onConfigure) -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 08:20 An: users@wicket.apache.org Betreff:

Re: how to debug MarkupNotFoundException

2012-05-16 Thread Hans Lesmeister
Hi, Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried As Wicket suggests: Please enable debug messages and check the console output. You will see a list of files Wicket is looking up which *might* lead you to the cause of your problem Cheers

AW: how to debug MarkupNotFoundException

2012-05-14 Thread Hans Lesmeister
Hi, - do you have an HTML file with the same name as Panel-Class? (like MyPanel.java and MyPanel.html - case sensitiv). - Is the HTML-file in the same package? - Is it copied to the class-path after compiling? - there is a markup-setting which you can set to get more info on your console about

AW: AbstractAjaxBehavior and ModalWindow

2012-04-18 Thread Hans Lesmeister
Hi, if you are inside an Ajax-Request you can simply do AjaxRequestTarget.get() cheers Hans -Ursprüngliche Nachricht- Von: Brian Mulholland [mailto:blmulholl...@gmail.com] Gesendet: Mittwoch, 18. April 2012 18:34 An: users@wicket.apache.org Betreff: AbstractAjaxBehavior and

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:

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:

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

Re: Very simple Wicket test to verify panel type...

2012-02-09 Thread Hans Lesmeister
Hi, panelid instead of :panelid? You can dump the Component-Tree to the console with tester.dumpXXX Am 09.02.12 21:59 schrieb Bjørn Grønbæk unter bjorn.gronb...@endomondo.com: Hi, I'm just starting out with Wicket and WicketTester... I have a page that adds one of several panels,

Re: wizard starting background task

2012-02-08 Thread Hans Lesmeister
Hi, 1) I start the background task in a lazy load panel, but haven't figured out yet how to display a progress bar while the lazy load is executing. Take a look at wicket-progressbar from Wicketstuff for background processing and showing a progressbar. Cheers Hans

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: 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 AjaxRequestTarget

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

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:

Re: Toggling Web markup container visibility

2011-10-30 Thread Hans Lesmeister
Hi, You should setOutputMaarkupPlaceholder to true (sorry probably not exactly the correct methode name but very similar...) Tip: do not override isVisible but override onConfigure and then call setvisible(...) in there Cheers Hans Am 30.10.11 21:14 schrieb Josh Kamau unter

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

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: 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:

Re: Apache Wicket releases Wicket 1.5

2011-09-08 Thread Hans Lesmeister
Congratulations! Thank you for this great Framework. Martijn Dashorst dasho...@apache.org schrieb: The Apache Wicket team is proud to announce the immediate availability of the newest release of their component oriented open source Java web framework. Apache Wicket 1.5 has been in development

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:

Re: Cache Wicket Pages rather than Construct New Objects

2011-08-18 Thread Hans Lesmeister
The link's action is to setResponsePage(MyPage.class), but that creates a new object. Suppose we were keeping all our Page objects in a Session. Is there a way to setResponsePage() to an existing Page instance? You can replace or extend the DefaultPageFactory (IPageFactory) Regards Hans

Re: Handling futures

2011-07-24 Thread Hans Lesmeister
Did you already take a look at wicketstuff-progressbar? Regards Hans Am 23.07.11 17:02 schrieb Bertrand Guay-Paquet unter ber...@step.polymtl.ca: I haven't actually done it yet, but the 3 steps you list are what I have in mind. After these, I plan to use a javascript timer that polls the

Re: Forward to Bookmarkable

2011-07-21 Thread Hans Lesmeister
You can setResponePage or throw one of the RestartResponse*-Exceptions Regards Hans Am 21.07.11 11:19 schrieb Lurtz Nazgul unter lu...@ymail.com: I also tried WebRequestCycle cycle = (WebRequestCycle) RequestCycle.get(); ServletRequest httpRequest =

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 and

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: 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: flexible authentication

2011-03-29 Thread Hans Lesmeister
Take a look at IAuthorizationStrategy and ist implementations. It is extremely easy to create your own implementation and make it more dynamic. The existing implementations can be used as starting point. Cheers Hans Am 29.03.11 17:51 schrieb hrbaer unter herber.m...@gmail.com: it's not about

Re: how to populate SortableDataProvider

2011-03-22 Thread Hans Lesmeister
Hi, shouldn't the provider implement a method count() which gives the total number of records? Regards Hans Am 22.03.2011 um 19:50 schrieb sonoerin humblec...@yahoo.com: Hello everyone, So I feel there is something I am overlooking in all my work on this. I have a Wicket

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 overwrite

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: 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+integrationfp=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

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 like Umlauts

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:

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: 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: how to access component values within a dynamic table?

2011-02-21 Thread Hans Lesmeister
As already mentioned before: you don't have to care about it. Wicket does. The only thing you do is setting up the property models. In onSubmit you read the model resp the original list. The data entered by the user will be there. Try it! Am 21.02.2011 um 09:00 schrieb hrbaer

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(..) could

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 dynamic

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

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

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( ListItemEntity 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:

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 aan

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 -- View

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 contains

Re: Best practice on i18n

2011-01-30 Thread Hans Lesmeister
The only relevant technical point here is Inheritance. If Component A inherits Component B, then the properties would have to be repeated in the property file corresponding to the inherited Component as i don't think properties follow inheritance rules (imo). Component B inherits the

Re: Best practice on i18n

2011-01-29 Thread Hans Lesmeister
Hi, After some trying we found a good practice is: - Self contained independant components have their own resource file - a page has its own file which also contains the keys for the panels on that page (as long as those panels are not being reused on other pages and are in the same package,

Re: What already redirecting error?

2011-01-13 Thread Hans Lesmeister
I think Form.replace() is your friend Cheers Hans Am 13.01.2011 um 20:17 schrieb Arjun Dhar dhar...@yahoo.com: Hi, I have a very very Dynamic Form. In the public void onSubmit() {...}, due to some Change in a Drop Down the entire Form changes. To keep it simple I just decided to

Re: Localized mount points for BookmarkablePages?

2010-12-23 Thread Hans Lesmeister
Hi, you van pass a list with alternates to the mount-annotation. Same can be done on mounting programmatically. Regards Hans Am 23.12.2010 um 12:29 schrieb Thomas Götz t...@richmountain.de: Hi, is it possible to have localized mount points for BookmarkablePages? Example: I have a

Re: Hellp for URL Mounting Strategy

2010-12-19 Thread Hans Lesmeister
Hi, I want to that: the ArticleFeedListPage must be served when url is /article/list the ArticleViewPage must be served when url is /article/view for the tagcloud, the url must be /article/tag/java You have 3 Pages and mount each one to a different URL: @MountPath(path = /article/tag/java)

Re: Component wiring mess in 'HomePage'

2010-12-08 Thread Hans Lesmeister
Hi, Maybe consider something like this: interface ClickController { void click(); } class YourPage extends WebPage { protected void onInitialize() { ClickController clickController = new ClickController() { void click() { doSomething(); } } }

Re: Component wiring mess in 'HomePage'

2010-12-06 Thread Hans Lesmeister
Hi, I have some components and I'm wiring them together directly within a 300 lines init method in the HomePage class ** Now this method is 'a bit' lengthy and unreadable. How would you make it more maintainable? I always try to identify logical groups and delegate creation of those to

WicketTester clickLink: Ajax-Response not rendered into the page?

2010-11-10 Thread Hans Lesmeister
Hi, I have a page processed by the wicket-tester. On the page, there is an AjaxLink. Now I do a clickLink on that AjaxLink. If I do a pagedump after the clickLink, I can see the Ajax-Response which looks good. The Response contains markup to replace an exisiting Container. Unfortunately, the

Re: Avoid getObject on Model if component not rendered

2010-10-21 Thread Hans Lesmeister
Create and add the DropDownChoice in onInitialize(). If the component is not rendered then that method will not be called (untested) @Override protected void onInitialize() { super.onInitialize(); final DropDownChoiceCustomUser usersChoice = new DropDownChoiceCustomUser(usersList,