Problem with submitLink outside a form

2010-07-22 Thread Andrea Selva
Hi list, sorry for this repost, but I'cant find an answer to the question and I don't know if this behaviour is intentional or a bug I'm new to wicket. I've some problem with a Formteser.submitLink that should sumbit a form throught a link that stay outside the form. I've played with the wicket

Re: DatePicker css

2010-07-22 Thread PDiefent
Hi, I also have a problem with the date picker CSS. The columns in the calendars GUI always resize according to the column width of the table in the background of the calendar GUI. Is it possible to isolate the calendar in a separate layer/div where no resizing of the calendar columns take place?

Re: AjaxButton OnSubmit Validation Overridden

2010-07-22 Thread Nivedan Nadaraj
Hi All, I did look up the Nabble archive for key-words like 'AjaxButton onSubmit', AjaxButton and OnError. I did not get anything that addressed this.So do bear with me with this is re-post. I have a field(few fields) for which is setRequired(true). Below this field(s) I have an

Re: AjaxButton OnSubmit Validation Overridden

2010-07-22 Thread MattyDE
you could Try to set /** * Sets the defaultFormProcessing property. When false (default is true), all validation and * form updating is bypassed and the onSubmit method of that button is called directly, and the * onSubmit method of the parent form is not

Re: AjaxButton OnSubmit Validation Overridden

2010-07-22 Thread Nivedan Nadaraj
Thanks for that, that worked. I have used this feature before for the Cancel operation. Just did not occur to me. Cheers On Thu, Jul 22, 2010 at 3:41 PM, MattyDE ufer.mar...@gmail.com wrote: you could Try to set /** * Sets the defaultFormProcessing property. When false

Standard way to internationalize a website with /en, /de ?

2010-07-22 Thread Laurentiu Trica
Hello, Is there a standard and easy way to add the language parameter in the URL of an existing app? I would like to have the www.example.com/en for English language and www.example.com/de for German language. Is this an easy task? Any hints? Thank you. -- Best regards, Laurentiu Trica

Re: Standard way to internationalize a website with /en, /de ?

2010-07-22 Thread Martin Makundi
Hi! You have XX_en.properties XX_de.properties etc. ** Martin 2010/7/22 Laurentiu Trica laurentiu.tr...@finalfolder.biz: Hello, Is there a standard and easy way to add the language parameter in the URL of an existing app? I would like to have the www.example.com/en for English language

Re: AjaxButton OnSubmit Validation Overridden

2010-07-22 Thread Nivedan Nadaraj
Although..the Model is not updated on the ListMultipleChoice control. So when I use the Remove Selected button I get the values from listControl.getModelObject() this returns a null list.So a NP exception is thrown. I turned the defaultFormProcessing back on to the standard one for this'

Re: Standard way to internationalize a website with /en, /de ?

2010-07-22 Thread Laurentiu Trica
Hello, Yes, I have all that, the application is already i18n, but I need to put the language parameters in the URL for Google to index as separate pages (en, de). This is my trouble... On Thu, Jul 22, 2010 at 11:32 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! You have

Re: Clean URLs without /?wicket:interface=:0:::: stuff - is it possible?

2010-07-22 Thread Laurentiu Trica
Thank you, I'll have a look at these suggestions. On Wed, Jul 21, 2010 at 7:23 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Look into page mounting, BookmarkablePageLink mount(new BookmarkablePageRequestTargetUrlCodingStrategy(nicename, your.package.PageName.class, null));

Re: AjaxButton OnSubmit Validation Overridden

2010-07-22 Thread vov
Hi, Read http://www.wicketframework.org/apidocs/wicket/markup/html/form/Form.html about nested forms. Also your can put your ListMultipleChoice and buttons to separate Panel -- View this message in context:

Re: AjaxButton OnSubmit Validation Overridden

2010-07-22 Thread Nivedan Nadaraj
Hi Thanks for that, I guess building the piece of code as a separate component(panle) helps. This should deal with Multi Select with add/remove buttons with submit (Default behavior) . Having the multi-select logic more generic would help in re-use.I think. Cheers On Thu, Jul 22, 2010 at 4:58

Re: Clean URLs without /?wicket:interface=:0:::: stuff - is it possible?

2010-07-22 Thread Josh Kamau
Laurentiu Trica,I would highly recommend that you get wicket in action book. Wicket has very many cool features. URL mapping is just one of them. To avoid making obvious mistakes, its a good idea to have a big picture of the entire framework. This will help you make informed design decisions

Re: Line breaks and label

2010-07-22 Thread Martijn Dashorst
This is not a wicket problem, but rather a browser rendering issue. Use nbsp; instead of whitespace. Martijn On Thu, Jul 22, 2010 at 5:47 AM, Nii Amon Dsane jaz...@gmail.com wrote: Hello, I have a label that's displayed on a page. The label displays but with a linebreak and this breaks the

Re: Line breaks and label

2010-07-22 Thread Witold Czaplewski
Or use in CSS: white-space:nowrap; Witold Am Thu, 22 Jul 2010 11:56:57 +0200 schrieb Martijn Dashorst martijn.dasho...@gmail.com: This is not a wicket problem, but rather a browser rendering issue. Use nbsp; instead of whitespace. Martijn On Thu, Jul 22, 2010 at 5:47 AM, Nii Amon Dsane

Re: Standard way to internationalize a website with /en, /de ?

2010-07-22 Thread Alex Objelean
There is a page on wiki describing how this can be done: https://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Standard-way-to-internationalize-a-website-with-en-de-tp2298300p2298625.html

Re: Size of ListView

2010-07-22 Thread Danny van Bruggen
No, we can't change the component tree in onAfterRender - Wicket complains that it cannot increase the page version after rendering. On 7/21/10, Vincent Lussenburg vincent.lussenb...@gmail.com wrote: I remember trying that, but getting slapped by wicket for trying to change the component tree

Re: Animated page switch possible?

2010-07-22 Thread Martin Grigorov
Anyone knows a URL where we can see such reload in action ? I can imagine it with Ajax reload but not with normal/full page reload. On Thu, Jul 22, 2010 at 12:47 AM, 7zark7 7za...@gmail.com wrote: Folks I think there is a valid usage here for mobile device apps which use animations between

Re: TextArea StringValidator and DateValidator

2010-07-22 Thread vov
Create XML file that named same with your class and put ot it entry key=studyDescriptionTxtArea.StringValidator.rangeYOUR TEXT HERE is not between ${minimum} and ${maximum} characters long/entry instead studyDescriptionTxtArea must be wicket:id of your TextField -- View this message in

Re: show modal window on cometd event using IChannelTarget

2010-07-22 Thread fachhoch
I a using a modalwindow and on an event I wan to call modalWindow.show() the method modalWindow.show() takes AjaxTargetRequest ,as input parameter, the problem I have is I donot have AjaxRequestTarget but I have org.wicketstuff.push.IchannelTarget , Please tell me how can I can I

How to autogenerate WebPage classes for static pages?

2010-07-22 Thread Arjun Dhar
Hi, a section of my website is static pages (template) but no need of injecting any components [I prefer getting as much dine through inheritance cleanly over Panels]. Each markup has to have a corresponding WebPage in wicket. I'm exploring the ASM library with CGLIB to auto generate classes

Re: How to autogenerate WebPage classes for static pages?

2010-07-22 Thread Martin Grigorov
I'd use a WebPage with custom template loading (see http://wicketstuff.org/wicket14/customresourceloading/) Mount this page for all URLs with static data. Then the current URL can be found with String pageUrl = getRequest().getPath(); load the appropriate .html depending on 'pageUrl'. On Thu,

Re: TextArea StringValidator and DateValidator

2010-07-22 Thread Nivedan Nadaraj
Thanks will try that. Cheers Thanks for ut time Cheers Niv On Thu, Jul 22, 2010 at 10:07 PM, vov vov...@mail.ru wrote: Create XML file that named same with your class and put ot it entry key=studyDescriptionTxtArea.StringValidator.rangeYOUR TEXT HERE is not between ${minimum} and ${maximum}

How to be a Top Wicket Developer

2010-07-22 Thread Nivedan Nadaraj
Hi Guys This is off topic but how does one become a top developer for wicket? What do you think brings forth that talent and creativity? Cheers Niv

Re: How to be a Top Wicket Developer

2010-07-22 Thread Martin Makundi
Fix a few core bugs and pimp 1.5 ;] ** Martin 2010/7/22 Nivedan Nadaraj shravann...@gmail.com: Hi Guys This is off topic but how does one become a top developer for wicket? What do you think brings forth that talent and creativity? Cheers Niv

Re: Line breaks and label

2010-07-22 Thread Nii Amon Dsane
Hi Martijn, many thanks for the response. The linebreaks are not being applied on whitespaces. I am using spans with wicket:id to write out some strings in my markup. The strings are displayed alright but I notice that the linebreaks are applied before and after the string. For instance, I have

Re: Line breaks and label

2010-07-22 Thread Nii Amon Dsane
Hi Witold, I must be doing something very wrong because the CSS doesn't work on any tag that has wicket:id! I checked the Pro Wicket book and apparently if you put your CSS files into the head of the markup file, the styles are going to apply. In my case the styles apply to all tags which do not

Re: How to be a Top Wicket Developer

2010-07-22 Thread Brian Topping
I think it primarily comes from having a client that will push you to do things with it that you didn't think you could do before. Otherwise, you have to push yourself, and that takes a longer because people naturally avoid things that they aren't familiar with. Note there are different

Re: How to be a Top Wicket Developer

2010-07-22 Thread Nivedan Nadaraj
1. Brian..great thoughts. I am just a beginer in this framework but amazed at the knowledge and I must quote Callinghan sorry if I mispelt, he was the main guy for Stuts framework a decade ago.He said he had the servlet spec in the inside of his eyeballs. I always wondered!!! Point

Re: How to be a Top Wicket Developer

2010-07-22 Thread Nivedan Nadaraj
Cheers mate..but i lost u in the end of that line... On Thu, Jul 22, 2010 at 11:46 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Fix a few core bugs and pimp 1.5 ;] ** Martin 2010/7/22 Nivedan Nadaraj shravann...@gmail.com: Hi Guys This is off topic but how does one

Re: How to be a Top Wicket Developer

2010-07-22 Thread Nivedan Nadaraj
I apologise for starting a thread like this, there was a response that was I felt offending...looks like there some dont appreciate the thrill of true knoweldge. I request moderator to remove anything that offends. My apologies.. Cheers On Fri, Jul 23, 2010 at 12:12 AM, Nivedan Nadaraj

Re: Size of ListView

2010-07-22 Thread Igor Vaynberg
what about onDetach() ? -igor On Thu, Jul 22, 2010 at 6:17 AM, Danny van Bruggen tsuih...@gmail.com wrote: No, we can't change the component tree in onAfterRender - Wicket complains that it cannot increase the page version after rendering. On 7/21/10, Vincent Lussenburg

Re: How to be a Top Wicket Developer

2010-07-22 Thread Martin Makundi
I thought Pimp word is mainstream. I apologise for that, I am not a native english speaker ;] ** Martin 2010/7/22 Nivedan Nadaraj shravann...@gmail.com: I apologise for starting a thread like this, there was a response that was I felt offending...looks like there some dont appreciate the

selecting more than one entry from AutoCompleteTextField dropdown

2010-07-22 Thread Antonio Mauriello
Hi All, I have an AutoCompleteTextField element that using the AjaxFormComponentUpdatingBehavior( onchange ) allows me to pass the selection made from the dropdown to a WebMarkupContainer. Now the issue I have is that I need to pass more than an entry to that WebMarkupContainer, but when I click

Re: How to be a Top Wicket Developer

2010-07-22 Thread Martin Makundi
Surprisingly there are quite some translations of the word... this is more of what I meant: http://mindprod.com/ggloss/pimp.html pimp a verb meaning to decorate or to make something old look new. Pimps dress in a flashy way to attract attention, hence the etymology. You might pimp up your car

Re: show modal window on cometd event using IChannelTarget

2010-07-22 Thread fachhoch
please help me private final class AuditProgramResetTaskListener implements IChannelListener { public void onEvent(final String channel, final MapString, String datas, final IChannelTarget target) { Long wfEntityId=new

TextFieldInteger

2010-07-22 Thread Douglas Ferguson
Has anybody succesfully used TextFieldInteger? I get an runtime exception trying to cast String to Integer. If supply (Integer.class) to the constructor then it is trying to case Long to Integer. D/

OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
Guys, our production server is running into an error from time to time. I get the below stack trace after the site has been running for a while. It's not running in development mode. It's running in deployment mode. Any thoughts? What's with this generateSerializationConstructor() stuff?

Re: TextFieldInteger

2010-07-22 Thread T Ames
I think you have to use the setType(Integer.class) method on the TextField object. setType public final FormComponent file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.htmlT

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
I'm running Wicket 1.4.9 and Sun's JDK 1.6.0_20 on a RHEL4 64-bit machine. On Thu, Jul 22, 2010 at 2:30 PM, James Carman ja...@carmanconsulting.com wrote: Guys, our production server is running into an error from time to time.  I get the below stack trace after the site has been running for a

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread Martin Makundi
Where is the outofmemoryerror ? ** Martin 2010/7/22 James Carman ja...@carmanconsulting.com: I'm running Wicket 1.4.9 and Sun's JDK 1.6.0_20 on a RHEL4 64-bit machine. On Thu, Jul 22, 2010 at 2:30 PM, James Carman ja...@carmanconsulting.com wrote: Guys, our production server is running

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
Oops! I must not have copied that line. All it said was PermGen space On Thu, Jul 22, 2010 at 3:25 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Where is the outofmemoryerror ? ** Martin 2010/7/22 James Carman ja...@carmanconsulting.com: I'm running Wicket 1.4.9 and Sun's

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread Martin Makundi
You did try to change your permgen setting? http://rimuhosting.com/knowledgebase/linux/java/-Xmx-settings ** Martin 2010/7/22 James Carman ja...@carmanconsulting.com: Oops!  I must not have copied that line.  All it said was PermGen space On Thu, Jul 22, 2010 at 3:25 PM, Martin Makundi

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
Of course. It's set at 1024m! I bumped it from 256 to 512 to 1024 now. I'm still seeing the error. On Thu, Jul 22, 2010 at 3:31 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You did try to change your permgen setting?

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread david_
http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.htmlthese are my settings set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m 2010/7/22 James Carman [via Apache Wicket]

Session time out for Ajax requests

2010-07-22 Thread Gurpreet.Singh
Hi All, Any one tried this : In your served filter you will have to check for Wicket-Ajax header and if it is present return a properly formatted Ajax-response that contains JavaScript to redirect to your login page. I am not sure what exactly I need to return. I tried with ajax-reponsescript

Re: Animated page switch possible?

2010-07-22 Thread Anh
I personally don't have an example, but yes I think this would have to involve Ajax in some way. I have done similar in an app, but only for switching out the main panel. E.g. I created a setResponsePanel (...) method in my page hierarchy. Perhaps this could be used to mimic a full page

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
I'm running Tomcat, so it's: $ env | grep CATALINA CATALINA_OPTS= -Xmx4096m -Xms2048m -XX:MaxPermSize=1024m -XX:+UseParallelGC -server On Thu, Jul 22, 2010 at 3:47 PM, david_ meulemans.da...@gmail.com wrote: http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html

Re: Animated page switch possible?

2010-07-22 Thread James Carman
You'd almost have to decorate every form submit and every link on the page. I don't know if you need AJAX for this, but you'd definitely need some client-side JS. The back button would probably cause some troubles, though. On Thu, Jul 22, 2010 at 3:49 PM, Anh 7za...@gmail.com wrote: I

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread Johan Compagner
what kind of classes are serialized constantly? are those proxies or other generated onces? Somehow it has something to do with getting the default constructor of the first none serializable class And i think your first class in the hierarchy that is found that doenst implement Serializable

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
On Thu, Jul 22, 2010 at 4:11 PM, Johan Compagner jcompag...@gmail.com wrote: what kind of classes are serialized constantly? are those proxies or other generated onces? All sorts of stuff I guess. This doesn't necessarily happen on one particular page. It just starts happening after a while

Re: Animated page switch possible?

2010-07-22 Thread Anh
Yes, that's basically what I do with a setResponsePanel(..) call: you have to call this everywhere in place of setResponsePage for links, submits, etc. Not really optimal if you are trying add this to an existing wicket app. That's why I shared Per's interest in if there was a way to do this

Best way to hide a component

2010-07-22 Thread mgoodson
Hi, this could be a stupid question but I am just wondering what the best way is to hide a component. Say I have a button on a form and when it renders sometimes I want it to show and some times not. I could either use 2 fragments, one with the button in it and one that's empty and switch

what happened to setModel()?...

2010-07-22 Thread Erik Brakkee
HI all, I have a detachable model that I want to set as the model of a page so that it is properly detached. There used to be setModel(). But how should I do this now? I cannot use the superclass constructor because the detachable model can only be computed after construction of the page

Re: TextFieldInteger

2010-07-22 Thread Josh Glassman
There is also a constructor that will take a Class type as a parameter. On Thu, Jul 22, 2010 at 3:11 PM, T Ames tamesw...@gmail.com wrote: I think you have to use the setType(Integer.class) method on the TextField object. setType public final FormComponent

Re: TextFieldInteger

2010-07-22 Thread avrahamr
I've encontered the same problem and it took me a while to figure it out why. So maybe it's a good idea to make it automatic on the framework, On all TextFieldE constructors without the type parameter we should call setType() like this: setType((Class?) ((ParameterizedType)

Re: what happened to setModel()?...

2010-07-22 Thread Igor Vaynberg
setdefaultmodel() -igor On Thu, Jul 22, 2010 at 2:58 PM, Erik Brakkee erik.brak...@gmail.com wrote: HI all, I have a detachable model that I want to set as the model of a page so that it is properly detached. There used to be setModel(). But how should I do this now? I cannot use the

RE: Session time out for Ajax requests

2010-07-22 Thread Gurpreet.Singh
Somehow below code worked, I thought it be helpful for someone else to. if(httpRequest.getSession(false) == null){ Enumeration headerNames = httpRequest.getHeaderNames(); while(headerNames.hasMoreElements()) { String headerName =

Re: Line breaks and label

2010-07-22 Thread Nii Amon Dsane
Hi Witold, I noticed something. When I was using tags to embed strings in to the markup, the CSS wasn't applied but when I tried it with a div the styles were applied. Is this expected behaviour? nii amon -- View this message in context: