A packaged resource that has a variable image based on component value

2009-07-09 Thread Steve Tarlton
I know this is probably very simple to do, but I haven't been able to get my head wrapped around it. I want to create a component within the column of a table that has 6 different images associated to it. Each image is tied to a number as the component is actually an integer representing a state. I

model detached many times

2009-07-09 Thread Ian MacLarty
Hi, I noticed that my IDetachable model is being detached many times (hundreds) for each request. Is that something to worry about, or is it just because the detach method is called for each component that points to this model? Ian. --

Re: Is IRequestTargetUrlCodingStrategy needed for mapping bookmarkable URLs?

2009-07-09 Thread Jonathan and Carrie Olson
Thank you, I'll try that type of implementation out! -Jonathan Olson On Thu, Jul 9, 2009 at 5:42 AM, Alex Objelean wrote: > > I did something similar. All you have to do is to create your own > implementation of IRequestCodingStrategy. > You can find the code at this link: http://pastebin.com/m

Test Methods for Querying Component Tree

2009-07-09 Thread Keith Bennett
Hello, all. I am relatively new to Wicket. Sometimes when I write tests I get the Wicket ID wrong, and try to figure out what the right one is. To address this, I wrote some code that gets the component tree, and either returns a List, or a string with the components' id's and classes. It can be

Re: artwork problem while changing background color of liquid canvas

2009-07-09 Thread nino martinez wael
Oh and I'd really like some screenshots of how you use artwork if you can provide them, I guess we should add them to the wiki.. :) 2009/7/9 nino martinez wael > Yes its concatination, but may be sequenced if its chained.. I thought I > tried stefans example.. But apparently not. > > Im glad its

Re: artwork problem while changing background color of liquid canvas

2009-07-09 Thread nino martinez wael
Yes its concatination, but may be sequenced if its chained.. I thought I tried stefans example.. But apparently not. Im glad its working, I'll try adding it to the examples when I get time.. 2009/7/9 vineet semwal > thanks a lot ! > I have tried your example.it's working .. > I think the diffe

Voting in Slideshow

2009-07-09 Thread Johannes Schneider
Hi, at the moment I implement some sort of slideshow. I am using a IndexedParamUrlCodingStrategy to get nice URLs. Now I want to add a voting form on each page. But of course commiting the form results in a url containing many internal Wicket stuff. How can that be avoided? I tried the following

Fwd: artwork problem while changing background color of liquid canvas

2009-07-09 Thread vineet semwal
thanks a lot ! I have tried your example.it's working .. I think the difference is i was adding *fill* to liquidcanvasbehaviour constructor while you have used setChainedGraphics(fill). I also saw the source of liquidcanvasbehavior and noted that in the end it's string concatenation of all the pr

Re: Wicket 1.4-rc6 Swarm

2009-07-09 Thread Olger Warnier
Hi Igor / List, Thanks for the trust. The wicket-security project trunk found at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security is now compatible with wicket 1.4 RC6. If you have issues or comments, please let me know. I am not aware of your release rules

Re: recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
My issue appears to be not new... https://issues.apache.org/jira/browse/WICKET-1889 https://issues.apache.org/jira/browse/WICKET-1700 But the fix is for v1.4.x not v1.3.6 -- View this message in context: http://www.nabble.com/recommended-static-image-resource-strategy-tp24407111p24415044.html

Re: recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
My issue appears to be not new... https://issues.apache.org/jira/browse/WICKET-1889 https://issues.apache.org/jira/browse/WICKET-1700 But this only applies to v1.4. -- View this message in context: http://www.nabble.com/recommended-static-image-resource-strategy-tp24407111p24415043.html Sent f

Re: Wicket 1.4-rc6 Swarm

2009-07-09 Thread Igor Vaynberg
done -igor On Thu, Jul 9, 2009 at 10:02 AM, Olger Warnier wrote: > Hi Igor, > > > On 9 jul 2009, at 17:13, Igor Vaynberg wrote: > >> all you need is an account on sf.net AND for someone to add you to the >> project. >> > > I digged up my sourceforge account, its : "terranvs" > If someone is willi

Re: Wicket 1.4-rc6 Swarm

2009-07-09 Thread Olger Warnier
Hi Igor, On 9 jul 2009, at 17:13, Igor Vaynberg wrote: all you need is an account on sf.net AND for someone to add you to the project. I digged up my sourceforge account, its : "terranvs" If someone is willing to add my account to the project, I'll commit the whole so people can test it

Re: recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
I have added a quick start to exemplifies the issue at hand. Please see https://issues.apache.org/jira/browse/WICKET-2361 for those that are interested. Thanks -- View this message in context: http://www.nabble.com/recommended-static-image-resource-strategy-tp24407111p24413328.html Sent from

Re: DateField and enabling some days

2009-07-09 Thread Fernando Wermus
Thanks On Thu, Jul 9, 2009 at 6:44 AM, John Krasnay wrote: > Sorry, I don't know much about Date[Time]Field. Just trying to save you > a few LoC. > > jk > > On Wed, Jul 08, 2009 at 01:35:13PM -0700, Fernando Wermus wrote: > > thanks for the tip. Is there some way to solve what I commented? > > >

Re: wicket vs vaadin clarifications

2009-07-09 Thread Vladimir K
Joonas Lehtinen wrote: > > > I only included frameworks that I get the most questions about. We > definitely should include ZK also, but validating some facts would need > some quick research. If you are familiar with ZK, could you contribute ZK > column to the comparison table? > No, I'm no

Re: wicket vs vaadin clarifications

2009-07-09 Thread Joonas Lehtinen
Vladimir K wrote: > > I'm wondering why your comparison table does not contain ZK? > I only included frameworks that I get the most questions about. We definitely should include ZK also, but validating some facts would need some quick research. If you are familiar with ZK, could you contribut

Re: wicket vs vaadin clarifications

2009-07-09 Thread francisco treacy
Well, still unchanged - I guess we should cut the noise and leave them put whatever they want in their "comparison chart". Francisco 2009/7/9 Vladimir K : > > Joonas, > > I'm wondering why your comparison table does not contain ZK? > > I find Vaadin demos not very responsive. They react very ver

Re: recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
Thank Igor. Bug report has been created (WICKET-2361) Note: I was able to "work around" this issue by using QueryStringUrlCodingStrategy instead of the BookmarkablePageRequestTargetUrlCodingStrategy via the WebApplication.mountBookmarkablePage() method. Fro

Re: Session timeout too short?

2009-07-09 Thread James Carman
I've seen this behavior too. My customers complain about their sessions timing out too quickly. I raised the setting, but we're still seeing problems. I'll try to add a listener, too. On Thu, Jul 9, 2009 at 11:31 AM, Igor Vaynberg wrote: > sounds like tomcat is expiring the sessions early. i wo

Re: Session timeout too short?

2009-07-09 Thread Igor Vaynberg
sounds like tomcat is expiring the sessions early. i would add a sessionlistener and log when the sessions are being expired. -igor On Thu, Jul 9, 2009 at 7:38 AM, Zhubin Salehi wrote: > Hi, > > > I’m using Wicket 1.4-RC6, Tomcat 6.0.20 and JDK 1.5.0_19. The > “session-timeout” timeout value in t

Re: Wicket 1.4-rc6 Swarm

2009-07-09 Thread Igor Vaynberg
all you need is an account on sf.net AND for someone to add you to the project. -igor On Thu, Jul 9, 2009 at 8:06 AM, Martin Grigorov wrote: > All you need is an account for SourceForge. > Then you could commit in wicketstuff's SVN > > El jue, 09-07-2009 a las 13:38 +0200, Olger Warnier escribió:

Re: recommended static image/resource strategy

2009-07-09 Thread Igor Vaynberg
it seems like a bug in ServletWebRequest#getRelativePathPrefixToWicketHandler(), you might want to subclass that, check for those two params in the url, and add an additional ../.. as a hack for right now. also open a jira issue for us to fix it. -igor On Wed, Jul 8, 2009 at 2:46 PM, Doug Leeper

Re: Wicket 1.4-rc6 Swarm

2009-07-09 Thread Martin Grigorov
All you need is an account for SourceForge. Then you could commit in wicketstuff's SVN El jue, 09-07-2009 a las 13:38 +0200, Olger Warnier escribió: > Hi Luca, > > Maybe it is possible to commit the whole into an existing / new branch > of the wicket-security project. > Is there someone who cou

Re: setting value in TextField with ajax fails after field had error

2009-07-09 Thread Igor Vaynberg
acTest.clearInput(); formBean.setAcTest("hello"); target.addComponent(acTest); -igor On Tue, Jul 7, 2009 at 10:53 PM, Marieke Vandamme wrote: > Hello, > > Consider my code underneath and following actions: > - Page has a form with a REQUIRED textfield and a button that updates that > textfield th

Re: Wicket's @SpringBean and the "autowire-candidate" annotation

2009-07-09 Thread Igor Vaynberg
add an rfe into our jira. -igor On Thu, Jul 9, 2009 at 7:03 AM, Philippe Laflamme wrote: > > Using > ConfigurableListableBeanFactory.getBeanDefinition(beanName).isAutowireCandidate(); > > Not sure if there's a "proper" way to obtain the > ConfigurableListableBeanFactory from the ApplicationContex

Session timeout too short?

2009-07-09 Thread Zhubin Salehi
Hi, I’m using Wicket 1.4-RC6, Tomcat 6.0.20 and JDK 1.5.0_19. The “session-timeout” timeout value in tomcat/conf/web.xml is 30, but I noticed my pages timeout after about 10 minutes. If I don’t touch a page for 10 mints, next time I submit a form on that page I get a “Page Expired” error. Any

Re: Wicket's @SpringBean and the "autowire-candidate" annotation

2009-07-09 Thread Philippe Laflamme
Using ConfigurableListableBeanFactory.getBeanDefinition(beanName).isAutowireCandidate(); Not sure if there's a "proper" way to obtain the ConfigurableListableBeanFactory from the ApplicationContext besides using instanceof tests. Philippe James Carman-3 wrote: > > How do you propose that we g

Re: DateField and enabling some days

2009-07-09 Thread John Krasnay
Sorry, I don't know much about Date[Time]Field. Just trying to save you a few LoC. jk On Wed, Jul 08, 2009 at 01:35:13PM -0700, Fernando Wermus wrote: > thanks for the tip. Is there some way to solve what I commented? > > On Wed, Jul 8, 2009 at 1:25 PM, John Krasnay wrote: > > > On Wed, Jul 08

Re: artwork problem while changing background color of liquid canvas

2009-07-09 Thread Istvan
Had same problem. Try (,or something like) this (named "Bocs" instead of "Box") to avoid name clashes in future): public class Bocs extends WebMarkupContainer { public static final byte DEFAULT_ROUNDING_RADIUS = 8; public static final String DEAFAULT_FILLCOLOR = "#EEFFD0"; public stat

Re: wicket vs vaadin clarifications

2009-07-09 Thread Vladimir K
Joonas, I'm wondering why your comparison table does not contain ZK? I find Vaadin demos not very responsive. They react very very slowly. At that internet responses are less than 100ms and response size mostly less than 1K and there are only one-two roundtrips for each user action. The same abo

Re: Is IRequestTargetUrlCodingStrategy needed for mapping bookmarkable URLs?

2009-07-09 Thread Alex Objelean
I did something similar. All you have to do is to create your own implementation of IRequestCodingStrategy. You can find the code at this link: http://pastebin.com/m458b5433 LocaleUrlCodingStrategyDecorator Alex Objelean Jonathan and Carrie Olson wrote: > > Hello, > > I've been investigatin

Re: Wicket 1.4-rc6 Swarm

2009-07-09 Thread Olger Warnier
Hi Luca, Maybe it is possible to commit the whole into an existing / new branch of the wicket-security project. Is there someone who could arrange that ? Kind Regards, Olger On 9 jul 2009, at 11:00, Luca Provenzani wrote: Hi all, i'm interested too. Probably my company have to realize a

Re: DynamicWebResource and ajax request

2009-07-09 Thread Robin Sander
I don't know if this is the recommended way, but there is a urlFor(ResourceReference) method in Component, so you can store the (mounted) ResourceReference in the application, then access it in the Component which needs the URL and call urlFor() with the reference. If any Wicket developer r

Re: How to use a mounted shared resource as a link resource?

2009-07-09 Thread Robin Sander
To answer my own question in case anybody else has a similiar problem: There's a urlFor(ResourceReference) method in Component, so store the ResourceReference in the application, then access it in the Component which needs the URL and call urlFor(). On 26.06.2009, at 16:21, Robin Sander

Re: Wicket's @SpringBean and the "autowire-candidate" annotation

2009-07-09 Thread James Carman
How do you propose that we get at that information? I took a look around, but didn't see anything like an isAutowireCandidate(String beanName) method. On Thu, Jul 9, 2009 at 3:48 AM, Ben Hutchison wrote: > Currently, when injecting Spring autowired dependencies via @SpringBean, > Wicket's Spring

Re: Rewrite page parameter to Login_page when session's expired

2009-07-09 Thread glooorrryyy
The error has been vanished now. It seems the wrong page parameter caused this error. Hm, does anyone know to get the currently page parameter? glooorrryyy wrote: > > Now, I always get this error: > > ERROR - RequestCycle - unexpected exception when handling > another exception:

Is IRequestTargetUrlCodingStrategy needed for mapping bookmarkable URLs?

2009-07-09 Thread Jonathan and Carrie Olson
Hello, I've been investigating Wicket for building an educational site, and there's one issue that's been nagging me: The majority of our URLs would need to be pretty, bookmarkable, and start with a locale, like: http://www.example.com/en/test/1 or http://www.example.com/zh_CN/page-search/penguin

Re: Rewrite page parameter to Login_page when session's expired

2009-07-09 Thread glooorrryyy
Now, I always get this error: ERROR - RequestCycle - unexpected exception when handling another exception: Unable to find component with id 'loginForm' in [MarkupContainer [Component id = _extend4]]. This means that you declared wicket:id=loginForm in your markup, but that you eithe

recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
Our app has been working great this past year but we recently encountered a strange behavior and wanted to get the communities input on how to proceed. Background: * Wicket 1.3.6 * JDK 1.5 * Jetty (dev) / Apache and Tomcat (prod) * The URL to our app follows this

Re: Wicket 1.4-rc6 Swarm

2009-07-09 Thread Luca Provenzani
Hi all, i'm interested too. Probably my company have to realize a new project in the near future and we think to use wicket 1.4, but we need something like swarm. I started to see in svn but if it is possible to have your updated code it would be fantastic. thank you Luca 2009/7/9 Olger Warnier

Wicket's @SpringBean and the "autowire-candidate" annotation

2009-07-09 Thread Ben Hutchison
Currently, when injecting Spring autowired dependencies via @SpringBean, Wicket's Spring integration does take account of the optional "autowire-candidate" attribute of a bean. This attribute tells spring not to consider a bean during autowiring. Here's our use case where we discovered this li