AW: How to render any Component

2010-03-29 Thread Stefan Lindner
Hi Martin, this would be very helpful. Until then I will use a workaround and check the type of Component. Stefan. -Ursprüngliche Nachricht- Von: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Gesendet: Montag, 29. März 2010 22:05 An: users@wicket.apache.org Betreff: Re: Ho

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread Martin Makundi
Hi! Actually one line that he wants is more like: { Label label; add(label = new Label("abc", "abcdef").setOutputMarkupId(true).setMarkupId(label.getId())); } ;) ** Martin 2010/3/30 Jeremy Thomerson : > You can still do this in one line: > > add(new Label("abc", "abcdef").setOutputMarkupId(tru

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread Jeremy Thomerson
You can still do this in one line: add(new Label("abc", "abcdef").setOutputMarkupId(true).setMarkupId("foo")); -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 29, 2010 at 10:32 PM, David Chang wrote: > Well, it is not bad to tell people what you believe is right:) We are > wicke

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
Well, it is not bad to tell people what you believe is right:) We are wicket programmers, aren't we? :) Feel good to say what I wanted to say and thanks for the initial JIRA idea --- On Mon, 3/29/10, James Carman wrote: > From: James Carman > Subject: Re: better way setting up ID for a Wicke

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread James Carman
See...told you. :) On Mon, Mar 29, 2010 at 10:32 PM, Igor Vaynberg wrote: > im letting you know. we dont need to litter the public api with such > trivial methods, the api has a large surface area as it is. i am sure > as you code more with wicket you will find another 30 such trivial > methods t

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
I just created a JIRA before you replied. https://issues.apache.org/jira/browse/WICKET-2809 I understand your concern, but I dont fully agree with you. As you know, less and clean coding is always a good thing and best to be the part of the tool. Regards. --- On Mon, 3/29/10, Igor Vaynberg

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread Igor Vaynberg
im letting you know. we dont need to litter the public api with such trivial methods, the api has a large surface area as it is. i am sure as you code more with wicket you will find another 30 such trivial methods that will be useful to you, this is what static imports are for. -igor On Mon, Mar

RE: Customizable PageParameters class?

2010-03-29 Thread Chris Colman
Thanks for that. Unfortunately it looks like the IPageFactory is already provided with a PageProperties object. I might have to go back a level and see what is invoking the IPageFactory as that is likely to be where PageProperties is created. I can't really do 'pre processing' of the data because

Re: Customizable PageParameters class?

2010-03-29 Thread Mauro Ciancio
Chris: On Mon, Mar 29, 2010 at 10:22 PM, Chris Colman wrote: > I wanted to add some error processing to some of the parameters I > receive and the processing is 'generic' for any integer types. > > The easiest way to do this would be in a derivative of the > PageParameters class. Given that wicke

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread James Carman
Perhaps. File a JIRA report (https://issues.apache.org/jira/browse/WICKET) and ask for it as a "New Feature." If the core developers don't like the idea, I'm sure they'll let you know. :) On Mon, Mar 29, 2010 at 9:13 PM, David Chang wrote: > Using an external helper should do the trick, but it

Customizable PageParameters class?

2010-03-29 Thread Chris Colman
I wanted to add some error processing to some of the parameters I receive and the processing is 'generic' for any integer types. The easiest way to do this would be in a derivative of the PageParameters class. Given that wicket has lots of plug ins facilities and customizing options I was wonderin

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
Using an external helper should do the trick, but it feels not so natural as a convenince method as mentioned in my previous email. Would it be possible for such a method make its way into a future release? Regards. --- On Mon, 3/29/10, James Carman wrote: > From: James Carman > Subject: Re

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread James Carman
You could make your own helper method that sets both to the same thing and returns the component. Just modify what I sent earlier. On Mon, Mar 29, 2010 at 9:03 PM, David Chang wrote: > Not sure whether the help method will do the trick of one-liner code. > > I feel that it would be much nice if

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
Not sure whether the help method will do the trick of one-liner code. I feel that it would be much nice if Wicket could have the following additional method for a Componment: Component setMarkupIdToWicketId(). Re-using a Wicket Id as markup id as convention should be best practice. Am I righ

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread James Carman
helper method? protected T setMarkupId(T component, String markupId) { component.setMarkupId(markupId); return component; } On Mon, Mar 29, 2010 at 7:00 PM, David Chang wrote: > Here is what I am using the follow pattern to set up ID for a wicket > component: > > Label abc = new Label("abc

better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
Here is what I am using the follow pattern to set up ID for a wicket component: Label abc = new Label("abcd", "abcdedfg"); abc.setOutputMarkupId(true).setMarkupId(abc.getId()); It takes two lines to do this. Can I do something like Label abc = new Label("abcd", "abcdedfg").setOutputMarkupId(t

Re: Pagination AjaxFallBackDataTable without charging all rows on memory

2010-03-29 Thread Igor Vaynberg
see IDataProvider -igor On Mon, Mar 29, 2010 at 1:17 PM, Daniela Valero wrote: > I'm looking into wicket classes, and i've thinking in override one of them > to provide to the ajax data table the data to be displayed on the current > page. I mean, i want provide only the data of the current page

Re: WicketFilter Config

2010-03-29 Thread James Carman
Well, if you need to configure (i.e. set properties on, etc) your application object via Spring, then you either need to use SpringWebApplicationFactory or write your own class that does the same thing (that's not deprecated). On Mon, Mar 29, 2010 at 4:36 PM, wrote: > Yes we are using Spring. O

Re: WicketFilter Config

2010-03-29 Thread MZemeck
Yes we are using Spring. Our Spring configuration works with either the SpringWebApplicationFactory or ContextParamWebApplicationFactory. James Carman 03/29/2010 04:31 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: WicketFilter Config Do you

Re: WicketFilter Config

2010-03-29 Thread James Carman
Do you want/need to configure your application via Spring? On Mon, Mar 29, 2010 at 4:27 PM, wrote: > Igor, > We are using WicketFilter with SpringWebApplicationFactory. This works > fine, but I've noticed SpringWebApplication has been deprecated, and since > SpringWebApplicationFactory returns

Re: WicketFilter Config

2010-03-29 Thread MZemeck
Igor, We are using WicketFilter with SpringWebApplicationFactory. This works fine, but I've noticed SpringWebApplication has been deprecated, and since SpringWebApplicationFactory returns a SpringWebApplication we tried the ContextParamWebApplicationFactory which also works. Which is preferred

Re: Pagination AjaxFallBackDataTable without charging all rows on memory

2010-03-29 Thread Daniela Valero
I'm looking into wicket classes, and i've thinking in override one of them to provide to the ajax data table the data to be displayed on the current page. I mean, i want provide only the data of the current page. Can you tell me wich class do i have to override to do this? 2010/3/29 Daniela Valer

Re: How to render any Component

2010-03-29 Thread Martin Makundi
Well, I hope one day (1.5?) it will be part of wicket ;) We are trying to invent some nifty behavior that allows a panel to digest markupless components. ** Martin 2010/3/29 Stefan Lindner : > Hi Martin, > > ok, no easy way, no wicket-builtin tools. Thanks for the proposal. > > Stefan > > -Ur

AW: How to render any Component

2010-03-29 Thread Stefan Lindner
Hi Martin, ok, no easy way, no wicket-builtin tools. Thanks for the proposal. Stefan -Ursprüngliche Nachricht- Von: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Gesendet: Montag, 29. März 2010 20:13 An: users@wicket.apache.org Betreff: Re: How to render any Component Hi!

RE: Checkbox Group

2010-03-29 Thread Josh Chappelle
Take a look at the Check and CheckGroup components. You can populate your list of items of unknown size with a ListView and put Check components inside. Then add your ListView to a CheckGroup. When the form is submitted the CheckGroup will have a collection of the items that were checked within its

Checkbox Group

2010-03-29 Thread Steven Haines
Hi Everyone, Our web developer is using checkboxes in the place of radio buttons with JavaScript that ensures that only one is selected at a time. I know how to handle radio buttons and to handle individual checkboxes, but does anyone have a good strategy for dealing with a checkbox "group"? F

RE: How to enable Session Inspector?

2010-03-29 Thread Jeremy Thomerson
Add a DebugBar to your base page. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: Rodolfo Cartas Sent: Monday, March 29, 2010 12:39 PM To: users@wicket.apache.org Subject: How to enable Session Inspector? Hi all! I'd like to enabl

Re: How to render any Component

2010-03-29 Thread Martin Makundi
Hi! Here: http://code.google.com/p/wicket-mashup/ ** Martin 2010/3/29 Stefan Lindner : > How can I implement a Loop or ListView that can display any wicket > component? > > Let's have a HTML lik this > >         > > How can I write a Loop like > >        add(new Loop("loop", 10) { >            

How to render any Component

2010-03-29 Thread Stefan Lindner
How can I implement a Loop or ListView that can display any wicket component? Let's have a HTML lik this How can I write a Loop like add(new Loop("loop", 10) { protected void populateItem(LoopItem item) { item.add( new ("item") );

How to enable Session Inspector?

2010-03-29 Thread Rodolfo Cartas
Hi all! I'd like to enable the session inspector in my application. I tried turning it using getDebugSettings().setDevelopmentUtilitiesEnabled(true); to no avail. It only showed the javascript debugger. The devutils package is bundled in my war as well. Thanks, Rodolfo -- Rodolfo Cartas rodol

Re: Wicket and JEE6

2010-03-29 Thread James Carman
The problem you're going to face is that Wicket is an "unmanaged" framework. Meaning that something else doesn't create stuff for you. You create your Links, Labels, TextFields, etc. So, the container can't really do the injection. Now, what we could come up with would be an aspect that does th

Re: Brix: need a hint :)

2010-03-29 Thread Daniel Dominik Holúbek
Thanks, and sorry, I found out about Brix mailing list shortly after writing this question :) On Mon, Mar 29, 2010 at 5:22 PM, Jeremy Thomerson wrote: > First, there is a Brix mailing list for these sort of questions. But, > nonetheless, here are some answers that may help: > > JCR (Java Conten

RE: Wicket and JEE6

2010-03-29 Thread Ericksen, Mark W (IS)
Thanks Olivier, Iskandar, and James! After getting Weld integration to work with the weld-wicket jar I realized that the integration is limited to classes that subclass from WebPage (or Page I suppose) to work within a request cycle. I cannot inject a DAO into a session or a singleton into an app

Pagination AjaxFallBackDataTable without charging all rows on memory

2010-03-29 Thread Daniela Valero
Good Morning, I am doing a big application, it will have lot of users conected at same time, thats the reason becouse I need to do the pagination of my tables manually. I will have a list with all fields to be shown in my data table, i need to send the content to each page acording as user request

Re: Brix: need a hint :)

2010-03-29 Thread Jeremy Thomerson
First, there is a Brix mailing list for these sort of questions. But, nonetheless, here are some answers that may help: JCR (Java Content Repository). You can Google for what this is, but it is basically a replacement for a database for storing content-based things. Brix uses it to store your s

Re: Memory usage

2010-03-29 Thread Eelco Hillenius
> What should be the maximum memory usage for this? At the moment it takes > 422megabytes and this is definately too much for application without any > load and traffic. If there is no load and traffic, it isn't Wicket occupying your memory. Try using something like YourKit (http://www.yourkit.co

Brix: need a hint :)

2010-03-29 Thread Daniel Dominik Holúbek
hello, i have recently started to get interested in Brix ( http://code.google.com/p/brix-cms/), and I have some questions regarding this thing... for example, on the page JCR is mentioned. as I never heard about it before, could someone explain briefly, what is its purpose in Brix (i already read s

Re: Passing / Persisting an object without PageParameters

2010-03-29 Thread James Carman
Well, what I have done in this situation is I use a "breadcrumb": public class Breadcrumb implements Serializable { private final PageReference destination; public Breadcrumb() { this.destination = PageReference.forRequestedPage(); } public Link createCancelLink(Strin

Passing / Persisting an object without PageParameters

2010-03-29 Thread Flavius
I have a list page and a detail page. The list is the results of a search and I put this in a listview. The user can then click each item to view it in the detail. What I'm doing now is passing the result object to the detail page so they can continue to navigate (next >) the results without

Re: Memory usage

2010-03-29 Thread Sigmar Muuga
Seems that it loads all the stuff into the memory from jars.. On Mon, Mar 29, 2010 at 5:14 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > So your jit loader is very optimal ;) > > ** > Martin > > 2010/3/29 Sigmar Muuga : > > yeah, I have about 20megs of them :) > > > > On Mon,

Re: Memory usage

2010-03-29 Thread Martin Makundi
So your jit loader is very optimal ;) ** Martin 2010/3/29 Sigmar Muuga : > yeah, I have about 20megs of them :) > > On Mon, Mar 29, 2010 at 5:03 PM, Martin Makundi < > martin.maku...@koodaripalvelut.com> wrote: > >> Do you have a lots of libraries? >> >> ** >> Martin >> >> 2010/3/29 Sigmar Muuga

Re: Memory usage

2010-03-29 Thread Sigmar Muuga
yeah, I have about 20megs of them :) On Mon, Mar 29, 2010 at 5:03 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Do you have a lots of libraries? > > ** > Martin > > 2010/3/29 Sigmar Muuga : > > Hello, > > my app is about 3-4 pages and its running with spring. > > It has databa

Re: Memory usage

2010-03-29 Thread Martin Makundi
Do you have a lots of libraries? ** Martin 2010/3/29 Sigmar Muuga : > Hello, > my app is about 3-4 pages and its running with spring. > It has database connection and it uses basic authentication. > > What should be the maximum memory usage for this? At the moment it takes > 422megabytes and this

Memory usage

2010-03-29 Thread Sigmar Muuga
Hello, my app is about 3-4 pages and its running with spring. It has database connection and it uses basic authentication. What should be the maximum memory usage for this? At the moment it takes 422megabytes and this is definately too much for application without any load and traffic. Are there

Re: Support for back button and new windows?

2010-03-29 Thread Martijn Dashorst
A couple of thoughts come to mind: - very hacky: ensure the wizard pages are not serializable -> they won't end up in the pagestore so any back button activity will result in pageexpired messages - less hacky: remove the wizard pages after the final submission from the pagestore (I believe you ca

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-29 Thread Martijn Dashorst
Are you using sticky sessions? Martijn On Fri, Mar 26, 2010 at 5:15 PM, Wayne Pope wrote: > One more bit of info - it was a ajax request that caused this. > > Any ideas? > > > On Fri, Mar 26, 2010 at 3:42 PM, Wayne Pope > wrote: >> >> >> oh and I doubled check that all the classes implement Se

Re: Wizard using ListView and RadioGroup

2010-03-29 Thread Martijn Dashorst
userAddresses.setReuseItems(true) Martijn 2010/3/28 Robert Gründler : > Hi all, > > i'm working on a Wizard that displays a list of Addresses in one step, where > an address can be selected using a radiobutton. > > The relevant code of the addresslist-wizardstep looks like this: > > addressList =

Re: PROBLEM WITH PAY PAL INTEGRATION

2010-03-29 Thread McIlwee, Craig
Have you tried using firebug to see what the POSTed values are? That may shed some light on the problem... _ From: victorTrapiello [mailto:vic...@trapiello.net] To: users@wicket.apache.org Sent: Mon, 29 Mar 2010 02:19:29 -0400 Subject: Re: PROBLEM WITH PAY PAL INTEGRATION that´s is g

Re: Wicket & JMS

2010-03-29 Thread Marek Šabo
On 03/29/2010 12:48 PM, Uwe Schäfer wrote: > just for the record: we´re using hornetq (used to be activemq) with > guice without being tied to the requestcycle. > Hi, I'm using guice as well, could you probably post some example or at least hint on what to inject and how to receive message in wicke

Re: Bug in StyleDateConverter?

2010-03-29 Thread PDiefent
An other strange behaviour of the StyleDateConverter("M-"...): If you enter 12.12.12 you get 14.12.12 as a result ... With Format "S" it is OK and if you enter 12.12.2012 the result is also OK. Peter - To unsubscribe, e-mail: u

Re: Wicket & JMS

2010-03-29 Thread Uwe Schäfer
Marek Šabo schrieb: ...and then I would need some logic to read queue (here is where my understanding of broker api runs out) during those AjaxUpdates. just for the record: we´re using hornetq (used to be activemq) with guice without being tied to the requestcycle. cu uwe

Re: Wicket & JMS

2010-03-29 Thread Marek Šabo
Hi Jeremy, thanks for reply, I realized AJAX feedback wouldn't be that much of a hassle but integrating Spring in nearly completed project may be. Is there a way to integrate amq & wicket without going through Spring? Maybe: session org.apache.activemq.web.SessionFilter

Re: Bug with on IE

2010-03-29 Thread Michał Letyński
Of course it can be solved. http://www.kopz.org/public/documents/css/multiple_buttons_ie_workaround.html Jason Lea pisze: That is the problem with IE sending all button elements instead of the one that was clicked. Firefox and others send only the clicked button. So there is nothing that can be

Re: Bug with on IE

2010-03-29 Thread Jason Lea
That is the problem with IE sending all button elements instead of the one that was clicked. Firefox and others send only the clicked button. So there is nothing that can be done on the server side, there is no way to figure out which button was actually clicked. On 29/03/10 10:20 PM, Michał L

Bug with on IE

2010-03-29 Thread Michał Letyński
Code: Form form = new Form("form1"); form.add(new Button("submitButton2") { @Override public void onSubmit() { //logic2 } }); form.add(new Button("submitButton1") { @Override public void onSubmit() {

Bug in StyleDateConverter?

2010-03-29 Thread Peter Diefenthaeler
Hello, I'm using DateTextFields with new StyleDateConverter("M-", true). If I enter a new date 29.03.10, the result is 29.03.0010 instead of 29.03.2010!!! If I use the Styleformat "S-", I get the correct date. Unfortunately I need the date fields initially formatted as dd.mm. when they are in

Re: Wicket and JEE6

2010-03-29 Thread Olivier Bourgeois
Hi, Wicket has very good support in Weld, but to make it work I had to update the weld-integration.jar, otherwise the sample Numberguess application is looking for an unexisting method in the 1.0.0 Weld API : this is your problem. If you don't want to do it by hand like suggested by Iskandar, you

Re: change background color when ListView iterate....

2010-03-29 Thread Bustanil Arifin
Using ListItem#newItem(final int index) should be suffice. The item is the element. I tried it like this: ... protected ListItem newItem(int index) { ListItem item = super.newItem(index); item.add(new SimpleAttributeModifier("class", index % 2 == 0? "ev

Re: change background color when ListView iterate....

2010-03-29 Thread Martijn Dashorst
each list item is attached to the tr tag. Therefore the OddEvenItem solution just works. Did you try it? Martijn On Mon, Mar 29, 2010 at 9:24 AM, Arnaud Garcia wrote: > Hi, > > Defenitively it is more elegant to use the "OddEvenItem" object instead of > using my boolean... but it doesn't change

Re: change background color when ListView iterate....

2010-03-29 Thread Arnaud Garcia
Hi, Defenitively it is more elegant to use the "OddEvenItem" object instead of using my boolean... but it doesn't change my problem... Changing the class of the items can be done easily (see my code, or you can use OddEventItem etc..) But the problem is to change the class at the upper level in th