wicket logo

2009-05-27 Thread Luther Baker
Is there an official Wicket website badge? Any problems with dropping the orange Wicket logo into a Power By Wicket slogan at the bottom of a site? -Luther

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-27 Thread Igor Vaynberg
i was being facetious :) -igor On Tue, May 26, 2009 at 10:39 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I didn't mean than yours - Igor - I meant more than the original request.  He simply requested basically exactly what you gave him.  In mine, each permission can be granted

RE: how to control/locate which html to load

2009-05-27 Thread Anirban Basak
Wow! Great... I love wicket and this group :) BTW, sorry I misunderstood you on the 1st place Warm Regards, Anirban Basak Ph : 91 33 2357 7177 Extn: 277 -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, May 27, 2009 11:00 AM To:

when will be wicket 1.4 final release

2009-05-27 Thread danisevsky
Hi, I would like ask you when I can expect wicket 1.4 final release? I am asking because I am waiting for wicket web beans which will be release after filnal wicket 1.4 release. Thanks for answer.

Re: [announce] WicketStuff Artwork new release

2009-05-27 Thread Stefan Jozsa
Thanks a lot Nino, Stefan Jozsa - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-27 Thread Sam Stainsby
My code was bigger but I didn't want to brag :-) On Tue, 26 May 2009 23:11:06 -0700, Igor Vaynberg wrote: i was being facetious :) -igor On Tue, May 26, 2009 at 10:39 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I didn't mean than yours - Igor - I meant more than the original

ComponentModel

2009-05-27 Thread Petr Nejedlík
Hi, Class ComponentModel in version 1.4rc4 is generic but setObject methods still use Object instead of T. Is there any reason why setObject methods in ComponentModel and in inner class WrapModel does not use type T as input parameter? I recommend to change from public final void

Re: Panel switching in LinkTree.onNodeLinkClicked() doesn't work

2009-05-27 Thread Bucyrus
Im using a org.apache.wicket.extensions.markup.html.tree.Tree now instead of a LinkTree. This seems to work. Don't forget to call setOutputMarkupId ( true) for all panels before they get displayed. -- View this message in context:

Date Format in Wicket

2009-05-27 Thread srinivas
Hi, How to set the date format at the project level. I have dates displaying at no. of locations in my project. Currently i have to format the date patter in each and every page as the default date patter of wicket is (MM/DD/). But i want the date formate to be (DD/MM/). so if any one

Re: Date Format in Wicket

2009-05-27 Thread Martin Makundi
Setting user locale might help. ** Martin 2009/5/27 srinivas srinivas.r...@sifycorp.com: Hi, How to set the date format at the project level. I have dates displaying at no. of locations in my project. Currently i have to format the date patter in each and every page as the default date

Re: Panel switching in LinkTree.onNodeLinkClicked() doesn't work

2009-05-27 Thread Bucyrus
Andreas Bürgel (Bucyrus) wrote: Im using a org.apache.wicket.extensions.markup.html.tree.Tree now instead of a LinkTree. This seems to work. Don't forget to call setOutputMarkupId ( true) for all panels before they get displayed. I forgot to say that had to add the panel to the

Re: Date Format in Wicket

2009-05-27 Thread Eyal Golan
we used a general converter: @Override protected IConverterLocator newConverterLocator() { ConverterLocator locator = new ConverterLocator(); locator.set(Date.class, new CustomDateConverter()); return locator; } public class CustomDateConverter extends

Ajax request and lifecycle of model attach/detach

2009-05-27 Thread Wilter du Toit
Hi When I use an AjaxLink and it's onClick event is called, it seems that none of the components of the page that the AjaxLink is on has its attach/detach model methods called. Here is an example (I just made this quickly and roughly in order to demonstrate the issue): - package

Problem passing anonym-classes-models to pages

2009-05-27 Thread Jens Zastrow
Hi, I use a lot of anonym-classes-models which a want to pass to Page instances (no need for be bookmarkable) class HomePage() { // some Models here IModelEntity model = new LoadableDetachableModel(); // some Buttons-eventhandler public onClick() { IModelString m = new

Re: Problem passing anonym-classes-models to pages

2009-05-27 Thread Martijn Dashorst
Don't pass IModels around, use the model values they represent. Unless of course, you know what you are doing. For example, if you share a Model between two pages, it actually becomes two different instances after being passed on: one in the first page PageA (serialized with PageA), and one in the

Re: CompoundPropertyModel and Combobox

2009-05-27 Thread Marcin Palka
The code below works just fine for me. Instead of using complex type as a model object for a drop down I use an instance of IChoiceRenderer to control what's used for an id and what's displayed as a value. User user = ; setModel(new CompoundPropertyModel(user));

Re: Storing css and image files

2009-05-27 Thread Steve Swinsburg
I don't see the issue that you all seem to be experiencing but I can offer some advice: CSS, Javascript, images etc should be stored in the webapp directory NOT mixed in with the rest of the classes and HTML. Your CSS can then get at them easily if you are using any background images etc.

Re: HTTP pseudo streaming for Wicket

2009-05-27 Thread Kaspar Fischer
Ok, thanks. I think what you are saying holds for FLV streaming, but MP4 streaming looks more complicated: http://www.longtailvideo.com/support/forum/General-Chat/15793/pseudo-stream-mp4- It seems, as Jeremey pointed out, that lighttpd can do that. (I am looking for a Tomcat-only

Re: Expired sign in link after signing out

2009-05-27 Thread Tim Moose
add(new BookmarkablePageLink(signin, SigninPage.class)); That is one thing I tried, but it didn't work for me. I am using org.apache.wicket.authentication.panel.SignInPanel and with the above bookmarkable link, I get the following exception in onSignInSucceeded:

Re: Problem passing anonym-classes-models to pages

2009-05-27 Thread Jens Zastrow
Hi Martijn, Think of the following use-case. There is reusable PersonSelectionPage which should select one person from a list. These page should be usable from some other pages which have entities which can be assigned a person to. A IModelPerson will be passed to the PersonSelectionPage,

Re: Storing css and image files

2009-05-27 Thread Vasu Srinivasan
@Steve NOT mixed in with the rest of the classes and HTML. i totally agree with that. CSS, Javascript, images etc should be stored in the webapp directory my point is this may not be the case for all. in a big company i worked before, the css and continue/reset/submit/go buttons etc are

RequestLogger and session invalidation

2009-05-27 Thread Taneli Korri
Hi, I'm using Wicket 1.3.6 and RequestLogger.getLiveSessions to get the current sessions in my web application, but I'm experience strange behaviour when session invalidation occurs. When the user logs out of the application, the session is invalidated. This leads to

Re: Storing css and image files

2009-05-27 Thread Steve Swinsburg
CSS could still take care of this if your CSS could handle all the images, included via the IHeaderContributor and then you don't need to mix the display with the code. Or setup some constants that take the main prefix to the common repository so at least you only need to change it in one

Re: Storing css and image files

2009-05-27 Thread Luther Baker
Hi Steve, Continue your example and mount a url to an existing page that extends BasePage: mountBookmarkablePage(/im/going/home, About.class); and tell me what happens to your js and css references when you visit that url. Hope that helps, -Luther On Wed, May 27, 2009 at 7:20 AM,

Re: Storing css and image files

2009-05-27 Thread Luther Baker
Admittedly, I think this is slightly out of context here ... but a few days back, Martijn posted (no bashing intended - I try to adhere to this): There is no sane reason why anyone would put the html, js, css and properties resources in any place except *next* to the corresponding.java file.

Re: London Wicket Event - 3rd June @ Google (2 years on)

2009-05-27 Thread jWeekend
Alexander, It is unlikely that we will record and publish next Wednesday's event. We post many of our presentations and some movies at our Google Code site [1]. Regards - Cemal jWeekend http://jWeekend.com Training, Consulting, Development [1] http://code.google.com/p/londonwicket/ Alexander

Re: Storing css and image files

2009-05-27 Thread Martijn Dashorst
This only refers to component (page) specific resources. Not global resources for your application. If you want to create reusable components/pages that you can share between projects, then they need to be on the classpath. If you have a app specific CSS that you include from your app specific

Ordering a list component?

2009-05-27 Thread Phillip Rhodes
I was wondering if anyone had a component that allows you to order a list of items? Thanks, wicket is the best! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-27 Thread Jörn Zaefferer
Thanks Igor! After figuring out that onRequestTargetSet is called afterwards again with null as an argument (probably on closing the RequestCycle), it worked. Jörn On Tue, May 26, 2009 at 6:03 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: subclass requestcycle, override onrequesttargetset

Re: Ordering a list component?

2009-05-27 Thread Martin Makundi
Collections.sort 2009/5/27 Phillip Rhodes spamsu...@rhoderunner.com: I was wondering if anyone had a component that allows you to order a list of items? Thanks, wicket is the best! - To unsubscribe, e-mail:

Re: Storing css and image files

2009-05-27 Thread Vasu Srinivasan
I went thru the thread to understand the context. I agree with html/java/properties being together, i do not have issues with that. If I have a standalone app, I will have no issues putting css /js in the src/main/webapp. But its the reusability of js/css/images across several projects is whats

Re: when will be wicket 1.4 final release

2009-05-27 Thread Daniel Toffetti
danisevsky danisevsky at gmail.com writes: Hi, I would like ask you when I can expect wicket 1.4 final release? I am asking because I am waiting for wicket web beans which will be release after filnal wicket 1.4 release. Thanks for answer. Hi, With some luck, there will be an alpha

Re: Refreshing a list while using ListDataProvider

2009-05-27 Thread Vasu Srinivasan
Rereading the link http://cwiki.apache.org/WICKET/reading-from-a-database.html http://cwiki.apache.org/WICKET/reading-from-a-database.html clearly says that the objects are created only once, this includes the List results i guess. But the line -- results = getResultsFromCriteria(criteria); is

Re: Ordering a list component?

2009-05-27 Thread Phillip Rhodes
Sorry, should have been more specific. Allow the user to perform custom ordering of a list of items. Sort of like the palette component, but only half of it. -Original Message- From: Martin Makundi martin.maku...@koodaripalvelut.com Sent: Wednesday, May 27, 2009 10:37am To:

How to receive digested emails once a day from this mailing list ???

2009-05-27 Thread David Chang
I am new to this mailing list and I like it very much. I like the active community and the questions and answers, but I prefer to receive all the emails combined together in a single email once a day. I want to stay in the loop. I tried user-digest-subscr...@wicket.apache.org and there is no

Re: How to receive digested emails once a day from this mailing list ???

2009-05-27 Thread Martijn Dashorst
Not sure if it is possible, but try sending a message to users-h...@wicket.apache.org, and see if it is an option... Martijn On Wed, May 27, 2009 at 5:06 PM, David Chang david_q_zh...@yahoo.com wrote: I am new to this mailing list and I like it very much. I like the active community and the

Re: Ordering a list component?

2009-05-27 Thread Martin Makundi
Why don't you just set the half of the palette invisible. ** Martin 2009/5/27 Phillip Rhodes spamsu...@rhoderunner.com: Sorry, should have been more specific. Allow the user to perform custom ordering of a list of items. Sort of like the palette component, but only half of it.

Re: Ordering a list component?

2009-05-27 Thread Martijn Dashorst
ListView has up and down links incorporated. I haven't used them, so I didn't document their use in WIA. You could take a look at them... see ListView#moveUpLink() They're not ajaxy enabled, but I think you can use them in a: select option wicket:id=items /select kind of way. Martijn On

Re: How to receive digested emails once a day from this mailing list ???

2009-05-27 Thread Frank Tegtmeyer
I tried user-digest-subscr...@wicket.apache.org This has to be users-digest... (note the s) Regards, Frank - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Refreshing a list while using ListDataProvider

2009-05-27 Thread Igor Vaynberg
like i said you can roll your own provider that can work with new instances of list. it is very simple. class mysuperprovider implements idataprovider { private transient List list; private list query() { if (list==null) { list=querywhatever(); } } public iterator itereator() {

Re: Ordering a list component?

2009-05-27 Thread Maarten Bosteels
http://londonwicket.googlecode.com/files/LondonWicket-ListEditor.pdf I vaguely remember that the code didn't work for 100% when I tested it, but it sure is a good start. Maarten On Wed, May 27, 2009 at 5:14 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: ListView has up and down links

Re: Storing css and image files

2009-05-27 Thread Luther Baker
The clean way in my case is as Steve suggested , to use css to display the image for button. Thanks for all the inputs. Sorry this has dragged out a bit. In my case, I am not sharing static resources across apps. I'm just looking at the best way for each page in my application to retrieve

Re: Ajax request and lifecycle of model attach/detach

2009-05-27 Thread Igor Vaynberg
models are loaded lazily, eg imodel does not have an attach(), only a detach(). so unless your link accesses the model - eg invokes getobject() on it nothing will be loaded. at the end of request all models should get detach() called. -igor On Wed, May 27, 2009 at 2:30 AM, Wilter du Toit

Open a Modal Window within a Panel from a FileUpload form

2009-05-27 Thread Lina Thomas
Hi Hi I have a page that has a FileUpload form. Once the file is uploaded successfully onSubmit of the form I need to open a panel in ModalWindow. There is no Ajax event to fire which leaves me searching for ways to open the ModalWindow. I need to open the ModalWindow only on successful upload

Re: Open a Modal Window within a Panel from a FileUpload form

2009-05-27 Thread Douglas Ferguson
Lina Thomas wrote: Hi Hi I have a page that has a FileUpload form. Once the file is uploaded successfully onSubmit of the form I need to open a panel in ModalWindow. There is no Ajax event to fire which leaves me searching for ways to open the ModalWindow. I need to open the ModalWindow only

Re: Open a Modal Window within a Panel from a FileUpload form

2009-05-27 Thread Douglas Ferguson
You could use AjaxButton. This would give you an onSubmit with AjaxRequestTarget in the signature. D/ Lina Thomas wrote: Hi Hi I have a page that has a FileUpload form. Once the file is uploaded successfully onSubmit of the form I need to open a panel in ModalWindow. There is no Ajax

dynamically add additional components

2009-05-27 Thread tubin gen
is it possible to modify html at runtime and add new components ? for example I have a panel, html code below. wicket:panel div class=contentTittle label wicket:id=pageTittle / /div div class=pageheader div align=center table style=margin-bottom:

DropDownChoice with Id Value

2009-05-27 Thread Dane Laverty
I'm using a DropDownChoice that looks like this: DropDownChoice component = new DropDownChoice(component, new PropertyModel(task, componentId), new PropertyModel(task, project.components),

Re: [announce] WicketStuff Artwork new release

2009-05-27 Thread Erik van Oosten
Hi Nino, Nice stuff. Do you have a link to liquid? Its not a nice google word. Regards, Erik. nino martinez wael wrote: Hi Guys Just wanted to tell that theres a new release of wicketstuff artwork out. This time including niftycornerscube...

How do I reuse a rendered string, i.e. render once and past in multiple locations, e.g. paging nav at top and bottom?

2009-05-27 Thread J.-F. Rompre
I am trying to do something that should be easy to do, and may already be available from the API (I am still usin 1.3.5). How can one duplicate rendered strings? In other words, I am trying to render once but copy a number of times for better performance - e.g., putting a page navigator

Issue regarding refresh a wicket page portlet in Jetspeed portal

2009-05-27 Thread Arun Wagle
Hello , I have an issue with refreshing the portlet in jetspeed. I will try to explain the issue below I have a navigation in Jetspeed which point to a psml file. This psml file will bring up a wicket portlet. In the wicket portlet, I am having multiple pages. So when we click on the navigation

OutOfMemory on certain combinations of controls

2009-05-27 Thread Flavius
I ran into an issue where I'm getting an OutOfMemory error using autocomplete textbox functionality. I haven't nailed down the root culprit, but the symptoms seem to occur when I have a page with a border that also has controls, such as a panel or two. On the page, if I pop a modal dialog box

Re: AutoCompletetextField misbehavior in IE

2009-05-27 Thread slowery23
Did you have to do anything else to get this to work? I am having the same issue in both 1.4rc1 and 1.4rc2. cbchhaya wrote: Never mind, I was doing something daft but have now correctly replaced with the Mar 10 snapshot for 1.3.5 and the thing works fine. Thanks everyone for your help!

Re: Open a Modal Window within a Panel from a FileUpload form

2009-05-27 Thread Steve Swinsburg
You can't submit files with an AjaxButton as AJAX doesn't do multipart (yet). There are solutions with iframes. You could try that. cheers, Steve On 27/05/2009, at 7:46 PM, Douglas Ferguson wrote: You could use AjaxButton. This would give you an onSubmit with AjaxRequestTarget in the

Re: How do I reuse a rendered string, i.e. render once and past in multiple locations, e.g. paging nav at top and bottom?

2009-05-27 Thread Martijn Dashorst
You don't. Did a profiler tell you that this is a hotspot? Or are you optimizing for optimizing's sake? Martijn On Wed, May 27, 2009 at 9:53 PM, J.-F. Rompre jrom...@gmail.com wrote:  I am trying to do something that should be easy to do, and may already be  available from the API (I am still

Re: How do I reuse a rendered string, i.e. render once and past in multiple locations, e.g. paging nav at top and bottom?

2009-05-27 Thread Jeremy Thomerson
The real question that has been asked time and time again on this list when such a question is received is this: WHY? It's premature (and almost certainly unnecessary) optimization. Doing it needlessly couples multiple components together - reducing reuse. As always, we are more than interested

Re: dynamically add additional components

2009-05-27 Thread Jeremy Thomerson
You could use markup inheritance to allow the subclass to insert markup in that location. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 27, 2009 at 1:42 PM, tubin gen fachh...@gmail.com wrote: is it possible to   modify  html at runtime and add  new components ? for example

Last call job opening: Senior Java Engineer with wicket experience

2009-05-27 Thread Clint Popetz
Hi, I sent this to the list about a month ago, and we've received several good applicants, but I'll accept applications through the end of this month before making a decision. Since the last posting I've hired a part time person, and at this point I'm really only looking for full-time

Re: How do I reuse a rendered string, i.e. render once and past in multiple locations, e.g. paging nav at top and bottom?

2009-05-27 Thread Jeremy Thomerson
If you're optimizing for optimization's sake, spend your time optimizing where it is worth optimizing. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 27, 2009 at 6:04 PM, J.-F. Rompre jrom...@gmail.com wrote: I am optimizing for optimizing's sake - is there built-in efficiency

Re: Refreshing a list while using ListDataProvider

2009-05-27 Thread Andreas Petersson
Vasu Srinivasan schrieb: Hello: I have a simple search form , where some criteria refreshes the table based on the db. I got it working with ListView, but im trying to use ListDataProvider, I feel missing something: the trick that worked for me: just re-use the existing list instance. final

Re: How do I reuse a rendered string, i.e. render once and past in multiple locations, e.g. paging nav at top and bottom?

2009-05-27 Thread J.-F. Rompre
OK, thanks Martjin and Jeremy - I think mentioning performance was a mistake on my part..let me try again. I am not trying to couple different components, only to reuse what I know is never going to change within the same rendering - actually, avoiding the use of multiple component instances of

Re: How do I reuse a rendered string, i.e. render once and past in multiple locations, e.g. paging nav at top and bottom?

2009-05-27 Thread Igor Vaynberg
no it is not possible and does not make sense to do so. imagine you have a panel that renders div id=1div id=2/div/div not only would you have to rewrite the id of the top tag, but also of the inner tags. this becomes even more complicated if components output header contributors, eg javascript,

Re: simple model question

2009-05-27 Thread Igor Vaynberg
if you chain your models properly its no problem.. imodel ldm=new loadabledetachablemodel(..) imodel prop=new propertymodel(ldm, prop); -igor On Wed, May 27, 2009 at 1:20 PM, bf b...@juno.com wrote: I constructed a Page that uses a LoadableDetachableModel.  The LoadableDetachableModel

Re: OutOfMemory on certain combinations of controls

2009-05-27 Thread Igor Vaynberg
make sure you dont keep page references across pages. that may be it. -igor On Wed, May 27, 2009 at 1:41 PM, Flavius flav...@silverlion.com wrote: I ran into an issue where I'm getting an OutOfMemory error using autocomplete textbox functionality. I haven't nailed down the root culprit, but

Re: ComponentModel

2009-05-27 Thread Jeremy Thomerson
Please open a JIRA so it doesn't get lost. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 27, 2009 at 2:59 AM, Petr Nejedlík petr.nejed...@abra.eu wrote: Hi, Class ComponentModel in version 1.4rc4 is generic but setObject methods still use Object instead of T. Is there any

Re: Expired sign in link after signing out

2009-05-27 Thread Jeremy Thomerson
If you're on 1.3.2 can you try upgrading to at least the latest 1.3.X release (or even better, 1.4-rc4) to see if that doesn't fix it? -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 27, 2009 at 7:34 AM, Tim Moose hungl...@gmail.com wrote: add(new BookmarkablePageLink(signin,

Re: RequestLogger and session invalidation

2009-05-27 Thread Jeremy Thomerson
Please open a JIRA so this doesn't get lost. I haven't looked, but it sounds wrong if it truly recreates an invalidated session in some end-of-request logging, even if it doesn't bind the session. Post the link back here. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 27,

Re: How to receive digested emails once a day from this mailing list ???

2009-05-27 Thread Jeremy Thomerson
Well, I don't know because I've never tried, but I would suspect that if your email address was anywhere close to being right, you'd need it to have an S on users. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 27, 2009 at 10:06 AM, David Chang david_q_zh...@yahoo.com wrote: