Re: Wicket Focus Policy

2009-02-24 Thread Scott Swank
The chief problem in constructing pages with a consistent tabindex is that you must: 1. Know from which parent component you are basing your numbering. 2. Handle ajax insertions of of components within your current tabindex strategy. Our current code has edge conditions where it fails, and is on

Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler
Hi- I'm currently implementing a way to load page templates provided from a CMS that exports the statically to the file system. The loading part itself already works fine, now I'm looking for a good way to refresh the markup cache, if the template files have changed. Before I roll my own

Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Hi, It's been a long time since I've written in this mailing list. Here's my question: I was looking for a way to set the mode to DEVELOPMENT in the Jetty starter while setting DEPLOYMENT in the web.xml. I encountered the following thread:

Re: Application.CONFIGURATION

2009-02-24 Thread James Carman
If you're using Spring, you can set up your application instance in your spring context and then use a PropertyPlaceholderConfigurer to substitute in what you want. Wicketopia's archetype uses this method (along with Maven profiles to choose which property files to include). On Tue, Feb 24,

Re: What IDE best fits with Wicket?

2009-02-24 Thread Marcelo Morales
I am a NetBeans user, and I have been for a long time. The maven integration in NetBeans is excelent. Works with profiles, downloads sources and javadoc, quickstart is right there when creating a new project, code-completes the pom.xml including dependency names and keywords (like compile or

Re: How exactly does RestartResponseAtInterceptPageException work?

2009-02-24 Thread Martijn Dashorst
The problem with returning to the original request is that it can be anything, including a post. While this is an interesting idea, I think there are hairy issues to be resolved before this can become in a workable state. Currently Wicket doesn't support it. Hairy stuff: - retaining post data

Re: Application.CONFIGURATION

2009-02-24 Thread Marcelo Morales
I am using tomcat. I just append -Dwicket.configuration=development on the start script. Perhaps you can append it to the jetty start as well. On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote: Hi, It's been a long time since I've written in this mailing list. Here's my

Re: subdomains and setting up WebSession

2009-02-24 Thread Bert
Sorry for stepping in here, but this interest me too ;) do you map these different domains to different databases, but using only one application deployment? if so, i would like to know how you did this... thanks - To

wicket-spring classpath issue

2009-02-24 Thread Alex Parvulescu
Hello, I have a problem with the wicket - spring integration in wicket 1.4 rc2 , i think its similar to https://issues.apache.org/jira/browse/WICKET-1848 The use case is like this : I have 2 simple applications running in a jetty server. To keep things simple , i added the spring and wicket

Adding multiple ajax behaviour on same event

2009-02-24 Thread rag...@directi
I am using an AjaxLink which has a javascript for onclick event now i want to add AjaxFormValidatingBehavior to this link on the same event onclick ...i tried adding the same...but the link does not work properly...i think the actual javascript is replacedcan any one please help me how to

Modal Window inside a wizardstep

2009-02-24 Thread jensiator
Hi. I got a modal window with a form(a search function). The modal window is opened from a wizard step that uses non ajax submitbuttons. When I press the enter key inside my modal search form, the underlying wizard step submits. Happens even when the AjaxButton is in focus in the modal window.

Re: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Thanks Marcelo and James. I still prefer the solution we have come to: In the web.xml put deployment and in the Jetty plugin (StartWebServer) put the development. My question was why Application.java doesn't have 'wicket.configuration' as a static field. Wouldn't it be nice? Eyal Golan

Re: How exactly does RestartResponseAtInterceptPageException work?

2009-02-24 Thread Thomas Mäder
I've been thinking about this in the past. Our use case was a post while not logged in. I guess retaining post data is not really a problem. Since the Restart...Exception is under user control, the application would be responsible for not sending megs and megs. Since there is exactly one request

Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler
OK, after some source code research it seems to boil down to the question: Can I safely use ModificationWatcher in a live environment? And is there a way to make it watch only certain resources, so that it doesn't have to check all the resources that cannot change anyway? Thanks, -markus

Re: wicket-spring classpath issue

2009-02-24 Thread John Krasnay
IMHO sharing JARs across J2EE apps is not worth the trouble. - it messes up some JARs (commons-logging is a classic example) - it forces you to keep your dependent JAR versions in sync across applications. This is particularly important in an enterprise environment where changing a dependent

Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Igor Vaynberg
see IMarkupCacheKeyProvider, you can let pages that load markup from the filesystem implement this. -igor On Tue, Feb 24, 2009 at 3:57 AM, Markus Strickler mar...@braindump.ms wrote: Hi- I'm currently implementing a way to load page templates provided from a CMS that exports the statically

Re: What IDE best fits with Wicket?

2009-02-24 Thread Brill Pappin
I should add something about the Eclipse maven plugins... don't go for the official eclipse Q4 plugin... use the Maven Integration 4 Eclipse plugin (and actually the development version if your jiggy with it, it works and gets updated/fixed way more often). If your on Netbeans, I think

Re: What IDE best fits with Wicket?

2009-02-24 Thread Brill Pappin
Oh nice... I was just thinking that it would be nice to have a plugin that would rename the html files when i renamed the class... I hadn't tried Wicket Bench yet... Guess what I'm doing today? - Brill On 23-Feb-09, at 5:40 PM, Vit Rozkovec wrote: But in the eclipse version 3.4 when

Re: Application.CONFIGURATION

2009-02-24 Thread Brill Pappin
IMO I like it the way it is because it makes it very simple to change it at runtime... in your case you simply run jety, adding a param tot eh comamnd line: eg. java -Dwicket.configuration=deployment com.jetty.Start I can do that easily at any time and reconfigure things on various

Re: Application.CONFIGURATION

2009-02-24 Thread Brill Pappin
Already answered the static field thing... but just curious why you think its better to have modify your source tree just to switch from dev to prod? Wouldn't your dev/qa/deploy cycle be simpler if you didn't have to modify the source? - Brill pappin On 24-Feb-09, at 10:49 AM, Eyal Golan

Re: Application.CONFIGURATION

2009-02-24 Thread Igor Vaynberg
On Tue, Feb 24, 2009 at 7:49 AM, Eyal Golan egola...@gmail.com wrote: My question was why Application.java doesn't have 'wicket.configuration' as a static field. Wouldn't it be nice? no, it wouldnt be nice. why would you have a name of a *system property* defined as a public field? the usecase

Re: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Brill, What I did is exactly so we don't need to change the source for dev / prod environments. When we develop we use the jetty plugin so we set hard-coded the environment to DEVELOPMENT. The production is a WAR (actually an EAR) file. So the web.xml has configuration set to deployment. That way

Re: What IDE best fits with Wicket?

2009-02-24 Thread Martijn Dashorst
m2eclipse is absolutely worthless for anything beyond a quickstart. It is constantly reparsing poms, grinding eclipse to a halt. It failed to generate the right project dependencies for our multimodule project that consists of 2 multimodule child projects. It failed miserably to uninstall, needing

Re: What IDE best fits with Wicket?

2009-02-24 Thread James Carman
+1! We had an awful lot of trouble getting it to work for us. On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: m2eclipse is absolutely worthless for anything beyond a quickstart. It is constantly reparsing poms, grinding eclipse to a halt. It failed to

Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler
Hi- thanks for your reply. I'm not quite sure how IMarkupCacheKeyProvider fits in here. I'm actually looking for a way to invalidate the cache, in case the markup has changed. Thanks, -markus Zitat von Igor Vaynberg igor.vaynb...@gmail.com: see IMarkupCacheKeyProvider, you can let

Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Igor Vaynberg
well you can create a markup cache key that is based on the lastmodified date of the file that contains the markup. -igor On Tue, Feb 24, 2009 at 9:53 AM, Markus Strickler mar...@braindump.ms wrote: Hi- thanks for your reply. I'm not quite sure how IMarkupCacheKeyProvider fits in here. I'm

Re: column width ajustable table

2009-02-24 Thread PY
The inmethod Datagrid has this functionality. ( adjustable column width) miro wrote: Are there any adjustable tables in the sense adjust width of the column, provided by wicket, an example is Sonatype Nexus Repository manager -- View this message in context:

Re: What IDE best fits with Wicket?

2009-02-24 Thread Martin Makundi
The codehaus eclipse plugin has worked quite ok for us, but we didn't dare to upgrade from Eclipse 3.1 ;) It didn't seem to work in others. ** Martin 2009/2/24 James Carman jcar...@carmanconsulting.com: +1! We had an awful lot of trouble getting it to work for us. On Tue, Feb 24, 2009 at

Re: What IDE best fits with Wicket?

2009-02-24 Thread Marcelo Morales
On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin br...@pappin.ca wrote: If your on Netbeans, I think Maven will generate Netbeans project files for you as well (it will do so for eclipse), so you could actually flip back and forth if you wanted. Netbeans does NOT need any other project files. It

Re: What IDE best fits with Wicket?

2009-02-24 Thread Maarten Bosteels
IDEA users, don't be shy ! ;-) Probably nobody dared to mention it because it's not free. But guess what. It is free for Open Source development (and a personal license costs only 225 euro) I think IDEA is really fantastic. It has great maven support out-of-the-box, it will also download sources

Re: What IDE best fits with Wicket?

2009-02-24 Thread PY
+1 for IDEA. The wicket plugin is really simple but allow to match up markup id from HTML to Java code. Netbeans is cool too. Maarten Bosteels wrote: IDEA users, don't be shy ! ;-) Probably nobody dared to mention it because it's not free. But guess what. It is free for Open Source

Re: What IDE best fits with Wicket?

2009-02-24 Thread Nick Heudecker
I didn't think IDEA users would fall for such an obvious trap. On Tue, Feb 24, 2009 at 10:21 AM, PY postmas...@py-code.com wrote: +1 for IDEA. The wicket plugin is really simple but allow to match up markup id from HTML to Java code. Netbeans is cool too. Maarten Bosteels wrote:

Re: Application.CONFIGURATION

2009-02-24 Thread Marcelo Morales
On Tue, Feb 24, 2009 at 11:49 AM, Eyal Golan egola...@gmail.com wrote: Thanks Marcelo and James. I still prefer the solution we have come to: In the web.xml put deployment and in the Jetty plugin (StartWebServer) put the development. Thats a best practice AFAIK My question was why

Dynamically changing CSS style attribute

2009-02-24 Thread Seven Corners
I have a control with a needle that moves. The needle's value is continually changing, so on a timer I ask the server its value and set its position with the left CSS attribute, as in: .Needle { z-index: 1; width: 2px; ... left: 20%; } I do have a bean that returns a percentage

Re: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
What do you mean? there is! public static final String CONFIGURATION = configuration; (Application.java line 119 on 1.3.5) Exactly - I was looking for 'wicket.configuration' rather than just 'configuration. BTW, there is a getConfigurationType() method in WebApplication, which should not

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Martin Makundi
You could use javaScript http://docstore.mik.ua/orelly/webprog/jscript/ch18_03.htm ** Martin 2009/2/24 Seven Corners shel...@blackwave.tv: I have a control with a needle that moves. The needle's value is continually changing, so on a timer I ask the server its value and set its position with

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Martijn Reuvers
Hello, As Martin says use javascript, if you really want it easy use jQuery, you can do something like $('#myElem').css( ... ); and do the calculation in javascript. Check the docs on the exact syntax (docs.jquery.com), Martijn On Tue, Feb 24, 2009 at 8:00 PM, Martin Makundi

Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler
Hm, wouldn't this leave the old versions of the markup in the cache? And also require a check of the last modified date every time a page gets created? I was rather thinking of a timer based solution that checks the last modified date periodically and removes it from the cache if the file

Re: What IDE best fits with Wicket?

2009-02-24 Thread Thomas Mäder
The nice thing about wicket is that you don't need tools. It's just Java and just HTML, so anything will do. discover the simplicity would be the slogan ;-) (Cue video of good looking people enjoying the simple pleasures of life) Thomas On Mon, Feb 23, 2009 at 8:19 PM, Eduardo Nunes

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Sven Meier
Why not keep the fixed settings in a style class and just update the style attribute with the current value (utilizing an AttributeModifier)? .Needle { z-index: 1; width: 2px; ... } span wicket:id=needle class=Needle style=left: 20%;/ Seven Corners schrieb: I have a control with a needle

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Thomas Mäder
If I have understood Mr. Heptagon right the needle position depends on server side state. What I would do is look at the source of AttributeModifier and do something similar, but just take the existing style attribute and replace the left value (using an regex or such). If something usable

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Seven Corners
Ooh, that's a good idea, although I just got the JavaScript working to do exactly the same thing with an appendJavascript() call. svenmeier wrote: Why not keep the fixed settings in a style class and just update the style attribute with the current value (utilizing an AttributeModifier)?

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Thomas Mäder
Damn! I'm alway surprised about the turnaround times on this mailing list! One nice thing about Wicket is that there are few privileged parties. Usuallly you have a default implementation for some interface, but the default implementation doesn't enjoy any special privileges. Eat your own dogfood!

Re: Modal Window inside a wizardstep

2009-02-24 Thread Thomas Mäder
Is this browser dependent? Thomas On Tue, Feb 24, 2009 at 4:23 PM, jensiator jens.alen...@megasol.se wrote: Hi. I got a modal window with a form(a search function). The modal window is opened from a wizard step that uses non ajax submitbuttons. When I press the enter key inside my modal

Hold a reference to a Spring bean in Wicket components

2009-02-24 Thread Valentine2008
I am confused on this topic. 1. In Wicket In Action, this is a statement in 13.2.3 Using proxies instead of direct references: Be careful never to hold a reference to a Spring bean in your components. 2. However, in 13.2.5 Wicket's Spring bean annotations, a reference to a Spring bean in a

Re: subdomains and setting up WebSession

2009-02-24 Thread Nino Martinez
In my case no, since the whole idea are to share statistics. Only diff between the 2 are some forum rights and the small title... If you want the same application to run with different databases I suggest you do one of these: * Custom request cycle (do something with your injection

Re: Hold a reference to a Spring bean in Wicket components

2009-02-24 Thread Jeremy Thomerson
This should help: Searching: http://www.google.com/search?q=wicket+springbean Leads you to this as the first result: http://cwiki.apache.org/WICKET/spring.html And this quote: Using annotation-based approach, you should not worry about serialization/deserialization of the injected dependencies

Re: column width ajustable table

2009-02-24 Thread miro
I searched google inmethod Datagrid that did not help me is there any example with demo and code like other wicket examples if so please provide the link PY wrote: The inmethod Datagrid has this functionality. ( adjustable column width) miro wrote: Are there any adjustable tables

Re: column width ajustable table

2009-02-24 Thread Maarten Bosteels
http://www.nabble.com/Re%3A-inmethod---grid-website--p20093086.html On Tue, Feb 24, 2009 at 10:15 PM, miro miroconn...@yahoo.com wrote: I searched google inmethod Datagrid that did not help me is there any example with demo and code like other wicket examples if so please provide the link

[OT]User group in NYC/Long Island?

2009-02-24 Thread nino martinez wael
Hi Guys Im going to a course next week in us, and were wondering is there are any users around NYC preferably Long Island area? I might have time in the evening to goto a WUG (wicket user group).. So? I can talk about javascript integration etc with wicket, I guess that my specialty.. If you

Re: Hold a reference to a Spring bean in Wicket components

2009-02-24 Thread Michael O'Cleirigh
Hi Valentine, If you for example have spring inject a dependency into your WebApplication instance and then pass this into a page like: private SpringBean serviceReference; public MyPage () { SpringBean bean = ((MyApplication)Application.get()).getNonProxiedSpringBean();

Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Matthew Hanlon
I've always handled the typing problem with DropDownChoice and my list models by just ignoring it and not applying type parameters to the DropDownChoice. This is because if I use the same IModelList? extends Foo for a ListView, then I get an error in the ListView's constructor. Is there a good

external image inside link

2009-02-24 Thread novotny
Hi all, Apologies for such a simple question but I couldn't find anything-- the closet was http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html but it just didn't work for me. Here's the html I want: http://www.gohere.com images/logo.gif I tried to do something like

external image inside link

2009-02-24 Thread novotny
Hi all, Apologies for such a simple question but I couldn't find anything-- the closet was http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html but it just didn't work for me. Here's the html I want: lt;a href=http://www.gohere.comgt;lt;img src=images/logo.gifgt;lt;/agt; I tried

determine which form was submitted

2009-02-24 Thread Alexander Lohse
Hi, I have two forms on one page and need to toggle visibility of a container depending on which form was submitted. Is there a way to I find out which form was posted? Thank you in advance or any help, Alex __ A designer knows

Re: external image inside link

2009-02-24 Thread Igor Vaynberg
the bottom of that page shows you how to embed an external image into an external link. -igor On Tue, Feb 24, 2009 at 3:24 PM, novotny novo...@gridsphere.org wrote: Hi all, Apologies for such a  simple question but I couldn't find anything-- the closet was

Re: external image inside link

2009-02-24 Thread novotny
That's exactly what I tried and I get WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL href=# target=_newgt;' Possible attempt to embed component(s) 'lt;img wicket:id=bank alt= class=pic/gt;' in the body of this component which discards its body here's my java add(new

Re: external image inside link

2009-02-24 Thread Jeremy Thomerson
I think your problem is that in your long add() call, you are actually adding the image to your outer container rather than the link. The code is formatted poorly in the email. Try this: ExternalLink link = new ExternalLink(..) link.add(new StaticImage(..)) add(link); On Tue, Feb 24,

Re: external image inside link

2009-02-24 Thread novotny
Thanks, however I still get the same error: WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL href=# target=_newgt;' Possible attempt to embed component(s) 'lt;img wicket:id=bank alt= class=pic/gt;' in the body of this component which discards its body and my code looks like:

Re: external image inside link

2009-02-24 Thread novotny
Hi I am using import org.apache.wicket.markup.html.link.ExternalLink; in my import but I do have a custom StaticImage class: public class StaticImage extends WebComponent { private String url; private String alt; public StaticImage(String id, String url, String alt) {

Re: external image inside link

2009-02-24 Thread Jeremy Thomerson
Sorry, missed that - but found the issue - stop passing your link the label - the link is trying to replace it's body with your label rather than the markup you wrote. Do this: ExternalLink link = new ExternalLink(bankURL, lender.getWebsite()); StaticImage image = new StaticImage(bank,

Re: What IDE best fits with Wicket?

2009-02-24 Thread Eduardo Nunes
I deal directly with HTML coders and I want to bring to them an easy of use project build / run. I don't want to be called every time a new HTML join to the project team because he doesn't have the setup of the project. I think that maven help me a lot with it but I'm a little bit afraid of the

Re: What IDE best fits with Wicket?

2009-02-24 Thread Marcelo Morales
Even NetBeans is not that straitforward, but it is less problematic than eclipse IMHO. There are ways to acomplish what you ask. NetBeans will copy content under 'webapp/WEB-INF' to 'target' on changes, but not under 'java'. Bad NetBeans Bad. I will give it a shot in a couple of days and let you

Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, Matthew Hanlon wrote: I've always handled the typing problem with DropDownChoice and my list models by just ignoring it and not applying type parameters to the DropDownChoice. This is because if I use the same IModelList? extends Foo for a ListView, then I get an error in

Re: external image inside link

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, novotny wrote: I tried to do something like ExternalLink(link, http://www.gohere.com;, \images/logos/ ); but it escaped the img I tried to pass in as a label. setEscapeModelStrings(false) ? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL:

How to Show Error Of Page In Deployment MOde

2009-02-24 Thread carlo c
hi everyone, I know that this might sound a little strange. but i need to be able to show the error of the system even during deployment mode. I have to show them the stacktrace. The Thing that's preventing us from using development mode is that the application always gets an outofmemoryerror

RE: How to Show Error Of Page In Deployment MOde

2009-02-24 Thread Heikki Uotinen
Maybe this helps http://www.nabble.com/How-to-catch-the-error-in-custome-error-page--td9645296.html -Heikki -Original Message- From: carlo c [mailto:carlo.camer...@gmail.com] Sent: 25. helmikuuta 2009 7:16 To: users@wicket.apache.org Subject: How to Show Error Of Page In Deployment

Re: How to Show Error Of Page In Deployment MOde

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, carlo c wrote: I know that this might sound a little strange. but i need to be able to show the error of the system even during deployment mode. I have to show them the stacktrace. You should see the setting that does this and enable it while staying in deployment mode as

Re: Dojo Tooltip JS Error (And Mootips)

2009-02-24 Thread Nino Martinez
Bad it seem that we have a lot of clashes.. So the libs needs to be cleaned.. I know Jeremy has done an effort in wicket core by supplying a common js library.. TH Lim wrote: Hi Nino, I took your advice and tried mootips and prototips. Wicket's Prototips does not work so well with IE8. I

Re: Datatable Internationalization

2009-02-24 Thread Loic Descotte
Nobody knows how to do that? In the source code i've found this comment : The message can be overridden using the codeNavigatorLabel/code property key, the default message is used is of the format codeShowing ${from} to ${to} of ${of}/code So i guess it should work, i must have missed