Re: reuseitems problems

2009-07-28 Thread Martin Makundi
please describe the context. I don't see how the process of serialization makes the instance of the object obsolete. 1. Page instantiation. Page instance 1 {manipulating target data 1}, formComponent instance 1-target data instance 1. 2. Ajax request or similar onto page. 3. Page refresh

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
why do you get Page instance 2 on page refresh? Wicket always deserializes page state from diskstore.. so it is a copy. ** Martin MartinM wrote: please describe the context. I don - To unsubscribe, e-mail:

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
Or session store.. anyways, that's not relevant. The important fact is that the copies are different. ** Martin 2009/7/28 Martin Makundi martin.maku...@koodaripalvelut.com: why do you get Page instance 2 on page refresh? Wicket always deserializes page state from diskstore.. so it is a copy

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
, how could it be? Or I didn't get what you were saying. MartinM wrote: Or session store.. anyways, that's not relevant. The important fact is that the copies are different. ** Martin 2009/7/28 Martin Makundi martin.maku...@koodaripalvelut.com: why do you get Page instance 2 on page

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
2009/7/28 Martin Makundi martin.maku...@koodaripalvelut.com: why do you get Page instance 2 on page refresh? Wicket always deserializes page state from diskstore.. so it is a copy. ** Martin MartinM wrote: please describe the context. I don

Re: Reading Wicket source code

2009-07-26 Thread Martin Makundi
Coding style is not the best in all parts, fro reading point of view, definitely ... ** Martin 2009/7/26 Vladimir K koval...@gmail.com: For me the magic is how wicket is managing pages and their versions. For instance I realized that it increments version when preparing the page for render.

AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Martin Makundi
Hi! AjaxSubmitLink does not work in 1.4-rc7 Anybody know a workaround: https://issues.apache.org/jira/browse/WICKET-2400 ? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Martin Makundi
the link works just fine, wicket tester doesnt work right. Sorry for the inconcise title, yes, the link works, the test doesn't. I am doing test-first approach so I sometimes exaggerate, but yes, the test does not work. ** Martin On Sun, Jul 26, 2009 at 9:15 AM, Martin

Re: AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Martin Makundi
you can always submit a patch you know. I haven't a clue how to fix it, unfortunately. This is the part I am most unfamiliar with in Wicket. I don't even know how it is supposed to work (=on code level). -Matej On Sun, Jul 26, 2009 at 8:53 PM, Martin

Make sure you are not calling Component#getString() inside your Component's constructor.

2009-07-25 Thread Martin Makundi
Hi! I get this warning: Make sure you are not calling Component#getString() inside your Component's constructor. Because normally I implement wicket code like this: XYZComponent extends xxx { public XYZComponent(String id) { add(new Label(idxyz, getString(localized_label)); //

Re: Reading Wicket source code

2009-07-25 Thread Martin Makundi
Also one very benefiial point of view is just to code something and when you find a bug (either in your own code or Wicket), debug through wicket source and find the cause. If it's a wicket bug - contribute quickstart to jira that repeats the bug. I have learned myself quite a bit by doing this.

Re: Make sure you are not calling Component#getString() inside your Component's constructor.

2009-07-25 Thread Martin Makundi
Ah.. ok. It [StringResourceModel] just feels so much like a waste I have forgotten about it ;) Tnx. ** Martin 2009/7/25 Per Newgro per.new...@gmx.ch: Martin Makundi schrieb: Or what is the best-practice to avoid these warnings: Make sure you are not calling Component#getString() inside your

Re: [ANN] wicket-tree project

2009-07-25 Thread Martin Makundi
Any live examples, would be nice? ** Martin 2009/7/25 Sven Meier s...@meiers.net: Hi all, i would like to announce wicket-tree, a new project hosting a clean slate development of tree components for Wicket. The API has not been fully stabilized yet but you are invited to take a first

Re: Spring and Wicket - is it worth it?

2009-07-23 Thread Martin Makundi
I will vote NO. Why? Because YAGNI. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: What are the jar files needed

2009-07-22 Thread Martin Makundi
Use maven2 to automatically handle dependencies. 2009/7/22 Gerald Fernando gerald.anto.ferna...@gmail.com: What are the jar files needed. now i have got wicket 1.4 . what are jar files those i have to add in webcontent lib folder i have included  wicket 1.4rc5.jar  wicket-extension

Re: What are the jar files needed

2009-07-22 Thread Martin Makundi
Someone had written a nice quick start for installing maven and wicket quickstart... anybody remember the link? 2009/7/22 Martin Makundi martin.maku...@koodaripalvelut.com: Use maven2 to automatically handle dependencies

Re: Tab panel child

2009-07-21 Thread Martin Makundi
TabPanel3(String id)  {   super(id);  }  }; } On Mon, Jul 20, 2009 at 3:58 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Copy-paste the example from the web and replace the one panel with a grid. ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: yes

Re: Tab panel child

2009-07-21 Thread Martin Makundi
and Apache wicket. They have nothing in common. am Expecting your reply Hope this helps. ** Martin On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! No, not page into tab. Just panel. Here TabPanel1...3 are your grid, etc. content panels

Re: Tab panel child

2009-07-21 Thread Martin Makundi
martin, sorry to say that can you please give me elobrate please ThanksRegards, Gerald A On Tue, Jul 21, 2009 at 12:39 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: then how can reuse it in another page??? Panel can be put anywhere. You can put Panel into Page or Panel

Re: Tab panel child

2009-07-21 Thread Martin Makundi
And change compiler syntax ** Martin 2009/7/21 Marcin Palka marcin.pa...@gmail.com: Gerald, You have to use Java version 5. Earlier versions don't support generics. I believe Wicket 1.4 requires Java 5. cheers Marcin

ModalWindow windowClosedCallback and WicketTester

2009-07-21 Thread Martin Makundi
Hi! I have the same problem as http://www.mail-archive.com/users@wicket.apache.org/msg05826.html Is it solved? I have a ModalWindow with a close button in it, the button's onclick calls modalWindow.close() via AJAX. My problem is that when I call the onclick via

Re: AjaxSelfUpdatingTimerBehavior and ModalWindow

2009-07-21 Thread Martin Makundi
Well.. you could just replace it with a new one.. ** Martin 2009/7/21 satar starl...@gmail.com: I know this is an old post but it hits an issue I currently have. I want to provide the user the ability to turn on/off auto refresh of data from the database. If all possible, I would like to use

Re: ModalWindow windowClosedCallback and WicketTester

2009-07-21 Thread Martin Makundi
) { tester.executeBehavior((AbstractAjaxBehavior) behavior); break; } } } ** Martin 2009/7/21 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! I have the same problem as http://www.mail-archive.com/users@wicket.apache.org/msg05826.html Is it solved? I have a ModalWindow

Re: ModalWindow windowClosedCallback and WicketTester

2009-07-21 Thread Martin Makundi
; } } It seems to somehow break the tester flow and the last rendered page is somehow not up-to-date. Help, pls :) ** Martin 2009/7/21 Martin Makundi martin.maku...@koodaripalvelut.com: Here is one workaround I found, but of course a) it should be built-in and b) automatic.  public void

Re: ModalWindow windowClosedCallback and WicketTester

2009-07-21 Thread Martin Makundi
After further investigation... the break; is to blame ;) Thera are multiple behaviors and one must search to execute the proper one... tester.executeBehavior((AbstractAjaxBehavior) behavior); is fine. Anyways, probably deserves an RFE? ** Martin 2009/7/21 Martin Makundi martin.maku

Re: Tab panel child

2009-07-20 Thread Martin Makundi
You mean wicket TabbedPanel component? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage ** Martin 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com: Hello Friends, How can i do tab panel with child coponent. when i

Re: best or common practice for application plug-ins

2009-07-20 Thread Martin Makundi
/collective/ On Mon, 20 Jul 2009 08:29:51 +0300, Martin Makundi wrote: What are you aiming at? Providing modules to others or building software to your client/own company? In my opinnion modules are good for the public but not for internal / sophisticated (=educated) use. ** Martin 2009/7/20

Re: Tab panel child

2009-07-20 Thread Martin Makundi
3rd tab - another componet 4th tab - Another componet On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You mean wicket TabbedPanel component? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage

Re: Error Message Not Getting Removed

2009-07-20 Thread Martin Makundi
In my understanding only EITHER onSubmit or onError is called. If you call error(xx) in onSubmit, you must refesh the feedback panel in the onSubmit-branch TOO (separately). ** Martin 2009/7/20 jpalmer1...@mchsi.com: I have a form that's using an AjaxSubmitLink to show / hide a panel. I have

Re: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
Skip rc5 and rc6 ;) ** Martn 2009/7/20 Marcin Palka marcin.pa...@gmail.com: Hi, My team develops a system that's based on the 1.4 and during the development we haven't experienced any serious issues with prior-final builds of 1.4. System is currently being tested. We started development

Re: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
I provide URL below, but please don’t treat it as advertising from my side. It is just confirmation only - example of Wicket based site. http://www.sport-pferde-portal.de Yeah.. it does crash! Internal error Return to home page ** Martin

Re: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
No. It crashes. Restart your browser and you will see. ** Martin 2009/7/20 Steamus steam...@gmail.com: Sorry, I would be glad to see crash (just for the test Purposes), but for this moment it is work yet. -- View this message in context:

Re: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 ** Martin 2009/7/21 Carl-Eric Menzel cm.wic...@users.bitforce.com: On Tue, 21 Jul 2009 00:00:04 +0300 Martin Makundi martin.maku...@koodaripalvelut.com wrote: No. It crashes. Restart your

Re: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
, Martin Makundi írta: Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 ** Martin 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com: On Tue, 21 Jul 2009 00:00:04 +0300 Martin Makundimartin.maku...@koodaripalvelut.com  wrote

Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Martin Makundi
1. click ajaxButton 2. redirect in button onSubmit 3. verify redirect in test FAILS Is there a workaround? https://issues.apache.org/jira/browse/WICKET-2379 ** Martin - To unsubscribe, e-mail:

Bug in modal window.onBeforeRender - tests

2009-07-19 Thread Martin Makundi
Hi! For some reason ModalWindow assumes request is not ajax even though it is clicked via executeAjaxEvent: if (getWebRequest().isAjax() == false) { shown = false; // This hides the button } Thread [main] (Suspended

Re: Bug in modal window.onBeforeRender - tests

2009-07-19 Thread Martin Makundi
I am working on reproducing it via steps 1-6. ** Martin 2009/7/19 Per Lundholm per.lundh...@gmail.com: Was it your intention to attach some code? /Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: override isEnabledInHierarchy?

2009-07-19 Thread Martin Makundi
Don't disable the form. Disable only the components you want to disable. ** Martin 2009/7/19 slowery23 slow...@gatessolutions.com: Actually, that's what I initially tried, but it didn't work.  If you use the simple example below, you'll see that.  None of the components with isEnabled()

Re: Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Martin Makundi
Your button should just be an external like. I need some logic there before redirecting. I don't think you are supposed to be redirecting to an external url per the wiki guidelines here new RedirectRequestTarget(/path/to/legacyJspFile.jsp) is what I am using. It is not relevant whether it

Re: override isEnabledInHierarchy?

2009-07-19 Thread Martin Makundi
That certainly will work.  But if I have a form and I want to disable all of the elements in the form except for the Edit Form link, it is, IMO, much simpler to disable the form and override the one link so it is enabled, rather than disabling many form components. You can just make your own

Re: override isEnabledInHierarchy?

2009-07-19 Thread Martin Makundi
Well.. public class MyCentrallyEnabledPage/Panel xxx { private boolean centralEnable; CentrallyEnabledTextField extends TextField { isEnabled() { return centralEnable; } } I think you get the idea. It can be an inner class or any kind of class (just needs the necessary built-in

Re: best or common practice for application plug-ins

2009-07-19 Thread Martin Makundi
What are you aiming at? Providing modules to others or building software to your client/own company? In my opinnion modules are good for the public but not for internal / sophisticated (=educated) use. ** Martin 2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au: I'm probably revealing my

HashMap.Entry not serializable?

2009-07-18 Thread Martin Makundi
Hi! I am a bit onfused.. I have new ListView(id, new LinkedList(hashMap.entrySet())) and Wicket gives: org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: java.util.HashMap$Entry This does not make sense, I would expect hashmap entries to be

Re: HashMap.Entry not serializable?

2009-07-18 Thread Martin Makundi
Veery strange... what is LDM? ** Martin 2009/7/18 vineet semwal vineetsemwal1...@gmail.com: keys,values are serializable but entry itself isn't . quick solution is to use LDM. regards, Vineet Semwal On Sat, Jul 18, 2009 at 3:36 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote

Re: What already redirecting error?

2009-07-18 Thread Martin Makundi
(). ** Martin 2009/7/17 Igor Vaynberg : pull the call hierarchy on org.apache.wicket.protocol.http.BufferedWebResponse.redirect and see what paths lead to your code. -igor On Fri, Jul 17, 2009 at 11:05 AM, Martin Makundi wrote: I don't have a clue where that occured... ** Martin 2009/7/17

What already redirecting error?

2009-07-17 Thread Martin Makundi
Hi! What is this error and how can I avoid it? Don't even know why it comes: 2009-07-17 11:43:22,804 181242389 [btpool0-503] ERROR RequestCycle - Already redirecting to '?wicket:interface=:0:9:::'. Cannot redirect more than once org.apache.wicket.WicketRuntimeException: Already redirecting to

Re: override isEnabledInHierarchy?

2009-07-17 Thread Martin Makundi
Yes, you could do it another way. Make each component that you want to enable/disable like this: form.add(new xxxFormComponent(id) { @Override isEnabled() { return your logic here; } }); 2009/7/17 Steve Lowery slow...@gatessolutions.com: I would like to build a simple form whose

Re: What already redirecting error?

2009-07-17 Thread Martin Makundi
At least I do not know of any such redirects... ** Martin 2009/7/17 Igor Vaynberg igor.vaynb...@gmail.com: you are triggering a redirect after something else has already done so. -igor On Fri, Jul 17, 2009 at 1:38 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! What is

Re: What already redirecting error?

2009-07-17 Thread Martin Makundi
I don't have a clue where that occured... ** Martin 2009/7/17 Alex Objelean alex_objel...@yahoo.com: Show us your code. Alex Objelean MartinM wrote: At least I do not know of any such redirects... ** Martin 2009/7/17 Igor Vaynberg igor.vaynb...@gmail.com: you are triggering a

Re: What already redirecting error?

2009-07-17 Thread Martin Makundi
None lead to my code, that's my point. The only thing I have used is setResponsePage(). ** Martin 2009/7/17 Igor Vaynberg igor.vaynb...@gmail.com: pull the call hierarchy on org.apache.wicket.protocol.http.BufferedWebResponse.redirect and see what paths lead to your code. -igor On Fri,

Re: How to access user form data (simple question)

2009-07-16 Thread Martin Makundi
Are you trying to reinvent the Palette component? http://wicketstuff.org/wicket13/compref?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage ** Martin 2009/7/15 Jedadiah Ashford jedashf...@gmail.com: Im new to Wicket and I have a simple problem. I have TWO list boxes.

Page expired stateless page?

2009-07-15 Thread Martin Makundi
Hi! What is this error? I keep getting it after installing 1.4-rc6 and 1.4-rc7. I definitely did not intend to have a stateless page... 2009-07-15 21:00:17,037 41856622 [btpool0-227] ERROR RequestCycle  - unable to find component with path home_page_tabs_panel:panel:download_guide on stateless

Re: Page expired stateless page?

2009-07-15 Thread Martin Makundi
Yes, there is a StatelessLink.. why doesn't it work? ** Martin 2009/7/15 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! What is this error? I keep getting it after installing 1.4-rc6 and 1.4-rc7. I definitely did not intend to have a stateless page... 2009-07-15 21:00:17,037

Re: Page expired after rc6?

2009-07-14 Thread Martin Makundi
Is there a jira issue? I would like to know what it does for the victims ... ** Martin 2009/7/14 Igor Vaynberg igor.vaynb...@gmail.com: this should be fixed in rc7 - which should be in the maven repo and most mirrors by now. -igor On Tue, Jul 14, 2009 at 10:58 AM, Martin

Re: Page expired after rc6?

2009-07-14 Thread Martin Makundi
Péter majorpe...@sch.bme.hu: Most likely this is it: http://issues.apache.org/jira/browse/WICKET-2346 Peter 2009-07-14 20:11 keltezéssel, Martin Makundi írta: Is there a jira issue? I would like to know what it does for the victims ... ** Martin 2009/7/14 Igor Vaynbergigor.vaynb

Re: Page expired after rc6?

2009-07-14 Thread Martin Makundi
? This could lower the number of PEE's. Peter 2009-07-14 20:22 keltezéssel, Martin Makundi írta: http://issues.apache.org/jira/browse/WICKET-2346 That does not sound like it... I mean I was getting page expired for no good reason unbelievably often for it to be caused by human error. I upgraded

Re: Bug in BaseWicketTester ajax submit?

2009-07-12 Thread Martin Makundi
Hi! Actually the bug is that it is totally fine to call tester.executeAjaxEvent on a button that is not visible :) Nevertheless... just calling getForm() could be simpler? I reported bug in jira: https://issues.apache.org/jira/browse/WICKET-2363 ** Martin 2009/7/11 Martin Makundi martin.maku

Re: getting child items of a ListView ListItem

2009-07-12 Thread Martin Makundi
meant here        } } So if you mean where its in CAPS then ok, I thought you meant in the Item section. Will give it a go. Steve On 11 Jul 2009, at 21:02, Martin Makundi wrote: Ok, except remember this is in a ListView so for each ListItem that I set the callback for, the single

Re: getting child items of a ListView ListItem

2009-07-12 Thread Martin Makundi
BTW::: SHOW AFTER initializing callback. ** Martin 2009/7/12 Martin Makundi martin.maku...@koodaripalvelut.com: Yes. Why make it more complex :)? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Is it possible to register multiple behaviors for a field?

2009-07-12 Thread Martin Makundi
You could use ajax decorator which sort of appends callers.. I am not exactly sure how in your particular situation, but you can try it out and see how it works: public static final IAjaxCallDecorator BLUR_DECORATOR = new IAjaxCallDecorator() { public CharSequence decorateOnFailureScript(

AjaxUpdate FeedbackPanel And window.open popup

2009-07-12 Thread Martin Makundi
Hi! Is it possible to simultaneously AjaxUpdate FeedbackPanel And window.open popup ? I need to open a popup (external site) and simultaneously give instructions on feedback panel. Anyone done this before? ** Martin - To

Re: AjaxUpdate FeedbackPanel And window.open popup

2009-07-12 Thread Martin Makundi
Hi! What about PopupSettings, will I lose that? ** Martin 2009/7/13 Juan Carlos Garcia M. jcgarc...@gmail.com: Hi, You can append a javascript to the AjaxRequestTarget something like: ajaxRequestTarget.add(myPanelToUpdate); ajaxRequestTarget.appendJavascript(alert('hello');); Check:

Bug in BaseWicketTester ajax submit?

2009-07-11 Thread Martin Makundi
Hi! The following code (1.4-rc6): // We need to get the form submitted, using reflection. // It needs to be submitted. Form? form = null; try { Field formField =

Re: getting child items of a ListView ListItem

2009-07-11 Thread Martin Makundi
ListView returns an iterator of ListItems Each ListItem is a component so you can just do listItem.get(component_id); Does this sound like what you were looking for? ** Martin 2009/7/11 Steve Swinsburg steve.swinsb...@gmail.com: Hi all, I have a ListView and need to be able to get some

Re: getting child items of a ListView ListItem

2009-07-11 Thread Martin Makundi
steve.swinsb...@gmail.com: Yeah that sounds like what I need. I need to update some text in a span thats inside my ListItem once I do some processing. Thanks, Steve On 11 Jul 2009, at 10:16, Martin Makundi wrote: ListView returns an iterator of ListItems Each ListItem is a component so

Re: getting child items of a ListView ListItem

2009-07-11 Thread Martin Makundi
differentiate with component class if absolutely necessary. Or you can repaint the whole listView. ** Martin Thanks. On 11 Jul 2009, at 10:43, Martin Makundi wrote: It would be better design to make the span update itself using an abstract readnly model: new Label(automatic, new

Re: getting child items of a ListView ListItem

2009-07-11 Thread Martin Makundi
So I am using: -in ListItem and the Link onClick, get the parent Item. Keep a reference to this. Why don't you already add all the necessary children to the ajaxRequestTarget here where you have the references? ** Martin On 11 Jul 2009, at 11:36, Martin Makundi wrote: I've got one Modal

Re: getting child items of a ListView ListItem

2009-07-11 Thread Martin Makundi
the callback is outside so it doesn't know about the object that was clicked. I did this so it reduces the total number of objects on the page. Why not put the callback inside too.. I do that. ** Martin cheers. On 11 Jul 2009, at 12:00, Martin Makundi wrote: So I am using: -in ListItem

Re: getting child items of a ListView ListItem

2009-07-11 Thread Martin Makundi
it. ** Martin On 11 Jul 2009, at 12:17, Martin Makundi wrote: Ok so I was doing that before but had an instance of a ModalWindow per ListItem, and the associated callback for each. Because it was all inside, it was self contained so I could do all the updating easily. But this mean

Re: getting child items of a ListView ListItem

2009-07-11 Thread Martin Makundi
. ** Martin On 11 Jul 2009, at 13:43, Martin Makundi wrote: So you setup a callback when you set the content on the modalWindow? That could work nicely as well. Yes:               modalWindow.setTitle(xx);               modalWindow.setContent(yy);               final AjaxButton ajaxButton

Re: Prefill form not model?

2009-07-08 Thread Martin Makundi
In your opinion.  Hibernate supports merging (if that's what you're using). Why not edit the object in a detached state (not in the session)? Then, when you want to update it, you call update()? If there was only one simple object yes... but there is a whole collaboration diagram of objects.

Re: xml+wicket component

2009-07-08 Thread Martin Makundi
Hi! Please explain in more detail if this is your situation: A) 1. You have xml file. 2. You load the xml file into Java using JAXB or similar. 3. You want to display only some details from the xml-Java object using Wicket (if so, please give sample code html what you need). B) 1. You have an

Re: Prefill form not model?

2009-07-08 Thread Martin Makundi
OSiV ? having read the thread I didn't get why you can not modify the object itself. Premature optimization ;) ? Coming to think about it again (this way, the opposite way) there is nothing bad happening if I DO modify the object directly ... true. Thank you all for your critisizm!

Re: Prefill form not model?

2009-07-08 Thread Martin Makundi
having read the thread I didn't get why you can not modify the object itself. Actually.. the only GOOD reason I can come up with is that by setting the default value into RAWINPUT, it will be validated when the form is submitted. ** Martin

Re: xml+wicket component

2009-07-08 Thread Martin Makundi
give me some model code ThanksRegards, Gerald A On Wed, Jul 8, 2009 at 12:40 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Please explain in more detail if this is your situation: A) 1. You have xml file. 2. You load the xml file into Java using JAXB

Re: Wicket 1.4RC6 NoSuchMethodError

2009-07-08 Thread Martin Makundi
Are you getting the error at compile time or runtime? 1.3.6 and 1.4-rc6 are not necessarily compatible at compile-time. You might have to refactor. ** Martin 2009/7/8 Joshua Martin josmar52...@gmail.com: This page worked in Wicket 1.3.6, but for some reason it's not working in 1.4RC6 - I'm

Prefill form not model?

2009-07-07 Thread Martin Makundi
Hi! What is the proper way to prefill a wicket form (not poke the model before submit!!!)? I have used a hack: Field rawInputField = FormComponent.class.getDeclaredField(rawInput); rawInputField.setAccessible(true); rawInputField.set(component, description); Is there a better

Re: Prefill form not model?

2009-07-07 Thread Martin Makundi
Typically to prefill a form you have the backing model object have sensible defaults.  i.e., a form that edits a person is given a person, and the person object has it's gender set to male as a default - that is reflected in your form when it is rendered. The problem is that it is not a NEW

Re: Prefill form not model?

2009-07-07 Thread Martin Makundi
The hack is cleaner 2009/7/7 James Carman jcar...@carmanconsulting.com: On Tue, Jul 7, 2009 at 10:51 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Typically to prefill a form you have the backing model object have sensible defaults.  i.e., a form that edits a person

Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-25 Thread Martin Makundi
NICE! ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Html mail with WicketTester

2009-06-24 Thread Martin Makundi
In my experience WicketTester works in a single thread only ... at least when I tried load testing with it it did not work. Ended up using HTTPUnit. Maybe that works for you too? ** Martin 2009/6/25 Mathias Nilsson wicket.program...@gmail.com: I must add I have managed to get it to work

Re: Html mail with WicketTester

2009-06-24 Thread Martin Makundi
().close(); uc.disconnect(); } } catch (IOException e) { Utils.errorLog(MarkupUtils.class, Failed to load remote data, e); } return new byte[] {}; } ** Martin 2009/6/25 Martin Makundi martin.maku...@koodaripalvelut.com In my experience WicketTester works

Localized error message interpolation

2009-06-21 Thread Martin Makundi
Hi! Why does PropertyVariableInterpolator.getValue NOT use Wicket's Locale-specific converters (ConverterLocator etc.)? Or is there a better way to localize my property error_message=Date ${date} is wrong to show the date appropriately with respect to the user's locale? ** Martin

Re: Hibernate Transactions and Wicket

2009-06-19 Thread Martin Makundi
1) Use DTOs I think all of these have some issues. Using DTOs is code heavy. I use @Entity objects directly as objects. No overhead. There was some discussion about Hibernate and wicket in: * http://www.nabble.com/JPA-EntityManager-storage-td23888325.html *

Re: [announce] Wicket 1.4-RC5 released

2009-06-19 Thread Martin Makundi
Vote [X] Yes, build 1.4-rc6 [ ] No, let's see how rc5 turns out first ** Martin 2009/6/19 Jeremy Thomerson jer...@wickettraining.com There's some discussion of the need for an rc6 to include a couple of bug fixes that went in this week after rc5 was cut. Bummer!! Jeremy Thomerson

Re: Getting form component raw value on ajax action

2009-06-19 Thread Martin Makundi
Have a look at autocomplete texxtfield, it should provide a good starting point. ** Martin 2009/6/19 Andrea Aime aa...@opengeo.org: Hi, I have a form in which one of the fields represents a server side path. The field has a validator to make sure the path is valid and contains certain kind

Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
Hi! I get the following error when users come to the login page using a stateful bookmark: 2009-06-16 10:11:52,861 43237745 [btpool0-115] ERROR RequestCycle - component loginForm not found on page Any tricks how this can be avoided? ** Martin

Re: Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
the users should get a page expired error if they come in from a stateful bookmark and the session is expired. Well.. in order to avoid that I have attempted to redirect them onto the login page by setting the LoginPage to be the expired page ;)

Re: Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
IIRC, for this purpose I had written a separate expired page but I had thrown a new restartresponseexception(LoginPage.class) which was working fine with wicket 1.3.4. So is there a bug with the pageparameters for a stateful page? They should be thrown away when pageExpired occurs (this

Re: Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
I am not actually sure how to repeat this bug, this is what I see on the production log. ** Martin 2009/6/16 Igor Vaynberg igor.vaynb...@gmail.com: IFormSubmitListener? so this happens when you submit the login page? -igor On Tue, Jun 16, 2009 at 9:30 AM, Martin

Re: Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
No. MainPage is the page the user has probably bookmarked or something.. it is the page after successful login. ** Martin 2009/6/16 Igor Vaynberg igor.vaynb...@gmail.com is your LoginPage the com.domain.view.application.MainPage ? -igor On Tue, Jun 16, 2009 at 9:54 AM, Martin

Re: Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
I have a feeling this has something to do with the littlebit 'unprofessional' way of wicket's dealing with session expiration on stateful pages. Wicket sort of deals with session expiration like if it was a fatal state.. while it is just daily bloody normal ;) Anyways... I will look into this,

Re: Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
as far as wicket is concerned it does the best it can. when the session is gone we have no state information at all and the only thing we can do is display the page expired page. what exactly is unprofessional about this. Well.. this crash :) It is not very 'graceful', maybe better wording

Re: conditional redirect page

2009-06-16 Thread Martin Makundi
just a RestartResponseException will do I've always believed that building flow logic using exceptions is malpractice ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: conditional redirect page

2009-06-16 Thread Martin Makundi
I use setResponsePage. If there was no other way, I would do RFE ;) ** Martin 2009/6/16 Jeremy Thomerson jer...@wickettraining.com: suggest a better way -- Jeremy Thomerson http://www.wickettraining.com - To

Re: Login page crashes if old bookmark

2009-06-16 Thread Martin Makundi
this has nothing to do with how many servers you are running Does it matter that Apache handles the https and proxies it as plain http to jetty? ** Martin -igor On Tue, Jun 16, 2009 at 12:56 PM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: as far as wicket is concerned it does

Re: conditional redirect page

2009-06-16 Thread Martin Makundi
when java will have a different way to unroll the stack we will switch. Ok so this is an optimization decision that purges something... good to know. Totally new to me. ** Martin -igor On Tue, Jun 16, 2009 at 12:57 PM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: just a

Re: Wicket generics?

2009-06-13 Thread Martin Makundi
, Martin Makundi martin.maku...@koodaripalvelut.com wrote: new DropDownChoiceBaseClass ? Maybe ... ** Martin On Fri, Jun 12, 2009 at 6:06 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: ... -- Cristi Manole Nova Creator Software www.novacreator.com

Re: Wicket generics?

2009-06-13 Thread Martin Makundi
, 2009 4:43 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: new DropDownChoiceBaseClass ? Maybe ... ** Martin On Fri, Jun 12, 2009 at 6:06 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: ... -- Cristi Manole Nova Creator Software www.novacreator.com

Re: Wicket generics?

2009-06-13 Thread Martin Makundi
DropDownChoice? extends BaseClass dropDown = new DropDownChoice? extends BaseClass(id); You can't instantiate with a wildcard type.  That's not allowed by the Java language. Ah yes... I'm getting confused myself. So the real problem is that I instantiate new DropDownChoiceBaseClass(id) but

<    5   6   7   8   9   10   11   12   13   14   >