Question about Wicket and generics

2010-08-27 Thread Mike Dee
: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341004.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Also noticed in prior messages with similar topic that someone suggested using Void (FormVoid). Never knew there was a Void keyword (capital V). Is this a recommended technique for Form (ie. FormVoid)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 8:37 AM, Mike Dee mdichiapp...@cardeatech.com wrote: I'd like to try and understand this.  What could T possibly be? It would be whatever your form is editing. But isn't TextField implying text (or a string).  Would TextFieldInteger make sense (haven't tried it yet)?

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 8:40 AM, Mike Dee mdichiapp...@cardeatech.com wrote: Also noticed in prior messages with similar topic that someone suggested using Void (FormVoid).  Never knew there was a Void keyword (capital V). Is this a recommended technique for  Form (ie. FormVoid)? It's

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Makes sense. What is the recommended practice when a form is not tied to a class that encapsulates the model? For example, picture a login screen that simply capture username and password strings. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
?  For example, picture a login screen that simply capture username and password strings. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341026.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Great, didn't know there was a built in LoginForm. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341060.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 11:41 AM, Mike Dee mdichiapp...@cardeatech.com wrote: In my experience, there are lots of other situations too.  For example, we have lots of forms for doing searches.  The form gathers the search criteria.  Maybe it would make sense to have a SearchFormCriteria class,

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
i have written plenty forms and about 99% of them have FormVoid. models on the form are just not that useful, its the fields that care. -igor On Fri, Aug 27, 2010 at 5:45 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 8:40 AM, Mike Dee mdichiapp...@cardeatech.com

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
just offering the other side of the coin...i didnt say we were going to yank the generics from the Form, chill :) -igor On Fri, Aug 27, 2010 at 8:38 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 11:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i have

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
be the model? How are others doing this? Mike -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341288.html Sent from the Wicket - User mailing list archive at Nabble.com

RE: Question about Wicket and generics

2010-08-27 Thread Stefan Lindner
@wicket.apache.org Betreff: Re: Question about Wicket and generics On Fri, Aug 27, 2010 at 11:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i have written plenty forms and about 99% of them have FormVoid. models on the form are just not that useful, its the fields  that care. That doesn't mean that's

RE: Question about Wicket and generics

2010-08-27 Thread Mike Dee
this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341500.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Question about embedded labels

2010-07-29 Thread jverstry
to embed Labels like I do? b) How can I make sure the embedded span will not be replaced by xxx? Thanks !!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307332.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
Labels like I do? b) How can I make sure the embedded span will not be replaced by xxx? Thanks !!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307332.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about embedded labels

2010-07-29 Thread jverstry
be an IModel. This interface is implemented by many classes. Which one should I use? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about embedded labels

2010-07-29 Thread Scott Swank
-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
that it should be an IModel. This interface is implemented by many classes. Which one should I use? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html Sent from the Wicket - User mailing list archive

Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
compile because the the-class-name parameter cannot be a string. I checked the doc and saw that it should be an IModel. This interface is implemented by many classes. Which one should I use? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded

Re: Question about embedded labels

2010-07-29 Thread jverstry
Ok, it compiles. Thanks. Just one last question about the usage of WebMarkupContainer, because this is new to me. If I create a WebMarkupContainer, will it automatically 'attach' itself to the provided html tag using the provided wicket id no matter the type of the HTML tag? Can I use

Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
On Thu, Jul 29, 2010 at 7:13 PM, jverstry jvers...@gmail.com wrote: Ok, it compiles. Thanks. Just one last question about the usage of WebMarkupContainer, because this is new to me. If I create a WebMarkupContainer, will it automatically 'attach' itself to the provided html tag using

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-07-01 Thread dannyboy
Hot spot is gone. -Danny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/question-about-adding-synchronized-on-mountsOnPath-at-WebRequestCodingStrategy-tp1878901p2274801.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-30 Thread dannyboy
Optimization helped! Thank you for fixing it. Kind regards, Danny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/question-about-adding-synchronized-on-mountsOnPath-at-WebRequestCodingStrategy-tp1878901p2272701.html Sent from the Wicket - User mailing list archive

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-30 Thread Igor Vaynberg
did it reduce it or is the hotspot completely gone? -igor On Wed, Jun 30, 2010 at 3:38 AM, dannyboy danny.bolla...@gmail.com wrote: Optimization helped! Thank you for fixing it. Kind regards, Danny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/question

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-29 Thread dannyboy
-_YourKit_Java_Profiler_9.0.5.png Kind Regards, Danny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/question-about-adding-synchronized-on-mountsOnPath-at-WebRequestCodingStrategy-tp1878901p2272250.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-29 Thread Igor Vaynberg
.1842946.n4.nabble.com/file/n2272250/Screenshot-Bootstrap-2010-06-29-1.snapshot_%5B-home-dbollaer-Snapshots%5D_-_YourKit_Java_Profiler_9.0.5.png Kind Regards, Danny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/question-about-adding-synchronized-on-mountsOnPath

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: 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: 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: 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: Question about usage of PageMap

2010-06-04 Thread Pedro Santos
I believe that passing the page where user click Add as parameter to the wizard is an simple solution to has an reference to set on the cancel response. On Fri, Jun 4, 2010 at 3:55 AM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote: Hello all. I our application we have a lot of search and

Re: Wicket Branding with setStyle - question about static images in src/webapp/*

2010-04-19 Thread Igor Vaynberg
see ContextImage, create your own version that is style-aware. alternatively you can create tag handlers just like wicket:link that will add your own version of ContextImage for you. -igor On Sun, Apr 18, 2010 at 11:16 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I am

Wicket Branding with setStyle - question about static images in src/webapp/*

2010-04-18 Thread Martin Makundi
Hi! I am trying to brand my app with session.setStyle. My question is about static images in src/webapp/* I have been using them like img src=/images/logo.png/ Do I have to switch them into img src=/images/logo.png wicket:id=image-tag/ and attach a corresponding Image component? Seems like a

Newbie Question about populating form values

2010-04-14 Thread David Hamilton
I'm a new Wicket using trying to figure out how to populate a form's initial value with data from a bean (that is in the session already). I've actually got it working, but I don't think I'm doing the best way. public final class EmployeeMain extends BasePage { public EmployeeMain() {

Re: Newbie Question about populating form values

2010-04-14 Thread Nikita Tovstoles
If you're using a CPM there's no need to explicitly set models for child components. Also think about what you want to happen on page reload. Generally I'd imagine you want current data, so set CPM's object on Page.onBeforeRender(): public class EmployeeMain extends BasePage{ final private

Re: Newbie Question about populating form values

2010-04-14 Thread James Carman
Why not use a LoadableDetachableModel instead of setting on onBeforeRender()? On Wed, Apr 14, 2010 at 12:10 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: If you're using a CPM there's no need to explicitly set models  for child components. Also think about what you want to happen on

Re: Newbie Question about populating form values

2010-04-14 Thread Nikita Tovstoles
Yeah, guess you could do that too, but then you'd have to wrap one model into another (since LDM does not do property matching like CPM) + you've to extend LDM. On Wed, Apr 14, 2010 at 9:24 AM, James Carman jcar...@carmanconsulting.comwrote: Why not use a LoadableDetachableModel instead of

Re: Newbie Question about populating form values

2010-04-14 Thread James Carman
That's one of the key concepts of Wicket models. On Wed, Apr 14, 2010 at 2:04 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Yeah, guess you could do that too, but then you'd have to wrap one model into another (since LDM does not do property matching like CPM) + you've to extend LDM.

Re: A question about using Spring in Wicket 1.4

2010-03-18 Thread Gwyn Evans
Subject: Re: A question about using Spring in Wicket 1.4 To: users@wicket.apache.org Date: Thursday, March 11, 2010, 9:09 AM yes On Thu, Mar 11, 2010 at 8:56 AM, David Chang david_q_zh...@yahoo.com wrote: Yesterday I was looking at the page Migrating to Wicket 1.4 http

A question about using Spring in Wicket 1.4

2010-03-11 Thread David Chang
Yesterday I was looking at the page Migrating to Wicket 1.4 http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html Regarding SpringWebApplication, it says: SpringWebApplication has been deprecated in favor of SpringBean annotation. See SpringWebApplication javadoc for how to setup

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread James Carman
yes On Thu, Mar 11, 2010 at 8:56 AM, David Chang david_q_zh...@yahoo.com wrote: Yesterday I was looking at the page Migrating to Wicket 1.4 http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html Regarding SpringWebApplication, it says: SpringWebApplication has been deprecated in favor

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread David Chang
generates compiler error. Regards. --- On Thu, 3/11/10, James Carman jcar...@carmanconsulting.com wrote: From: James Carman jcar...@carmanconsulting.com Subject: Re: A question about using Spring in Wicket 1.4 To: users@wicket.apache.org Date: Thursday, March 11, 2010, 9:09 AM yes On Thu, Mar

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread Matthias Keller
: James Carmanjcar...@carmanconsulting.com Subject: Re: A question about using Spring in Wicket 1.4 To: users@wicket.apache.org Date: Thursday, March 11, 2010, 9:09 AM yes On Thu, Mar 11, 2010 at 8:56 AM, David Changdavid_q_zh...@yahoo.com wrote: Yesterday I was looking at the page Migrating

Question about setting Lists

2010-03-05 Thread Eric Reagan
Hi, I am still new to Wicket and I think I might be missing something. I am trying to create a list of items and then have a panel generate a ListView which contains the previously created list (and all their children and children's children..etc). In order to do this I created a class for

Re: Question about setting Lists

2010-03-05 Thread Jeremy Thomerson
Don't generate lists in your constructor / init methods and set them on the list. This is one of the most common pitfalls that newcomers to Wicket fall in to. Instead, create a LoadableDetachableModel, ala: new ListView(list, new LoadableDetachableModelListPerson() { public ListPerson load()

Question about WicketTester and using my class which extends WebApplication

2010-02-25 Thread Eric Reagan
Hello, I am pretty well new to wicket and I am running into a problem I was wondering if anyone knew how to solve. I have a class which extends the WebApplication class. I have a static get method which is outlined below public static MyApp get(){ return

Re: Question about WicketTester and using my class which extends WebApplication

2010-02-25 Thread Thomas Kappler
On 02/25/10 17:47, Eric Reagan wrote: Hello, I am pretty well new to wicket and I am running into a problem I was wondering if anyone knew how to solve. I have a class which extends the WebApplication class. I have a static get method which is outlined below public static

Re: Question about transient and serialization

2010-01-22 Thread mfs
button was pressed, the page was deserialized and the transient object (testString) be null. But that don't happend. Can anyone tell me why?. Thanks -- View this message in context: http://www.nabble.com/Question-about-transient-and-serialization-tp18641031p18641031.html Sent from

Re: question about swarm

2010-01-12 Thread Emond Papegaaij
. Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I agree

Re: question about swarm

2010-01-07 Thread Olger Warnier
: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I agree, it is quite fragile - I had a look at the code that does the checks. I could 'assume

Re: question about swarm

2010-01-07 Thread Emond Papegaaij
looking at the source code. Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I

Re: question about swarm

2010-01-06 Thread Emond Papegaaij
been working with swam for 3 days. But I will do some looking at the source code. Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam

Re: question about swarm

2010-01-06 Thread Olger Warnier
To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I agree, it is quite fragile - I had a look at the code that does the checks. I could 'assume' that an anonymous class needs the same rights as the 'normal' class. so

Re: question about swarm

2010-01-06 Thread Emond Papegaaij
- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I agree, it is quite fragile - I had a look at the code that does the checks. I could

Re: question about swarm

2009-12-31 Thread Olger Warnier
Hi Sam, I have added a sample to the secureform sample where the home page creates an anonymous class of the MySecurePage An anonymous page has a kind of a class name. Look for a ERROR - RequestCycle - Not authorized to instantiate class

Re: question about swarm

2009-12-31 Thread Sam Barrow
I know I can do that, but there's no way do do it by inheritance? I have hundreds of anonymous subclasses throughout my application. Seems sensible that subclasses should inherit their parent's permissions. On Thu, 2009-12-31 at 10:41 +0100, Olger Warnier wrote: Hi Sam, I have added a sample

Re: question about swarm

2009-12-31 Thread Jeremy Thomerson
That's extremely fragile. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Dec 31, 2009 at 3:41 AM, Olger Warnier ol...@xs4all.nl wrote: Hi Sam, I have added a sample to the secureform sample where the home page creates an anonymous class of the MySecurePage An anonymous page

Re: question about swarm

2009-12-31 Thread Olger Warnier
Hi Sam Jeremy, Together with the remark that Jeremy made - I agree, it is quite fragile - I had a look at the code that does the checks. I could 'assume' that an anonymous class needs the same rights as the 'normal' class. so when your CreateItemPage has the proper rights, an anonymous

Re: question about swarm

2009-12-31 Thread sam
at the source code. Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I agree, it is quite

Re: question about swarm

2009-12-31 Thread Olger Warnier
looking at the source code. Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I agree

Re: question about swarm

2009-12-31 Thread sam
Wow that was quick. Thanks a lot I really appreciate it Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 23:31:34 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam, Found the way to solve

question about swarm

2009-12-30 Thread Sam Barrow
I hope this is the right list for wasp/swarm. How do i manage permissions for an anonymous subclass? I have a page called ItemPage. I can view ItemPage, but if I try to redirect to an anonymous subclass of ItemPage, i get an access denied error. this works: setResponsePage(new

A question about the book WIA

2009-11-07 Thread David Chang
I am reading the book: Wicket in Action. The first sentence of second paragraph of page 273 reads: - In the UserPanel, we created a model that extends LoadableDetachableModel for representing the current user (if any). - In this chapter (Chapter 11 Securiing your application), I am

Question about Javascript DOM + Wicket

2009-10-15 Thread Erik Pragt
Hi all, I'm relatively new to Wicket, and I have a small question. I have a dynamic form in Javascript, which can have an unlimited set of input fields. For example, I can have a form to manage persons, and the user can enter multiple addresses, which are currently handled by a jQuery

Re: Question about Javascript DOM + Wicket

2009-10-15 Thread Pedro Santos
My question is: is this also possible with Wicket? I don't want to use Ajax forms, I'd rather do everything in the DOM of the browser and then submit it yes, you can work on your form dom, adding form components with known names, and dial with then on your onSubmit method like:

Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Andrig T. Miller
I have been going through the Wicket in Action book, but using the 1.4.2 release.  I figured the changes where minimal enough I could get through things.  In the Cheese store example I have the following code: package org.miller.wicket.example; import org.apache.wicket.markup.html.basic.Label;

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Jeremy Thomerson
the key is in getCheeses... It should be something like private IModelListCheese getCheeses() -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 15, 2009 at 4:55 PM, Andrig T. Miller andrig.t.mil...@gmail.com wrote: I have been going through the Wicket in Action book, but using

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Andrig T. Miller
I have in CheesrPage the following: private ListCheese getCheeses() { return CheeseApplication.get().getCheeses(); } If I change that to: private IModelListCheese getCheeses() { return CheeseApplication.get().getCheeses(); } I then just get the same warning here, and of course then I

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Jeremy Thomerson
Can you pastebin the entire java file? -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 15, 2009 at 5:09 PM, Andrig T. Miller andrig.t.mil...@gmail.com wrote: I have in CheesrPage the following: private ListCheese getCheeses() { return

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Andrig T. Miller
Sure: package org.miller.wicket.example; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.link.Link; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.ListView; import org.apache.wicket.model.IModel; public class

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Jeremy Thomerson
Ah, yes - sorry I missed it. There are a couple of errors. 1 - change your Cheese cheese = (Cheese) line (see below) 2 - change getDefaultModel to getModel - the generic version of the method public Index() { add(new ListViewCheese(cheeses, getCheeses()) { private

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Andrig T. Miller
Ah, thanks, that did the trick. The migration guide says to use getDefaultModel instead of getModel, but I guess that's not true all the time. Andy On Thu, Oct 15, 2009 at 4:26 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Ah, yes - sorry I missed it.  There are a couple of errors. 1

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Jeremy Thomerson
getDefaultModel still requires a cast - that was the direct migration. getModel was then added back in to genericized components. So, where you want to use generics, you must use the getModel variation. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 15, 2009 at 5:30 PM, Andrig

Re: Question about new Type Safety changes in Wicket 1.4

2009-10-15 Thread Andrig T. Miller
Okay, thanks. That's helpful. I should be able to translate to 1.4 from what's in the book much more easily now. I really appreciate the help. Andy On Thu, Oct 15, 2009 at 4:36 PM, Jeremy Thomerson jer...@wickettraining.com wrote: getDefaultModel still requires a cast - that was the direct

Question about wicket validation

2009-09-29 Thread Martin Makundi
Hi! If a form validator depends on a nested form's components, it will assume they are valid because the nested form's components are validated after the parent form? ** Martin - To unsubscribe, e-mail:

Re: Question about wicket validation

2009-09-29 Thread Jonathan Locke
in context: http://www.nabble.com/Question-about-wicket-validation-tp25657602p25669362.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Question about wicket validation

2009-09-29 Thread Martin Makundi
- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Question-about-wicket-validation-tp25657602p25669362.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about threads inside wicket pages

2009-08-20 Thread Jeremy Thomerson
Right - the session, etc, is available via a ThreadLocal. So, it's not available in a new thread. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Aug 19, 2009 at 11:42 PM, Ashika Umanga Umagiliyaauma...@biggjapan.com wrote: Hi Jeremy, I tried to call Page.info() inside the new

Question about threads inside wicket pages

2009-08-19 Thread Ashika Umanga Umagiliya
Greetings all, Please refer to image at : http://i26.tinypic.com/11qi6o7.jpg I am going to invoke a webservice using Axis2 Client,asynchronically.To getback the results, I am using a Callback handler in axis2. Within my page, I am going to create the Callback object (axisCallbackHandler in

Re: Question about threads inside wicket pages

2009-08-19 Thread Jeremy Thomerson
I'm not 100% sure, but I'm pretty sure that it would depend on your servlet container more than Wicket. The threads for handling requests are spun up by the servlet container before Wicket is ever handed the request. And typically these threads are pooled - so it wouldn't be *destroyed*. But

Re: Question about threads inside wicket pages

2009-08-19 Thread Ashika Umanga Umagiliya
Hi Jeremy, I tried to call Page.info() inside the new thread created by axis2client , then it gives the message : EXCEPTION:you can only locate or create sessions in the context of a request cycle I guess,this means I must change the page data inside the same thread right? Thanks in

Re: Beginner question about wicket:extend

2009-08-14 Thread Eyal Golan
well, markup inheritance lets you create pages (or panels for that mater) with the same layout. Suppose you want to have two pages that both have (the same) header and a footer. Markup inheritance is a way of doing that (there are other options as well). So what you do is, create a Base page. In

Re: Beginner question about wicket:extend

2009-08-14 Thread Mathias Nilsson
Have you extended the Header page in the index page? class HeaderPage extends Webpage{ } class IndexPage extends HeaderPage{ } -- View this message in context: http://www.nabble.com/Beginner-question-about-wicket%3Aextend-tp24968417p24968623.html Sent from the Wicket - User mailing list

Re: Beginner question about wicket:extend

2009-08-14 Thread Oliver-Sven Fritsch
Thanks for your quick reply! I now got it! I thought it was the other way round! foolish me! :-) Really appreciate! Oliver Eyal Golan wrote: well, markup inheritance lets you create pages (or panels for that mater) with the same layout. Suppose you want to have two pages that both have (the

Re: Beginner question about wicket:extend

2009-08-14 Thread Korbinian Bachl - privat
Hi, well, wicket and JSP have not much in common beside the fact that they both rely on Java... a simple example for your needs would be this here: http://wicket.apache.org/examplemarkupinheritance.html Best, Korbinian Oliver-Sven Fritsch schrieb: Hi everybody! I'm really new to wicket

Question about FilterForm and without FilterToolbar

2009-06-09 Thread Dutrieux Olivier
Hello everybody, I am trying to use the FilterForm with TextFilter ChoiceFilter but *without *FilterToolbar because I use DataView and FilterToolbar waiting a DataTable. I can't use a DataTable because I am not use a IColumn because my columns are bizarres (see attach). The problem is that

Re: Question about FilterForm and without FilterToolbar

2009-06-09 Thread Igor Vaynberg
why dont you just roll your own components that do what you want. as you have already observed filterform and *Filter components are made to work together. -igor On Tue, Jun 9, 2009 at 3:39 AM, Dutrieux Olivierolivier.dutri...@pasteur.fr wrote: Hello everybody, I am trying to use the

Re: question about IChoiceRenderer#getIdValue

2009-06-08 Thread Igor Vaynberg
no its not really safe if the changes to locale resort the list. -igor On Mon, Jun 8, 2009 at 6:12 PM, Ian MacLartyian.macla...@gmail.com wrote: Hello, I wonder if someone could clarify when it is safe to use the index as the value for IChoiceRenderer#getIdValue.  The documentation says that

Re: question about IChoiceRenderer#getIdValue

2009-06-08 Thread Ian MacLarty
On Tue, Jun 9, 2009 at 11:23 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: no its not really safe if the changes to locale resort the list. Okay, thanks. Ian. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Igor Vaynberg
? -- View this message in context: http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21970542.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Thomas Mäder
once by request cycle processor, which in turns is shared by all requests (i read this at Wicket In Action) so synchornized the mountsOnPath can produce a big lock contention problem if we have many requests at the same time? -- View this message in context: http://www.nabble.com/question

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Johan Compagner
produce a big lock contention problem if we have many requests at the same time? -- View this message in context: http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21970542.html Sent from the Wicket - User mailing list archive

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Thomas Mäder
Root of all evil! Root of all evil! ;-) On Thu, Feb 12, 2009 at 6:41 PM, Johan Compagner jcompag...@gmail.comwrote: And for 1.4+ we could make that map concurrent if that isnt already the case -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread ywtsang
: http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21988196.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Igor Vaynberg
if that isnt already the case -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch -- View this message in context: http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21988196.html Sent from the Wicket - User

question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2009-02-11 Thread ywtsang
requests (i read this at Wicket In Action) so synchornized the mountsOnPath can produce a big lock contention problem if we have many requests at the same time? -- View this message in context: http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath

Re: Question about property expressions

2008-11-06 Thread Jan Stette
OK, thanks for the info. Jan 2008/11/5 Igor Vaynberg [EMAIL PROTECTED] the mechanism for looking up expressions is not extensible, because it isnt meant to be extended. so you have to write your own model from scratch using something like mvel/ognl to access the property. both of those

Re: Question about property expressions

2008-11-05 Thread Jan Stette
2008/11/5 Igor Vaynberg [EMAIL PROTECTED] On Tue, Nov 4, 2008 at 5:54 PM, Jan Stette [EMAIL PROTECTED] wrote: Sure. To explain a bit more why I'm asking: I have a table component that's configured using property expressions as to what's shown in each column. The types of objects to be

Re: Question about property expressions

2008-11-05 Thread Igor Vaynberg
the mechanism for looking up expressions is not extensible, because it isnt meant to be extended. so you have to write your own model from scratch using something like mvel/ognl to access the property. both of those support method calls afaik. -igor On Wed, Nov 5, 2008 at 1:56 AM, Jan Stette

<    1   2   3   4   >