Re: pivot table for wicket

2012-08-07 Thread Tom Eugelink
Great! Always a very useful component! Tom On 7-8-2012 9:46, Decebal Suiu wrote: Hi I implemented a simple pivot table for wicket that can be found at https://github.com/decebals/wicket-pivot Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.co

Re: logout

2012-06-25 Thread Tom Eugelink
ed in as you describe it. We'd love to get rid of the additional Signout page though (because it only says "Good bye" and is rather annoying for regular users I think ...) :) Stefan Am 25.06.2012 13:38, schrieb Tom Eugelink: Ok. The actual problem I have is that wicket a

Re: logout

2012-06-25 Thread Tom Eugelink
at, Jun 23, 2012 at 11:31 AM, Tom Eugelink wrote: Which means that upon logout, these values should be removed / cleared. A session does not represent a user, it is a construct to bind request, no more no less. All other usages are bolted on and should be bolted off. You don't tear down

Re: logout

2012-06-23 Thread Tom Eugelink
Which means that upon logout, these values should be removed / cleared. A session does not represent a user, it is a construct to bind request, no more no less. All other usages are bolted on and should be bolted off. You don't tear down the house, just because you are moving. Tom On 2012-06-

Re: logout

2012-06-23 Thread Tom Eugelink
On 2012-06-22 16:57, Tom Eugelink wrote: Anyhow, I've added Wicket Auth/Roles (http://wicket.apache.org/learn/projects/authroles.html) as the security framework and it is working fine except one thing; logging out. I've found that the login / logout logic is invalidating the sessi

logout

2012-06-22 Thread Tom Eugelink
I've started a new project and decided to use Wicket for the web component again. Still intrigued enough to be curious how it will work out. Anyhow, I've added Wicket Auth/Roles (http://wicket.apache.org/learn/projects/authroles.html) as the security framework and it is working fine except one

Re: Wicket and JPA: please a simple way to go

2012-05-16 Thread Tom Eugelink
On 16-5-2012 11:52, Martin Grigorov wrote: Using a resource bundle for i18n has this big benefit for me: all my translations are in *one* place. But if the app does not have translations as a requirement? But this is your app... Ignore me. That would be unfriendly :-) Tom ---

Re: Wicket and JPA: please a simple way to go

2012-05-16 Thread Tom Eugelink
On 16-5-2012 11:29, Martin Grigorov wrote: On Wed, May 16, 2012 at 11:18 AM, hfriederichs wrote: Just an afterthought - I can't figure out the English word for the Dutch 'nabrander'. As it happens, my afterthought has to do with another (non-existing) Dutch word: /hoevaakheid/. Translated to E

Re: Wicket and JPA: please a simple way to go

2012-05-13 Thread Tom Eugelink
n May 13, 2012 12:18 PM, "James Carman" wrote: Patches and contributions are welcome. On May 13, 2012 10:55 AM, "Tom Eugelink" wrote: On 2012-05-13 13:49, James Carman wrote: If your application is that simple, check out Wicketopia. Always interesting, but the infor

Re: Wicket and JPA: please a simple way to go

2012-05-13 Thread Tom Eugelink
On 2012-05-13 13:49, James Carman wrote: If your application is that simple, check out Wicketopia. Always interesting, but the information (http://wicketopia.sourceforge.net/) is, ah, lacking? :-) Tom - To unsubscribe, e-

Re: Wicket and JPA: please a simple way to go

2012-05-13 Thread Tom Eugelink
Chiming in; As it happens I'm currently working on a NoSQL (Cassandra) project and found a JPA implementation for Cassandra (http://code.google.com/p/kundera/). Currently JPA is the most used persistency API in Java, allowing for binding with RDBMS, XML, NoSQL. I decided not to use it, BTW, b

Re: wicket 6.0

2012-05-09 Thread Tom Eugelink
I'm back on my Wicket project tomorrow, so I'll give it spin. Dank je. Tom On 2012-05-09 10:31, Hielke Hoeve wrote: Hi Tom, We now have a working WiQuery 6. I will release a new snapshot tonight, but you can clone it from github already. Hielke -Original Message-----

Re: constant strings

2012-05-02 Thread Tom Eugelink
AH! Ok. Makes sense! Thanks. Tom On 2012-05-02 17:23, Igor Vaynberg wrote: no. if you do not want to store the string then instead of a new Model use new AbstratReadOnlyModel(). -igor - To unsubscribe, e-mail: users-uns

Re: constant strings

2012-05-02 Thread Tom Eugelink
On 2012-05-02 17:16, Igor Vaynberg wrote: if it doesnt store anything then where would it get the value from when the second request needs to be processed? wicket components live across many requests. Don't know. That exactly was my question. Is it possible to not store constant values in th

Re: constant strings

2012-05-02 Thread Tom Eugelink
On 2-5-2012 17:07, Eric Jablow wrote: Actually, there are reasons to use resource files. If you use a label on more than one page, or even more than once on a single page, and if your application is changing as you develop it, you may want to change the text for a label, and you probably will w

constant strings

2012-05-02 Thread Tom Eugelink
The Wicket application I'm developing is an internal app which will only be available in English. In order to not unnecessarily bloat the code and the project, I'm often use hardcoded labels. I know this is not convention, but there is no reason for me to introduce a resource file and use the

generics

2012-05-02 Thread Tom Eugelink
I would like to suggest an API improvement in the fluent interface, which should not break backwards compatibility. Currently if you create, say, a mandatory FileUploadField, you cannot do this. /FileUploadField lFileUploadField = new FileUploadField("fileInput", ...).setRequired(true); / Beca

Re: Status of wicketstuff jquery integration

2012-05-02 Thread Tom Eugelink
As a fairly newbie to Wicket I also found the JQuery integration most confusing (and have abandoned it for now). Too many projects trying to do the same, with only half a documentation and half of the components. IMHO, with Wicket 6 ready using jquery for its Ajax (as I understand it), it coul

Re: property converting model

2012-04-25 Thread Tom Eugelink
You are right. I'm sorry. On 25-4-2012 14:56, Martin Grigorov wrote: "... and if it fails with org.apache.wicket.util.convert.ConversionException ..." try/catch your code and wrap the original exception in ConversionException and rethrow --

Re: property converting model

2012-04-25 Thread Tom Eugelink
The converter correctly converts, but if there is an error in the converter, I'm getting a exception dump on screen. Root cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 3; The element type "notificationx" must be terminated by the matching end-tag "". at org.apache.xe

property converting model

2012-04-25 Thread Tom Eugelink
I've got a form bound to a CompoundPropertyModel. One of the properties contains a XML document. In order to edit that property, I've added a TextArea to the form (with the CodeMirror javascript XML editor bound to it), but I need to convert the XML document property to string and back again.

Re: focus locked in place

2012-04-24 Thread Tom Eugelink
This is very sad; I had a label tag (that was copied with the initial HTML) wrapping the whole table. On 2012-04-19 14:11, Tom Eugelink wrote: Ok, I've opened wicket's ajax debugger and there is NO ajax call. I hope this helps you find out what causes the jumps in the focuse

Re: two interlinked ajax textfields

2012-04-20 Thread Tom Eugelink
Switched back to simple onchange. All is well now. On 2012-04-19 16:50, Martin Grigorov wrote: OnChangeAjaxBehavior uses oninput/onpaste/oncut behind the scenes for text form components, that's why it reacts on each key press onchange fires only when you leave the input field

Re: reloading of HTML and classes

2012-04-20 Thread Tom Eugelink
Aha! This is very interesting. I have the same problems and wrote my own resource finder, which works ok now. But this would explain what the original problem is! Should be a fairly easy problem to fix, though. Tom On 2012-04-20 18:24, Andrew Geery wrote: An issue I ran into with having Wic

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Removing the OnChangeAjaxBehavior does not help, this behavior comes from the MarkupContainer; it changes the behavior of the onchange to a per-keypress event. Tom On 19-4-2012 16:40, Tom Eugelink wrote: The last alert is displayed on every key press, the first after leaving the field

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
To take it one level further, if I add onchange="javascript:alert('test');" to an input without and with an OnChangeAjaxBehavior: Renewal delay: Client: The last alert is displayed on every key press, the first after leaving the field. The behavior of the event is differen

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Hm. So I type something in field #1, tab to the field #2, start typing, then the 1 second delay on field #1 triggers the ajax call, it refreshes the label associated with #1 AND a select all on field #2 happens. This is not an acceptable user interface experience. I've upgraded to Wicket

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Hm. Using "onchange" either directly or via OnChangeAjaxBehavior, I'm not able to type more that one character in the textbox. As soon as I've typed one, the ajax call triggers and does a select-all of the textbox (in Chrome), the next keystroke when overwrites the contents. Onblur does not ha

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Thank you! The problem apparently was that I had the ajax bound to "onblur" and not to "onchange". Copied that from some example on the web. Tom On 19-4-2012 14:12, Martin Grigorov wrote: field1.add(new AjaxFormComponentUpdatingBehavior("onchange") { onUpdate(target) { buildingNr

Re: focus locked in place

2012-04-19 Thread Tom Eugelink
dditionally there is AjaxRequestTarget#focusComponent(Component) method which may be used to focus another element. If you replace the focused element in the Ajax response then lastFocusedId will be obsolete and Wicket wont be able to find the old component. I hope this helps you find out what causes the

two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Again a situation where I'm missing the background because of my newbie status. I have two textfields, one for the buildingnr, the second for the roomnr within that building. Both have a label to the right with a description. All four components (2x TextField, 2x Label) are within a single Web

Re: getconverter is final

2012-04-17 Thread Tom Eugelink
https://issues.apache.org/jira/browse/WICKET-4503 By now I have created my own JodaDateTextField and a JodaDateConverter. The only thing that doesn't work yet is the DatePicker popup; it doesn't format the time. Tom On 2012-04-17 16:21, Martin Grigorov wrote: I see no reason why to keep t

getconverter is final

2012-04-17 Thread Tom Eugelink
Is there any particular reason why getConverter has been made final. I really would like to roll in my own converter in DateTextField to handle Joda time. Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: focus locked in place

2012-04-16 Thread Tom Eugelink
Thanks for the feedback. So to check if this is the cause, I could simply remove the ajax code. Tom On 2012-04-16 08:54, Martin Grigorov wrote: Hi Tom, Wicket keeps track of the last focused element only for Ajax requests. I.e. Wicket sends a header in the ajax requests with the id of the

Re: reload model each time

2012-04-15 Thread Tom Eugelink
Just keep in mind that you can't use an EntityModel if the entity has already been persisted and if you want to change it with multiple ajax requests/multistep forms. It will lose any changes on every request. Simply serialize the entity again for that use case. Stealing the thread back ;-

Re: reload model each time

2012-04-14 Thread Tom Eugelink
Thanks! This looks very promising! On 2012-04-14 14:03, Christoph Leiter wrote: Here's a good article about EntityModel, which does what you want: http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ Christoph --

reload model each time

2012-04-14 Thread Tom Eugelink
Another newbie question; it is now the case that each model is serialized between requests and (I presume) stored in the session. I would really prefer if a identifier (primary key + lazy locking versionnr) could be remembered and that each time when Wicket needs the model, it is loaded from t

Re: focus locked in place

2012-04-13 Thread Tom Eugelink
On 2012-04-13 11:58, Tom Eugelink wrote: The cursor can be placed in the date fields, but not in any of the textfield in the listview. To add some additional information; the cursor can be placed in the textfields by using the TAB key. A mouse click will always jump to the first field

Re: wicket 6.0

2012-04-13 Thread Tom Eugelink
On 2012-04-13 14:24, Martin Grigorov wrote: How many of you tried beta1 ? I started off with 6, but was afraid things like wiquery would conflict in the usage of jquery, so I returned to safety using 1.5.5. Should that be a problem? Otherwise I'll upgrade back to 6. Tom ---

focus locked in place

2012-04-13 Thread Tom Eugelink
I'm slowly getting some ground under my Wicket feet, but now I have a strange problem. I've got a form with two TextFields and a RefreshingView inside a MarkupContainer, building rows containing a DropDownChoice, TextField and a AjaxSubmitLink. The stripped version of the Java code looks like

Re: Wicket and Menu support

2012-04-08 Thread Tom Eugelink
Is there any documentation on this jquery support in wicket 6? I'm setting up a new project ARM and instead of including all kinds of side kick projects, core support is preferable. Tom On 2012-04-08 19:55, msalman wrote: Thanks to every one for all of your comments and suggestions. Grea

Re: reloading of HTML and classes

2012-04-07 Thread Tom Eugelink
Eclipse in debug mode indeed allows for some limited reloading of classes, but JRebel does a good job and my explicit HTML code seems to work as well. I still need to test it thoroughly. But none of Wicket's regular tools seem to work and that amazes me. Tom ---

reloading of HTML and classes

2012-04-06 Thread Tom Eugelink
I've been fighting this for the past two days, but I'm not succeeding. I'm using Wicket 1.5.5 on GlassFish 3.1.2 and that runs without a problem. I have configured org.apache.wicket.protocol.http.ReloadingWicketFilter to reload the classes, but that is not working. The only way to reload the