Re: Form : should it be possible to call validate() onBeforeRender ?

2009-07-08 Thread Joseph Pachod
Thanks for this answer to validate some extra components, I would override the onValidate() method of a form to add my own specific validation. The issue I'm encountering is due to calling the validate() method, the one which, I guess, then call onValidate(). I don't know if one can ask the

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.

xml+wicket component

2009-07-08 Thread Gerald Fernando
Hello Friends, i am Gerald Anto Fernando,since past 7 days i have started to learn Wicket. As I am debut to wicket,please forgive me if i ask any small questions. shall we bind the data from xml file into wicket component. If it possible please give me some models. Thanking You, Gerald Anto

Re: artwork problem while changing background color of liquid canvas

2009-07-08 Thread vineet semwal
First of all thank you for developing such a good plugin, 1)LiquidCanvasBehavior liquidCanvasBehaviorOne=new LiquidCanvasBehavior(fill,g,new RoundedRect()); 2)LiquidCanvasBehavior liquidCanvasBehaviorOne=new LiquidCanvasBehavior(g,fill,new RoundedRect()); After changing the position of

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

setPageExpiredErrorPage not doing the job after 1.4-rc4

2009-07-08 Thread Atle Holmer Markussen
Hi, After upgrading from rc4 to rc6 I'm getting PageExpiredExceptions splashing out after clicking on not bookmarkable link at session-timeouts and after server restarts. Previously (1.4-rc4 and 1.3.x) this resulted in sending me to the login-page and then to the homepage as I declared in the

Re: Prefill form not model?

2009-07-08 Thread Vladimir K
Martin, having read the thread I didn't get why you can not modify the object itself. OSiV shouldn't be the reason because the object should be detached when submitting the form and it should be merged into a brand new hibernate session. Actually I don't see the value of always keeping in mind

Re: artwork problem while changing background color of liquid canvas

2009-07-08 Thread nino martinez wael
Im happy that some ones using the project, and very good to get some feed back. I've verified your problem and it seems that the fill is broken somehow im not quite sure whats going wrong or if we are using it wrong fully. But when ever fill are present along side gradient etc, all backround just

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: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-08 Thread Vladimir K
Igor, for now I'm concerned about how can I make sure that my code that mimics form submitting lifecycles and wicket code in coming version do the same things? For instance the AjaxFormComponentUpdatingBehavior: @Override protected final void onEvent(final AjaxRequestTarget

Re: Going back to a previous URL?

2009-07-08 Thread rolandpeng
hi cu uwe, I've tried your mentioned method below to setResponsePage for keeping state in BookmarkablePage. But it doesn't work. here is my implemented codes: -- PageParameters oParam=new PageParameters(); oParam.add(product_oid,String.valueOf(oProduct.getOid())); DetailProduct targetPage=new

Re: Going back to a previous URL?

2009-07-08 Thread sfunds
Hi, I know these is not a reply sorry for that. How do i post to nabble wicket user. Can anyone guide I have searched google / nabble but no mention of method to post question Thanks -- View this message in context:

Re: xml+wicket component

2009-07-08 Thread Gerald Fernando
Hi mark, i dont have sample code am very new to wicket. my requirement is that i think like option A i have a xml file which has first name,last name and middle name supose my wicket page is Data.java which should get first and last name from xml file now my Data.html markup file to show the

Re: xml+wicket component

2009-07-08 Thread Linda van der Pal
So is the XML replacing a database? Or is it meant more like internationalization? Regards, Linda Gerald Fernando wrote: Hi mark, i dont have sample code am very new to wicket. my requirement is that i think like option A i have a xml file which has first name,last name and middle name

Re: xml+wicket component

2009-07-08 Thread Gerald Fernando
our database data comes as xml file. How do i display it in client side using wicket On Wed, Jul 8, 2009 at 3:18 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: So is the XML replacing a database? Or is it meant more like internationalization? Regards, Linda Gerald Fernando

Re: 1.4 trunk broken?

2009-07-08 Thread James Carman
Have we fixed this? I'm getting the same error. On Wed, Jun 17, 2009 at 3:00 PM, Stefan Lindnerlind...@visionet.de wrote: The problem occurs when I klicked around on a page an then deploy a new version of the app. When I klick on a page link now then the error occurs. In former trunk

Re: setPageExpiredErrorPage not doing the job after 1.4-rc4

2009-07-08 Thread Alex Objelean
This issue will be fixed in 1.4-rc7 release: http://issues.apache.org/jira/browse/WICKET-2346 homar70 wrote: Hi, After upgrading from rc4 to rc6 I'm getting PageExpiredExceptions splashing out after clicking on not bookmarkable link at session-timeouts and after server restarts.

Re: xml+wicket component

2009-07-08 Thread Linda van der Pal
First of all create a parser for the XML, I'm not very experienced in Wicket, but I haven't heard of any Wicket object that does this for you. Then create a repeater backed by a model that contains the data you just got from the parser. If you haven't done so yet, I can advise you to read

Re: 1.4 trunk broken?

2009-07-08 Thread Johan Compagner
i think in trunk it should be fixed. On Wed, Jul 8, 2009 at 13:20, James Carman jcar...@carmanconsulting.comwrote: Have we fixed this? I'm getting the same error. On Wed, Jun 17, 2009 at 3:00 PM, Stefan Lindnerlind...@visionet.de wrote: The problem occurs when I klicked around on a page

Re: 1.4 trunk broken?

2009-07-08 Thread James Carman
Yeah, there was a message that just sent out about it. It's WICKET-2346. When can we expect a new release? This is a nasty bug in our production environment (yes, I know I shouldn't be using an rc in production, but we didn't want to have to change the code to genericize it after an official

Re: How to configure data source for Jetty server?

2009-07-08 Thread Roman Zechner
Peter Thomas wrote: On Tue, Jul 7, 2009 at 2:08 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: http://docs.codehaus.org/display/JETTY/JNDI -igor On Mon, Jul 6, 2009 at 1:22 PM, Petr Fejfarpetr.fej...@gmail.com wrote: Hi all, When I've started learning Wicket, I followed

Re: setting value in TextField with ajax fails after field had error

2009-07-08 Thread Mathias Nilsson
The onchange is only triggered when you type and then go onblur. Check onkeypress, onkeydown, onkeyup -- View this message in context: http://www.nabble.com/setting-value-in-TextField-with-ajax-fails-after-field-had-error-tp24385756p24390652.html Sent from the Wicket - User mailing list archive

Re: xml+wicket component

2009-07-08 Thread Martin Makundi
Yes. 1. Loading the xml into java is a separate problem 2. Displaying the rows in a wicket table is a separate problem for which you can find multiple copy-paste examples here: http://wicketstuff.org/wicket13/repeater/ ** Martin 2009/7/8 Linda van der Pal lvd...@heritageagenturen.nl: First of

Re: Going back to a previous URL?

2009-07-08 Thread Mathias Nilsson
It is stated on top of the nabble page. You must subscribe to the mailing list for this. Afterwards you just send an email to users@wicket.apache.org to post a new question. -- View this message in context: http://www.nabble.com/Going-back-to-a-previous-URL--tp19254601p24390934.html Sent from

Re: Converter Problem

2009-07-08 Thread Stijn Maller
Looking at your datepattern you should be using LocalDate instead of DateTime, as you don't have a time or a timezone anyway. IMVHO this should solve all your problems. -- View this message in context: http://www.nabble.com/Converter-Problem-tp24378227p24391721.html Sent from the Wicket - User

Wicket 1.4RC6 NoSuchMethodError

2009-07-08 Thread Joshua Martin
This page worked in Wicket 1.3.6, but for some reason it's not working in 1.4RC6 - I'm getting a NoSuchMethodError with the following output: java.lang.NoSuchMethodError: org.liberatio.pages.FileTransferPage.add([Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer; at

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

Re: Wicket 1.4RC6 NoSuchMethodError

2009-07-08 Thread Joshua Martin
Runtime... On Wed, Jul 8, 2009 at 10:44 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: 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

Re: Converter Problem

2009-07-08 Thread jpalmer1026
The DateTime I was referring to is in the org.apache.wicket.datetime.DateConverter class, so I have no way of modifying it. Any other ideas? Stijn Maller wrote: Looking at your datepattern you should be using LocalDate instead of DateTime, as you don't have a time or a timezone anyway.

Re: Converter Problem

2009-07-08 Thread jpalmer1026
The DateTime I was referring to is in the org.apache.wicket.datetime.DateConverter class, so I have no way of modifying it. Any other ideas? Stijn Maller wrote: Looking at your datepattern you should be using LocalDate instead of DateTime, as you don't have a time or a timezone anyway.

Re: Wicket 1.4RC6 NoSuchMethodError

2009-07-08 Thread Joshua Martin
That's gotta be one of the dumbest mistakes I've ever made! Simply did a Clean and Build in NetBeans and it redeployed perfectly! My apologies for wasting your time... -- _ Joshua S. Martin -

Re: Wicket 1.4RC6 NoSuchMethodError

2009-07-08 Thread James Carman
It wasn't much time. :) No worries. On Wed, Jul 8, 2009 at 11:11 AM, Joshua Martinjosmar52...@gmail.com wrote: That's gotta be one of the dumbest mistakes I've ever made! Simply did a Clean and Build in NetBeans and it redeployed perfectly! My apologies for wasting your time... --

Re: 1.4 trunk broken?

2009-07-08 Thread Igor Vaynberg
you can always build your own jar from trunk -igor On Wed, Jul 8, 2009 at 4:43 AM, James Carmanjcar...@carmanconsulting.com wrote: Yeah, there was a message that just sent out about it.  It's WICKET-2346.  When can we expect a new release?  This is a nasty bug in our production environment

Re: 1.4 trunk broken?

2009-07-08 Thread James Carman
Yeah, we could, but then I'd have to make up a new version number for it, since the release plugin doesn't allow SNAPSHOT dependencies. If you guys are going to have rc7 out the door soon, I can just wait. The rc4 release works just fine. On Wed, Jul 8, 2009 at 11:38 AM, Igor

Re: AjaxSelfUpdatingTimerBehavior and Panels

2009-07-08 Thread Mauro Ciancio
On Thu, Jul 2, 2009 at 2:43 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you can attach the behavior to a container around the panels, just a simple webmarkupcontainer should do. Thanks for the reply Igor. I could not test it yet. I'll test it and then write I'll write what happened.

Wicket 1.4-rc6 Swarm

2009-07-08 Thread Joshua Martin
When will Wicket 1.4 be compatible with Swarm/Wasp? -- _ Joshua S. Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Logging configuration for Wicket - Newbie

2009-07-08 Thread Rowe, Richard A.
I am trying to get my logging configured for a Wicket application. I am using SLF4J and LOG4J. I have configured two appenders (Console and File). I am noticing that all Wicket rendering statements are going to my log file (INFO, DEBUG, etc). This is not desirable. How do I turn this off? Thanks.

Re: Wicket 1.4-rc6 Swarm

2009-07-08 Thread Olger Warnier
Hi Joshua / List, For our project, I have ported wicket-security to 1.4 based on the code of Maurice found at: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/wicket-security-1.4-earlyaccess/ And

Dynamic Query????

2009-07-08 Thread Sridhar R
I am going through wicket as possible framework for a project. One of my requirements is 1) lot of Database query using hibernate/ibatis/jdbc 2) Each query will return atleast 100 - 120 rows which i can view using Repeater dataview /datagrid class 3) Do i need to hard code my HTML files for

Re: Dynamic Query????

2009-07-08 Thread Igor Vaynberg
use datatable -igor On Wed, Jul 8, 2009 at 11:28 AM, Sridhar Rsfu...@yahoo.com wrote: I am going through wicket as possible framework for a project. One of my requirements is 1) lot of Database query using hibernate/ibatis/jdbc 2) Each query will return atleast 100 - 120 rows which i can

Re: Dynamic Query????

2009-07-08 Thread Marc Nuri (GMail)
Have a look at inmethod grid and its datasource interfaces. I use it in one of my projects to display JPA queries and it works great.Features include sorting, and inline editing. -- Marc Nuri

Re: Dynamic Query????

2009-07-08 Thread Per Newgro
Did you check http://www.wicketstuff.org/wicket13/repeater ? See the source code (upper right corner of page) Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Wicket NetBeans Users please vote for these Issues

2009-07-08 Thread Bernard
Hi, Please vote for: Source root's non-class files not included on Auto deploy http://www.netbeans.org/issues/show_bug.cgi?id=145666 Unnecessary redeploys by deploy on save http://www.netbeans.org/issues/showvotes.cgi?issue_id=15 The Wicket plugin can be found here

Re: Detaching and ModalWindow causes race condition

2009-07-08 Thread Juan Carlos Garcia M.
@Martijn, did came up with a solution to this. I'll be glad to hear it. Thanks Per Lundholm wrote: Oh, that is a good one. You could make it a modal window. After a while that window (I assume) would get to contain more and more settings. Then all of a sudden, the last setting you

Re: Detaching and ModalWindow causes race condition

2009-07-08 Thread Juan Carlos Garcia M.
@Martijn, did you came up with a solution to this. I'll be glad to hear it. Juan Carlos Garcia M. wrote: @Martijn, did came up with a solution to this. I'll be glad to hear it. Thanks Per Lundholm wrote: Oh, that is a good one. You could make it a modal window. After a while

Re: Dynamic Query????

2009-07-08 Thread sfunds
Marc Nuri (GMail) wrote: Have a look at inmethod grid and its datasource interfaces. I use it in one of my projects to display JPA queries and it works great.Features include sorting, and inline editing. -- Marc Nuri where can i find that component. www.inmethod.com is showing

Re: Dynamic Query????

2009-07-08 Thread Stefan Malmesjö
http://www.nabble.com/inmethod---grid-website--td20086965.html On Wed, Jul 8, 2009 at 8:57 PM, sfunds sfu...@yahoo.com wrote: Marc Nuri (GMail) wrote: Have a look at inmethod grid and its datasource interfaces. I use it in one of my projects to display JPA queries and it works

Re: Dynamic Query????

2009-07-08 Thread Igor Vaynberg
http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent/ -igor On Wed, Jul 8, 2009 at 11:57 AM, sfundssfu...@yahoo.com wrote: Marc Nuri (GMail) wrote: Have a look at inmethod grid and its datasource interfaces. I use it in one of my

Re: Detaching and ModalWindow causes race condition

2009-07-08 Thread Johan Compagner
Dont share models between pages if possible. This is also a problem if 1 or both of them is serialized and then read back in, then you suddenly have 2 instances because pages are not serialized as one thing. On 03/07/2009, Martijn Dashorst martijn.dasho...@gmail.com wrote: In our apps we

Re: Prefill form not model?

2009-07-08 Thread Johan Compagner
The hack is awful Just have a detachable model that holds on first render the defaults then when a submit is done populate the object (another) that you want On 07/07/2009, Martin Makundi martin.maku...@koodaripalvelut.com wrote: The hack is cleaner 2009/7/7 James Carman

DateField and enabling some days

2009-07-08 Thread Fernando Wermus
Hi all, I've successfully pointed to DateTimeField which days I want the calendar to have enabled. @SuppressWarnings(unchecked) @Override protected void configure(Map widgetProperties) { super.configure(widgetProperties); Date minDate = new DateTime().plusDays(1).toDate();

Re: DateField and enabling some days

2009-07-08 Thread Fernando Wermus
thanks for the tip. Is there some way to solve what I commented? On Wed, Jul 8, 2009 at 1:25 PM, John Krasnay j...@krasnay.ca wrote: On Wed, Jul 08, 2009 at 01:16:19PM -0700, Fernando Wermus wrote: Date minDate = new DateTime().plusDays(1).toDate(); SimpleDateFormat format =

Re: Logging configuration for Wicket - Newbie

2009-07-08 Thread Maarten Bosteels
http://logging.apache.org/log4j/1.2/manual.html Hint: Setting your your root logger on WARN and explicitly lower the level for specific loggers (eg your own classes) is easier than trying the opposite. log4j.rootLogger=WARN log4j.logger.org.apache.wicket=INFO Maarten On Wed, Jul 8, 2009 at

DateField and enabling some days

2009-07-08 Thread Fernando Wermus
I finally rewrite the DateField class, but I would like this were an improvement. /** * Construct. * * @param id * @param model */ public DateField(String id, IModel model) { super(id, model); setType(Date.class); PropertyModel

Re: Converter Problem

2009-07-08 Thread jpalmer1026
For what it's worth, I added the following Calendar code to the end of the method, which fixed the problem, but I'm thinking there has to be a better way to handle this. public Date convertToObject(String value, Locale locale) { final Pattern pattern = Pattern.compile(REGEX_PATTERN);

RE: Logging configuration for Wicket - Newbie

2009-07-08 Thread Rowe, Richard A.
Thanks, Maarten. Richard From: users-return-39497-richard.a.rowe=saic@wicket.apache.org on behalf of Maarten Bosteels Sent: Wed 7/8/2009 4:37 PM To: users@wicket.apache.org Subject: Re: Logging configuration for Wicket - Newbie

Help: Open file in new window if specified. [SEC=UNCLASSIFIED]

2009-07-08 Thread Michelle . Bhaal
Hello. I'm trying to open the contents of a file in a new window if the filepath is specified. What is the best way to do this? I can get the filepath in via PageParameters, I can use a panel to include some JavaScript based upon if I get the filepath or not, but how do I get the filepath

Re: AjaxSelfUpdatingTimerBehavior and Panels

2009-07-08 Thread Mauro Ciancio
On Wed, Jul 8, 2009 at 1:29 PM, Mauro Ciancio maurocian...@gmail.comwrote: Thanks for the reply Igor. I could not test it yet. I'll test it and then write I'll write what happened. It works pretty cool. Thanks for the advice! -- Mauro Ciancio

Rewrite page parameter to Login_page when session's expired

2009-07-08 Thread glory
Hi all wicket users! I have a page parameter which is always rewritten in every page in entire project pages. I need a way to rewrite this page parameter to Login_page when the session's expired. Is it possible to do this? Thanks in Advance, Gloria Saripah Patara

Re: Rewrite page parameter to Login_page when session's expired

2009-07-08 Thread Mathias Nilsson
@Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { @Override protected Page onRuntimeException(final Page page, final RuntimeException e) {

Re: Rewrite page parameter to Login_page when session's expired

2009-07-08 Thread glooorrryyy
Which class should I override this method in? Mathias Nilsson wrote: @Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { @Override protected Page

Re: Help: Open file in new window if specified. [SEC=UNCLASSIFIED]

2009-07-08 Thread Mathias Nilsson
maybe a behavior final AbstractDefaultAjaxBehavior behaviour = new AbstractDefaultAjaxBehavior(){ @Override protected void respond(AjaxRequestTarget target) { } @Override

Re: Rewrite page parameter to Login_page when session's expired

2009-07-08 Thread Mathias Nilsson
The application class -- View this message in context: http://www.nabble.com/Rewrite-page-parameter-to-Login_page-when-session%27s-expired-tp24403797p24404071.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket 1.4-rc6 Swarm

2009-07-08 Thread Olger Warnier
Hi Joshua / List, For our project, I have ported wicket-security to 1.4 based on the code of Maurice found at: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/wicket-security-1.4-earlyaccess/ And

changing locale with a form

2009-07-08 Thread Ian MacLarty
Hi, I'm trying to implement a page containing a form and some links that allow the user to change the current locale. Unlike the example at http://www.wicket-library.com/wicket-examples/forminput/ I do not want the form values to be reset when the user changes the locale. The first thing I