Re: wiquery ResizableBehavior weird results on stop

2013-03-11 Thread Pieter Claassen
;-) On Sun, Mar 10, 2013 at 8:56 AM, Pieter Claassen pie...@musmato.com wrote: Ernesto, Ok, I implemented your changes but something very strange is happening. In my callback, I get the resizeHeight and resizeWidth values of the previous window resize event, not the current one. I don't

Re: wiquery ResizableBehavior weird results on stop

2013-03-11 Thread Pieter Claassen
, Pieter Claassen pie...@musmato.com wrote: Ernesto, This is very strange. When I use your snapshot code in a quickstart project, it functions fine. But when I include it in my project, I always get the old x and y values (of one resize ago) in my callback. Can you think of any reason why

wiquery ResizableBehavior weird results on stop

2013-03-09 Thread Pieter Claassen
); return this; } } -- - - - - - - - - - - - - - - - - - - - - Pieter Claassen Musmato B.V. e: pieter.claas...@musmato.com t NL: +31 (20) 893 4337 t ZA: + 27 (0) 81 826 8166 w: http://musmato.com - - - - - - - - - - - - - - - - - - - -

Re: wiquery ResizableBehavior weird results on stop

2013-03-09 Thread Pieter Claassen
resizeHeight, int resizeWidth); } public MyResizableBehavior setStopEvent(MyResizableBehavior.AjaxResizeStopCallback callback){ setEventListener(callback); return this; } } -- - - - - - - - - - - - - - - - - - - - - Pieter Claassen Musmato

Re: JQuery - best practice

2013-01-30 Thread Pieter Claassen
resizableBehavior.setStopEvent(JsScopeUiEvent.quickScope(alert();)); On Mon, Jan 28, 2013 at 8:28 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Mon, Jan 28, 2013 at 7:45 AM, Pieter Claassen pie...@musmato.com wrote: This is a general best practice question. I am using wicket-jquery

Re: JQuery - best practice

2013-01-30 Thread Pieter Claassen
further help you somehow. On Wed, Jan 30, 2013 at 2:46 PM, Pieter Claassen pie...@musmato.com wrote: Ernesto/Sebastien, I am stuck :-( Firstly, thanks for the resizablePanel in wicket-jquery-ui, but I have to hold off until this code is implemented in a behavior since my

Re: JQuery - best practice

2013-01-30 Thread Pieter Claassen
){ setEventListener(callback); return this; } } On Wed, Jan 30, 2013 at 3:15 PM, Pieter Claassen pie...@musmato.com wrote: Ernesto, I cannot find any code in wiquery-6.2.0. that hooks into the stopEvent. The example you provided seems to still force a round trip on any change

Re: JQuery - best practice

2013-01-28 Thread Pieter Claassen
not a big deal, I will look at this tonight... Are you using Wicket 1.5.x or 6.x? Thanks best regards, Sebastien. On Mon, Jan 28, 2013 at 7:45 AM, Pieter Claassen pie...@musmato.com wrote: This is a general best practice question. I am using wicket-jquery-ui because I don't seem to be able

Re: JQuery - best practice

2013-01-28 Thread Pieter Claassen
) //removes jquery ui library this.setJavaScriptLibrarySettings(settings); Hope this helps, Sebastien. On Mon, Jan 28, 2013 at 10:31 AM, Pieter Claassen pie...@musmato.com wrote: Hi Sebastian, Thanks. Wicket 6.5 is what I am using. As to your question: I am referring to the fact

ResizableBehavior multiple resizable panels on a page

2013-01-27 Thread Pieter Claassen
I have multiple panels on a page, each once constructed as follows: * public EditableQuestionPanel(String id, final QuestionBaseWebModel questionBaseWebModel, final TemplateWebModel templateWebModel, final QuestionEditPanel panel) {* *super(id);* *Options options = new Options();*

Re: ResizableBehavior multiple resizable panels on a page

2013-01-27 Thread Pieter Claassen
at 5:19 PM, Pieter Claassen pie...@musmato.com wrote: I have multiple panels on a page, each once constructed as follows: * public EditableQuestionPanel(String id, final QuestionBaseWebModel questionBaseWebModel, final TemplateWebModel templateWebModel, final QuestionEditPanel panel

JQuery - best practice

2013-01-27 Thread Pieter Claassen
This is a general best practice question. I am using wicket-jquery-ui because I don't seem to be able to find a resizable panel in the internal wicket ajax widgets. 1. Is there no problem loading new jquery libraries over the wicket implementation? What is best practice? 2. I am looking for a way

Wicket 6.5 CompoundPropertyModel constructor ambiguity

2013-01-25 Thread Pieter Claassen
The problem goes away when I remove the generics but then I also lose the type checking. Any suggestions? Thanks, Pieter -- - - - - - - - - - - - - - - - - - - - - Pieter Claassen Musmato B.V. e: pieter.claas...@musmato.com t: +31 877 848259 w: http://musmato.com - - - - - - - - - - - - - - - - - - - -

Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
I find that when I delete objects from my ListView, my model object for the ListView still contains a reference to the object. When the view tries to render, the object is already removed from the database and I get a null response on my hibernate load(). I use opensessioninview and when I check

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
No, my DAO's inherit from HibernateDaoSupport and I just go with the defaults. Regards, Pieter On Fri, Jun 25, 2010 at 2:22 PM, James Carman ja...@carmanconsulting.comwrote: How are you managing transactions? On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen pieter.claas...@gmail.com wrote

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
and make sure the different DOAs use the right txManager. Regards, Pieter On Fri, Jun 25, 2010 at 3:30 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: yeah and grabbig from the dao each time right? 2010/6/25 pieter claassen pieter.claas...@gmail.com Nino, No, in this case, I

Hibernate session (from Spring bean) during wicketapplication startup

2010-05-24 Thread pieter claassen
I try to bootstrap my MySQL database during the wicket application strartup but get the following error with a bootstrap method in my wicketapplication.java. How should I best get hold of a transaction during my wicket startup or if this is not possible, what is the most appropriate alternative?

Serialization test

2010-01-27 Thread pieter claassen
I want to test the following: 1. Whether I have any private members stored on my pages that are not a primitive java type, or IModel 2. If they are IModels, that I do call onDetach() on them. Reflection helps me to answer the 1st question but the second one baffles me. Any tips on how to verify

Spring-JUnit problems

2009-12-16 Thread pieter claassen
My unit tests stopped working (I failed to notice :-() I am on wicket 1.4.1 junit 3.8.2 maven Any help appreciated. Is this a classpath issue? Rgds Pieter This is my errror: Test set: com.musmato.wicket.pages.AuthHomePageTest

Easymock question

2009-12-16 Thread pieter claassen
); tester.setupRequestAndResponse(); WicketSession session = (WicketSession) tester.getWicketSession(); session.setUser(user); } -- Pieter Claassen musmato.com

Re: Spring-JUnit problems

2009-12-16 Thread pieter claassen
Thanks, that worked. P On Wed, Dec 16, 2009 at 10:14 AM, pieter claassen pie...@claassen.co.ukwrote: My unit tests stopped working (I failed to notice :-() I am on wicket 1.4.1 junit 3.8.2 maven Any help appreciated. Is this a classpath issue? Rgds Pieter This is my errror

setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
()); target.addComponent(replacement); } -- Pieter Claassen musmato.com

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
. Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I

Maven wicketstuff project include

2009-11-19 Thread pieter claassen
groupIdorg.wicketstuff/groupId artifactIdjquery/artifactId version${wicket.version}-SNAPSHOT/version /dependency -- Pieter Claassen musmato.com

Re: AjaxFallBackLink updating a listview in a listview (blog entry)

2009-11-19 Thread pieter claassen
Hi Sven, I am trying to implement your changes, but am not sure what you mean: I have 3 panels in a page (QuestionCompletePage -QuestionCompletePanel-CompletableQuestionPanel-QuestionNavigationPanel). However, QuestionNavigationPanel, that contains my AjaxLink, belongs to two execution paths (it

JQuery slider implementation broken in 1.4?

2009-11-19 Thread pieter claassen
Has anybody recently made the JQuery slider implementation or or even just ran the demo? I don't get Ajax debug info in my debug window and no data makes it back to onChange(). Thanks, Pieter

javascript slider implementation

2009-11-18 Thread pieter claassen
I would like to implement a slider to set the width of a component. I could not get the Dojo Slider implementation working with wicket 1.4.1 (I could not get the code in with maven even though the Dojo project built from SVN, it just doesn't seem to contain the Slider class anymore). My thinking

Re: javascript slider implementation

2009-11-18 Thread pieter claassen
/ span wicket:id=slider/ /span On Wed, Nov 18, 2009 at 1:51 PM, Martin Grigorov mcgreg...@e-card.bgwrote: check wicketstuff-jquery there is a slider behavior + demo On Wed, 2009-11-18 at 13:04 +0100, pieter claassen wrote: I would like to implement a slider to set

AjaxFallBackLink updating a listview in a listview (blog entry)

2009-11-18 Thread pieter claassen
Hi Guys, Here is a blog entry on how I update listviews in listviews with Ajax. http://skeptical-inquirer.blogspot.com/2009/11/updating-listview-in-listview-with-ajax.html I would appreciate any comments to help me improve this pattern. Cheers, Pieter

Re: javascript slider implementation

2009-11-18 Thread pieter claassen
-20091110.07192) installed (I am using wicket 1.4.1) Any suggestions? Rgds, Pieter On Wed, Nov 18, 2009 at 1:51 PM, Martin Grigorov mcgreg...@e-card.bgwrote: check wicketstuff-jquery there is a slider behavior + demo On Wed, 2009-11-18 at 13:04 +0100, pieter claassen wrote: I would like

Re: Listview in a listview refresh with AjaxLink don't work

2009-11-17 Thread pieter claassen
15, 2009 at 6:56 AM, pieter claassen pieter.claas...@gmail.com wrote: Hi Pedro, Here it is. So, I basically move the question up or down the array. public void moveQuestionUp(QuestionBase question) { int idx = questions.indexOf(question); if (idx 0

AjaxFallBackLink driving me nuts!

2009-11-17 Thread pieter claassen
Can anybody please enlighten me why this doesn't work (ok end of the day, maybe it really is something small). I am clearly changing the underlying model data, but how to tell questionEditPanel to pick that change up. I tried setDefaultModel(new TemplateWebModel(template)),

Re: Listview in a listview refresh with AjaxLink don't work

2009-11-15 Thread pieter claassen
to find a way to reload the data for the listview, from within my panel on a page. Cheers, Pieter On Sun, Nov 15, 2009 at 12:14 AM, Pedro Santos pedros...@gmail.com wrote: Can you send the moveQuestionUp implementation? On Sat, Nov 14, 2009 at 9:03 PM, pieter claassen pieter.claas...@gmail.com

Listview in a listview refresh with AjaxLink don't work

2009-11-15 Thread pieter claassen
a way to reload the data for the listview, from within my panel on a page. Cheers, Pieter On Sun, Nov 15, 2009 at 12:14 AM, Pedro Santos pedros...@gmail.com wrote: Can you send the moveQuestionUp implementation? On Sat, Nov 14, 2009 at 9:03 PM, pieter claassen pieter.claas...@gmail.com wrote

Listview in a listview refresh with AjaxLink don't work

2009-11-14 Thread pieter claassen
); tf.store(template); } }; -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Force page reload/re-render

2009-11-10 Thread pieter claassen
at 5:19 AM, pieter claassen pieter.claas...@gmail.com wrote: I have a link on a panel that is included in many pages. When the user clicks on the link, I change something in the user settings that will affect what gets displayed on the page. However, for that to work, I need to reload the page

Re: Force page reload/re-render

2009-11-10 Thread pieter claassen
pedros...@gmail.com wrote: I tried setResponsePage(getPage()) but the problem is it does not re-render controls on the page. Where do you implement your control ( update logic )? Consider do it overriding Component.onBeforeRender method On Tue, Nov 10, 2009 at 10:03 AM, pieter claassen

Re: Force page reload/re-render

2009-11-10 Thread pieter claassen
something to be dynamic you have to program it to be dynamic. Best, Ernesto On Tue, Nov 10, 2009 at 1:20 PM, pieter claassen pieter.claas...@gmail.com wrote: Both of the suggestions I think requires me to modify the logic of the controls (either to keep track of which ones need to be updated

Re: Force page reload/re-render

2009-11-10 Thread pieter claassen
, Ernesto On Tue, Nov 10, 2009 at 1:20 PM, pieter claassen pieter.claas...@gmail.com wrote: Both of the suggestions I think requires me to modify the logic of the controls (either to keep track of which ones need to be updated or by placing the rendering logic in onBeforeRender()). I think

Re: editing objects, backed by LoadableDetachableModels

2009-11-10 Thread pieter claassen
://www.systemworks.be -- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: editing objects, backed by LoadableDetachableModels

2009-11-10 Thread pieter claassen
/ modifying some Accounts. (So, in other words, the user can always 'Cancel' his actions... On Tue, Nov 10, 2009 at 9:16 PM, pieter claassen pieter.claas...@gmail.com wrote: Hi Pieter, I don't use Hibernate, but db4o. The principle however  might help you. I inject my factory methods

Re: User count

2009-11-09 Thread pieter claassen
-- Pieter Claassen musmato.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Force page reload/re-render

2009-11-09 Thread pieter claassen
I have a link on a panel that is included in many pages. When the user clicks on the link, I change something in the user settings that will affect what gets displayed on the page. However, for that to work, I need to reload the page after the user clicked on the link as by default the other

Attribute modified question

2009-11-03 Thread pieter claassen
I am sure I am doing something very silly here but When I add the following AttributeModifier in my onBeforeRender() method, the solution works as expected (so I load an image that indicates that this page is selected) icon.add(new AttributeModifier(this.src=' , null, true, new

Attribute modifier to track location on pages stops request from completing

2009-11-01 Thread pieter claassen
I am sure I am doing something very silly here but When I add the following AttributeModifier in my onBeforeRender() method, the solution works as expected (so I load an image that indicates that this page is selected) icon.add(new AttributeModifier(this.src=', null, true, new

Re: urlFor(ResourceReference) strangeness

2009-10-31 Thread pieter claassen
Objelean pieter claassen-2 wrote: Ok, but I have a panel and I want to add an Image to the panel but when I log into my application I get the ../../.. prefix, and the ResourceReference then fails. However, once I click on any link, the prefix disappears and then my panel can

Re: urlFor(ResourceReference) strangeness

2009-10-28 Thread pieter claassen
remove the parameters from the url and mess this up... The real problem is when you are trying to build an absolute url for a ResourceReference. If this is indeed the reason of the problem, we should raise a jira issue... Alex Objelean pieter claassen-2 wrote: Ok, but I have a panel and I

urlFor(ResourceReference) strangeness

2009-10-27 Thread pieter claassen
WHen I start my application, my urlFor() returns a different URL than when I call it a second time? ResourceReference iconref = new ResourceReference(anchorclass, iconname); System.out.println(URL: +urlFor(iconref)); First time it returns: URL:

Re: urlFor(ResourceReference) strangeness

2009-10-27 Thread pieter claassen
between the two urls is the ../../.. prefix On Oct 27, 2009, at 11:05 AM, pieter claassen wrote: WHen I start my application, my urlFor() returns a different URL than when I call it a second time? ResourceReference iconref = new ResourceReference(anchorclass, iconname

How to reach a component in ListView

2009-10-20 Thread pieter claassen
I have an abstract class that adds a ListView to the page in the constructor. In the constructors of my children, I would like to set some of the rows in the ListView invisible. How do I reach the Wicket Components that were added to a ListView from outside the Listview. e.g. public abstract

Re: Spring annotations fail to inject into webmodels

2009-09-12 Thread pieter claassen
not need to introduce weaving and that Wicket will make sure you have a serialisable proxy injected. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com Pieter Claassen wrote: I am using maven, spring 2.5.6, wicket 1.4 and am trying to inject

Spring annotations fail to inject into webmodels

2009-09-11 Thread pieter claassen
constructor-arg ref bean=appConfig / /constructor-arg /bean . bean id=TemplateFactory class=com.musmato.dao.TemplateFactory property name=client ref=appDataSource / /bean -- Pieter Claassen musmato.com

Re: log4j question with wicket

2009-07-28 Thread pieter claassen
and slf4j/log4j in production? P On Mon, Jul 27, 2009 at 7:35 PM, Maarten Bosteels mbosteels@gmail.comwrote: a) Where does the log4j.properties file for your webapp reside ? b) Do you have a log4j.jar in WEB-INF/lib/ ? M. On Mon, Jul 27, 2009 at 4:45 PM, pieter claassen pieter.claas

Re: log4j question with wicket

2009-07-27 Thread pieter claassen
log4j.appender.R.layout.ConversionPattern=%p %t %c - log file%m%n On Mon, Jul 27, 2009 at 12:00 PM, Maarten Bosteels mbosteels@gmail.comwrote: On Fri, Jul 24, 2009 at 3:47 PM, pieter claassen pie...@claassen.co.uk wrote: I think that slf4j is not working in my setup and it might have nothing to do with Tomcat

log4j question with wicket

2009-07-24 Thread pieter claassen
log4j.logger.org.apache.wicket=INFO log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO log4j.logger.org.apache.wicket.version=INFO log4j.logger.org.apache.wicket.RequestCycle=INFO -- Pieter Claassen

Re: log4j question with wicket

2009-07-24 Thread pieter claassen
. log4j.category.org.apache.wicket.protocol.http.RequestLogger=INFO Any ideas? Thanks, Pieter On Fri, Jul 24, 2009 at 9:22 AM, pieter claassen pie...@claassen.co.ukwrote: I am trying to get my application to log to a separate file with the following log4j.properties (server is tomcat6 in netbeans

Re: log4j question with wicket

2009-07-24 Thread pieter claassen
http://www.openroadsconsulting.com _ From: pieter claassen [mailto:pie...@claassen.co.uk] To: users@wicket.apache.org Sent: Fri, 24 Jul 2009 05:04:03 -0400 Subject: Re: log4j question with wicket There seems to be something broken in wicket here. Logger.getRootLogger().info(AUTHPAGE

Re: log4j question with wicket

2009-07-24 Thread pieter claassen
and tomcat. Does anybody have slf4j-1.5.6 working with log4j-1.2.14? I am stumped?! P On Fri, Jul 24, 2009 at 9:22 AM, pieter claassen pie...@claassen.co.ukwrote: I am trying to get my application to log to a separate file with the following log4j.properties (server is tomcat6 in netbeans). I

redirectToInterceptPage doesn't work constructor

2009-07-23 Thread pieter claassen
(feedback)); if (getUser() == null) { redirectToInterceptPage(new LoginPage()); } else { authorized(); add(new UserAdminPanel(adminpanel)); } } -- Pieter Claassen musmato.com

Re: redirectToInterceptPage doesn't work constructor

2009-07-23 Thread pieter claassen
redirect a page once. Anyhow, I am sure that redirectTo will not remember the redirector URL. Thanks Pieter On Thu, Jul 23, 2009 at 11:36 AM, pieter claassen pie...@claassen.co.ukwrote: What is the correct way to redirect to a login page from within a constructor. This is wicket 1.3.5

Re: redirectToInterceptPage doesn't work constructor

2009-07-23 Thread pieter claassen
redirecTo to tell me that I can only redirect a page once. Anyhow, I am sure that redirectTo will not remember the redirector URL. Thanks Pieter On Thu, Jul 23, 2009 at 11:36 AM, pieter claassen pie...@claassen.co.uk wrote: What is the correct way to redirect to a login page

setVisbile on form makes me reset fields

2009-07-21 Thread pieter claassen
To clear the clutter in my form, I have a number of subforms hidden behind toggle links. However, I find that if I toggle these subforms visible using subform.setVisble(true), then I lose my contents of the rest of the controls on the main page. Any tips on how to force retain the already entered

Re: setVisbile on form makes me reset fields

2009-07-21 Thread pieter claassen
For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Claassen musmato.com

setModel() and getModel() questions

2009-03-15 Thread pieter claassen
I am obviously doing something wrong here. On my wicket pages, I am trying to set the Model with setModel() e.g.setModel(new CompoundPropertyModel(new Treatment())); On the components (forms, panels etc.) contained on that page, I try to retrieve the object with getModelObject() or

Re: Correct way to deal with serialization and casting

2009-02-13 Thread pieter claassen
that the approach below doesn't always work in wicket. Thanks for the feedback so far. Pieter On Thu, Feb 12, 2009 at 11:20 PM, pieter claassen pie...@claassen.co.ukwrote: Just to make sure I understand this correctly. 1. Line 2: By storing an IModel mywebmodel that nulls the object reference onDetach

How to get a reference to the holding page from a panel

2009-02-13 Thread pieter claassen
Is there a simple answer for how to get a reference from a panel to the holding page that is available at compile time (something other than getPage() on beforeRender())? Thanks, Pieter

Re: How to get a reference to the holding page from a panel

2009-02-13 Thread pieter claassen
and use MyPage.this. -igor On Fri, Feb 13, 2009 at 6:14 AM, pieter claassen pie...@claassen.co.uk wrote: Is there a simple answer for how to get a reference from a panel to the holding page that is available at compile time (something other than getPage() on beforeRender())? Thanks

Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread pieter claassen
Listviews with Links in them, sometimes fail to retrieve the object in the onClick() method the first time around. When I reload the page, the code works fine. Here is a test. In the listview below, I load the page and in the listview loop code, I correctly retrieve the item. Note that in the

Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread pieter claassen
:06 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Where do you set the value first? ** Martin 2009/2/12 pieter claassen pie...@claassen.co.uk: Listviews with Links in them, sometimes fail to retrieve the object in the onClick() method the first time around. When I reload

Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread pieter claassen
() )); } }); -igor On Thu, Feb 12, 2009 at 5:57 AM, pieter claassen pie...@claassen.co.uk wrote: Listviews with Links in them, sometimes fail to retrieve the object in the onClick() method the first time around. When I reload the page, the code works fine. Here is a test. In the listview below, I

Correct way to deal with serialization and casting

2009-02-12 Thread pieter claassen
Just to make sure I understand this correctly. 1. Line 2: By storing an IModel mywebmodel that nulls the object reference onDetach(), on my webpage, is ok for serialiazation? 2. Line 8: When I cast the IModel to MyObject, is there a way to make this more safe at compile time? 3. Line 8: object is

How to place form in own public class for extending

2009-02-11 Thread pieter claassen
I am trying to move a form from an inner class that extends Form to a public class. This is so that I can override the onSubmit() method of my form. Below are my files. When I add the form to a wicket page with add(new TemplateEditForm(templateeditform, templatemodel)); and the corresponding

Re: How to place form in own public class for extending

2009-02-11 Thread pieter claassen
in the panel's markup. http://wicketstuff.org/wicket13/signin/?wicket:bookmarkablePage=:org.apache.wicket.examples.signin.SignIn Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Wed, Feb 11, 2009 at 9:40 AM, pieter claassen pie...@claassen.co.uk wrote: I am

Re: How to place form in own public class for extending

2009-02-11 Thread pieter claassen
is the problem of having the form as an inner class? public class mypage extends webpage { private class myform extends form { ... } public mypage() { add(new myform(..) { protected void onsubmit() {...}}); } } -igor On Wed, Feb 11, 2009 at 6:40 AM, pieter claassen pie

Re: Duplicate objects in db4o with back button

2009-01-23 Thread pieter claassen
igor.vaynb...@gmail.comwrote: when you click the back button you go to a previous version of the page (a snapshot as it existed when rendered). in that version the id inside the model is still null. -igor On Thu, Jan 22, 2009 at 10:48 AM, pieter claassen pieter.claas...@gmail.com wrote

Duplicate objects in db4o with back button

2009-01-22 Thread pieter claassen
I am using wicket 1.3.5 and db4o 7.4.63.11890. My objects are being passed between pages using a subclass of LoadableDetachableModel (see below) My problem is: 1. I edit an object on PageA 2. I use the back button and then re-submit the form I edited and now I have two objects in the database.

Re: Duplicate objects in db4o with back button

2009-01-22 Thread pieter claassen
framework. On Thu, Jan 22, 2009 at 5:44 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ notice the deatch() implementation -igor On Thu, Jan 22, 2009 at 8:05 AM, pieter claassen pie...@claassen.co.uk wrote: I am using wicket 1.3.5

Re: How to determine which page I am on?

2008-12-17 Thread pieter claassen
Adriano, that worked, thanks!! Why did it work? Cheers, Pieter On Wed, Dec 17, 2008 at 12:11 AM, Adriano dos Santos Fernandes adrian...@uol.com.br wrote: pieter claassen wrote: I am trying to write a menu that formats the link nicely for the page I am on. So far, the novomatic tut helped

How to determine which page I am on?

2008-12-16 Thread pieter claassen
I am trying to write a menu that formats the link nicely for the page I am on. So far, the novomatic tut helped the most, but there is no detail on how to customize the implementation. My strategy is to determine which page I am on and then to set an attribute on the link and format it with css.

Javadoc for wicket 1.3.5 - how to include it in eclipse

2008-10-31 Thread pieter claassen
What is the most effective way to get the documentation available offline for wicket 1.3.5 in Eclipse. I notice that mvn eclipse:eclipse -Ddownloadsources=true does not give javadocs. Regards, Pieter

ListView broken?

2008-10-23 Thread pieter claassen
() produces an ArrayList. The arraylist works when there is only 1 item in it but when I have more than 1 item, it fails with the ClassCastException. Is this a wicket problem or am I doing something wrong? Regards, Pieter pieter claassen [EMAIL PROTECTED

Re: ListView broken?

2008-10-23 Thread pieter claassen
to a List. Everyone is using ListView and it cannot be broken this way :) Pieter Claassen wrote: I am getting a classcast exception in ListView that is stumping me. This is the error message (top few lines) WicketMessage: Error attaching this container for rendering: [MarkupContainer [Component

Re: ListView broken?

2008-10-23 Thread pieter claassen
in it which is not of the type QuestionAndAnswer try iterating through the list and logging the class name of each item in it Dipu On Thu, Oct 23, 2008 at 9:46 AM, pieter claassen [EMAIL PROTECTED] wrote: I am getting a classcast exception in ListView that is stumping me

Re: ListView broken?

2008-10-23 Thread pieter claassen
, pieter claassen [EMAIL PROTECTED] wrote: Hi Dipu, I tried that but when I do the following: protected void populateItem(ListItem item) { System.out.println(+++ + item.getModelObject().getClass().getName()); final QuestionAndAnswer

Re: ListView broken?

2008-10-23 Thread pieter claassen
a QuestionAndAnswer. Are you looking at the correct ListView (i.e. are there more ListView s on your page)? Martijn On Thu, Oct 23, 2008 at 11:55 AM, Dipu [EMAIL PROTECTED] wrote: pass , sorry i have no clue On Thu, Oct 23, 2008 at 10:37 AM, pieter claassen [EMAIL PROTECTED] wrote: Ok, I added; public

Re: ListView broken?

2008-10-23 Thread pieter claassen
that template.getQuestions() produces an ArrayList. The arraylist works when there is only 1 item in it but when I have more than 1 item, it fails with the ClassCastException. Is this a wicket problem or am I doing something wrong? Regards, Pieter pieter claassen [EMAIL PROTECTED