Re: Wicket need Votes! :-)

2016-02-18 Thread Lon Varscsak
I’m new…but I voted. :D On Wed, Feb 17, 2016 at 1:05 PM, ndongo yaya wrote: > Done ! > > -- > Yaya Ndongo > > 2016-02-17 7:47 GMT+02:00 Anup Gokhale : > > > + 1 > > > > Anup Gokhale > > > > -Original Message- > > From: Francois Meillet

Re: HTTP ERROR:500

2016-04-21 Thread Lon Varscsak
sues! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, Apr 21, 2016 at 3:22 AM, Lon Varscsak <lon.varsc...@gmail.com> > wrote: > > > Hey all, I’m new to wicket and I got this horrendous error earlier today: > >

Storing Pages

2016-04-26 Thread Lon Varscsak
Is it bad to store pages in the session for re-use? The idea being that for a given page, I only want one instance per session. -Lon (Wicket Newb)

Re: Storing Pages

2016-04-26 Thread Lon Varscsak
ttp://markmail.org/message/ofyvgybcjp5cvf75 > Might be useful for you! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue, Apr 26, 2016 at 6:22 PM, Lon Varscsak <lon.varsc...@gmail.com> > wrote: > > > Is it bad

Re: Storing Pages

2016-04-26 Thread Lon Varscsak
into a corner. :P On Tue, Apr 26, 2016 at 1:25 PM, Lon Varscsak <lon.varsc...@gmail.com> wrote: > So by sending me there are you suggesting that storing an iVar to a page > object is bad? > > On Tue, Apr 26, 2016 at 1:00 PM, Martin Grigorov <mgrigo...@apache.org> > wrote:

Re: Wicket Validation

2016-05-19 Thread Lon Varscsak
Ah cool, I’ll give that a whirl. -Lon On Thu, May 19, 2016 at 9:55 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > IComponentAssignedModel? > > On Thu, May 19, 2016 at 6:52 PM, Lon Varscsak <lon.varsc...@gmail.com> > wrote: > > > Hey Sven

Re: AjaxFormValidatingBehavior on component

2016-05-18 Thread Lon Varscsak
ers.net) schreef: >> >> Hi, >> >> I cannot find that error message in Wicket's source. >> >> Are you using org.apache.wicket.ajax.form.AjaxFormValidatingBehavior or >> some subclass or alternative? >> >> Have fun >> Sven >>

Wicket Validation

2016-05-18 Thread Lon Varscsak
Hey guys, I have some business logic where when the set method is called, it first validates the value. In finding a “bad” value, it then throws a custom validation exception. We use this pattern all over the place. Is there some way to handle this situation so that it’s a valid wicket

Re: Wicket Validation

2016-05-19 Thread Lon Varscsak
om). > If the setters are used at that time and the input is not valid then throw > ConversionException. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, May 19, 2016 at 12:23 AM, Lon Varscsak <lon.varsc...@gmail.com> >

Re: Wicket Validation

2016-05-19 Thread Lon Varscsak
m model wrapper catching your exceptions and > reporting them as error messages. > > Have fun > Sven > > > > On 19.05.2016 00:23, Lon Varscsak wrote: > >> Hey guys, >> >> I have some business logic where when the set method is called, it first >> valid

AjaxFormValidatingBehavior on component

2016-05-17 Thread Lon Varscsak
Hey guys, I may be missing something here, but if I do: TextField textField = new TextField("keyCode", new PropertyModel<>( order, OrderHeader.SOURCE_KEY_KEY)); textField.add(new AjaxFormValidatingBehavior("blur")); * add(textField);* I get an error “*AjaxFormValidatingBehavior

Re: wicket-datetime DateLabel

2016-05-03 Thread Lon Varscsak
Ah, okay, thanks! On Tue, May 3, 2016 at 2:38 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > There is a task for Wicket 8 for this. > On May 4, 2016 12:32 AM, "Lon Varscsak" <lon.varsc...@gmail.com> wrote: > > > Shouldn’t DateLabel al

wicket-datetime DateLabel

2016-05-03 Thread Lon Varscsak
Shouldn’t DateLabel allow Joda dates to be used in addition to java.util.Date? Thanks, Lon (Wicket Newb :D)

Re: DropDownChoice and Object/Property

2016-05-05 Thread Lon Varscsak
n Thu, May 5, 2016 at 2:28 AM, Lon Varscsak <lon.varsc...@gmail.com> > wrote: > > > Hey all, > > > > Is there a way to have a DropDownChoice use a complex object (think ORM > > class) as it’s list, but get/set the Model’s value as the ID instead of > the >

DropDownChoice and Object/Property

2016-05-04 Thread Lon Varscsak
Hey all, Is there a way to have a DropDownChoice use a complex object (think ORM class) as it’s list, but get/set the Model’s value as the ID instead of the complex object? So for: new DropDownChoice<>(“shipMethod”, new PropertyModel<>(OrderPage.this

HTTP ERROR:500

2016-04-20 Thread Lon Varscsak
Hey all, I’m new to wicket and I got this horrendous error earlier today: I had NO idea what it meant. :P I was able to debug it and see what was left in queue, and that reminded me that I hadn’t finished the html for a new component I had added in the constructor. My question is, isn’t there

How to include resources from project (jar)

2016-04-14 Thread Lon Varscsak
Hey guys, I’m new here and I’m trying to get a URL for a resource (css) located in /src/main/resources/. I can across CssResourceReference, but if I use “resources/whatever.css” or “/resources/whatever.css” the file isn’t found. If I use "../../../../whatever.css” it works. I’m assuming

Approach to changing value in input field before validation

2016-07-25 Thread Lon Varscsak
Okay, so I have a need…I’m sure I’m going to get “why are you doing that?”, but I have this need regardless and here’s what it is… :D User inputs “VALUEA”, I want to look up something in the database for “VALUEA”, and if conditions are met, replace that with “VALUEB” and continue with validation

Re: Approach to changing value in input field before validation

2016-07-26 Thread Lon Varscsak
correct?! > > Maybe a better way is to use better error feedback messages than replacing > the user input ?! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue, Jul 26, 2016 at 5:00 PM, Lon Varscsak <lon.varsc...@gmail.com>

Re: Approach to changing value in input field before validation

2016-07-26 Thread Lon Varscsak
that uses reflection to set rawinput, and > have found this very useful. > > You set both rawInput and rawInputArray > > ** > Martin > > 2016-07-26 1:18 GMT+03:00 Lon Varscsak <lon.varsc...@gmail.com>: > > > Okay, so I have a need…I’m sure I’m going to

“Duplicate” objects on a page

2016-08-10 Thread Lon Varscsak
I have a situation where I have a Save/Cancel button up at the top of the page and also one at the bottom. I’d love to reference the same wicket:id, but I gather that’s not possible. I attempted to clone the object (WicketObjects.cloneObject), but then I think I’d have duplicate ids (can’t set

Adding a row to a ListView (or any repeater) programmatically for Ajax update

2016-07-06 Thread Lon Varscsak
Hey guys, I have a large table and when the user clicks the “new” button, I don’t want to refresh the entire table. I saw a post about using javascript to create the empty TR element, with the ID that wicket would use, and then have wicket just refresh that id. Sounds great, except I’m

Re: Trouble updating component when using markup inheritance

2016-08-06 Thread Lon Varscsak
tead. > > Regards > Sven > > > > On 04.08.2016 01:49, Lon Varscsak wrote: > >> Hey guys, >> >> I’ve got a component (ComponentB) that subclasses from another component >> (ComponentA). In ComponentB I call a method on ComponentA that u

Trouble updating component when using markup inheritance

2016-08-03 Thread Lon Varscsak
Hey guys, I’ve got a component (ComponentB) that subclasses from another component (ComponentA). In ComponentB I call a method on ComponentA that updates a div (ajax) that wraps some content on ComponentA in addition to the (which is ComponentB’s content). While this updates correctly, if I

Re: Localizer in bundle

2016-10-05 Thread Lon Varscsak
, 2016 at 7:38 PM, Martin Grigorov <martin.grigo...@gmail.com> wrote: > Hi, > > The component could be null. In this case it will fallback to > YourApplication.properties. > I guess this won't work for you too. > > Why don't you just use ResourceBundle? > > On O

Localizer in bundle

2016-10-05 Thread Lon Varscsak
Hey all, How can I get a localized string (from a properties file) inside of a library I have without the use of a Component. I have a controller class (nothing to do with components), but I’d like to have this class (In a non-application jar) return an error message to the application localized

Stateless page to return JSON data

2017-08-12 Thread Lon Varscsak
So I was building a simple WebPage to return JSON data, but I’m surprised that it’s creating a session. The code is pretty simple, I’m just using scheduleRequestHandlerAfterCurrent to return JSON content. No real components on the page and I set stateless hint to true in the constructor. But

Re: Stateless page to return JSON data

2017-08-12 Thread Lon Varscsak
Sorry, missed the version: *8.0.0-M7* On Sat, Aug 12, 2017 at 9:01 PM, Lon Varscsak <lon.varsc...@gmail.com> wrote: > So I was building a simple WebPage to return JSON data, but I’m surprised > that it’s creating a session. The code is pretty simple, I’

Re: Stateless page to return JSON data

2017-08-12 Thread Lon Varscsak
Never mind…I didn’t realize that Session objects could be temporary (generated for 1 request only). :D On Sat, Aug 12, 2017 at 9:02 PM, Lon Varscsak <lon.varsc...@gmail.com> wrote: > Sorry, missed the version: *8.0.0-M7* > > On Sat, Aug 12, 2017 at 9:01 PM, Lon Varscsak <lon.

Re: Stateless page to return JSON data

2017-08-14 Thread Lon Varscsak
t; Annotations module to write such kind of resources and since you are using > Wicket 8 you can also consider to choose Lambda Rest Module: > https://dzone.com/articles/rest-with-lamdas-and-wicket-8 > > > On 13/08/2017 07:16, Lon Varscsak wrote: > >> Never mind…I didn’t re

Form validation and model objects not getting updated on failure

2017-06-27 Thread Lon Varscsak
Hey there, so I have a form with many textfields all of which have validators on them. In a situation where I’m creating a “new” record, all the fields are blank. I also have a DropDownChoice object with an AjaxFormSubmitBehavior (“change”) attached. If the user clicks “save” prematurely,

Re: Refreshing form after model objects changed

2017-06-21 Thread Lon Varscsak
rk. Please check > Form#clearInput()'s source: your components have to be visible, otherwise > this call does nothing. > > Have fun > Sven > > > > Am 21.06.2017 um 19:29 schrieb Lon Varscsak: > >> I have a scenario where I have a form and the user puts in a ba

Re: Refreshing form after model objects changed

2017-06-21 Thread Lon Varscsak
Calling clearInput() on the form itself has no impact (which also >>> surprised me). >>> >> >> That surprises me too, as this should work. Please check >> Form#clearInput()'s source: your components have to be visible, otherwise >> this call does nothing

Refreshing form after model objects changed

2017-06-21 Thread Lon Varscsak
I have a scenario where I have a form and the user puts in a bad value in FieldA, and then also puts in proper values in FieldB and FieldC. FieldB and FieldC never receive their values (in the model object), I’m assuming because the form processing stops at the error for FieldA. The user

Re: Refreshing form after model objects changed

2017-06-22 Thread Lon Varscsak
> I fail to see what that has to do with models. Yes, modelchanged clears > the input too, but I wouldn't mix these two aspects. > > Have fun > Sven > > > > Am 21. Juni 2017, 22:54, um 22:54, Lon Varscsak <lon.varsc...@gmail.com> > schrieb: > >Digging in a l

Re: DropDownChoice with a different choice class than model class

2017-06-19 Thread Lon Varscsak
complex class and back > > - let your choices and renderer operate on strings, where the renderer just retrieves your complex objects to do the rendering > > Have fun > Sven > > > > > Am 15.06.2017 um 01:22 schrieb Lon Varscsak: >> >> Am I wrong to assume that

DropDownChoice with a different choice class than model class

2017-06-14 Thread Lon Varscsak
Am I wrong to assume that DropDownChoice (and a few of it’s superclasses) should be using the generic of that AbstractChoice defines where T is the class of the model object and E is the class of choice object? It seems that from AbstractSingleSelectChoice up, it assumes that the value

DiskDataStore error

2017-08-23 Thread Lon Varscsak
Hey guys, I’m getting this error on an app (on my dev/Mac machine): java.io.FileNotFoundException: /var/folders/3g/vcn2yyls05q249yzkbp457qmgn/T/wicket-filestore/8289/6329/1rjb8e27m1orf1mnxttof0qy22/data (No such file or directory) at java.io.RandomAccessFile.open0(Native Method) at

Re: DiskDataStore error

2017-08-24 Thread Lon Varscsak
ss doesn't have > permissions to read/write this file. > Check that this file is owned by the Tomcat user and that it is a file, not > a directory. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, Aug 24, 2017 at 1:3

Re: DiskDataStore error

2017-08-23 Thread Lon Varscsak
As always, I forgot to include the version. :)* 8.0.0-M6* On Wed, Aug 23, 2017 at 2:58 PM, Lon Varscsak <lon.varsc...@gmail.com> wrote: > Hey guys, I’m getting this error on an app (on my dev/Mac machine): > > java.io.FileNotFoundException: /var/folders/3g/ > vcn2yyls05q249

Re: Wicket 8 GA for production

2017-10-11 Thread Lon Varscsak
I agree with this wholeheartedly…I was just having this discussion with my boss yesterday. I do not understand (mostly) this drive to push stateless frameworks (client or server). Obviously your framework needs to support stateless as to not waste resources, but almost every application I write

Performance issue (possible bug since 7.2.0…up to and including 8.0.0-M8)

2017-12-12 Thread Lon Varscsak
Okay, so here's the situation, I have a component where an Ajax request displays a large table (1000ish rows). It display fast, no problem, not a great use of resources (not paginating), but ignore that for now. I then have another Ajax request where I tell the wicket component to not be visible

Re: Performance issue (possible bug since 7.2.0…up to and including 8.0.0-M8)

2017-12-12 Thread Lon Varscsak
Haha, sure…I was sure someone was going to argue with me. :P -Lon On Tue, Dec 12, 2017 at 6:23 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Good find! Sounds like a bug, file to jira? > > 2017-12-12 23:38 GMT+02:00 Lon Varscsak <lon.varsc...@gmail.co

Re: Performance issue (possible bug since 7.2.0…up to and including 8.0.0-M8)

2017-12-13 Thread Lon Varscsak
nce is no joking mantter =) > > > > 2017-12-13 3:56 GMT+02:00 Lon Varscsak <lon.varsc...@gmail.com>: > > > Haha, sure…I was sure someone was going to argue with me. :P > > > > > > -Lon > > > > > > On Tue, Dec 12, 2017 at 6:23 PM, Mar

Re: Cayenne firing faults when it shouldn’t be (or at least I don’t think it should be)

2018-05-12 Thread Lon Varscsak
> > > Hey Lon, > > > > I think you've sent you message to the wrong users@ mailing list. > > I've done this mistake several times ! :-) > > > > On Fri, May 11, 2018 at 5:48 AM, Lon Varscsak <lon.varsc...@gmail.com> > > wrote: > > > > &g

Cayenne firing faults when it shouldn’t be (or at least I don’t think it should be)

2018-05-10 Thread Lon Varscsak
I have a situation where I fetched a large amount of objects (50k) and prefetched a bunch of relationships…this all worked as expected (although I didn’t realize that this set of data was that large at the time)…but what caught my eye is that even though it pre-fetched the relationships it was

IP Authentication

2018-04-10 Thread Lon Varscsak
I have a need to build some apps (or mount points) to check if the source is coming from an internal IP and if not, present the user with an "unauthorized" request. I know how to check client IP and what not, but I'm not sure how to generate programmatically a simple WebResponse that is just some

Re: IP Authentication

2018-04-11 Thread Lon Varscsak
018 at 11:49 PM, Lon Varscsak <lon.varsc...@gmail.com> > wrote: > > > I have a need to build some apps (or mount points) to check if the source > > is coming from an internal IP and if not, present the user with an > > "unauthorized" request. I know how to

ResourceStreamRequestHandler and page refresh

2018-04-18 Thread Lon Varscsak
Hey all, I've got a Link that I use to generate and download a report. I'm using a ResourceStreamRequestHandler and getRequestCycle().scheduleRequestHandlerAfterCurrent which works fine, except that I was expecting my current request to finish as if it were a regular link. In this case, I'd

Re: ResourceStreamRequestHandler and page refresh

2018-04-19 Thread Lon Varscsak
> AjaxDownloadBehavior.java > > For Wicket<8 you'll find its predecessor AjaxDownload on the web. > > Have fun > Sven > > Am 19. April 2018 02:20:25 MESZ schrieb Lon Varscsak < > lon.varsc...@gmail.com>: > >Hey all, > > > >I've got a Link that I use t

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Lon Varscsak
If it's closing the connection on the PDF pre-maturely, are you getting the FULL PDF downloaded? -Lon On Wed, Aug 28, 2019 at 10:14 AM Benjamin Chew wrote: > Hi Sven, > > Hmm... so this seems to be a problem only on specific browsers. > > I'm seeing this on: > - Google Chrome Version

Re: Page Storage and serialization

2019-09-05 Thread Lon Varscsak
t; > > https://stackoverflow.com/questions/14823293/how-can-i-disable-serialization-in-wicket-1-5 > > In Wicket 9 this becomes a little easier. > > Have fun > Sven > > Am 4. September 2019 22:04:07 MESZ schrieb Lon Varscsak < > lon.varsc...@gmail.com>: > >Hey there,

Page Storage and serialization

2019-09-04 Thread Lon Varscsak
Hey there, I'm in a bit of a situation and could use some guidance. I work with a framework where I have problems with deserialization. So I'm trying to basically just make my app store pages in a cache that doesn't rely on Serializable. Is there some way to pull this off with stock Wicket?