Re: How to support multiple themes in Wicket application.

2010-06-15 Thread wicketyan
I have not try it.but wicket component doc say supporting: Style - The style (skin) for a component is available through getStyle(), which is equivalent to getSession().getStyle(). Styles are intended to give a particular look to a Component or Resource that is independent of its Locale. For

Re: DataTable in DataTable

2010-06-15 Thread midikem
columns.add(new LinkPropertyColumntest(new StringResourceModel(one, this, null), ONE, one){ private static final long serialVersionUID = 1L; @Override public void onClick(Item item, String componentId, IModeltest model) { try { new

RE: How to support multiple themes in Wicket application.

2010-06-15 Thread Chris Colman
It depends on whether your themes can be purely defined by styles or whether some layout changes are also required to support different themes. Often our themes have required some layout changes in combination with style changes and so we use markup 'variations' to handle that. -Original

RE: How to support multiple themes in Wicket application.

2010-06-15 Thread Alex Rass
You guys should check out this site: http://www.csszengarden.com/ Note the links on the right. Click them - they'll turn same site into a completely different themes (not even close) by using nothing but CSS. So if you code your site right for CSS, swapping/adding themes should be a no-brainer!

is this a bug in ModelT?

2010-06-15 Thread Alex Rass
Hi. Was writing some code and encountered that org.apache.wicket.model.Model T Always uses direct references to 'object' variable directly. And never as getObject(). This may hinder overriding methods. (I found this cause I overwrote getObject() and NOTHING changed :) I then looked at the

Re: is this a bug in ModelT?

2010-06-15 Thread Martin Makundi
I did something similar and it works. ** Martin 2010/6/15 Alex Rass a...@itbsllc.com: Hi. Was writing some code and encountered that org.apache.wicket.model.Model T Always uses direct references to 'object' variable directly. And never as getObject(). This may hinder overriding methods.

RE: Creating and zipping binary files for download

2010-06-15 Thread Alex Rass
You should consider that 2 users can be doing it at the same time. Which will lead to serious errors. I would suggest using a random file name (or one with session hash in the filename) so you avoid userA downloading userB's download.zip I would think that you should be able to just stream it

RE: is this a bug in ModelT?

2010-06-15 Thread Alex Rass
No, Martin, it can't work. Look at the implementation. ALL other methods use object directly. SO if you just override getObject you'll endup with a broken: equals(), hashCode(), toString() methods (which breaks any form of caching) detach() would also be broken. So no, it can't work. You HAVE to

Re: is this a bug in ModelT?

2010-06-15 Thread Martin Makundi
I concur. ** Martin 2010/6/15 Alex Rass a...@itbsllc.com: No, Martin, it can't work. Look at the implementation. ALL other methods use object directly. SO if you just override getObject you'll endup with a broken: equals(), hashCode(), toString() methods (which breaks any form of caching)

RE: How to support multiple themes in Wicket application.

2010-06-15 Thread Russell Simpkins
I would like to support multiple themes in Wicket application like Wordpress, Drupal. Could you please give me suggestion? I would make sure that every element has class set. I would also recommend always setting component.setMarkupId(String id) for your components so that you can style on

wicketstuff-repo

2010-06-15 Thread Marc Ende
Hi, is there another wicketstuff-repo (a mirror for example)? Wicketstuff is now down for some days and I'll need some artifacts from the repo. marc

Re: wicketstuff-repo

2010-06-15 Thread nino martinez wael
someone mentioned sonatype..Search the list for sonatype.. 2010/6/15 Marc Ende mli...@e-beyond.de Hi, is there another wicketstuff-repo (a mirror for example)? Wicketstuff is now down for some days and I'll need some artifacts from the repo. marc

Re: wicketstuff-repo

2010-06-15 Thread Marc Ende
Ah, I've found it: http://repo1.maven.org/maven2/org/wicketstuff/ Thanks marc 2010/6/15 nino martinez wael nino.martinez.w...@gmail.com someone mentioned sonatype..Search the list for sonatype.. 2010/6/15 Marc Ende mli...@e-beyond.de Hi, is there another wicketstuff-repo (a mirror

Re: wicketstuff-repo

2010-06-15 Thread Michael O'Cleirigh
Hello, The release artifacts for wicketstuff-core since 1.4.7 have been deployed through sonatype and are available through maven central. http://repo2.maven.org/maven2/org/wicketstuff/ This is only for the projects in wicketstuff-core directory structure, if you are looking at one of the

Re: Creating and zipping binary files for download

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 5:24 AM, Alex Rass a...@itbsllc.com wrote: You should consider that 2 users can be doing it at the same time. Which will lead to serious errors. I would suggest using a random file name (or one with session hash in the filename) so you avoid userA downloading userB's

Wicket wins in mobile site performance

2010-06-15 Thread Joachim F. Kainz
Fellow Wicket Users, Just in case anybody here needs more help with arguing for Wicket in their companies: Not only is Walmart Mobile (http://mobile.walmart.com) using Wicket, but it also helped the site to be ranked No. 1 in performance by Gomez:

Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
I was a little confused about page layouts and markup inheritance. I was thinking that a I could take a piece of HTML markup and reuse that component when I need to, and use it multiple times within page without ever having to create the content. I was not able to do this. What I have now,

Re: Question about markup inheritance and page layouts

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 10:07 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I was a little confused about page layouts and markup inheritance. I was thinking that a I could take a piece of HTML markup and reuse that component when I need to, and use it multiple times within

Re: Wicket and mobile browsers

2010-06-15 Thread Joachim F. Kainz
Giovanni, I am one of the developers of mobile.walmart.com. We are using Wicket to support all types of cell phones, but most of our traffic is from smart phones. If you point to our site using iPhone, Blackberry, and Motorola Razor you get three different experience. All three experiences are

RE: Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 11:26 AM To: users@wicket.apache.org Cc: Berlin Brown Subject: Re: Question about markup inheritance and page layouts On Tue, Jun 15, 2010 at 10:07 AM, Brown, Berlin [GCG-PFS]

Re: Wicket and mobile browsers

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 10:26 AM, Joachim F. Kainz j...@jolira.com wrote: We have nothing to do with visural wicket Oops - my bad. Jolira / Visural - all the names jumble in my head after a while. -- Jeremy Thomerson http://www.wickettraining.com

Re: Question about markup inheritance and page layouts

2010-06-15 Thread Jeremy Thomerson
Where did you place the wicket:panel tags in your markup? -- Jeremy Thomerson http://www.wickettraining.com They are in the SomePage: SomePage.html: wicket:extend div div wicket:id=myPanel/div div wicket:id=myPanel1/div /div /wicket:extend No, the wicket:panel tags

Re: Wicket and mobile browsers

2010-06-15 Thread Martin Funk
Hi Giovanni, on what basis do you do the device recognition and classification? Currently we are looking into wurfl http://wurfl.sourceforge.net/ Any opion on tha? Or do you know of an alternative to wurfl? mf 2010/6/15 Joachim F. Kainz j...@jolira.com Giovanni, I am one of the developers

RE: Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 11:34 AM To: users@wicket.apache.org Cc: Berlin Brown Subject: Re: Question about markup inheritance and page layouts Where did you place the wicket:panel tags in your markup?

RE: is this a bug in ModelT?

2010-06-15 Thread Rodolfo Hansen
Are you sure you want to override Model in the first place? Di you see LoadableDetachableModel ? Model is not ment to be an abstract class, I would argue its not a bug, but that would be a whole other debate... On Tue, 2010-06-15 at 06:56 -0400, Alex Rass wrote: No, Martin, it can't work.

Re: is this a bug in ModelT?

2010-06-15 Thread Igor Vaynberg
it is a bug, open a jira issue -igor On Tue, Jun 15, 2010 at 9:03 AM, Rodolfo Hansen kry...@gmail.com wrote: Are you sure you want to override Model in the first place? Di you see LoadableDetachableModel ? Model is not ment to be an abstract class, I would argue its not a bug, but that

Re: is this a bug in ModelT?

2010-06-15 Thread avrahamr
Another option would be to directly implement IModelT. On Tue, Jun 15, 2010 at 7:04 PM, Rodolfo Hansen [via Apache Wicket] ml-node+2256139-803998731-293...@n4.nabble.comml-node%2b2256139-803998731-293...@n4.nabble.com wrote: Are you sure you want to override Model in the first place? Di you

WebResponse ContentLength 2G

2010-06-15 Thread Louis Letourneau
I'm trying to send a file 2G using ResourceStreamRequestTarget + FileResourceStream, but the content-type is always set to a big negative value typical of a long(2G) to int conversion. This is non-standard and the proxy we use refuses it (most browser just ignore it, but the RFC states that the

Re: WebResponse ContentLength 2G

2010-06-15 Thread Igor Vaynberg
yes, and attach your fix. -igor On Tue, Jun 15, 2010 at 10:47 AM, Louis Letourneau louis.letourn...@mail.mcgill.ca wrote: I'm trying to send a file 2G using ResourceStreamRequestTarget + FileResourceStream, but the content-type is always set to a big negative value typical of a long(2G) to

Re: WebResponse ContentLength 2G

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 12:47 PM, Louis Letourneau louis.letourn...@mail.mcgill.ca wrote: I'm trying to send a file 2G using ResourceStreamRequestTarget + FileResourceStream, but the content-type is always set to a big negative value typical of a long(2G) to int conversion. This is

Re: WebResponse ContentLength 2G

2010-06-15 Thread Jeremy Thomerson
I wonder - would there be any problem just changing that to *always* set the header to Long.toString(foo)? On Tue, Jun 15, 2010 at 12:57 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: yes, and attach your fix. -igor On Tue, Jun 15, 2010 at 10:47 AM, Louis Letourneau

Re: Wicket and mobile browsers

2010-06-15 Thread Joachim F. Kainz
Martin, WURFL is a great solution, but there are some problems with keeping it up-to-date for commercial applications. http://www.mobileaware.com/ is a good commercial vendor I have used for m.wellsfarg.com and other sites. They have an extensive device-repository and a lot of other useful

Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Brown, Berlin [GCG-PFS]
I am sorry, am just getting used to Wicket but I notice a lot of use of calling a lot of code in the constructor. Does it really matter? I mention it because this kind of style makes it difficult to test code because code in the constructor may fail and the object won't be created. Should I

Re: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 2:11 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I am sorry, am just getting used to Wicket but I notice a lot of use of calling a lot of code in the constructor. Does it really matter? I mention it because this kind of style makes it difficult to

RE: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 3:25 PM To: users@wicket.apache.org Subject: Re: Newbie question anti-patterns and wicket, constructor component building On Tue, Jun 15, 2010 at 2:11 PM, Brown, Berlin [GCG-PFS]

Re: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Jeremy Thomerson
Well, the second version uses constructer injection. Some frameworks prefer that approach. But, I see your point. You should not be calling a service or dao directly in your constructor, regardless of whether you are using dependency injection or not. This is bad. That's what models are

Re: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Jeremy Thomerson
Well, the second version uses constructer injection. Some frameworks prefer that approach. But, I see your point. You should not be calling a service or dao directly in your constructor, regardless of whether you are using dependency injection or not. This is bad. That's what models are

back button and page expiration

2010-06-15 Thread Ray Weidner
Hi all, The web app I've been working on has some issues with the back button. For instance, when using DefaultDataView, if a user goes back a page after clicking a column heading, and then clicks a different link on the page, it would cause an error. This problem was easily solved manually by

Easy fast question, properties ´file for validation....

2010-06-15 Thread Victor_Trapiello
I do not know wghy is not rendering my property field, I was doing a king prove of concept, and I ahve this 2 files: ( I do not have border and nothing, can you see a anything¿? **Home.java*** */ public class HomePage extends WebPage { private static final long

Re: Easy fast question, properties ´file for valida tion....

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 4:03 PM, Victor_Trapiello vic...@trapiello.netwrote: I do not know wghy is not rendering my property field, I was doing a king prove of concept, and I ahve this 2 files: ( I do not have border and nothing, can you see a anything¿? **Home.java***

Re: Easy fast question, prope rties ´file for validation....

2010-06-15 Thread Victor_Trapiello
Hello mate, thank you very much for your fast reply I´m asking why my messages (the ones that I put in my property file are not appearing), as you can see I have put the same name in both files, Home.java and Home.properties I´m doing somethiong wrong... I know but.. what¿? cheersss -- View

got no pages from a data provider

2010-06-15 Thread Fernando Wermus
Hi all, For some reason *dataView* always passed first=0 and count=0. This is my code add(new DataView(amistades, new AmistadesProvider()) { private static final long serialVersionUID = 5328267159730501362L; public void populateItem(Item item) { User user=(User)item.getModelObject();

Re: got no pages from a data provider

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 4:30 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, For some reason *dataView* always passed first=0 and count=0. This is my code add(new DataView(amistades, new AmistadesProvider()) { private static final long serialVersionUID = 5328267159730501362L;

Re: Easy fast question, properties ´file for valida tion....

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 4:25 PM, Victor_Trapiello vic...@trapiello.netwrote: Hello mate, thank you very much for your fast reply I´m asking why my messages (the ones that I put in my property file are not appearing), as you can see I have put the same name in both files, Home.java and

Validation

2010-06-15 Thread Brian Mulholland
I have two validations on a textbox. One is extended from the EmailValidation class that comes with wicket and works fine. The other is an extension of AbstractValidator. That one never gets called. It never gets to the onValidate(). Why would one validator get invoked and function perfectly

Re: Easy fast question, prope rties ´file for validation....

2010-06-15 Thread Victor_Trapiello
hahahhaha true, that was my mistake, I had the same mistake in my source code! it is HomePage, and I my property file I just put Home.properties, now It should work fine!! thank you very much guys, and sorry for this stupid mistake, bus sometimes it is good to talk with someone!! -- View this

Re: Validation

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 4:57 PM, Brian Mulholland blmulholl...@gmail.comwrote: I have two validations on a textbox. One is extended from the EmailValidation class that comes with wicket and works fine. The other is an extension of AbstractValidator. That one never gets called. It never

Re: got no pages from a data provider

2010-06-15 Thread Fernando Wermus
thanks On Tue, Jun 15, 2010 at 6:38 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Jun 15, 2010 at 4:30 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, For some reason *dataView* always passed first=0 and count=0. This is my code add(new

Re: Validation

2010-06-15 Thread Brian Mulholland
The two are added to the same component, but have no direct relationship to each other. It IS true that the non-working one is added 2nd. However in the test where I am trying to get control to the 2nd one, I typed input that did not evoke a message from the first validator. But could you

Re: Validation

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 5:24 PM, Brian Mulholland blmulholl...@gmail.comwrote: The two are added to the same component, but have no direct relationship to each other. It IS true that the non-working one is added 2nd. However in the test where I am trying to get control to the 2nd one, I

NEW wicket-powered football portal lauched... http://football4all.net

2010-06-15 Thread Jens Zastrow
:-) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: NEW wicket-powered football portal lauched... http://football4all.net

2010-06-15 Thread Jens Zastrow
sorry the URL is http://football4all.net Am 16.06.2010 00:56, schrieb Jens Zastrow: :-) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- dipl.

Re: NEW wicket-powered football portal lauched... http://football4all.net

2010-06-15 Thread Jens Zastrow
it's also still a beta-version ! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

How to create a Popup Button

2010-06-15 Thread jammyjohn
Could anybody suggest how to create a popup button. I read in the forum that a link can be attached to a button. But it did not help me. Not sure, where is the mistake in the below code. html code -- //having a link id inside a button.. input type=button wicket:id=mawbNotes

Re: How to create a Popup Button

2010-06-15 Thread James Carman
Try button wicket:id=mawbNotesMawb Notes/button On Tue, Jun 15, 2010 at 7:42 PM, jammyjohn jchinnas...@yahoo.com wrote: Could anybody suggest how to create a popup button. I read in the forum that a link can be attached to a button. But it did not help me. Not sure, where is the mistake in

Re: How to create a Popup Button

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 6:42 PM, jammyjohn jchinnas...@yahoo.com wrote: Could anybody suggest how to create a popup button. I read in the forum that a link can be attached to a button. But it did not help me. Not sure, where is the mistake in the below code. html code --

[announce] wicketstuff-core 1.4.9.1 released

2010-06-15 Thread Michael O'Cleirigh
Hello, I've staged and promoted a new release of wicketstuff-core version 1.4.9.1. It is available in maven central now. All of the artifacts are available from maven central like this: dependency groupIdorg.wicketstuff/groupId artifactIddatatable-autocomplete/artifactId

How to remove css class from a component?

2010-06-15 Thread David Chang
Hello, I add a CSS class to component dynamcially the following way: inputComponent.add(new AttributeAppender(class, new ModelString(errorField), )); How can I remove this CSS class in java code? Best! - To

Re: How to remove css class from a component?

2010-06-15 Thread Jeremy Thomerson
onComponentTag(...) { tag.remove(class); } On Wed, Jun 16, 2010 at 12:37 AM, David Chang david_q_zh...@yahoo.comwrote: Hello, I add a CSS class to component dynamcially the following way: inputComponent.add(new AttributeAppender(class, new ModelString(errorField), )); How can I remove

Re: How to remove css class from a component?

2010-06-15 Thread David Chang
Jeremy, glad to hear from you! My situation is a little different. The CSS class is added in the following way. Please see the following code. protected void onBeforeRender() { super.onBeforeRender(); if (inputComponent.getFeedbackMessage() != null) {

Re: How to remove css class from a component?

2010-06-15 Thread Jeremy Thomerson
On Wed, Jun 16, 2010 at 12:48 AM, David Chang david_q_zh...@yahoo.comwrote: Jeremy, glad to hear from you! My situation is a little different. The CSS class is added in the following way. Please see the following code. protected void onBeforeRender() {