Re: Problems with CheckGroup

2009-08-04 Thread Martin Makundi
What is U? In my understanding Check(box) operates on a Boolean value so the classcast exception might be there (btw. I always use CheckBox.. I never tried Check..). ** Martin 2009/8/4 burnst...@burnstone.ch burnst...@burnstone.ch: Hi all I'm trying to use CheckGroup, but encounter some

Re: Problems with CheckGroup

2009-08-04 Thread burnstone
Martin Makundi wrote: What is U? In my understanding Check(box) operates on a Boolean value so the classcast exception might be there (btw. I always use CheckBox.. I never tried Check..). U is just the parameter type, in this case a String, but could be an Integer or Float as well. The

Re: Problems with CheckGroup

2009-08-04 Thread Martin Makundi
Have you tried to debug the code where you get the exception? I suspect that you just have some data types mixed. Maybe it is just this: comp.setType(parameter.getType()); Is that necessary? ** Martin 2009/8/4 burnstone burnst...@burnstone.ch: Martin Makundi wrote: What is U? In my

Re: Issue with AjaxLinks in ListView

2009-08-04 Thread Kuga
Replaced it with Repeating views, and seems to work so far, will know better results in couple of days if there are any issues. Thanks JK for the support help with some ideas. Much appreciated. Really wonder why that should give such wierd behavior for ListView Thanks Kuga John Krasnay wrote:

SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Thomas Singer
We include the Wicket sources using an SVN external. I now wanted to update from the latest Wicket 1.3.* release (http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.6) to 1.4.0, but could not find a corresponding tag or branch. The latest one to find is for wicket-1.4-rc5. Where can I find it?

FeedbackIndicator doesn't work inside RefreshingView

2009-08-04 Thread Anton Komratov
I'm using RefreshingView to show and edit data. I put MinimumValidator to the TextField in RefreshingView (in method populateItem()).Also I put FeedbackIndicator for this TextField in RefreshingView (also in method populateItem()). MinimumValidator works fine - I'm getting error messages at the

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
fixed On Tue, Aug 4, 2009 at 9:57 AM, Thomas Singerwic...@regnis.de wrote: We include the Wicket sources using an SVN external. I now wanted to update from the latest Wicket 1.3.* release (http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.6) to 1.4.0, but could not find a corresponding

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
That's not exactly fixing it, Martijn. The version in the pom still says SNAPSHOT. What did you do, copy trunk? Who cut this release? There should be a tag available to re-create every release. I don't see tags for the last couple of rcs either. This is quite a big no-no in Apache Land. On

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
I beg to differ: the way it is currently setup is the way we have done it since inception of wicket. tag - the moment where we cut the release release - the branch where the commits go to actually build the release Martijn On Tue, Aug 4, 2009 at 10:20 AM, James

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
see http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.0 Martijn On Tue, Aug 4, 2009 at 10:25 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: I beg to differ: the way it is currently setup is the way we have done it since inception of wicket. tag - the moment where we cut the

Re: Problems with CheckGroup

2009-08-04 Thread burnstone
Debugging the code just tells me the same as the exception does: CheckGroup.updateModel: public void updateModel() { CollectionT collection = getModelObject(); if (collection == null) { collection = getConvertedInput();

Re: Problems with CheckGroup

2009-08-04 Thread Martin Makundi
Can you make a quickstart of it an send me? ** Martin 2009/8/4 burnstone burnst...@burnstone.ch: Debugging the code just tells me the same as the exception does: CheckGroup.updateModel: public void updateModel() {        CollectionT collection = getModelObject();        if (collection ==

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
On Tue, Aug 4, 2009 at 4:25 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: I beg to differ: the way it is currently setup is the way we have done it since inception of wicket. No, I beg to differ. You haven't been doing it that way. Take a look at:

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Thomas Singer
Thank you. Tom Martijn Dashorst wrote: fixed - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
This has been the process since I've been release manager. Create tag when we cut the release, create release branch where we build the release from the tag, release it. If there's a issue, repeat. This way release artifacts don't pollute the main development stream, which is rather normal SVN

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
See also: http://cwiki.apache.org/confluence/display/WICKET/Releasing On Tue, Aug 4, 2009 at 10:41 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: This has been the process since I've been release manager. Create tag when we cut the release, create release branch where we build the

Re: Caching a resource on the browser side

2009-08-04 Thread ZedroS Schwart
I finally managed to set the headers this way : WebResponse response = (WebResponse) getRequestCycle().getResponse(); response.setDateHeader(Date, System.currentTimeMillis()); response.setDateHeader(Expires, System.currentTimeMillis() + CACHE_DURATION);

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
Ok, so show me how you would re-create the 1.4.0 release as it was when it was released. What SVN URL would you use to do that? If someone has checked in changes into your release branch, you're going to need to find what version (SVN version) was used along with that URL to re-create the 1.4.0

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
I don't disagree that you guys are doing it this way. I'm saying it's the wrong way to do it. On Tue, Aug 4, 2009 at 4:45 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: See also: http://cwiki.apache.org/confluence/display/WICKET/Releasing On Tue, Aug 4, 2009 at 10:41 AM, Martijn

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
I can commit to a tag just as good as to the release branch. There is no spoon. Martijn On Tue, Aug 4, 2009 at 10:56 AM, James Carmanjcar...@carmanconsulting.com wrote: Ok, so show me how you would re-create the 1.4.0 release as it was when it was released.  What SVN URL would you use to do

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
You aren't *supposed* to commit to tags, though. On Tue, Aug 4, 2009 at 5:00 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: I can commit to a tag just as good as to the release branch. There is no spoon. Martijn On Tue, Aug 4, 2009 at 10:56 AM, James

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
Take a look at: http://svnbook.red-bean.com/en/1.5/svn.branchmerge.tags.html#svn.branchmerge.tags.mksimple But wait a moment: isn't this tag creation procedure the same procedure we used to create a branch? Yes, in fact, it is. In Subversion, there's no difference between a tag and a branch.

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
We create a branch of off trunk for future maintenance of wicket 1.4, not from a release branch. wicket/branches/wicket-1.3.x - created from wicket/trunk when we moved 1.3 to maintenance mode wicket/branches/wicket-1.4.x - will be created from wicket/trunk when we move 1.4 to mainenance mode

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
Same for releases/wicket-1.4.0 after the release has been created. Martijn On Tue, Aug 4, 2009 at 11:02 AM, James Carmanjcar...@carmanconsulting.com wrote: You aren't *supposed* to commit to tags, though. On Tue, Aug 4, 2009 at 5:00 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: I

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
On Tue, Aug 4, 2009 at 5:00 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: I can commit to a tag just as good as to the release branch. There is no spoon. You're not answering the question, either. You haven't shown me how you would easily re-create the released software as it was when

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
On Tue, Aug 4, 2009 at 5:05 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: We create a branch of off trunk for future maintenance of wicket 1.4, not from a release branch. wicket/branches/wicket-1.3.x  - created from wicket/trunk when we moved 1.3 to maintenance mode

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
You might want to check the best practices document from the Incubator: http://incubator.apache.org/guides/releasemanagement.html#best-practices-svn On Tue, Aug 4, 2009 at 5:05 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: Same for releases/wicket-1.4.0 after the release has been

Wicket and Tomcat: Error deploying configuration descriptor ROOT.xml

2009-08-04 Thread Thomas Singer
When I launch our wicket application in Tomcat 5.5.27 I'm getting following output in the IDEA console: cmd /c C:\apache-tomcat-5.5.27\bin\catalina.bat run Using CATALINA_BASE: C:\Dokumente und Einstellungen\tom\.IntelliJIdea8x\system\tomcat\tomcat_Unnamed_websitecaa32f44 Using

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
tags/foo is as mutable as releases/foo If a release needs to be cut, we can just do: svn co https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.0 ./release.sh there are no changes to the release after it has been created. A social convention, just as tagging it. And this is the last

how to get RequestData in RequestCycle

2009-08-04 Thread Vytautas Čivilis
Hi. I'd like to log the request data (org.apache.wicket.protocol.http.RequestLogger.RequestData) in RequestCycle logRuntimeException. The RequestLogger keeps RequestData by it's private MetaData key in RequestCycle object. In other words, I can only completely re-implement RequestLogger to

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
Well, think about it this way. In the original message in this thread, Thomas Singer went looking for the 1.4.0 release stuff at the URL: http://svn.apache.org/repos/asf/wicket/tags/wicket-1.4.0 and it wasn't there. Why did he go there? Hmm. Maybe because that's how everyone else does

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
We shouldn't have to do this kind of research to know what's going on. That's the whole point. On Tue, Aug 4, 2009 at 7:25 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: WTF? Read the commit messages and then tell me that the 1.4.0 release is not an exact copy of

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
Jeez, get a life... Martijn On Tue, Aug 4, 2009 at 1:29 PM, James Carmanjcar...@carmanconsulting.com wrote: We shouldn't have to do this kind of research to know what's going on.  That's the whole point. On Tue, Aug 4, 2009 at 7:25 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: WTF?

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
Wow, that's a great way for a member of the development team to treat a member of their user community. I'm not the only one with these concerns. Why don't you bad-mouth Reinhard too? On Tue, Aug 4, 2009 at 7:35 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: Jeez, get a life...

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Martijn Dashorst
We have documented, and established release procedures, which I followed, and then I must jump to your bidding? Why is it so difficult to understand that our releases/* directory is where we keep our release builds? And that they constitute our official place for checking out release code? svn

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Jeremy Thomerson
http://svn.apache.org/repos/asf/wicket/releases/ -- Jeremy Thomerson http://www.wickettraining.com On Tue, Aug 4, 2009 at 3:20 AM, James Carmanjcar...@carmanconsulting.com wrote: That's not exactly fixing it, Martijn.  The version in the pom still says SNAPSHOT.  What did you do, copy

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread James Carman
On Tue, Aug 4, 2009 at 7:54 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: We have documented, and established release procedures, which I followed, and then I must jump to your bidding? Again, the point is that we shouldn't have to read the release procedures to find the release tags.

Re: Caching a resource on the browser side

2009-08-04 Thread Erik van Oosten
According to http://code.google.com/speed/page-speed/docs/caching.html you should not set both Expires and Cache-Control: max-age. I suggest you: - also set Cache-control: public (see the article). - get rid of the session cookie when the cvs file is first retrieved. I think the cookie is the

Re: ConfirmLink Ajax + Fallback anyone?

2009-08-04 Thread Johannes Schneider
Ok, I have created some classes that seem to work. Could anyone take a look at it and give any feedback? What about the styles for the confirmation page? How should those be added? Thanks Johannes /** * A confirmation link that uses JavaScript if available. */ public class ConfirmationLink

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread nino martinez wael
I too am a bit worried.. A temporary fix could be to include the svn revision number for the release. Until this gets fixed. At work, we have a special profile for hudson which does the mvn release:prepare release:perform, which does the release and tag + deploy in one go. The idea are if hudson

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread nino martinez wael
Oh and yes Wicket Devs you are doing a great job, without you there would be no wicket.. And with no wicket no happy Nino:) But just because something has done one way always it doesn't mean it's the best way. I believe creating a release should be as simple as a click :) Regards Nino 2009/8/4

Re: Wicket and Tomcat: Error deploying configuration descriptor ROOT.xml

2009-08-04 Thread Erik Post
Hi Thomas, On Tue, Aug 4, 2009 at 3:54 PM, Thomas Singerwic...@regnis.de wrote: OK, this was caused by having removed commons-logging-1.1.jar from the classpath. I still don't understand why it is required. The wicket 1.4.0 readme says:       You only need to include the Servlet API (2.3,

Re: Wicket and Tomcat: Error deploying configuration descriptor ROOT.xml

2009-08-04 Thread Martijn Dashorst
run mvn dependency:tree to see where you get clogging-1.1 from If you find out which dependency includes it, either * exclude clogging with that dependency in your pom, or * use 99-version-does-not-exists from Erik van Oosten (search google) Martijn On Tue, Aug 4, 2009 at 3:54 PM, Thomas

Re: Wicket and Tomcat: Error deploying configuration descriptor ROOT.xml

2009-08-04 Thread Thomas Singer
OK, this was caused by having removed commons-logging-1.1.jar from the classpath. I still don't understand why it is required. The wicket 1.4.0 readme says: You only need to include the Servlet API (2.3, just for compiling) and the SLF4J logging implementation you want. You cannot

Label i18n in 1.4 final

2009-08-04 Thread Robin Sander
Hello, I'm trying to add internationalization to my wicket application using Wicket 1.4 final. In order to customize labels I don't use wicket:message but use Label subclasses. So, both the Wiki page General i18n in Wicket an Wicket in Action state that I may define a property file for

Re: Label i18n in 1.4 final

2009-08-04 Thread Eyal Golan
As far as I remember, you need to call the proprty 'header' header = Sidebar Header! Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Aug 4,

Re: FeedbackIndicator doesn't work inside RefreshingView

2009-08-04 Thread Igor Vaynberg
you have to call setreuseitemstrategy(...) on the refreshingview so that components are kept across requests. it is analogous to having to call setreuseitems(true) on the listview. -igor On Tue, Aug 4, 2009 at 1:12 AM, Anton Komratova.komra...@gmail.com wrote: I'm using RefreshingView to show

Re: Problems with CheckGroup

2009-08-04 Thread Igor Vaynberg
so the next step is to step into convertinput() and see why its returning a string instead of a collection. -igor On Tue, Aug 4, 2009 at 1:20 AM, burnstoneburnst...@burnstone.ch wrote: Debugging the code just tells me the same as the exception does: CheckGroup.updateModel: public void

Re: Form skips validation for disabled/not visible components

2009-08-04 Thread nytrus
James Carman-3 wrote: And, if you want to display the currently-selected thing, then try using a label (with a little style to it perhaps). On Mon, Aug 3, 2009 at 11:23 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: use HiddenField instead of a TextField, that way there is no need to

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Igor Vaynberg
thanks, my bad. got lost in all the building and rebuilding :) -igor On Tue, Aug 4, 2009 at 1:14 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: fixed On Tue, Aug 4, 2009 at 9:57 AM, Thomas Singerwic...@regnis.de wrote: We include the Wicket sources using an SVN external. I now wanted

Re: Label i18n in 1.4 final

2009-08-04 Thread Robin Sander
Hi, yes, this does work but would interfere with a page-level label called header, doesn't it? That's why the component-path up to the page is used as a prefix, I thought... On 04.08.2009, at 16:21, Eyal Golan wrote: As far as I remember, you need to call the proprty 'header' header =

Re: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Igor Vaynberg
nothing was lost -igor On Tue, Aug 4, 2009 at 6:51 AM, nino martinez waelnino.martinez.w...@gmail.com wrote: I too am a bit worried.. A temporary fix could be to include the svn revision number for the release. Until this gets fixed. At work, we have a special profile for hudson which does

Re: strange icon appears in webpage

2009-08-04 Thread fachhoch
this is happening only when deployed in unix in windows it is fine , I am sure I am not using characters of any foreign language , is there any better way to identify these characters ? MartinM wrote: Sync properly: - filesystem charset - html charset meta .. -tag ** Martin

Re: strange icon appears in webpage

2009-08-04 Thread James Carman
Print out the character codes for each character in the string. Is it crlf? On Tue, Aug 4, 2009 at 11:14 AM, fachhochfachh...@gmail.com wrote: this is happening only when deployed in unix in windows it is fine , I am sure I am not using characters of any foreign language  , is there any

Re: strange icon appears in webpage

2009-08-04 Thread fachhoch
I did not understand what you mean , the special characters web page displays is comming becasue of plain HTML may be i copied it from other pages and not typed in my editor , but why is this happening only in unix and not in windows , is there anything I have to configure in unix ? James

Re: strange icon appears in webpage

2009-08-04 Thread James Carman
Can you re-type the HTML? You can run dos2unix on your html file perhaps? On Tue, Aug 4, 2009 at 11:30 AM, fachhochfachh...@gmail.com wrote: I did not understand  what you mean ,  the special characters web page displays is comming becasue of plain HTML may be i copied it from other pages

RE: SVN URL for Wicket 1.4.0 sources?

2009-08-04 Thread Jeremy Thomerson
Right. Doesn't everybody here understand that the completed releases are tagged in the releases directory rather than the tags. James, I don't understand why you are so upset. Nothing is lost - it's just somewhere that you'd prefer it not to be. We like it in the releases directory because

Re: Problems with CheckGroup

2009-08-04 Thread burnstone
burnstone wrote: Removing the setType-Call doesn't help. Sorry, after some more debugging and then testing The Right Thing (tm) I have to say this statement is wrong. Removing the call to setType() fixes my problem. Well. Thanks for holding my hand, anyway :) -- chris

RE: Label i18n in 1.4 final

2009-08-04 Thread Craig McIlwee
Have you tried creating a properties file for the panel, Sidebar.properties? By putting the value in your Index.properties aren't you kind of breaking encapsulation by adding knowledge of the panel's inner workings to the page? -Original Message- From: Robin Sander

Re: Label i18n in 1.4 final

2009-08-04 Thread Sven Meier
Shouldn't that be: sidebar.header.header = Sidebar Header! ?? Sven On Di, 2009-08-04 at 16:53 +0200, Robin Sander wrote: sidebar.header = Sidebar Header! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

wicket version of tapestry jumpstart..

2009-08-04 Thread hari ks
hi, is there a wicket version of tapestry jumpstart. that would be nice. -Hari Sujathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Looking for Web Application Architecture Book

2009-08-04 Thread Dane Laverty
A few months ago I asked for ideas on project management, and you all gave me some great suggestions of tools and books to check out. Now I'd like to hear if anyone has recommendations for a resource that explains how to tie the web application together -- what I would call architecture. I'm

Re: wicket version of tapestry jumpstart..

2009-08-04 Thread Peter Thomas
On Tue, Aug 4, 2009 at 11:11 PM, hari ks hari_...@yahoo.com wrote: hi, is there a wicket version of tapestry jumpstart. that would be nice. Have you looked at the Wicket Phonebook example (search the mailing list) or the Wicket quick-start for a very simple jumpstart app:

Re: Label i18n in 1.4 final

2009-08-04 Thread Robin Sander
Hi Craig, yes you're right, this would work but I wanted to get an understanding of the algorithm and tried the examples mentioned in the wiki page. In addition I dont don't like find-grained property-files and at the moment I'm using one big Application.properties file with the full

Accessing Wicket Application from custom servlet

2009-08-04 Thread Aaron Dixon
I am implementing a servlet external to my Wicket application that needs to access my Wicket Application instance itself... Can anyone recommend a clean way to go about this? - To unsubscribe, e-mail:

Re: Accessing Wicket Application from custom servlet

2009-08-04 Thread Igor Vaynberg
see WicketSessionFilter -igor On Tue, Aug 4, 2009 at 11:49 AM, Aaron Dixonatdi...@gmail.com wrote: I am implementing a servlet external to my Wicket application that needs to access my Wicket Application instance itself... Can anyone recommend a clean way to go about this?

Can i simulate disabled javascript in wickettester?

2009-08-04 Thread Per Newgro
Hi, i would like to write a test for my page. The page uses the the clientinfo to determine if javascript is enabled. If js is disabled a redirect should occur. But how can i simulate disabled javascript with the wickettester? Or is it impossible? Thanks for bring me the light. Per

Re: Label i18n in 1.4 final

2009-08-04 Thread Robin Sander
Yes, you're right!! In case of a simple label there seem to be too many name parts for my understanding. So, I always need a last part for the ResourceModel, right? (like panel-idt.label-id.resource-key) Imagine a form with many textfields each with a SimpleFormComponentLabel and an

Re: Looking for Web Application Architecture Book

2009-08-04 Thread Scott Swank
I like Martin Fowler's Patterns of Enterprise Architecture. I also like Eric Evans' Domain Driven Design. As for your specific questions: dao -- Outside of a reasonably simple crud application I wouldn't have Wicket even aware of daos. I like to have wicket (or other clients) talk to the

Re: Looking for Web Application Architecture Book

2009-08-04 Thread Nick Heudecker
Good suggestions there. I also like the Enterprise Integration Patterns book, but that might not be what you're looking for. -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com

Re: FeedbackIndicator doesn't work inside RefreshingView

2009-08-04 Thread konsul
I call this method: refreshingView.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance()); but FeedbackIndicator still doesn't work. Frankly speaking I do not see any relationship between FormComponentFeedbackIndicator and Model reuse strategy. I thought the matter is in Feedback

Re: Looking for Web Application Architecture Book

2009-08-04 Thread Dane Laverty
Thanks for the well-expressed responses. I'll look into the books. Most of my knowledge about web application programming theory comes from reading lists like this. There are certain terms that pop up over and over again, so eventually I think, That must be important, I guess it's time for me to

WicketByExample.com - Soft launch and we need editors

2009-08-04 Thread Andrew Lombardi
I don't know about you guys, but I learn best by examples, a lot of them. So the team at Mystic decided to put together a really simple, easy to navigate, no nonsense examples site ... and start filling it with relevant Wicket code examples for doing common things like: * How to

Re: Accessing Wicket Application from custom servlet

2009-08-04 Thread Aaron Dixon
That seems to provide a solutino for WicketSession access, but what about access to the Application instance? On Tue, Aug 4, 2009 at 1:51 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: see WicketSessionFilter -igor On Tue, Aug 4, 2009 at 11:49 AM, Aaron Dixonatdi...@gmail.com wrote: I am

Re: FeedbackIndicator doesn't work inside RefreshingView

2009-08-04 Thread Igor Vaynberg
On Tue, Aug 4, 2009 at 12:30 PM, konsula.komra...@gmail.com wrote: I call this method: refreshingView.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance()); did you also read the javadoc and implement hashcode and equals in the models you are using to feed items of the refreshing

RE: Accessing Wicket Application from custom servlet

2009-08-04 Thread Ames, Tim
Just a guess: Application wicketApplication = Session.get().getApplication(); Cast like this if you need to: MyWicketApplication wicketApplication = (MyWicketApplication) Session.get().getApplication(); -Original Message- From: Aaron Dixon [mailto:atdi...@gmail.com] Sent: Tuesday,

Re: Accessing Wicket Application from custom servlet

2009-08-04 Thread Igor Vaynberg
Session.get().getApplication(), also Application.get() will work. it usually helps to listen. -igor On Tue, Aug 4, 2009 at 1:02 PM, Aaron Dixonatdi...@gmail.com wrote: That seems to provide a solutino for WicketSession access, but what about access to the Application instance? On Tue, Aug

Re: Looking for Web Application Architecture Book

2009-08-04 Thread John Armstrong
What we do is take all of our /DAO/Model 'stuff' and package it up into its own jar file that is then included in any projects that require it. This allows us to A) Version our data systems without impacting the apps using them (mostly) B) Gives us a unified data layer for all of our applications

Re: strange icon appears in webpage

2009-08-04 Thread Erik Post
crlf (CR/LF) means Carriage Return/Line Feed. Windows and Unix treat newlines differently Windows uses a CR followed by a LF and Unix only uses a LF as a newline character. The dos2unix programs strips the superfluous CR's, among other things. On Tue, Aug 4, 2009 at 5:30 PM,

Alternate rows with different color

2009-08-04 Thread Arun Gupta
Trying to provide different color to alternate rows by following the recommendation at: http://devinvenable.blogspot.com/2007/10/wicket-and-html-style-attributes.html The source code is available at:

Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
Not sure if it will help you, but did you also try item.add(new AttributeModifier(class, *true, *new PropertyModel(this, runlog.getId() % 2 == 0 ? list-line-odd : list-line-event))); ? That would add class to item if it doesn't have it in markup. On Wed, Aug 5, 2009 at 12:36 AM, Arun Gupta

Re: Alternate rows with different color

2009-08-04 Thread Igor Vaynberg
see org.apache.wicket.markup.repeater.OddEvenItem for a cleaner, simpler way to do this -igor On Tue, Aug 4, 2009 at 4:36 PM, Arun Guptaarun.gu...@gmail.com wrote: Trying to provide different color to alternate rows by following the recommendation at:

Re: Alternate rows with different color

2009-08-04 Thread arungupta
class is already in the markup and did not made any difference. Still getting the same error :( -Arun Cristi Manole wrote: Not sure if it will help you, but did you also try item.add(new AttributeModifier(class, *true, *new PropertyModel(this, runlog.getId() % 2 == 0 ? list-line-odd :

Re: Alternate rows with different color

2009-08-04 Thread arungupta
I've been using 1.3.6 but let me try 1.4 rc build and see where it takes me. Is there an example that shows how it can be used in the above context ? -Arun igor.vaynberg wrote: see org.apache.wicket.markup.repeater.OddEvenItem for a cleaner, simpler way to do this -igor On Tue,

Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
I think your error is because you're making class either the result of this.list-line-odd or this.list-line-event and this doesn not implement a getter for those. maybe item.add(new AttributeModifier(class, runlog.getId() % 2 == 0 ? list-line-odd : list-line-event)); ? or change/add parantheses

Re: Alternate rows with different color

2009-08-04 Thread arungupta
Ah, that kinda explains it. But all AttributeModifier ctors require an IModel. What should I pass for that now ? -Arun Cristi Manole wrote: I think your error is because you're making class either the result of this.list-line-odd or this.list-line-event and this doesn not implement a

Re: Alternate rows with different color

2009-08-04 Thread Igor Vaynberg
this was meant as an example for you and can work under 1.3.6 as well as 1.4. look at the source to see what it does, you would use it like so: new refreshingview() { protected item newItem(..) { return new oddevenitem(...); }} btw 1.4.0 is out. -igor On Tue, Aug 4, 2009 at 4:56 PM,

AbstractAjaxTimerBehavior on Modal Window causes PageExpiredException

2009-08-04 Thread Warren Bell
I am getting a PageExpiredException when I close a modal window with an AbstractAjaxTimerBehavior on it. It does not seem to cause a problem, but I would rather it not happen. I use the AbstractAjaxTimerBehavior to auto close a modal window after a certain period of time if it is not closed

Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
you can always just wrap it... item.add(new AttributeModifier(class, runlog.getId() % 2 == 0 ? new Model(list-line-odd) : new Model(list-line-event))); note that you'll get different colors only if you have defined list-line-odd in your css, added that to page and, of course, if runlog.geId()

Re: Alternate rows with different color

2009-08-04 Thread arungupta
OK, trying 1.4 and the sample below, thanks! BTW, the application working fine with 1.3.6 gives the following error with 1.4: ERROR - DiskPageStore - Couldn't load DiskPageStore index from file

Re: Alternate rows with different color

2009-08-04 Thread arungupta
Sweet, that worked :) Now runlog.getId() does not return alternating odd/even numbers so will need to figure out what might ;) Is there anything in the model that might provide that information ? -Arun Cristi Manole wrote: you can always just wrap it... item.add(new

Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
How about public class RunlogPage extends BasePage { private int counter; (...) item.add(new AttributeModifier(class, counter++ % 2 == 0 ? new Model(list-line-odd) : new Model(list-line-event))); ? On Wed, Aug 5, 2009 at 1:33 AM, arungupta arun.gu...@gmail.com wrote: Sweet, that worked :)

Re: Alternate rows with different color

2009-08-04 Thread arungupta
I thought about that as well and so will probably use it for now :) Thanks a lot for the great help as it got me moving fast. I may have more questions later and then will come back. Thanks, -Arun Cristi Manole wrote: How about public class RunlogPage extends BasePage { private int

Re: Alternate rows with different color

2009-08-04 Thread Igor Vaynberg
you guys are more then welcome to head down this badly broken road, or you can look at what i said... -igor On Tue, Aug 4, 2009 at 5:37 PM, Cristi Manolecristiman...@gmail.com wrote: How about public class RunlogPage extends BasePage { private int counter; (...) item.add(new

Re: Alternate rows with different color

2009-08-04 Thread Cristi Manole
your solution is definitely better, Igor, but he seems very new to wicket and it was faster to get that working than to explain he needs to change the repeater. at least that's what i thought. On Wed, Aug 5, 2009 at 1:43 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you guys are more then

Firefox, be afraid be very afraid!!!

2009-08-04 Thread Steve Tarlton
I just spent the better half of a day WASTED because I use Firefox for testing my Wicket development. For the life of me, I couldn't figure out why I couldn't get a simple data picker to center. I wouldn't call myself an expert at html so I doubted myself. Turns out that Firefox decided that there

Re: WicketByExample.com - Soft launch and we need editors

2009-08-04 Thread Jeremy Thomerson
Nice site. I look forward to looking at it some more. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Aug 4, 2009 at 2:51 PM, Andrew Lombardiand...@mysticcoders.com wrote: I don't know about you guys, but I learn best by examples, a lot of them.  So the team at Mystic decided to

Re: Firefox, be afraid be very afraid!!!

2009-08-04 Thread Jeremy Thomerson
Strange - I use FF almost exclusively and have never had this problem. Did you use something like HttpFox or TamperData to look at the headers and see if the expiry headers were coming back correctly? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Aug 4, 2009 at 9:12 PM, Steve

Re: Firefox, be afraid be very afraid!!!

2009-08-04 Thread Ben Tilford
It's not Wicket or Firefox its the caching settings (probably on the server). If the cached resources aren't expired the browser is supposed to use what it has cached. Best to set the far future expires to something really short or 0 in development. On Tue, Aug 4, 2009 at 10:17 PM, Jeremy

Re: Fancy URL

2009-08-04 Thread uud ashr
I've looked to HybridUrlCodingStrategy this is not what I expected. Using HybridUrlCodingStrategy I can do /blog/param1/value1/param2/value2 which is: 1. I can use it to bind mount(new HybridUrlCodingStrategy(blog, Blog.class)) and call url /blog and without no parameter defined, that is OK 2.

  1   2   >