Re: log4j MDC IRequestLogger

2016-02-18 Thread Francois Meillet
rov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Feb 17, 2016 at 2:34 PM, Francois Meillet < > francois.meil...@gmail.com> wrote: > >> Dear All, >> >> I use the Mapped Diagnostic Context concept >> https://logging.apa

Re: log4j MDC IRequestLogger

2016-02-17 Thread Francois Meillet
r() > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Feb 17, 2016 at 2:34 PM, Francois Meillet < > francois.meil...@gmail.com> wrote: > >> Dear All, >> >> I use the Mapped Diagnostic Contex

log4j MDC IRequestLogger

2016-02-17 Thread Francois Meillet
Dear All, I use the Mapped Diagnostic Context concept https://logging.apache.org/log4j/2.x/manual/thread-context.html). Using log4j 2.x and a specific AbstractRequestCycleListener, I overrided onBeginRequest() to perform a ThreadContext.push(id) and onDetach(RequestCycle cycle) to perform a Th

Re: Wicket need Votes! :-)

2016-02-16 Thread Francois Meillet
+1 François Le 16 févr. 2016 à 14:06, andrea del bene a écrit : > > > No need to say it :) >> Done too! >> >> On Tue, Feb 16, 2016 at 1:25 PM, Thomas Jarnot wrote: >> >>> Am 16.02.2016 10:10, schrieb Tobias Soloschenko: >>> Hi all, take some minutes and vote for Ap

https://twitter.com/apache_wicket after 10 months

2016-02-05 Thread Francois Meillet
Dear All, https://twitter.com/apache_wicket after 10 months : 50 tweets posted about technical articles 50 tweets posted about src example lib 500 tweets posted about websites based on Apache Wicket Stay tuned, follow @apache_wicket on Twitter ! https://twitter.com/apache_wicket François

Re: WicketStuff status and future; awesome-wicket project

2016-02-04 Thread Francois Meillet
7;t want to have in the list sites - under > solutions I assume just software which can be installed standalone. > > Regards, > Ilya > > - > Orienteer(http://orienteer.org) - Modern Data Warehouse for your business. > > 2016-0

Re: WicketStuff status and future; awesome-wicket project

2016-02-02 Thread Francois Meillet
Hi Ilya, You can add theses products : Under Web Frameworks Apache OODT http://oodt.apache.org Data grid framework for transparent search and discovery of disparate science resources Apache Openmeetings http://openmeetings.apache.org Apache Openmeetings provides video conferencing, instant m

Re: model does not get updated when radio is clicked - radiogroup with AjaxFormChoiceComponentUpdatingBehavior

2016-01-14 Thread Francois Meillet
Hi Martin it's work. Thanks François Le 14 janv. 2016 à 23:30, Martin Grigorov a écrit : > @Francois: Please try with latest 7.2.0-SNAPSHOT > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, Jan 14, 2016 at

Re: model does not get updated when radio is clicked - radiogroup with AjaxFormChoiceComponentUpdatingBehavior

2016-01-14 Thread Francois Meillet
e forgot it :-/ > > I've found an issue with the traversing of children components in > 7.2.0-SNAPSHOT. > Both issues look like a blocker to me. > > >> >> Best regards >> Sven >> >> >> >> >> On 14.01.2016 17:18, Francois Meillet wrote:

Re: Wicket 7 - OutOfMemory PermGen

2015-11-18 Thread Francois Meillet
{ > > private static final long serialVersionUID = 1L; > public Long getId() { >return null; >} > > //ASM fields >private long userNbr; >private String userName; >private String password; >private String firs

Re: Wicket 7 - OutOfMemory PermGen

2015-11-18 Thread Francois Meillet
//Reset Button >searchForm.add(new AjaxButton("searchClear") { > private static final long serialVersionUID = 1L; > >@Override >protected void onSubmit(AjaxRequestTarget target, Form form) > { >sbpanel.saveSta

Re: Wicket 7 - OutOfMemory PermGen

2015-11-18 Thread Francois Meillet
Could you show us the SearchDealerPage code François Le 18 nov. 2015 à 17:25, Mihir Chhaya a écrit : > Hello, > > I am using Wicket 7 + Spring 4.x + Hibernate 4.x (recently migrated from > Wicket 1.4). > > Since deployment of the app on JBOSS, the application is crashing with > OutOfM

Re: Adding css from my webapp directory

2015-09-17 Thread Francois Meillet
PriorityHeaderItem renders at the beginning of the header response.render(new PriorityHeaderItem(CssHeaderItem.forReference(CSS))); François Le 17 sept. 2015 à 21:47, Ephraim Rosenfeld a écrit : > Hello Team Wicket: > > I have the following situation: > > I have a web application with it

Re: BeanValidation --> wrong maxlength value in TextField

2015-09-16 Thread Francois Meillet
.max() returning > MAX_VALUE and second time with the set value(50). Maybe there is a bug at > Hibernate-Validator > or org.apache.wicket.bean.validation.ConstraintIterator#ConstraintIterator. > > Enjoy! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.co

Re: error from WebPage # reportMissingHead

2015-07-23 Thread Francois Meillet
lidating the headers). > Please create a Jira issue for this. > > For now you could just override #onConfigure() instead of #onInitialize(). > > Have fun > Sven > > > On 23.07.2015 18:45, Francois Meillet wrote: >> Hi Wicketers, >> >> Use case : >&

Re: New Wicket Website

2015-07-11 Thread Francois Meillet
Thanks for this superb website !!! François Le 11 juil. 2015 à 20:01, Tobias Soloschenko a écrit : > Hi, > > just want to thank all for the great work! The new site is awesome! > > https://wicket.apache.org > > kind regards > > Tobias > > --

Re: problem submitting a form twice - quickstart joined

2015-07-03 Thread Francois Meillet
orm"> > > > checked="checked" wicket:id="onOff"> > > > > > Have fun > Sven > > > On 03.07.2015 00:23, Francois Meillet wrote: >> Wicket version is 7.0.M6 >&

Re: problem submitting a form twice - quickstart joined

2015-07-02 Thread Francois Meillet
Wicket version is 7.0.M6 Le 2 juil. 2015 à 23:47, Francois Meillet a écrit : > Description > - > In the quickstart, the HomePage contains a form. > > The form's model is a CompoundPropertyModel<>(new QuestionUnit(Boolean.TRUE)); > The QuestionUni

Re: Wicket page serialization what causes delay?

2015-07-01 Thread Francois Meillet
There is very little chance that the problem come from the serialization. Do you use the Open Session in View pattern ? with some OpensessionInViewFilter filter ? I guess when the page is serialized, some requests are done against the database to load collections or initialize proxies that have

Re: Graphing Framework for Wicket

2015-06-02 Thread Francois Meillet
You have also Wicket-chartjs that combines Apache Wicket and Chart.js free for all private AND commercial projects (Apache Licence v2). https://twitter.com/apache_wicket/status/591569565760561153 François Meillet Le 2 juin 2015 à 10:38, Johannes Renoth a écrit : > Please be aware that

Re: Stateful panel.

2015-05-26 Thread Francois Meillet
One way of doing this : 1) go to your detail page add( new Link("detail") { @Override public void onClick() { setResponsePage(new YourPage(getPage().getPageReference())); } }); public YourPage(PageReference pageReference) { this.pageReference = pageReference; } 2) back

Re: Wicket Listmodel (attach objects to model but not to list)

2015-04-17 Thread Francois Meillet
It's not possible. Look at the ListModel's consructor. public ListModel(List list) { setObject(list); } And the setObject() method implementation, which is in the superclass, is @Override public void setObject(T object) { if (!(object instanceof Serializable))

Re: ReLoad HTML only

2015-04-16 Thread Francois Meillet
look at getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().getMarkup(final MarkupContainer container, final Class clazz, final boolean enforceReload) François Meillet Le 16 avr. 2015 à 18:19, Arjun Dhar a écrit : > Hi, > for production mode its not sensible to use

Re: retrieve public ip adress

2015-04-13 Thread Francois Meillet
Look at the getRemoteAddr(RequestCycle requestCycle) method from org.apache.wicket.protocol.http.request.WebClientInfo François Meillet Le 13 avr. 2015 à 01:20, Chris a écrit : > Hi all, > > I have deployed the Wicket app on a PAAS provider and would like to save the > IP address of t

Re: Wicket roadmap

2015-04-07 Thread Francois Meillet
François Le 16 mars 2015 à 08:46, Martin Grigorov a écrit : > On Sun, Mar 15, 2015 at 10:46 PM, Francois Meillet < > francois.meil...@gmail.com> wrote: > >> Thanks you all >> >> servlet 4.0 / yes it's too early >> >> monitoring / metr

Re: Download serves empty files with correct number of pages !?!

2015-03-31 Thread Francois Meillet
org.apache.wicket.request.resource.ContentDisposition ContentDisposition.INLINE ContentDisposition.ATTACHMENT resourceResponse.setContentDisposition(contentDisposition); François Le 31 mars 2015 à 13:35, ChambreNoire a écrit : > OK so the empty PDFs where due to some strangeness with t

Re: Download serves empty files with correct number of pages !?!

2015-03-30 Thread Francois Meillet
path = new ClassPathResource("descriptors/hc").getFile(); the path isn't null ? François Le 30 mars 2015 à 18:03, ChambreNoire a écrit : > Sure but no exception is thrown! > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Download-serves-empty-files

Re: Download serves empty files with correct number of pages !?!

2015-03-30 Thread Francois Meillet
printing the exception could help } catch (IOException exception) { return null; --> print stack } François Le 30 mars 2015 à 17:44, ChambreNoire a écrit : > Hello, > > I have a strange problem. Ever since I have moved the files I'm linking to > in the following code to th

Re: Wicket roadmap

2015-03-15 Thread Francois Meillet
Thanks you all servlet 4.0 / yes it's too early monitoring / metrics / ok server-sent events / didn't see it / :-) http://bitstorm.github.io/wicket-site/ is superb May we add a "why Wicket" link in the header I agree with Tobias's ideas on mobile François Meillet Le 8 mars 2015 à 1

Re: Wicket roadmap

2015-03-08 Thread Francois Meillet
gorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Sat, Mar 7, 2015 at 11:05 AM, Francois Meillet < > francois.meil...@gmail.com> wrote: > >> Hi All, >> >> >> Is there any Wicket roadmap for the future (after version 7) ? >> >> What is your point of view about the Wicket's future ? >> >> >> Thanks >> François Meillet >> >> >> >> >> >> >>

Re: Wicket roadmap

2015-03-07 Thread Francois Meillet
state-of-wicket-2014/ > > kind regards > > Tobias > > Am 07.03.15 um 10:05 schrieb Francois Meillet: >> Hi All, >> >> >> Is there any Wicket roadmap for the future (after version 7) ? >> >> What is your point

Wicket roadmap

2015-03-07 Thread Francois Meillet
Hi All, Is there any Wicket roadmap for the future (after version 7) ? What is your point of view about the Wicket's future ? Thanks François Meillet

Apache Wicket with Lambda Expressions

2015-02-27 Thread Francois Meillet
From Rodrigo Uchôa's blog https://rodrigouchoa.wordpress.com/2015/02/26/apache-wicket-with-lambda-expressions/ François Meillet

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Francois Meillet
} >}); > } > }); > > button.add(new Behavior() { > renderHead(c, r) { >r.render(OnDomReaderHeaderItem.forScript("$(" + c.getMarkupId() + > ").on('mousedown', function() { mousedownHappened = true });"); > } > }); > > Regards &g

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Francois Meillet
ackoverflow.com/questions/13729837/jquery-stop-blur-event-when-clicking-submit-button > > Regards > Sven > > On 18.02.2015 11:35, Francois Meillet wrote: >> Hi All, >> >> >> 1) I have a Form with a Textfield which has a >> AjaxFormComponentUpdatingBeha

form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Francois Meillet
Hi All, 1) I have a Form with a Textfield which has a AjaxFormComponentUpdatingBehavior (blur) When the entire form is submitted (via an AjaxButton) the ajaxFormComponentUpdatingBehavior.onEvent() is called then the formComponent.validate() is called and then when the form.validate() is called

Re: ListPanel - update model

2015-02-15 Thread Francois Meillet
Hi Chris, The ListModel keeps a reference on the model created at the first occurence of that line pModel = new ListModel(someService.caculate()); The simplest thing you could do is to reset the listpanel's model, but this is not a good practice. listPanel.setDefaultModel(model); add(new AjaxF

Re: New committer - Sebastien Briquet

2015-02-13 Thread Francois Meillet
Welcome Sébastien Thanks for your commitment ! François Le 13 févr. 2015 à 22:55, Tobias Soloschenko a écrit : > Congratulations!!! > > kind regards > > Tobias > >> Am 13.02.2015 um 22:05 schrieb Zala Pierre GOUPIL : >> >> \o/ >> >> Bienvenue Sébastien ! Bravo et continue comme ça !

Re: NoClassDefFoundError: org/objectweb/asm/Type

2015-01-21 Thread Francois Meillet
tin Grigorov > wrote: > >> Please create a ticket! >> Thanks! >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Wed, Jan 21, 2015 at 8:50 PM, Francois Meillet < >> francois.meil...@gm

NoClassDefFoundError: org/objectweb/asm/Type

2015-01-21 Thread Francois Meillet
Hi Martin, with version 7.0.4 and using JMX (wicket-jmx.jar) I get java.lang.NoClassDefFoundError: org/objectweb/asm/Type at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:184) at net.sf.cglib.core.KeyFactory.(KeyFactory.java:66) at net.sf.cglib.proxy.Enhancer.(Enha

Re: What is the proper way to start a secondary process in Wicket 6

2015-01-05 Thread Francois Meillet
Thanks Ernesto ! François Meillet Le 5 janv. 2015 à 10:38, Ernesto Reinaldo Barreiro a écrit : > Martin

Re: Possible memory leak in Wicket 1.5.12

2014-12-21 Thread Francois Meillet
Hi Satrix, Make sure you remove the second constructor. (the one wih the inputstream argument) And the stream could be a local property (in the getImageData method) and not an instance property. François Meillet Formation Wicket - Développement Wicket Le 20 déc. 2014 à 14:26, Satrix a écr

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Francois Meillet
Moving the stream creation, opening and closing it in getImageData is a good thing. You should also remove the second constructor (with the inputstream argument). Now with your tests classes with the WicketTester, (you do have tests ;-) ), you can play yours pages with a debugger and see what h

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Francois Meillet
Can you show me the class when you open the stream ? Did you moved the stream creation to the getImageData this morning ? François Meillet Formation Wicket - Développement Wicket Le 20 déc. 2014 à 10:58, Satrix a écrit : > Hi, > > It's used very rarely so it should not be a problem. Howev

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Francois Meillet
Hi Satrix, When the second constructor is used, with the inputsream argument, the stream is open. When this inputsream is opened ? François Meillet Le 20 déc. 2014 à 10:03, Satrix a écrit : > Yeah, sure. Here is the code: > > public class LocalFileResource extends DynamicImageResource {

Re: Switching between wicket tabs

2014-12-20 Thread Francois Meillet
use parameters PageParameters parameters = new PageParameters(); parameters.set("TAB_NUM", 3); parameters.set("USERNAME_ID", "username); setResponsePage(YourCLaasContainingTheTabbedPanel.class, pageParameters); and in your YourCLaasContainingTheTabbedPanel.class extract the parameters int tabin

Re: Possible memory leak in Wicket 1.5.12

2014-12-20 Thread Francois Meillet
Can you show up the entire class ? François Meillet Formation Wicket - Développement Wicket Le 20 déc. 2014 à 09:56, Satrix a écrit : > Hi, > > It would be quite hard to reproduce the problem in quickstart application. > Here is the code of DynamicImageResource: > > @Override >protec

Re: Possible memory leak in Wicket 1.5.12

2014-12-19 Thread Francois Meillet
Could you show us the code you use to serve these images ? François Meillet Le 19 déc. 2014 à 17:02, Satrix a écrit : > Hello, > > I've developed an Wicket website in Wicket 1.5.12. It's hosted on Glassfish > server 3.1.2.2 and lately I've run into the following problem: > > The problem o

Re: submenu in NavbarDropDownButton

2014-12-17 Thread Francois Meillet
t; Gsm1: 0 544 640 96 25 > Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara > > On 17 December 2014 at 13:03, Francois Meillet > wrote: >> >> What is the error, any stacktrace ? >> >> François Meillet >> Formation Wicket - Développement Wic

Re: submenu in NavbarDropDownButton

2014-12-17 Thread Francois Meillet
What is the error, any stacktrace ? François Meillet Formation Wicket - Développement Wicket Le 17 déc. 2014 à 11:55, Hasan Çelik a écrit : > Thanks Martin, > > I am newbie for wicket... It may be easy error for you but I didn't > understand...Why am I getting this error? Which dependenci

Re: Session management on timeout

2014-12-17 Thread Francois Meillet
;> Also check Session#onInvalidate() >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Wed, Dec 17, 2014 at 11:25 AM, Francois Meillet < >> francois.meil...@gmail.com> wrote: >>> >>

Re: Session management on timeout

2014-12-17 Thread Francois Meillet
Look at application#sessionUnbound(String sessionId) François Meillet Formation Wicket - Développement Wicket Le 17 déc. 2014 à 10:23, Rodrigo Heffner a écrit : > Hello, > > I'm implementing session management on my application, adding each > authenticated session to a list. When users lo

session invalidateNow vs invalidate

2014-12-15 Thread Francois Meillet
just a reminder session invalidateNow vs invalidate if session#invalidateNow is called before a setResponsepage then the application#sessionUnbound is called twice. as invalidateNow is invoked in session#detach. ko getSession().invalidateNow(); setResponsePage(Logout.class); ok # Invalidates

Re: Form delegateSubmit migration question

2014-11-09 Thread Francois Meillet
n instanceof > org.apache.wicket.markup.html.form.FormComponent == false > submittingButton instanceof org.apache.wicket.Component == false > submittingButton instanceof submittingButton instanceof > org.apache.wicket.behavior.Behavior == false > > > On 9 November 2014 18:37, Francois Meillet

Re: Form delegateSubmit migration question

2014-11-09 Thread Francois Meillet
String inputName = ((FormComponent) submittingButton).getInputName(); François Meillet Formation Wicket - Développement Wicket Le 9 nov. 2014 à 13:08, Maxim Solodovnik a écrit : > Hello All, > > I'm trying to migrate project from Wicket 1.4 to Wicket 6. > > previously Form.delegateSubmit

Re: How to use CSVDataExporter

2014-11-06 Thread Francois Meillet
ionid=2926A68F12DAE4CAC910C18699676209?0 https://doc.codelutin.com/cantharella/xref/nc/ird/cantharella/web/utils/data/TableExportToolbar.html François François Meillet Formation Wicket - Développement Wicket Le 6 nov. 2014 à 13:07, suvojit168 a écrit : > Francois Meillet wrote >&g

Re: How to use CSVDataExporter

2014-11-05 Thread Francois Meillet
We have IExportableColumn where T is the type of each row in the table. where S is the type of the sort property of the table. and the method public void exportData(IDataProvider dataProvider, List> columns, OutputStream outputStream) try List> columns = new ArrayList>(); François Meillet

Re: Error in java.lang.String during Internationalisation of a wicket project

2014-10-31 Thread Francois Meillet
When the toString() method of your class de.myproject.MyClass is called, you get a LazyInitializationException. This is from Hibernate To get the LazyInitializationException's full explanation, see https://developer.jboss.org/wiki/LazyInitializationExceptionOvercome?_sscc=t http://blog.gmorales.

Re: Stateful StatelessForm works most of the time. How to make it crash?

2014-10-18 Thread Francois Meillet
Can you post your code ? François Meillet Formation Wicket - Développement Wicket Le 17 oct. 2014 à 17:26, pureza a écrit : > Dear Wicket users, > > I believe I have found the cause of a long standing issue in my application. > Basically, a form would submit with everything set to null or

Re: resource encoding troubles

2014-08-28 Thread Francois Meillet
o does anyone know why my configuration does > not work? What am I doing wrong? > > Sincerely, > > Garret > > On 8/28/2014 10:18 AM, Francois Meillet wrote: >> use *.utf8.properties >> >> François Meillet >> Formation Wicket - Développement Wicket

Re: resource encoding troubles

2014-08-28 Thread Francois Meillet
use *.utf8.properties François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 17:47, Garret Wilson a écrit : > I have Wicket 7.0.0-M2 running on embedded Jetty, which is correctly > returning a content type of UTF-8 for my Wicket page: > > Date: Thu, 28 Aug 2014 15:37

Re: resource encoding troubles

2014-08-28 Thread Francois Meillet
Look at http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tt4661751.html#a4661768 François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 17:47, Garret Wilson a écrit : > I have Wicket 7.0.0-M2 running on embedded Jetty, which is correctly

Re: StringResourceModel with a defaultValue as model

2014-07-18 Thread Francois Meillet
In your Application.properties you add the key key.to.be.good=theValue and you can use the StringResourceModel like that add( new Label("", new StringResourceModel("key.to.be.good", null))); François Meillet Formation Wicket - Développement Wicket Le 18 juil. 2014 à 18:14, Patrick Dav

Re: Validate FormComponent raw input before conversion

2014-07-12 Thread Francois Meillet
TextField t = new TextField("xyz") { @Override public final IConverter getConverter(Class clazz) { return (IConverter) new IntegerConverter() { @Override protected ConversionException newConversio

Re: Pom.xml errors in Wicket

2014-07-08 Thread Francois Meillet
Add org.apache.wicket wicket-core ${wicket.version} org.slf4j slf4j-api ${slf4j-api.version} François Meillet Formation Wicket - Développement Wicket Le 8

Re: [6.16] AjaxButton.onSubmit not working after upgrading to wicket 6

2014-07-05 Thread Francois Meillet
Run your app in debug mode and set some breakpoint. eclipse http://www.eclipse.org/jetty/documentation/current/debugging-with-intellij.html http://www.vogella.com/tutorials/EclipseDebugging/article.html http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fpreferen

Re: [6.16] AjaxButton.onSubmit not working after upgrading to wicket 6

2014-07-05 Thread Francois Meillet
On Wicket 7.02 it works. With wicket-bootstrap dependencies. Have you set a breakpoint in the onSubmit method of your ajax submit button ? François François Meillet Formation Wicket - Développement Wicket Le 5 juil. 2014 à 11:42, smallufo a écrit : > I have a LoginModal which pops up a m

Re: Errors in data view , req for help to fix the error in code

2014-05-27 Thread Francois Meillet
You should read these very good documentation http://wicket.apache.org/guide/guide/single.pdf http://www.wicket-library.com/wicket-examples-6.0.x/repeater/ François Meillet Formation Wicket - Développement Wicket Le 27 mai 2014 à 09:16, kumar ramanathan a écrit : > Thanks, > The serializa

Re: Errors in data view , req for help to fix the error in code

2014-05-26 Thread Francois Meillet
The DemoBean needs to implement the Serializable interface. François Meillet Formation Wicket - Développement Wicket Le 27 mai 2014 à 07:54, kumar ramanathan a écrit : > Hi Friends , > > Am trying to execute a wicket program to accomplish the below task, > > a. a submit button is in place

Re: NPE in AbstractSingleSelectChoice

2014-05-25 Thread Francois Meillet
When the DropDownChoice try to convert the submitted choice id back to the choice object there is an iteration over the choices. You get the NPE in this iteration because nullItem has no id. Have a look to AbstractSingleSelectChoice's setNullValid(true) method to include a null value. http://ci.

Re: How can I display modal dialog only if validation is sucessful?

2014-05-22 Thread Francois Meillet
Hi Bruce, This is just one solution : Have a look at http://pastebin.com/03DF5pcw François Meillet Formation Wicket - Développement Wicket Le 21 mai 2014 à 16:15, Bruce Lombardi a écrit : > Hi, > > > > I have a form with several question that a user must answer. If the answers > are co

Re: DiskDataStore errors in production

2014-05-17 Thread Francois Meillet
You need to increase the maximum number of file handles allowed by your system. On linux/OSX find open files limit per process: ulimit -n count all opened files by all process: lsof | wc -l list of processes and the number of file handles they have open: lsof | cut -d " " -f 1 | uniq -c | sort -n

Re: Extending Border

2014-05-14 Thread Francois Meillet
Have a look at http://apache-wicket.1842946.n4.nabble.com/Adding-border-in-border-td4660191.html#a4660195 François Meillet Formation Wicket - Développement Wicket Le 8 mai 2014 à 23:07, Nick Pratt a écrit : > Ive got a class 'A' that extends Border, with the following markup: > > > >

Re: Please help explain the script below, what's the 'className';'unloadConfirmation','mask' stand for? Is there relative docs could be refered to?

2014-05-12 Thread Francois Meillet
From the modal.js file org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js className set the class of window (blue or silver by default) unloadConfirmation Display confirmation dialog if the user is about to leave a page (IE and FF). mask Transparent or semi-transparent masks that

Re: Application Scope

2014-05-06 Thread Francois Meillet
sessions are serialised François Meillet Formation Wicket - Développement Wicket Le 6 mai 2014 à 15:28, Richard W. Adams a écrit : > One more question: Since each task is associated with a single user, would > it make more sense to create a task map in Session scope? Or will Wicket > try

Re: Application Scope

2014-05-06 Thread Francois Meillet
You can use MyApp.get().setMetaData() and MyApp.get().getMetaData() François Meillet Formation Wicket - Développement Wicket Le 6 mai 2014 à 14:50, Richard W. Adams a écrit : > Are you referring to org.apache.wicket.Application? I don't see a > getTasksMap() method there. We use Wicket 1

Re: onInitialize() and exception handling

2014-04-29 Thread Francois Meillet
You can throw any exception that extends RuntimeException François Meillet Formation Wicket - Développement Wicket Le 29 avr. 2014 à 14:35, Alberto Brosich a écrit : > > Hi, > > I have a wicket application where I create page components (mainly > labels and ListViews) using onInitialize()

Re: Handling with Feedback Messages / setMaxMessages(1)-Problem / best practise

2014-03-04 Thread francois meillet
Session.get().getFeedbackMessages().clear(); François On Tue, Mar 4, 2014 at 10:07 AM, Patrick Davids < patrick.dav...@nubologic.com> wrote: > Hi all, > I would like to have a FeedbackPanel always showing only one error message. > > As seen in FeedbackPanel code setMaxMessages() does this. > Bu

Re: double type text field - auto roundsoff

2014-02-27 Thread francois meillet
Is there any specific DoubleConverter initialized in the Application's newConverterLocator() method ? François On Wed, Feb 26, 2014 at 5:55 PM, nazeem wrote: > Changing the object type to Big Decimal solves this .. Still not clear > how.. > if any body knows any clue please let me know.. > > >

Re: What is difference between setModel and setDefaultModel

2014-02-16 Thread Francois Meillet
in 6.13.0 Component#setDefaultModel(final IModel model) IGenericComponent#setModel(IModel model); The IGenericComponent implementations setter are typesafe. François Meillet Formation Wicket - Développement Wicket Le 16 févr. 2014 à 10:15, Farrukh SATTOROV a écrit : > What is difference

Re: Submitting values for null associations

2014-02-11 Thread francois meillet
You use cascade="all" on the job relation. When job is created, it should have at least one non-empty property. Job's instance is null because it doesn't have any non empty property. François On Tue, Feb 11, 2014 at 3:59 PM, ChambreNoire wrote: > Why would that make any difference? A null Job

Re: Submitting values for null associations

2014-02-11 Thread francois meillet
As Hibernate save a new Job instance when you save the User if the relation is empty why don't you load the job (with an eager fetching strategy) when you load the user ? François On Tue, Feb 11, 2014 at 3:22 PM, ChambreNoire wrote: > I forgot to mention, the reason I don't systematically make

Re: Submitting values for null associations

2014-02-11 Thread francois meillet
The entity User needs to have a Job's instance when you construct your model. François On Tue, Feb 11, 2014 at 2:56 PM, ChambreNoire wrote: > Hi, > > I have a form which can flip between edit and view modes. Its fields share > a > common CompoundPropertyModel which in turn points to an Abstrac

Re: What is the default size of max per session in wicket

2014-02-09 Thread Francois Meillet
There is no simple response. It depends on your non-functional requirements, on what you are trying to achieve, on the pages's size, on the types of model you use. The api says: IStoreSettings setMaxSizePerSession Sets the maximum size of the File where page instances per session are stored. Af

Re: What is the default size of max per session in wicket

2014-02-07 Thread francois meillet
Have a look to setMaxSizePerSession() in the IStoreSettings interface application.getStoreSettings().setMaxSizePerSession(Bytes.megabytes(30)); François On Fri, Feb 7, 2014 at 3:06 PM, Sharad Raut wrote: > What is the default size of max per session in wicket > > -- > View this message in cont

Re: Memory leaks best practices

2014-02-06 Thread francois meillet
http://www.yourkit.com/docs/kb/class_loaders.jsp François On Thu, Feb 6, 2014 at 3:22 PM, Martin Grigorov wrote: > The best memory profiler is Eclipse MAT - https://www.eclipse.org/mat/ > But again it helps only with debugging problems in the heap, not in the > perm gen > > Martin Grigorov > Wi

Re: Changed JSESSIONID Results in Wicket Exception

2014-02-05 Thread Francois Meillet
Use a system property : System.setProperty("wicket.jsessionid.name", "JSESSIONID_MYAPP"); François Meillet Formation Wicket - Développement Wicket Le 5 févr. 2014 à 22:05, Aaron J. Garcia a écrit : > Timo Schmidt xomit.de> writes: > >> >> On Wed 05.02.2014 13:12, Aaron J. Garcia wrote:

Re: Apache wicket project as osgi compoments

2014-02-04 Thread Francois Meillet
You should have a look at http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi https://github.com/wicketstuff/core/wiki/Osgi http://hwellmann.blogspot.fr/2011/06/wicket-and-osgi.html http://www.volkomenjuist.nl/blog/2012/07/25/wicket-mounting-in-an-osgi-environment/ https://ops4j1.jira.com

Re: setting response parameters in wicket 6

2014-01-31 Thread Francois Meillet
try that ((WebResponse) requestCycle.getResponse()).setContentType("application/json"); François Meillet Formation Wicket - Développement Wicket Le 31 janv. 2014 à 09:17, "chathuraka.waas" a écrit : > Hi, > > i'm trying to migrate my application from 1.4 to 6 and stuck in a problem. >

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-22 Thread Francois Meillet
The api changed. Just replace the method signature you use in you backend layer. François Meillet Formation Wicket - Développement Wicket Le 23 janv. 2014 à 08:13, chathuraka.waas a écrit : > Hi, > > i'm trying to migrate my application from Wicket 1.4 to 6.13.0 and stuck on > a compilatio

Re: Migrating from 1.4.21 to 6

2014-01-02 Thread Francois Meillet
You should migrate directly to verion 6. If you have 200 K LoC on the web tier, you should budget between one to three months, depending the amount of specific code that has been written to improve the 1.4 api. François Meillet Formation Wicket - Développement Wicket Le 2 janv. 2014 à 10:48

Re: response headers in Wicket 6

2013-12-09 Thread Francois Meillet
For the last two lines : data.getHeaders().addHeader(key, value); or ((WebResponse) attributes.getResponse()).addHeader(key, value); for response.setAttachmentHeader(defaultFileName); (from WebResponse.java) setHeader("Content-Disposition", "attachment" + ((!Strings.isEmpty(filename)) ? ("; fil

a discussion on current java web stacks

2013-12-03 Thread francois meillet
http://www.reddit.com/r/java/comments/1rwvqa/current_java_web_stacks/?sort=old François

In French - mission wicket à Paris

2013-11-26 Thread Francois Meillet
recherche un(e) Développeur Java pour un très bon client. Indispensable :Java, Wicket, JPA, Hibernate. Durée : 6 mois + Lieu : Paris Démarrage : ASAP Contexte : Sous l’autorité d’un chef de projet, vous intégrerez une équipe qui assure la conception, le développement, la diffusion, les évoluti

Re: Filtered feedback message cleanup

2013-11-19 Thread Francois Meillet
Form form = new Form("form"); form.setOutputMarkupId(true); add(form); RequiredTextField username = new RequiredTextField("username", new Model()); form.add(username); final PasswordTex

Re: logout on session destroy

2013-11-16 Thread Francois Meillet
; > not in AuthenticatedWebSession or WebSession or in Session (I use Wicket > 6.1) > > > Am 16.11.2013 12:47, schrieb Francois Meillet: >> In this case, override the onInvalidate() method in your custom session. >> >> from the api : >> onInvalidate is a callback method that is

Re: logout on session destroy

2013-11-16 Thread Francois Meillet
advance > Dirk > > > Am 16.11.2013 11:04, schrieb Francois Meillet: >> You can write a unboundListener and register it in your sessionStore. >> This code should be in your application init() >> >> getSessionStore().registerUnboundListener( new >> ISessionStore.

Re: logout on session destroy

2013-11-16 Thread Francois Meillet
You can write a unboundListener and register it in your sessionStore. This code should be in your application init() getSessionStore().registerUnboundListener( new ISessionStore.UnboundListener() { @Override public void sessionUnbound(String sessionId) { // logout t

Re: wicket conversation scope - weld integration

2013-10-31 Thread Francois Meillet
Hi, you need to use compatible dependencies run the 6.11 examples with these dependencies org.apache.wicket wicket-core 6.11.0 org.apache.wicket wicket-cdi 6.11.0 javax.enterprise cdi-api 1.0-

Re: wicket conversation scope - weld integration

2013-10-30 Thread francois meillet
your weld related jars in classpath should be: wicket-core cdi-api seam-conversation-spi wicket-cdi François On Wed, Oct 30, 2013 at 10:50 AM, brazz wrote: > Hello François, > > thanks for your reply! > I double checked this. > I have weld-servlet.jar in my classpath. According to the documen

<    1   2   3   4   >