Treat Label and InputFields as one unit

2010-10-18 Thread Markus Bohl
Hi all, we are currently developing a Wicket application and often face the same situation: We want to treat an input-component (Textfield, Textarea, Dropdown, etc.) with a corresponding Label as one unit. For example, we have a label showing the text Name: and next to it a textfield where

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Ian Marshall
Will there be any chance of this book being available on www.Amazon.co.uk? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/My-New-Book-Now-in-Dead-Tree-Format-tp2998832p2999880.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Treat Label and InputFields as one unit

2010-10-18 Thread Martijn Dashorst
See the wicket:enclosure tag Martijn On Mon, Oct 18, 2010 at 10:20 AM, Markus Bohl markus.b...@brandad-systems.de wrote: Hi all, we are currently developing a Wicket application and often face the same situation: We want to treat an input-component (Textfield, Textarea, Dropdown, etc.)

Wicket Drag and Drop

2010-10-18 Thread Jarosz Yohan
Hi, I want to use dnd with my wicket application (1.5). I read about dojo contribution (http://wicketstuff.org/confluence/display/STUFFWIKI/Simple+Dojo+D'n'D+tutorial), but also there is wicket-dnd on http://code.google.com/p/wicket-dnd/ http://code.google.com/p/wicket-dnd/and about scriptaculous

Remove ListView item in ModalWindow

2010-10-18 Thread armandoxxx
Hey ppl Need a little help with my problem. I have a list view in a form in a modal window. (MODAL WINDOW FORM LIST VIEW (with some components representing fields) Each field in list view has a AjaxButton beside and this button removes the whole component (list item) from the list. Code

panel as a groovy script

2010-10-18 Thread fachhoch
I have a groovy script file , implementing an interface MenuItems which has a method getMenuItems(), this method returns List of panels , this groovy script file is loaded at runtime by spring . I created a listView with the model menuItems.getMenuItems(), so to each listItem I add the

Re: Remove ListView item in ModalWindow

2010-10-18 Thread Pedro Santos
Remove the element at the list view model list rather then at the list view components list. About the 'leave page' message, see if at your form onsubmit method there is some redirect rule implemented. On Mon, Oct 18, 2010 at 12:23 PM, armandoxxx armando@dropchop.comwrote: Hey ppl Need a

[wiQuery] Creating a script without a component

2010-10-18 Thread Peter Munro
Hi, I'd like to set up a JQuery script in my page header to change the attributes of all links with a specified class, so in my Java code I tried this: JsQuery linkQuery = new JsQuery(); linkQuery.$(.check-login).chain(attr, 'href', '#'); add(new

Re: Remove ListView item in ModalWindow

2010-10-18 Thread armandoxxx
Hey ... 10x for your fast reply ... 1. onSubmit method is empty 2. I tried to do remove on my list but it allways returns false ... with no error .. and I cant figure it out why ... Regards Armando -- View this message in context:

Re: Remove ListView item in ModalWindow

2010-10-18 Thread Pedro Santos
Are you using an static model at the list view? See if your objects on it correctly implement the hash and equals method... I can't wonder why at the response your browser is trying to leave the page :S On Mon, Oct 18, 2010 at 1:07 PM, armandoxxx armando@dropchop.comwrote: Hey ... 10x

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Jonathan Locke
It's not on amazon.uk just yet, but if you buy it here I believe they will ship it anywhere in the world: https://www.createspace.com/3487090 Createspace is the demand publisher for the book and is also owned by Amazon.com. -- View this message in context:

Re: [wiQuery] Creating a script without a component

2010-10-18 Thread Jeremy Thomerson
On Mon, Oct 18, 2010 at 10:02 AM, Peter Munro spelud...@gmail.com wrote: Hi, I'd like to set up a JQuery script in my page header to change the attributes of all links with a specified class, so in my Java code I tried this: JsQuery linkQuery = new JsQuery();

Re: [wiQuery] Creating a script without a component

2010-10-18 Thread julien roche AKA indiana_jules
Hi Peter, The right way for your case will be: add(new WiqueryAbstractBehavior() { public JsStatement statement() { return new JsStatement ().$(null, .check-login).chain(attr, 'href', '#'); } }); In the standard process, we will never have an empty component when the renderHead

Re: [wiQuery] Creating a script without a component

2010-10-18 Thread julien roche AKA indiana_jules
Or return new JsQuery().$(.check-login).chain(attr, 'href', '#'); Julien Roche On Mon, Oct 18, 2010 at 5:53 PM, julien roche AKA indiana_jules roche@gmail.com wrote: Hi Peter, The right way for your case will be: add(new WiqueryAbstractBehavior() { public JsStatement statement()

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Jeremy Thomerson
On Sun, Oct 17, 2010 at 2:10 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: For those of you who were grumbling about not having a Kindle, now you have no excuse :) http://www.amazon.com/Coding-Software-Process-Jonathan-Locke/dp/0615404820/ Would like to hear feedback from readers, of

TinyMCE in ModalWindow

2010-10-18 Thread Brad Grier
I've implemented TinyMCE in my app and all is well with one exception. I can't get it to work in a ModalWindow (TinyMCE works the first time but subsequently opens in an blank, uneditable state). Someone suggested using the TinyMCE javascript functions mceRemoveControl and mceAddControl to work

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Jonathan Locke
Sorry, no. I think the price is pretty reasonable. Especially given the cost/benefit relative to your typical software industry book. You can barely buy two lattes for the price of my e-book here in Seattle and the profit off a copy is about enough to buy me a beer, which I know you want to do!!

Re: [wiQuery] Creating a script without a component

2010-10-18 Thread Peter Munro
@Jeremy: oops! Sorry, hadn't realised it had its own list. Next time... :-) @Julien: Aha. I understand. Many thanks, I will try it now. Peter On Mon, Oct 18, 2010 at 4:54 PM, julien roche AKA indiana_jules roche@gmail.com wrote: Or return new JsQuery().$(.check-login).chain(attr,

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Jonathan Locke
BTW, there are also technical problems with giving you the e-book for free. There is simply no way to do this on Amazon. Even gifting a Kindle book is not possible at the moment. -- View this message in context:

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Jeremy Thomerson
Sorry, this is actually more of what I was wondering. I have no objection to buying you a beer - and intend to do so soon! On Mon, Oct 18, 2010 at 11:24 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: BTW, there are also technical problems with giving you the e-book for free. There is

Format Date for PropertyColumn/DefaultDataTable

2010-10-18 Thread Shelli Orton
Hi, Is there a way to apply a DateConverter to a PropertyColumn used in a DefaultDataTable (and AjaxFallbackDefaultDataTable)? Thanks! Shelli - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread John Armstrong
I just ordered my dead tree version. Thanks for everything Jonathan, I hope my purchase does just a bit to pay you back for the years of work you've put into Wicket, a project and perspective that has made a real impact on my professional life. J On Mon, Oct 18, 2010 at 8:39 AM, Jonathan Locke

Re: Wicket Drag and Drop

2010-10-18 Thread Ernesto Reinaldo Barreiro
There was a very lengthy thread on the topic just a few weeks ago. http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-td1881857.html also see http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tt2532928.html Ernesto On Mon, Oct 18, 2010 at 4:14 PM, Jarosz

Need help with Nested DataTable in Form - finding values in submit method

2010-10-18 Thread leech
I think I posted this message to the wrong forum. So I'm correcting my mistake. I'm just getting started with Wicket. I've looked at every example I can find related to checkboxes in forms but none of them answer my question. The wicket examples have nothing in the submit button code to

Re: Need help with Nested DataTable in Form - finding values in submit method

2010-10-18 Thread Igor Vaynberg
you do this the same way as with all other form components, bind the checkboxes to some model that stores the values in some field you can access. AbstractCheckBoxModel may also be useful for this usecase. -igor On Mon, Oct 18, 2010 at 10:48 AM, leech lee.chal...@gmail.com wrote: I think I

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Jonathan Locke
I very much appreciate the sentiment, but the book stands on its own and nobody owes me more than thanks for starting Wicket. Besides, it would be a slight to certain core developers (they know who they are) who have at this point put in more time than me. If you want to thank the Wicket team,

Re: Wicket Drag and Drop

2010-10-18 Thread Jarosz Yohan
Thx Ernesto, as Johan said on the second thread, I will try the WicketDND (I assume this is the one hosted on google code) because it seems that he have plenty of issues with other stuff.. Regards Yo. On Oct 18, 2010, at 7:59 PM, Ernesto Reinaldo Barreiro wrote: There was a very lengthy thread

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread Jeremy Thomerson
On Mon, Oct 18, 2010 at 1:50 PM, Jonathan Locke jonathan.lo...@gmail.comwrote: If you want to thank the Wicket team, submit bug fixes, help with documentation, get other people to use Wicket, buy some Wicket gear (proceeds to Apache) or make donations to the Apache Foundation. Or, just buy

Re: Format Date for PropertyColumn/DefaultDataTable

2010-10-18 Thread James Carman
We use this for formatting dates, numbers, etc.: public class MessageFormatColumnT extends PropertyColumnT { private final String pattern; public MessageFormatColumn(IModelString displayModel, String propertyExpression, String pattern) { super(displayModel,

RE: Format Date for PropertyColumn/DefaultDataTable

2010-10-18 Thread Shelli Orton
Hi, Thanks for that solution! After finding the DateLabel in the API, I extended PropertyColumn to this class: public class DatePropertyColumnT extends PropertyColumnT { private static final long serialVersionUID = 1L; private DateConverter converter; public

Ajax component's constructor target parameter

2010-10-18 Thread meduolis
Hi, do we need to check if target is null? Is it possible to get null pointer exception here? Example onSubmit(AjaxRequestTarget target, Form? form) { // is it possible to get null target here? } -- View this message in context:

Re: ModalWindow question

2010-10-18 Thread drf
Neither of the suggested solutions will work: 1) The Cookie idea relies on session timeout - or some timeout - which is not relevant here. The user could click the back button and then straight away select a menu item. 2) Clearing the value in the Wicket Session from the constructor of the page

Re: Ajax component's constructor target parameter

2010-10-18 Thread Pedro Santos
If you are using an AjaxFallbackButton then you need to check for NPE On Mon, Oct 18, 2010 at 6:05 PM, meduolis meduol...@gmail.com wrote: Hi, do we need to check if target is null? Is it possible to get null pointer exception here? Example onSubmit(AjaxRequestTarget target, Form? form)

Can AjaxFormComponentUpdatingBehavior handle more than only one field in the form?

2010-10-18 Thread MaxLambrecht
I have a form with some fields, one of them has an ajax request associated to the onblur event. See the following code: AjaxFormComponentUpdatingBehavior zipcodeOnBlur = new AjaxFormComponentUpdatingBehavior(onblur) { private static final long serialVersionUID = 1L;

Re: Can AjaxFormComponentUpdatingBehavior handle more than only one field in the form?

2010-10-18 Thread Jeremy Thomerson
AjaxFormSubmitBehavior On Mon, Oct 18, 2010 at 3:57 PM, MaxLambrecht maxlambre...@gmail.comwrote: I have a form with some fields, one of them has an ajax request associated to the onblur event. See the following code: AjaxFormComponentUpdatingBehavior zipcodeOnBlur = new

Re: How to add image to table column and how to change image this on click?

2010-10-18 Thread gouthamrv
Thanks EC. It worked! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-image-to-table-column-and-how-to-change-image-this-on-click-tp2996263p3001181.html Sent from the Users forum mailing list archive at Nabble.com.

Re: MarkupContainer's ComponentSourceEntry

2010-10-18 Thread richard emberson
If I might ask a couple of follow-up questions? Is the primary driver for having the ability to dehydrate Components: 1) Lessening in-memory RAM usage, 2) Faster serialization, 3) Network transmission speed for machine-to-machine transfer of Components, or 4) Lessening

Re: MarkupContainer's ComponentSourceEntry

2010-10-18 Thread Igor Vaynberg
On Mon, Oct 18, 2010 at 4:13 PM, richard emberson richard.ember...@gmail.com wrote: If I might ask a couple of follow-up questions? Is the primary driver for having the ability to dehydrate Components:    1) Lessening in-memory RAM usage, yes. certain usecases require for a lot of components

Button submit and onclick event right way

2010-10-18 Thread Tito
Hello everybody! This is a question of what is the right way to do this. The idea is, I'm submiting information with a submit button from a form. But at the same time I want to send another information (generated by javascript) by ajax. Is clear what I'm trying to do? Well at this time I have

Re: Button submit and onclick event right way

2010-10-18 Thread jcgarciam
Just by curiosity why not sending all information in one request (on form submit), rather than two separate http request? You can leave the onclick of your button to submit your form via javascript which also previously massage the additional data you need. On Mon, Oct 18, 2010 at 8:46 PM,

code review: org.apache.wicket.pageStore.AsynchronousDataStore.removeData

2010-10-18 Thread richard emberson
org.apache.wicket.pageStore.AsynchronousDataStore.removeData A little code review please: In org.apache.wicket.pageStore.AsynchronousDataStore public void removeData(final String sessionId, final int id) { synchronized (WRITE_LOCK) { String key =

Re: Button submit and onclick event right way

2010-10-18 Thread Tito
mmm good question... In fact I wanted to do that. But I couldn't found the way to send all information in one request. I don't know how to send that information that I get with javascript. 2010/10/18 jcgarciam jcgarc...@gmail.com Just by curiosity why not sending all information in one

Re: Button submit and onclick event right way

2010-10-18 Thread jcgarciam
Well without knowing much detail of your implementation i could say, you need to use one of the function wicketAjaxGet or wicketAjaxPost to actually post the content of your form to wicket. In the server side depending on how you have setup your Model or set your hidden fields in the html form

Re: Button submit and onclick event right way

2010-10-18 Thread Tito
So, you say that I could put information in some hidden fields? In that case I suppose doesn't matter if I submit by ajax or a simple http request. I think I could use Hidden Fields, but I didn't realize before. Thanks! 2010/10/18 jcgarciam jcgarc...@gmail.com Well without knowing much