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

2009-01-28 Thread Anton Veretennikov
bstractPropertyModel.setObject(AbstractPropertyModel.java:169) at common.component.DefaultWhenNullModel.setObject(DefaultWhenNullModel.java:41) On Wed, Jan 28, 2009 at 11:51 AM, Anton Veretennikov wrote: > Not very nice but works (Jeremy Thomerson's variant wit

Re: Frozen error form object

2009-01-28 Thread Anton Veretennikov
> > add(new listpanel() { onclicked() { editpanel.inputchanged(); }}): > > that way everything is still nicely encapsulated, but accessible. > > -igor > > On Tue, Jan 27, 2009 at 11:35 PM, Anton Veretennikov > wrote: >> Thank you very much, Igor >> >> This

Re: Frozen error form object

2009-01-27 Thread Anton Veretennikov
method to know it? The problem will be solved clearly. Tony On Wed, Jan 28, 2009 at 1:27 PM, Igor Vaynberg 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,

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 DefaultWhenNullModel implements IModel { private static final long serialVersionUID = 1L; private final IModel mNestedModel; private final T mDefaultValue; public DefaultWhenNullModel(IModel nestedM

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 wrote: > works fine for me: > C:\dev\src\wicket\wicket-quickstart>svn up > At revision 738009. > C:\dev\src\wicket\wicket-qui

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 wrote: > Is there no way to achieve my goal? > > Per > > -

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 c

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 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 >

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, e-ma

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! ---

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 o

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 additi

Re: DropDownChoice with Model and List

2009-01-15 Thread Anton Veretennikov
t; list > > -igor > > On Thu, Jan 15, 2009 at 8:52 AM, Anton Veretennikov > wrote: >> Good {morning|day|evening}! >> >> I have a Model with String field "code" and list of objects List >> where t.getCode() must be returned to Model. >> Several

DropDownChoice with Model and List

2009-01-15 Thread Anton Veretennikov
Good {morning|day|evening}! I have a Model with String field "code" and list of objects List 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: [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

Re: Thread.sleep() for only one session

2008-12-05 Thread Anton Veretennikov
r >> and not allow a sign in to that account or from that session until the >> timeout is expired. >> >> But as a general rule of thumb, never use Thread.sleep in a web app - >> especially somewhere in the request cycle. It'll be shooting yourself in >> the foot. &g

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: "Hourglass" during Ajax

2008-12-05 Thread Anton Veretennikov
ModalWindow (configured to >>>> exclude its close decoration) for this purpose. Again this would involve >>>> some work to get the prepended javascript right. Closing it would be easy >>>> enough tough, so you're half way there! >>>> >>>> Regard -

"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 comman

Re: Switch db connection when Local <> Remote

2008-12-03 Thread Anton Veretennikov
gt; > > > > Then, we use Spring to load a properties file (using > PropertyPlaceholderConfigurer) that's inside that directory. So, all you > have to do to build a different version is: > > mvn -Pprod install > > and it'll run with the "pro

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 > to

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 Appl

Re: Javascript must be called once at the end

2008-11-25 Thread Anton Veretennikov
rialVersionUID = 1L; >@Override >public void renderHead(IHeaderResponse response) { >super.renderHead(response); >response.renderOnDomReadyJavascript("alert('test');"); >} >} > } > > > -- &

Javascript must be called once at the end

2008-11-25 Thread Anton Veretennikov
Hi, JavaScript source files itself are inserted using 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 dp.SyntaxHighlighter.HighlightAll('code'); at the end of ? And not to have it

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-td1

Re: Panel's "read more" link

2008-11-25 Thread Anton Veretennikov
> Did you try ListView.setReuseItems(true);? > > Maybe that can help > > Cheers > Per Thank you! Very usefull thing! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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]>

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 moreTextLa

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]

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: > > >ProxyPass / > http://localhost:8080/cware/ >ProxyPassReverse/ > http://localhost:8080/cware/ >ProxyPassReverseCookieDomainlocalhost .laccetti.com >

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 /st

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: ProxyPass / http://appserver.company.com:8080/ordering/ ProxyPassReverse / http://appserver.company.com:8080/ordering/ # Apache 2.2+ only ProxyPassReverseCookiePath /ordering / as impossib

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.

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() in

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 only

Tomcat Context problem

2008-11-14 Thread Anton Veretennikov
Hello, all wicket users! I'm new to this list but like to be for a long time being a user and fan of wicket for several months. I worked with Struts, JSP and every time felt that simple servlets where much more clear. Wicket's plainless astound and stormed me. Well, now the problem I can't solve

<    1   2