Re: CloseButtonCallback questions

2010-08-18 Thread James Carman
You can have a variable that contains an indication that something was done. In the CloseButtonCallback you clear that variable and in the WindowClosedCallback you check to see whether that variable reports that something was done. If it was, you report to the calling page. For me, the variable w

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread James Carman
- Alex > > > -Original Message- > From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On > Behalf Of James Carman > Sent: Tuesday, August 17, 2010 4:58 PM > To: users@wicket.apache.org > Subject: Re: Best Practice passing data between Bookmarkable pages >

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread James Carman
You mean metadata on the session? On Tue, Aug 17, 2010 at 9:11 AM, Martijn Dashorst wrote: > It's a good usecase for metadata. No problem there. > > Martijn > > On Tue, Aug 17, 2010 at 2:59 PM, Steve Mactaggart > wrote: >> We do pass params for the actual page's content, but this is transient >>

Re: DropDownChoice does not push value into Model

2010-08-17 Thread James Carman
In your onSubmit() method, you're referring to the local variable "studyReference." Why not try getting the model value while inside the method? On Tue, Aug 17, 2010 at 6:04 AM, nivs wrote: > > Hi James > > Point(s) noted. I have got something going here and it is working but is > this what you

Re: DropDownChoice does not push value into Model

2010-08-16 Thread James Carman
On Mon, Aug 16, 2010 at 5:42 AM, nivs wrote: > 2. firstName = new TextField("studyName",new > PropertyModel(pModel.getObject().getStudyName(),"studyName")); > It should be: new PropertyModel(pModel, "studyName"). The first argument to PropertyModel's constructor is the "root" for the property e

Re: Request for Feature: NoopAjaxRequestTarget

2010-08-15 Thread James Carman
se where this > really applies), the whole page is going to be re-rendered if javascript is > not supported.  So adding components to the target is superfluous. > > On Aug 15, 2010, at 7:44 AM, James Carman wrote: > >> How does the ajax logic get executed if the client

Re: How to get submitting component in onError()?

2010-08-15 Thread James Carman
>From the looks of the code for findSubmittingButton(), it shouldn't matter whether you're in onError() or onSubmit(). What does findSubmittingButton() return in onSubmit()? On Sun, Aug 15, 2010 at 6:59 AM, wrote: > Hi, > > In a form with two submit buttons, a result must be calculated in > onE

Re: Request for Feature: NoopAjaxRequestTarget

2010-08-15 Thread James Carman
How does the ajax logic get executed if the client doesn't have Javascript enabled? On Sun, Aug 15, 2010 at 10:23 AM, Don Ferguson wrote: > When using AjaxRequestTarget, one always has to check for null, as in: > > if (target != null) { >        target.addComponent(...); > } > > or suffer the con

Re: Using up/down/remove links of ListView items clears text fields

2010-08-14 Thread James Carman
But then all listviews that need up/down links have to be in a form. On Aug 14, 2010 12:37 PM, "Sebastian" wrote: > Hi Martin, > > thanks for pointing me to the reuse component concept. It solved my > problem partially but not completely. The problem is, that the links > provided by the listview

Re: Bug or feature/improvement/question?

2010-08-14 Thread James Carman
; time. > > ** > Martin > > 2010/8/14 Martin Makundi : >> Still.. if value not changed, what does it matter? >> >> 2010/8/14 James Carman : >>> What if the validation criteria is based on other fields too? >>> >> > > -

Re: Bug or feature/improvement/question?

2010-08-14 Thread James Carman
What if the validation criteria is based on other fields too?

Re: DropDownChoice does not push value into Model

2010-08-14 Thread James Carman
study > object/instance in the initial model should be in synch right? Correct me if > I am wrong.  Let me also think about this point u made. But yeah do let me > know if i have made a mistake. > > cpm = (CompoundPropertyModel)this.getModel();reset the > original one >

Re: wicket-extensions alive?

2010-08-13 Thread James Carman
That's not a wicket class. You're missing commons-collections.jar On Aug 13, 2010 4:34 PM, "gnugrf" wrote: > > I had added wicket-extensions to my pom.xml, because I was planning on making > use of DataTable and DefaultDataTable, however, I hadn't yet added any code > that would require the depe

Re: DropDownChoice does not push value into Model

2010-08-13 Thread James Carman
Your DDC is bound to the original StudyModel's study with the lines: PropertyModel propertyModel = new PropertyModel(studyModel.getStudy(),Constants.STUDY_STATUS); studyStatusDpChoices = new DropDownChoice(Constants.STUDY_DROP_DOWN_CHOICE,propertyModel,studyStatusList,defaultChoiceRenderer); Then

Re: FileUpload and IE6

2010-08-11 Thread James Carman
apparently it was. DUH! On Wed, Aug 11, 2010 at 4:56 PM, Igor Vaynberg wrote: > ajax file upload? > > -igor > > On Wed, Aug 11, 2010 at 1:06 PM, James Carman > wrote: >> Has anyone had any luck getting this to work?  We've got a page that >> does a fil

FileUpload and IE6

2010-08-11 Thread James Carman
Has anyone had any luck getting this to work? We've got a page that does a file upload. Everything works fine in Firefox, IE8, etc. But, IE6 (of course) fails. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For a

Re: Remove support for Portlets in Wicket 1.5

2010-08-11 Thread James Carman
I'd say at least move it to wicketstuff, so that if there's some other person out there with the will and means to take the project on, they can do so. On Wed, Aug 11, 2010 at 2:35 PM, Martin Grigorov wrote: > Hi, > > I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976) > t

Re: Loading Wicket resources from a background thread

2010-08-09 Thread James Carman
If you're using Maven, you can do something similar to what I've done in my advanced wicket application. http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ On Mon, Aug 9, 2010 at 4:57 PM, Alec Swan wrote: > Hello, > > I am using Wicket 1.4.5 and I need to read a property from my appl

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread James Carman
On Fri, Aug 6, 2010 at 1:06 PM, wrote: > Right, I guess that's my question, what are you losing by not calling > super.encodeURL(url), but it may not matter because its only omitted for > bots in the SEO example > You're losing session support for folks who have said they don't want to allow coo

Re: A beginner's tutorial

2010-08-05 Thread James Carman
On Thu, Aug 5, 2010 at 10:54 AM, H. Turgut Uyar wrote: > It seems to me that I have to explain a lot of complicated things to > explain this to the students. They are 3rd year students who have taken > only one OO course, and that's in C++. > > Thank you both for your concern and help Definitely!

Re: A beginner's tutorial

2010-08-05 Thread James Carman
I would not promote this in any introductory material. Sometimes you have to walk before you can run. On Thu, Aug 5, 2010 at 10:27 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > Also use of compoundpropertymodel is confusing and misleading in a > professional sense. In

Re: How to setResponsePage with a classname string parameter?

2010-08-03 Thread James Carman
Cast it? On Aug 3, 2010 10:19 PM, "rolandpeng" wrote: > > Hi,I want to redirect to a dynamic webpage,but I can only get the destination > as a fullpath classname string .The sample code like below, > > String pageClass=task.getFormResourceName(); > > WebPage page=null; > if(pageClass.equals("com.

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
azy... > > Yes the original value must be hashed by the client. The reasoning being > that SSL could be broken and expose the data. I don't necessarily agree > but thats how the original system was written. > > > > > James Carman > Sent by: jcar...@carmancon

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
And, you don't want to convert it before you store it in the db? It must be converted at the browser level? Is there any more information you can give us that would make this requirement not sound so crazy? :) On Tue, Aug 3, 2010 at 2:15 PM, wrote: > Correct > > > > >

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
the spec I am working with. > > > > > James Carman > Sent by: jcar...@carmanconsulting.com > 08/03/2010 01:45 PM > Please respond to > users@wicket.apache.org > > > To > users@wicket.apache.org > cc > > Subject > Re: Encrypt Form Fields Using JS >

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
And, what does that buy you? Why do you want to submit one-way hashed values? On Tue, Aug 3, 2010 at 1:37 PM, wrote: > Ok, the value will be hashed, one-way...anyone have any ideas? > > > > > James Carman > Sent by: jcar...@carmanconsulting.com > 08/02/2010 04:4

Re: CSS not depending on locale but some other logic

2010-08-03 Thread James Carman
Have you looked at the "style" property on Session? On Tue, Aug 3, 2010 at 3:21 AM, armandoxxx wrote: > > Hey wicket ppl > > I got a question about styling my pages. > > In a web app project I'm working on, we have many different users coming > from various companies. Each company has different

Re: Encrypt Form Fields Using JS

2010-08-02 Thread James Carman
Then it's not "encryption". Encrypted data should be readable to those who have the "key." On Mon, Aug 2, 2010 at 3:29 PM, wrote: > Thanks for the reply, that would work however per our business rules the > encryption must be one-way and will not be decrypted... > > > > > Igor Vaynberg > 08/02

Re: Error Hypothesis...

2010-08-02 Thread James Carman
mple use a flash uploader to a servlet that has > nice progress indicator (like gmail) > > > johan > > On Mon, Aug 2, 2010 at 16:29, James Carman > wrote: > > So, is there anything I can do to "fix" the problem (aside from hitting > the > > user on the

Re: Error Hypothesis...

2010-08-02 Thread James Carman
is most likely the case. > > > > On Mon, Aug 2, 2010 at 16:17, James Carman > wrote: > > I have a theory about what is causing this issue. Just wanted to run it > by > > you guys. In my log files, I first see this: > > >

Error Hypothesis...

2010-08-02 Thread James Carman
I have a theory about what is causing this issue. Just wanted to run it by you guys. In my log files, I first see this: org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[http-10080-Pro

Re: Disabling serialization in wicket tester....

2010-07-31 Thread James Carman
Will mockito let you mock more than one class at once? If so, you can add Serializable to the list. On Jul 31, 2010 5:40 PM, "Erik Brakkee" wrote: > That my tests will not be equivalent is no big problem. In this case I am > really unit testing the pages while mocking the backend. That allows m

Re: Wicket and JEE6

2010-07-29 Thread James Carman
The problem with using the AspectJ-injected references occurs when you pass your reference to another class (such as a model, for instance). That class may not be instrumented via AspectJ to handle the serialization/deserialization properly for that reference. So, it will fail. On Thu, Jul 29, 2

Re: FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread James Carman
http://commons.apache.org/fileupload/faq.html#whole-path-from-IE On Thu, Jul 29, 2010 at 9:10 AM, vov wrote: > > Yes, but how to fix this problem? > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306431.html

Re: How to set the value of a Drop Down Choice

2010-07-27 Thread James Carman
Why not set up a property on your page/component for the selected text and use a PropertyModel? On Tue, Jul 27, 2010 at 3:34 PM, Eric Reagan wrote: > Martin, >    I have the following. All I am getting is a null value. Am I setting the > model object wrong? > > IModel stringObjectModel = new Load

Re: learn from my security mistake with getString

2010-07-23 Thread James Carman
Doh! On Jul 23, 2010 3:13 PM, "Jim Pinkham" wrote: > I was just looking around for my dunce cap after noticing this little gotcha > - and I thought of this forum instead to share my moment of > not-so-brilliance: > > public LoginForm(final String id) { > ... other stuff ... > add(new FormComponen

Re: OutOfMemoryError PermGen Space...

2010-07-23 Thread James Carman
= 1360371698 *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedSerializationConstructorAccessor394 *** probably it has been unloaded recently On Fri, Jul 23, 2010 at 8:40 AM, James Carman wrote: > On Fri, Jul 23, 2010 at 8:37 AM, Johan Compagner wrote: >

Re: OutOfMemoryError PermGen Space...

2010-07-23 Thread James Carman
On Fri, Jul 23, 2010 at 8:37 AM, Johan Compagner wrote: > the only thing i dont get is that for you the forSerialization flag > should be true (at least the stack trace you shown us) > So for your serialization thing you should have: > GeneratedSerializationConstructorAccessor1 or something.. > I

Re: OutOfMemoryError PermGen Space...

2010-07-23 Thread James Carman
On Fri, Jul 23, 2010 at 8:20 AM, Martijn Dashorst wrote: > In these kind of cases I've learnt to trust Johan. > It appears I'm learning that myself! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional co

Re: OutOfMemoryError PermGen Space...

2010-07-23 Thread James Carman
                    Class serializationTargetClass) > > and that is constructing byte code on the fly and calling defineClass > on it which results in a new class all the time that is a > implementation of MagicAccessorImpl > that then is a "fake" constructor for your

Re: OutOfMemoryError PermGen Space...

2010-07-23 Thread James Carman
I am not using intern() anywhere. Who knows if any of the gazillion third-party libraries are using it, though. Time to fire up jmap On Fri, Jul 23, 2010 at 7:24 AM, Thomas Kappler wrote: > On 07/22/10 20:30, James Carman wrote: >> >> Guys, our production server is running int

Re: OutOfMemoryError PermGen Space...

2010-07-23 Thread James Carman
private constructor: > > private A() {} > > Then i think nothing is tried to be generated. > > > 2010/7/23 Andreas Prieß : >> On 22/07/10 21:53, James Carman wrote: >>> I'm running Tomcat, so it's: >>> >>> $ env | grep CATALINA >>

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
On Thu, Jul 22, 2010 at 4:11 PM, Johan Compagner wrote: > what kind of classes are serialized constantly? > are those proxies or other generated onces? > All sorts of stuff I guess. This doesn't necessarily happen on one particular page. It just starts happening after a while and the applicatio

Re: Animated page switch possible?

2010-07-22 Thread James Carman
t;>> Granted a webapp is not native, but some clients do desire a close to >>> native experience and this is a nice touch. >>> >>> Sent from my iPod >>> >>> On Jul 21, 2010, at 12:48 PM, James Carman >>> wrote: >>> >

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
ttp://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html>these > are my settings > set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=256m > -XX:MaxPermSize=256m > > 2010/7/22 James Carman [via Apache Wicket] < > ml-node+2299232-642663496-232...@n4.nabble.com >>

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
t; ** > Martin > > 2010/7/22 James Carman : >> Oops!  I must not have copied that line.  All it said was "PermGen space" >> >> On Thu, Jul 22, 2010 at 3:25 PM, Martin Makundi >> wrote: >>> Where is the outofmemoryerror ? >>> >>

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
Oops! I must not have copied that line. All it said was "PermGen space" On Thu, Jul 22, 2010 at 3:25 PM, Martin Makundi wrote: > Where is the outofmemoryerror ? > > ** > Martin > > 2010/7/22 James Carman : >> I'm running Wicket 1.4.9 and Sun&#

Re: OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
I'm running Wicket 1.4.9 and Sun's JDK 1.6.0_20 on a RHEL4 64-bit machine. On Thu, Jul 22, 2010 at 2:30 PM, James Carman wrote: > Guys, our production server is running into an error from time to > time.  I get the below stack trace after the site has been running for >

OutOfMemoryError PermGen Space...

2010-07-22 Thread James Carman
Guys, our production server is running into an error from time to time. I get the below stack trace after the site has been running for a while. It's not running in development mode. It's running in deployment mode. Any thoughts? What's with this generateSerializationConstructor() stuff? sun

Re: Animated page switch possible?

2010-07-21 Thread James Carman
If not, hit them with this... These are not the page switching animations you're looking for. Move along. On Wed, Jul 21, 2010 at 3:38 PM, Per Newgro wrote: > Ok thats a point. > > Thanks > Per > > - > To unsubscribe, e-mail: u

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
said, no. if you try to add something and it doesnt have > output markup id set to true it should throw an exception just like if > you wouldve used addcomponent() > > -igor > > On Tue, Jul 20, 2010 at 11:59 AM, James Carman > wrote: >> I'm talking about that

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
ou are adding children you should already know that their ids are set > > -igor > > On Tue, Jul 20, 2010 at 10:03 AM, James Carman > wrote: >> On Tue, Jul 20, 2010 at 11:59 AM, James Carman >> wrote: >>> On Tue, Jul 20, 2010 at 11:57 AM,

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
This really does save me quite a bit of code! Everywhere that I was saving off a FeedbackPanel field to my page/component so that I could later use it to add to an AjaxRequestTarget, GONE! On Tue, Jul 20, 2010 at 1:49 PM, James Carman wrote: > Here's the actual code (it works in our app

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
> > -igor > > On Tue, Jul 20, 2010 at 8:34 AM, James Carman > wrote: >> Perhaps we could just register a AjaxRequestTarget.IListener and >> implement the onBeforeRespond() method?  You would check to see if >> there are any messages to be shown (still looking for

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 11:59 AM, James Carman wrote: > On Tue, Jul 20, 2010 at 11:57 AM, Martin Grigorov > wrote: >> What >> about org.apache.wicket.ajax.AjaxRequestTarget.addChildren(MarkupContainer, >> Class) >> >> I.e.: target.addChildren(getPage()

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 12:38 PM, Martin Makundi wrote: > Yes! > > Igor's solution sounds very generic... could it be a > swith/setting/option in the framework that can simply be "turned on"? > I'm sure it could, very easily. But it'd have to be added to one of the settings objects (PageSettings

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 12:29 PM, jcgarciam wrote: > > I guess what Martin and James talk about is having a FeedbackPanel at the > top and a lot component (panels) ajaxified which only update the > FeedbackPanel  on their callbacks. Therefore they pass the FeedbackPanel on > every Panel constructo

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 11:57 AM, Martin Grigorov wrote: > What > about org.apache.wicket.ajax.AjaxRequestTarget.addChildren(MarkupContainer, > Class) > > I.e.: target.addChildren(getPage(), IFeedback.class) ? Even cooler! - To

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 11:47 AM, Igor Vaynberg wrote: > yes, you are on the right track. i just described this to someone in > irc not a few days ago... > > override application.newajaxrequesttarget > register your listener > in listener onbeforerespond check if there are any messages - > getsess

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
et.getPage()) feedback panel component gets added to the AjaxRequestTarget that's passed in. On Tue, Jul 20, 2010 at 11:23 AM, Igor Vaynberg wrote: > there is already IFeedback interface that tags all components like > feedbackpanel. > > -igor > > On Tue, Jul 20, 2010

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
I've struggled with this myself in the context of AJAX events that are handled completely by subpanels. I want only one feedback panel on the page, but the subpanels need to be able to add them to their AjaxRequestTarget. Perhaps you could override the default ajax request cycle handling in some

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread James Carman
gt; super(id, new CompoundPropertyModel(study)); So this wraps the model > as study. How will be able to add the second model in the same manner? > If it sounds too basic do bear with me I will experiment as well. > > Thanks again > Niv > > > On Fri, Jul 16, 2010 at 7:04 PM,

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread James Carman
Your form can edit two different objects. It will edit whatever you bind your fields to On Jul 16, 2010 4:23 AM, "Nivedan Nadaraj" wrote: > Hi > Thanks for the pointer. I did read through models and > LoadableDetachableModel. Not sure if this model addresses the problem at > hand. Isn't LDM rel

Re: Output just text, no component

2010-07-14 Thread James Carman
You can use a org.apache.wicket.util.template.JavaScriptTemplate. On Wed, Jul 14, 2010 at 9:51 AM, Ted Vinke wrote: >  Hi everybody! > > I'm trying to accomplish something new with Wicket: output just some text, > instead of a component. I simply can't figure out how to dynamically render > from

Re: new feature in trunk and branch: Component#onInitialize()

2010-07-12 Thread James Carman
Very cool. Thanks, Wicket Team! On Mon, Jul 12, 2010 at 10:09 PM, Igor Vaynberg wrote: > there have been a lot of threads over the years about having some > place to initialize components other than constructors. there are a > few problems with constructors, such as not being able to call > getP

Re: AW: Serialization of injected EJBs

2010-07-10 Thread James Carman
does not address any serialization issues with the injected references. Regards, Harald Von: jcar...@carmanconsulting.com [jcar...@carmanconsulting.com] im Auftrag von James Carman [ja...@carmanconsulting.com] Gesendet: Samstag, 10. Juli 2010 12:35 An: us

Re: Serialization of injected EJBs

2010-07-10 Thread James Carman
Here's some work I did. See if it works for you: http://svn.carmanconsulting.com/public/wicket-cdi/trunk/ On Sat, Jul 10, 2010 at 4:09 AM, Korbinian Bachl - privat wrote: > Hi Igor, > > as I might hit the problem in next weeks (GF 3.0.1 + EJB + Wicket) i just > wanted to ask if your code is pu

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread James Carman
ount A' to account B' so you need to consider this when implementing. Ofcourse it's a dumb example nobody implements such transactions in session memory (I hope ;)) but somebody might try similar things for more lightweight transactions. ** Martin 2010/7/9 James Carman : > Th

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread James Carman
1423-751388596-293...@n4.nabble.com > > wrote: > Also yes ;) > > 2010/7/7 James Carman <[hidden email]< http://user/SendEmail.jtp?type=node&node=2281423&i=0>>: > > > > 2010/7/7 Martin Makundi <[hidden email]< http://user/SendEmail.jtp?type=node&n

Re: Single inheritence in parts

2010-07-08 Thread James Carman
igor > > On Thu, Jul 8, 2010 at 2:35 PM, James Carman > wrote: >> Right, it's doable, but there's a bit of homework you have to do to >> make sure it all works correctly.  You have to solve the whole >> "onFirstRender" problem in a reliable way.  O

Re: Single inheritence in parts

2010-07-08 Thread James Carman
> abstract Component getPart2(String id); > > onInitialize() { >  add(getPart1("part1")); >  add(getPart2("part1")); > }} > > -igor > > On Thu, Jul 8, 2010 at 2:23 PM, James Carman > wrote: >> And, this method doesn't really work very

Re: Single inheritence in parts

2010-07-08 Thread James Carman
And, this method doesn't really work very well either. You can't reliably call those abstract methods from the superclass' constructor. On Thu, Jul 8, 2010 at 2:47 PM, Chris Colman wrote: >>class Page extends Page { >> >>abstract Component getPart1(); >>abstract Component getPart2(); >>} >>

Re: Question - Does Wicket really initialize a page instance once?

2010-07-07 Thread James Carman
2010/7/7 Martin Makundi : > But remember... not being reconstructed does not mean that you won't > have MULTIPLE INSTANCES of the same page. > > ... thanks to serialization ;)) so be warned if you code something > that depends on instances. It's not just serialization. A new page instance wil

Re: Model for simple UI state? (Apart from 'regular' Model)

2010-07-05 Thread James Carman
Wicket stores the "state" (its fields) of a component (and thus pages) between requests. So, your idea should work. Did you see any serialization errors/warnings on your output log? Perhaps the component's state can't be serialized? On Mon, Jul 5, 2010 at 3:10 PM, Anh <7za...@gmail.com> wrote:

Re: question abaut form

2010-07-01 Thread James Carman
Or... new Form On Thu, Jul 1, 2010 at 8:10 AM, James Carman wrote: > To answer your question, you can use new Form() > > On Thu, Jul 1, 2010 at 8:10 AM, James Carman > wrote: >> So, do you even need a form?  These could be links. >> >> On Thu, Jul 1, 201

Re: question abaut form

2010-07-01 Thread James Carman
To answer your question, you can use new Form() On Thu, Jul 1, 2010 at 8:10 AM, James Carman wrote: > So, do you even need a form?  These could be links. > > On Thu, Jul 1, 2010 at 8:00 AM, Dawid Strzelczyk wrote: >> On this form i have only 2 buttons: "Add Product to B

Re: question abaut form

2010-07-01 Thread James Carman
So, do you even need a form? These could be links. On Thu, Jul 1, 2010 at 8:00 AM, Dawid Strzelczyk wrote: > On this form i have only 2 buttons: "Add Product to Basket" and "Continue > Shopping". > > 2010/7/1 James Carman > >> What type of object are yo

Re: question abaut form

2010-07-01 Thread James Carman
What type of object are you "editing"? On Thu, Jul 1, 2010 at 7:41 AM, Dawid Strzelczyk wrote: > Hi, > I have a question about form creation. > > new Form< "what type should be here" > > > Best regards > - To unsubscribe, e-mail

Re: How to customize the pages of a DataTable, DataView or DataGrid.

2010-06-30 Thread James Carman
You don't have to load all the data. You can "page" the data in your data provider. On Wed, Jun 30, 2010 at 4:35 PM, adp wrote: > > I need to implement a data table in wicket with load on demand. > The problem in use the existent implementations is that they load in advance > all data and if tha

Re: ListChoice - generics for model defined wrong

2010-06-29 Thread James Carman
ListChoice doesn't allow you to choose multiple. You want ListMultipleChoice. On Tue, Jun 29, 2010 at 8:29 AM, Douglas Ferguson wrote: > I was just attempt to use the ListChoice and it seems to me that the > constructor signatures are wrong. > > The model for this should be List not List, other

Re: @SpringBean not working for IModel implementations?

2010-06-29 Thread James Carman
Try using InjectorHolder.getInjector().inject(this); inside your model implementation's constructor. On Tue, Jun 29, 2010 at 9:30 AM, David Meulemans wrote: > Hi > > I've got an implementation of the IModel interface and I want to inject a > Spring bean in it. > > In the method public String ge

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
Looks like if you use Spring 3.x, you can do it. You have to use the "value" of the @Transactional annotation to figure out which tx manager to use. On Fri, Jun 25, 2010 at 9:58 AM, James Carman wrote: > These discussions might be of interest to you: > > https://jira.springso

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
These discussions might be of interest to you: https://jira.springsource.org/browse/SPR-3955 http://forum.springsource.org/showthread.php?t=27754 On Fri, Jun 25, 2010 at 9:34 AM, pieter claassen wrote: > Yes, I reload the objects using my DAOs but, I have 2 MySQL databases on the > backend a

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
How are you managing transactions? On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen wrote: > I find that when I delete objects from my ListView, my model object for the > ListView still contains a reference to the object. When the view tries to > render, the object is already removed from the dat

Re: Announcing: visural-wicket 0.6 released - open source wicket components

2010-06-23 Thread James Carman
Why not just get it published to the main Maven repository? It's not that difficult. On Wed, Jun 23, 2010 at 9:27 AM, Paul Szulc wrote: > If you would like to, I can elp you create maven repository on google code > for this project. Let me know. > > On Wed, Jun 23, 2010 at 1:05 PM, Richard Nicho

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread James Carman
What kind of objects are they? For entities, I use a uuid for the primary key and it's assigned when the object is created. That way you make equals/hashcode based on the uuid so that everything stays consistent On Jun 19, 2010 1:42 PM, "jOki" wrote: Hi, I tried with/without setReuseItems an

Re: Getting started with Scala, Spring, Hibernate & Wicket

2010-06-19 Thread James Carman
On Sat, Jun 19, 2010 at 12:06 PM, Tim L Casey wrote: > > > That’s ok.  I never understood folks who don’t use layers. > I do use layers, when it makes sense. It's just a matter of taste, I guess. Some folks like to stick with their paradigm no matter what. I guess I've just become a bit more fl

Re: Getting started with Scala, Spring, Hibernate & Wicket

2010-06-19 Thread James Carman
On Sat, Jun 19, 2010 at 11:54 AM, Brian Topping wrote: > The best reason for me to keep a service/business layer talking to the DAO is > to provide a clean transactional boundary.  Then, all I have to do is add a > Spring @Transactional annotation to the method and I'm fully atomic. > > If my vi

Re: Getting started with Scala, Spring, Hibernate & Wicket

2010-06-19 Thread James Carman
On Sat, Jun 19, 2010 at 10:10 AM, Kent Tong wrote: > I agree that if the service is simply delegating to the DAO without > adding anything, then it is probably be a good idea to merge them. > However, this sample application is meant to demonstrate how to do > it in a general case where the servic

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread James Carman
Just as a test, turn off the reuseItems property. See what happens. On Sat, Jun 19, 2010 at 5:04 AM, jOki wrote: > > Even Im trying to implement the remove link as: > >  - item.add(removeLink("removeKeyword", item)); > > and it doesnt work... always remove the last row... > > > -- > View this me

Re: Getting started with Scala, Spring, Hibernate & Wicket

2010-06-19 Thread James Carman
erstood folks' aversion to talking to the DAOs from the view layer, especially when it means you have to have duplicate methods in your service layer to do so. It just doesn't make sense to me. On Sat, Jun 19, 2010 at 8:01 AM, James Carman wrote: > Why is spring-orm version 3.0.1.RE

Re: Getting started with Scala, Spring, Hibernate & Wicket

2010-06-19 Thread James Carman
Why is spring-orm version 3.0.1.RELEASE and not 3.0.3.RELEASE? Why not just uset a {spring.version} property in your POM so that it all stays in synch? On Sat, Jun 19, 2010 at 7:23 AM, Kent Tong wrote: > Hi, > > I've written a tutorial on this topic. You may check it out at > http://www.dzone.co

Re: How to create a Popup Button

2010-06-15 Thread James Carman
Try Mawb Notes On Tue, Jun 15, 2010 at 7:42 PM, jammyjohn 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 > -- > //

Re: Convention for classes name

2010-06-05 Thread James Carman
Are you Hungarian? On Sat, Jun 5, 2010 at 4:06 PM, Erdinc wrote: > I add "PG" prefix to page classes, e.g PGCustomerEditor, and "RC" to custom > components, e.g RCDateTimeEditor. > > > > > From: Gustavo Henrique > To: users@wicket.apache.org > Sent: Sat, June 5,

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread James Carman
Have you tried clearing your cache on your browsers? On Fri, Jun 4, 2010 at 11:57 AM, Bryan Montgomery wrote: > Hello, > I've been banging my head against the proverbial brick wall for the last > day. I have a fairly large web application which I've been modifying part > of. > > Essentially, part

Re: Image subclass not getting its model object

2010-06-04 Thread James Carman
I would say you need to use your own image resource, not subclass Image itself. On Fri, Jun 4, 2010 at 7:03 AM, Erwin Bolwidt wrote: > Hi Ernesto, > > Just got the 1.4.9 source code and I see what you mean. > But why is it like this? > I copied the whole Image source code to a new class, removed

Re: Guice & Wicket Guice Proxy

2010-06-03 Thread James Carman
I thought the filters were executed in the order of their filter-mappings, not their filter definitions. On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael wrote: > Argh, how stupid.. Thanks a lot igor, how can I buy you a beer or Coke? > > I spend a tremendous time trying to figure out what was

Re: Can I develop without recompiling/restarting after every change?

2010-05-31 Thread James Carman
On Sun, May 30, 2010 at 5:22 PM, Jeremy Thomerson wrote: > I've not used jRebel, but I commonly run my applications in debug mode in > Eclipse and do not have to restart the server - even with code changes.  The > exception is changing a method signature of classes that are already loaded > - but

Re: AjaxFallbackDefaultDataTable turn off Sorting

2010-05-30 Thread James Carman
You'll have to re-create the table, perhaps? On Sun, May 30, 2010 at 5:50 PM, wrote: > Hi All, > > I need to turn off sorting in AjaxFallbackDefaultDataTable  initially and > then  click of a Ajax Link button in need to turn  it On.  I > > Thanks in advance. > > ---

Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread James Carman
On Sat, May 29, 2010 at 9:31 AM, Sam Zilverberg wrote: > I looked at "Controller" but it seems that if i use it i have to respond > with some ModelAndView object to requests... > If you take care of the request yourself, by spitting back what you're supposed to on the response, then you just retu

<    1   2   3   4   5   6   7   8   9   10   >