RE: Wicket and JEE6

2010-03-29 Thread Iskandar Salim
Ericksen, Mark W (IS) wrote: java.lang.NoSuchMethodError: org.jboss.weld.Container.services()Lorg/jboss/weld/bootstrap/api/Service Registry; You need to update your weld-integration.jar (and maybe weld-osgi.jar) files in ${glassfish_install_dir}/glassfish/modules Get

Re: PROBLEM WITH PAY PAL INTEGRATION

2010-03-29 Thread victorTrapiello
that´s is goign to be my next step, can I put directly in the wicket form post to pay pal or i there any method to set the post in wicket¿? thanks Steave Steve Swinsburg-3 wrote: Why not process your form normally via Wicket, then make a POST request to PayPal? cheers, Steve On

Re: change tr 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 the

Re: change tr 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 arn...@imagemed-87.com wrote: Hi, Defenitively it is more elegant to use the OddEvenItem object instead of using my boolean... but

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

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

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,

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

Bug with button type=button on IE

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

Re: Bug with button type=button 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ł

Re: Bug with button type=button 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

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: filter filter-namesession/filter-name

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: 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:

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 wicket?

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

Re: Wizard using ListView and RadioGroup

2010-03-29 Thread Martijn Dashorst
userAddresses.setReuseItems(true) Martijn 2010/3/28 Robert Gründler rob...@dubture.com: 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:

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 waynemailingli...@googlemail.com 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 waynemailingli...@gmail.com wrote: oh and I

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

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: Memory usage

2010-03-29 Thread Martin Makundi
Do you have a lots of libraries? ** Martin 2010/3/29 Sigmar Muuga meedi...@gmail.com: 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

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 meedi...@gmail.com: Hello, my app is about 3-4 pages and its running with spring. It has

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 meedi...@gmail.com: yeah, I have about 20megs of them :) On

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: 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(String

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

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

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

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

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

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 jer...@wickettraining.com wrote: First, there is a Brix mailing list for these sort of questions. But, nonetheless, here are some answers that may

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 the

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

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 div wicket:id=loopdiv wicket:id=item//div How can I write a Loop like add(new Loop(loop, 10) { protected void populateItem(LoopItem item) {

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 lind...@visionet.de: How can I implement a Loop or ListView that can display any wicket component? Let's have a HTML lik this        div wicket:id=loopdiv wicket:id=item//div How can I write a Loop like

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 rodolfocar...@gmail.com Sent: Monday, March 29, 2010 12:39 PM To: users@wicket.apache.org Subject: How to enable Session Inspector?

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?

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

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: 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 lind...@visionet.de: Hi Martin, ok, no easy way, no wicket-builtin tools. Thanks for the proposal.

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

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

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, mzem...@osc.state.ny.us wrote: Igor, We are using WicketFilter with SpringWebApplicationFactory. This works fine, but I've noticed SpringWebApplication has been deprecated, and since

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 jcar...@carmanconsulting.com 03/29/2010 04:31 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re:

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, mzem...@osc.state.ny.us wrote: Yes

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 danielavalero...@gmail.com 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

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,

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

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 david_q_zh...@yahoo.comwrote: Not sure whether the help method will do the trick of one-liner code. I feel that it

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 jcar...@carmanconsulting.com wrote: From:

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

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 david_q_zh...@yahoo.comwrote: Using an external helper should

Re: Customizable PageParameters class?

2010-03-29 Thread Mauro Ciancio
Chris: On Mon, Mar 29, 2010 at 10:22 PM, Chris Colman chr...@stepaheadsoftware.com 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

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: 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: 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 James Carman
See...told you. :) On Mon, Mar 29, 2010 at 10:32 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: 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

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 jcar...@carmanconsulting.com wrote: From: James Carman

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 david_q_zh...@yahoo.comwrote: Well, it is not bad to tell people what you believe is

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 jer...@wickettraining.com: You can still do this in one line: add(new Label(abc,