Re: Convert a null Model to a custom string rather than

2009-01-27 Thread Anton Veretennikov
Not very nice but works (Jeremy Thomerson's variant with setObject changes): public class DefaultWhenNullModelT implements IModelT { private static final long serialVersionUID = 1L; private final IModelT mNestedModel; private final T mDefaultValue; public DefaultWhenNullModel(IModelT

Re: Frozen error form object

2009-01-27 Thread Anton Veretennikov
to know it? The problem will be solved clearly. Tony On Wed, Jan 28, 2009 at 1:27 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if the form is in invalid state and you want to reuse the same instance of it you have to call Form#clearInput() -igor On Tue, Jan 27, 2009 at 8:06 PM, Anton

Frozen error form object

2009-01-26 Thread Anton Veretennikov
Hello, all wicket users and developers! Wicket is 1-4-SNAPSHOT (not revision 737998, it is not compiling for test failures). I have a simple form for GoodPrice object edit. List of objects have a link that sets PanelModel.goodPrice to currently editing object. This is how I create my form with

Re: Example for presenting pdf in modal window

2009-01-26 Thread Anton Veretennikov
May be some kind of open source exists for embedding pdf in Flash like this: http://www.stickmanlabs.com/lightwindow/ Flash Paper link On Tue, Jan 27, 2009 at 2:50 AM, Per Newgro per.new...@gmx.ch wrote: Is there no way to achieve my goal? Per

Re: QuickStart not finding Wicket classes

2009-01-26 Thread Anton Veretennikov
There is no 1.4-SNAPSHOT in central repository so it must be downloaded first and installed in local repository. Am I right? On Tue, Jan 27, 2009 at 1:18 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: works fine for me: C:\dev\src\wicket\wicket-quickstartsvn up At revision 738009.

BookmarkablePageLink parameters as model

2009-01-23 Thread Anton Veretennikov
Hello, wicket users! Is it possible to construct BookmarkablePageLink with different page parameters depending on some model? Thank you! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: BookmarkablePageLink parameters as model

2009-01-23 Thread Anton Veretennikov
Thank you, Igor! Accustomed to model's all over the Wicket... On Sat, Jan 24, 2009 at 2:34 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you are free to override getpageparameters() and implement your own logic there. -igor On Fri, Jan 23, 2009 at 11:03 PM, Anton Veretennikov

Simulate processing of Page

2009-01-21 Thread Anton Veretennikov
Hello, all wicket users! I would like to know is it possible to simulate processing of some PageA from some other PageB and get result as a String. I need to return as HTTP response only some div from PageA. Thank you for all ideas!

DropDownChoice with ModelString and ListT

2009-01-15 Thread Anton Veretennikov
Good {morning|day|evening}! I have a Model with String field code and list of objects ListT where t.getCode() must be returned to Model. Several hours I try to make it strict typed with Wicket 1.4. No success :( Please, help me!

Re: DropDownChoice with ModelString and ListT

2009-01-15 Thread Anton Veretennikov
- liststring -igor On Thu, Jan 15, 2009 at 8:52 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Good {morning|day|evening}! I have a Model with String field code and list of objects ListT where t.getCode() must be returned to Model. Several hours I try to make it strict typed

I'm intersted in design

2009-01-15 Thread Anton Veretennikov
Hello all wicket users! Does anybody know why id is added to component, not to list of children, like: add(someId, childComponent); Thank you very much. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: I'm intersted in design

2009-01-15 Thread Anton Veretennikov
Because it is imperative in many ways that the component knows it's own ID. Look through the code to see how many times it uses it's ID. Do you mean that instance needs to know ID BEFORE it was added? If not, add() can internally set ID of component sent as parameter. If one child can't have

Re: [OT] wicket users around the world

2008-12-12 Thread Anton Veretennikov
Krasnoyarsk, Russia Started http://wicket.ru Really love wicket On Fri, Dec 12, 2008 at 1:57 AM, francisco treacy francisco.tre...@gmail.com wrote: to know a little bit more of our great (and vast) community, i was just wondering if you're keen on sharing where you come from and/or where you

Hourglass during Ajax

2008-12-05 Thread Anton Veretennikov
Hello Wicket users, I would like to know how to show some hourglass in a Wicket way during Ajax so user will not click something else. How to do this? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Hourglass during Ajax

2008-12-05 Thread Anton Veretennikov
) and IndicatingAjaxButton. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Anton Veretennikov wrote: Hello Wicket users, I would like to know how to show some hourglass in a Wicket way during Ajax so user will not click something else. How to do this? Thank you

Thread.sleep() for only one session

2008-12-05 Thread Anton Veretennikov
Hello all Wicket users. One more question today. I need to implement appearence of sleep if user (session, IP address) tries incorrect login many times. Thread.sleep() seems to stop all sessions at once. Any ideas? Thank you! -

Re: Thread.sleep() for only one session

2008-12-05 Thread Anton Veretennikov
, Dec 5, 2008 at 9:46 AM, Anton Veretennikov [EMAIL PROTECTED] wrote: Hello all Wicket users. One more question today. I need to implement appearence of sleep if user (session, IP address) tries incorrect login many times. Thread.sleep() seems to stop all sessions at once. Any ideas

Re: Switch db connection when Local Remote

2008-12-03 Thread Anton Veretennikov
Thanks you for suggestions. On Wed, Dec 3, 2008 at 5:55 PM, Ulf Gitschthaler [EMAIL PROTECTED] wrote: Maybe you should have a look at: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html It describes how to use JNDI for your database connection. In short: the tomcat

Re: Switch db connection when Local Remote

2008-12-03 Thread Anton Veretennikov
with the production profile. On Wed, Dec 3, 2008 at 1:37 AM, Anton Veretennikov [EMAIL PROTECTED] wrote: Hello Wicket users, I test my app on local Tomcat and update it frequently on remote. They have different MySQL DB connection params. What is the easiest way to decide which params to choose

Switch db connection when Local Remote

2008-12-02 Thread Anton Veretennikov
Hello Wicket users, I test my app on local Tomcat and update it frequently on remote. They have different MySQL DB connection params. What is the easiest way to decide which params to choose depending on where Tomcat is running without editing of xml-files? I need to know it during init() of

Re: Panel's read more link

2008-11-25 Thread Anton Veretennikov
I found that every time link is clicked ReadMoreWicketPanel-s are created again because they are populated by ListView in WebPage. Does it mean that I must put my ReadMoreWicketPanel's instances in session? On Tue, Nov 25, 2008 at 2:48 PM, Anton Veretennikov [EMAIL PROTECTED] wrote: Hi, I

Re: Panel's read more link

2008-11-25 Thread Anton Veretennikov
Anton Veretennikov wrote: Thank you! Very usefull thing! No problem. The explanation on that issue is in the list and i think there is a note in the wiki. Maybe this thread gives you a hint http://www.nabble.com/ListView-%2B-reusing-Items-td14918862.html#a14924868 I did not scroll doc

Javascript must be called once at the end

2008-11-25 Thread Anton Veretennikov
Hi, JavaScript source files itself are inserted using wicket:head in CodeHighlightPanel's html. It's great that they are included only once though multiple CodeHighlightPanel's instances have it. How to make alone call script language=javascript dp.SyntaxHighlighter.HighlightAll('code');

Panel's read more link

2008-11-24 Thread Anton Veretennikov
Hi, I want to make a read more link that will make visible initially hidden label. Running debugger I found that my Panel's constructor is called every time I click this link. So it again invisible. What is wrong? public class ReadMoreWicketPanel extends WicketPanel { private Label

Re: Wicket 1.3.5 behind a front-end proxy

2008-11-20 Thread Anton Veretennikov
Resolved. Hosting provider did something. Thank you all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Anton Veretennikov
Hi, http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html shows this configuration: VirtualHost ordering.company.com ProxyPass / http://appserver.company.com:8080/ordering/ ProxyPassReverse / http://appserver.company.com:8080/ordering/ # Apache 2.2+ only

Re: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Anton Veretennikov
What is the problem you are having, we use mod_proxy in several environments with wicket / tomcat. Jeremy I have several apps on one hosting and several domains (aliases) that must be directly connected to corresponding Web App/. Configuration is this: ServerAlias wicket.ru ProxyPass

Re: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Anton Veretennikov
To get Apache 2.2 to proxy around Wicket, I have the following defined: IfDefine PROXY ProxyPass / http://localhost:8080/cware/ ProxyPassReverse/ http://localhost:8080/cware/ ProxyPassReverseCookieDomainlocalhost

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Anton Veretennikov
Didn't try GoDaddy but left 3 other hostings because Wicket did not work there. On one it didn't work at all. On two others app opened 1-2 times and then hanged down for unknown time. Now I opened an account on javaprovider.net - Private JVM Developer. Wicket works here and I'm glad BUT works

ProxyPass will not work?

2008-11-16 Thread Anton Veretennikov
Good day, My hosting provider says that they use ProxyPass for aliases. Seems that site opens but links don't work: 404 error (ContextName/ContextName is not found) Why ContextName is doubled? May be ProxyPass is not a way to work with Wicket. I found for example that Wicket adds ContextPath()

Re: ProxyPass will not work?

2008-11-16 Thread Anton Veretennikov
there is a page on the wiki that talks about proxy config. -igor Thank you, Igor. I found it: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html Don't understand how to setContextPath() in Wicket 1.3.5? Seems getApplicationSettings().setContextPath(/) is an old API.

<    1   2