Re: Another borders scenario

2009-03-02 Thread Anton Veretennikov
The only way I found is to hold reference to added border inside to be extended class and to do getBorder().add(new Link(link)); in child constructor. May be there exists better approach? On Mon, Mar 2, 2009 at 11:41 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Hello! I'm

Re: Switching between markup files for borders

2009-02-28 Thread Anton Veretennikov
border images are touching server with .../getFrame/theme/images/bar/white/t.gif address. So, as there is no images there, 404 Not Found is returned for them. They must be .../images/bar/white/t.gif Quickstart? On Thu, Feb 26, 2009 at 2:52 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote

Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Hi! I have a problem with theme support for borders. I want to exchange real markup of border depending on theme name, for example: RoundedCornerBorder_black.html RoundedCornerBorder_white.html How to do this in Wicket? - To

Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Thank you very much! On Thu, Feb 26, 2009 at 12:19 AM, Michael Sparer michael.spa...@gmx.at wrote: http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-LocaleandStyle regards Anton Veretennikov wrote: Hi! I have a problem with theme support for borders. I want to exchange

Quickstart for jar

2009-02-25 Thread Anton Veretennikov
Hi, Do we have jar quickstart with resources filter added by default? -- Tony. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
you a ton of code duplication over having MyBorder_white, MyPanel_white, etc. Maybe you already are, but I couldn't bare to see what appears to be pain and suffering without at least trying to help.  :) On Wed, Feb 25, 2009 at 10:13 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote

Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
-image: (/url/blackimages/bar.jpg); } As to performance, not sure I understood the question, but selecting the themed borders rather than normal borders doesn't slow anything down.  Is that what you meant? On Thu, Feb 26, 2009 at 1:15 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote

What happens with AjaxSelfUpdatingTimerBehavior on slow response

2009-02-22 Thread Anton Veretennikov
Hello, wicket users, Seems to me that AjaxSelfUpdatingTimerBehavior works great on my dev machine but does not on remote server. Firebug shows only count of requests and no reponses. So may be this happens when response is too late and new request is started? I wonder of variant that will wait

Re: What happens with AjaxSelfUpdatingTimerBehavior on slow response

2009-02-22 Thread Anton Veretennikov
Excuse me, it works! My test was invalid. On Mon, Feb 23, 2009 at 1:10 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Hello, wicket users, Seems to me that AjaxSelfUpdatingTimerBehavior works great on my dev machine but does not on remote server. Firebug shows only count

Re: Ways to fully disable back button

2009-02-20 Thread Anton Veretennikov
you delete or mark a message as spam. They provide a feedback message with a link that allows the user to undo the operation. 2 messages have been marked as spam (_undo_) Martijn On Fri, Feb 20, 2009 at 8:39 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Really, my question

Ways to fully disable back button

2009-02-19 Thread Anton Veretennikov
Hello, wicket users, I would like to know how to write wicket links so that it will not be possible to return back. Thank you. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Ways to fully disable back button

2009-02-19 Thread Anton Veretennikov
to show user some info or what can be done? -- Tony On Fri, Feb 20, 2009 at 2:04 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: you can't. use google to see why. Martijn On Fri, Feb 20, 2009 at 6:02 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Hello, wicket users

Re: Effects library in Wicket

2009-02-16 Thread Anton Veretennikov
Also look at other JQuery integrations with Wicket: http://code.google.com/p/wickext/ and http://code.google.com/p/jquery4wicket/ From one of postings on wickext forum I saw they plan to merge. -- Tony On Mon, Feb 16, 2009 at 9:12 AM, Jeremy Thomerson jer...@wickettraining.com wrote: See some

ComponentPropertyModel inside some border

2009-02-15 Thread Anton Veretennikov
Hello, Wicket users, Please, help me to find the difference between theese two ComponentPropertyModel's (inside some Panel): add(new Label(currencyPayed, new ComponentPropertyModelString(currentPriceSumCurrency))); and this (inside some border): border.add(new Label(currencyPayed, new

Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
Igor, Excuse me, but I really don't understand. I'm asking about how to show Wicket error page. I thought that throwing WicketRuntimeException will result in showing it. But I get SERVER error page. I attached an image to clarify matters. And error below is seen in Tomcat output, not in Wicket

Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
or not, are handled in the same way - redirect to the error page. do you have a custom error page? if you do - if your error page has an error then what you describe might happen. -igor On Wed, Feb 11, 2009 at 6:49 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Igor, Excuse me

Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
); Anton Veretennikov wrote: I don't have custom error page. Link to image: http://img3.imageshack.us/img3/2244/bb476f8ece2116133419587ba3.gif On Wed, Feb 11, 2009 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: your attachment got stripped, but i can imagine what it looks like. all

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
should be fine, you can throw any kind of runtime exception you want. -igor Igor, thank you for answer. Did you mean that HTTP Status 500 error I get is not what it must be? It's a bug or what? I can make jira if it is so. -- Tony On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
I get it. On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: do you get 500 or do you not? -igor On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: should be fine, you can throw any kind of runtime exception you want. -igor

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
How to get standart Error page then instead of this error? considering 5xx codes are server-related failures i would say it is correct. -igor On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: I get it. On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg

How to handle this exception properly

2009-02-09 Thread Anton Veretennikov
Hello, all wicket users! I receive HTTP Status 500 error in this situation: I have a page with empty html-file and page's onRender() looks like: OutputStreamWriter writer = null; try { writer = new OutputStreamWriter(getResponse().getOutputStream(), encoding); String enc =

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-04 Thread Anton Veretennikov
I mean when wicket attributes and tags are stripped for production, please, remove this namespace too. On Wed, Feb 4, 2009 at 3:36 PM, Timo Rantalaiho timo.rantala...@ri.fi wrote: On Wed, 04 Feb 2009, Anton Veretennikov wrote: Please, don't forget to remove it when mode is DEPLOYMENT. What do

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-03 Thread Anton Veretennikov
Please, don't forget to remove it when mode is DEPLOYMENT. On Wed, Feb 4, 2009 at 8:29 AM, James Carman jcar...@carmanconsulting.com wrote: Ahhh, that's right. The archetype is released with wicket. DUH! :) On Tue, Feb 3, 2009 at 8:17 PM, jWeekend jweekend_for...@cabouge.com wrote: James,

Re: Feedback Panel

2009-01-30 Thread Anton Veretennikov
This is a simple Panel (without filtering) that can be used instead of FeedbackPanel. It shows itself is any session messages are available. As any Panel it has it's own html. public class MyFeedbackPanel extends Panel { public MyFeedbackPanel(String id) { super(id);

Re: Frozen error form object

2009-01-28 Thread Anton Veretennikov
this: 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 anton.veretenni...@gmail.com wrote: Thank you very much, Igor This really works. I think

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

2009-01-28 Thread Anton Veretennikov
(AbstractPropertyModel.java:169) at common.component.DefaultWhenNullModel.setObject(DefaultWhenNullModel.java:41) On Wed, Jan 28, 2009 at 11:51 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Not very nice but works (Jeremy Thomerson's variant with setObject changes): public

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
Cristi Manole wrote: [but if you need to _make sure_ the user doesn't click anything while the request is processing use the viel] On Fri, Dec 5, 2008 at 10:27 AM, jWeekend [EMAIL PROTECTED]wrote: Anton, See IndicatingAjaxLink (and other, similarly named components

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