Re: [Wicket-user] Programmatically set readonly property of form component

2006-12-15 Thread Carfield Yim
This work cool On 12/15/06, Matej Knopp [EMAIL PROTECTED] wrote: I'd rather override isEnabled and onDisabled, e.g. new TextField() { boolean isEnabled() { return isTextFieldReadOnly; } void onDisabled(final ComponentTag tag) {

[Wicket-user] Can I have multple template for single class?

2006-12-15 Thread Carfield Yim
The choice to use which from code? Like public Class Logon extends WebPage { public Logon() { if(true.equals(getRequest().getParameter(isliteversion))) // choose template 1 else // choose template 2 } }

Re: [Wicket-user] Back button - redirect to another page

2006-12-15 Thread jan_bar
Thanks Johan, I was a little big unclear. By default the HTML pages returned from wicket has no-cache, so the back button usually posts request to server. When the previous page url is RedirectPageRequestTarget, the page instance is found in page map and rendered again. Why is the

Re: [Wicket-user] Can I have multple template for single class?

2006-12-15 Thread Erik van Oosten
Hi Carfield, Try something like: public Logon() { setVariant(Boolean.valueOf(getRequest().getParameter(isliteversion)) ? lite : normal); } Regards, Erik. Carfield Yim schreef: The choice to use which from code? Like public Class Logon extends WebPage { public Logon() {

Re: [Wicket-user] Can I have multple template for single class?

2006-12-15 Thread Carfield Yim
Then it will refer to lite.html and normal.html?? On 12/15/06, Erik van Oosten [EMAIL PROTECTED] wrote: Hi Carfield, Try something like: public Logon() { setVariant(Boolean.valueOf(getRequest().getParameter(isliteversion)) ? lite : normal); } Regards, Erik. Carfield Yim

Re: [Wicket-user] Can I have multple template for single class?

2006-12-15 Thread Erik van Oosten
No, its Logon_lite.html and Logon_normal.html. You can also still use i18n and style versions. I forgot the exact order but then you'll get files like Logon_en_lite_green.html for English, variant lite and style green. Regards, Erik. Carfield Yim schreef: Then it will refer to lite.html

Re: [Wicket-user] Back button - redirect to another page

2006-12-15 Thread Johan Compagner
first of all no-cache will not result in a get request to the server again. That will only happen if you add no-store to the configureResponse param of the WebPage. i thought that onRedirect() didn't even get called , dummy method (it doesn't do anything). But it seems to be called i see. We

Re: [Wicket-user] Back button - redirect to another page

2006-12-15 Thread jan_bar
Thanks Johan for your time and support, I tried to override onBeforeRequest(), just to test - the first call to onBeforeRender suceeds but any furter call will throw and should redirect to some page, but the redirect doesn't work. Wicket doesn't do anything special on AbortException. The

Re: [Wicket-user] Back button - redirect to another page

2006-12-15 Thread Erik van Oosten
Hi Jan, Try to throw an RestartResponseAtInterceptPageException. Erik. jan_bar schreef: Thanks Johan for your time and support, I tried to override onBeforeRequest(), just to test - the first call to onBeforeRender suceeds but any furter call will throw and should redirect to some

Re: [Wicket-user] Back button - redirect to another page

2006-12-15 Thread jan_bar
Thanks Erik and Johan, now I have what I searched for. Jan Erik van Oosten [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Jan, Try to throw an RestartResponseAtInterceptPageException. Erik. jan_bar schreef: Thanks Johan for your time and support, I tried to

Re: [Wicket-user] New year's present

2006-12-15 Thread Stefan Lindner
Dear Igor, Eelco and others, Where can We sent our bribe presents to? Any real address for some small chistmas presents for you? Stefan Lindner - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's

Re: [Wicket-user] Wicket Idea Plugin

2006-12-15 Thread Nick Heudecker
I posted a message to the wicket-stuff-devel mailing list regarding compiling the plugin. I'm mentioning it here in case nobody is looking there yet. :) Any help would be appreciated. Thanks. On 12/14/06, Nick Heudecker [EMAIL PROTECTED] wrote: Great. Thanks for adding it. On 12/14/06,

Re: [Wicket-user] New year's present

2006-12-15 Thread Igor Vaynberg
imho the best wicket gift anyone can give is to try and help out more with the mailing list. that way we have more time to code :) -igor On 12/15/06, Stefan Lindner [EMAIL PROTECTED] wrote: Dear Igor, Eelco and others, Where can We sent our bribe presents to? Any real address for some small

Re: [Wicket-user] Mapping / Complex Property Models?

2006-12-15 Thread Jonathan Sharp
On 12/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: fwiw a common pattern i use is to do the conversion in an model decorator something like class StringToPhoneModel implements IModel { private final IModel stringModel; public StringToPhoneModel(IModel stringModel) {

Re: [Wicket-user] Why I recommended Wicket...

2006-12-15 Thread Nathan Hamblen
Igor Vaynberg wrote: disadvantages being that fail over is harder unless the disk is shared between the cluster nodes. the disk can always be replaced by a database as well. the whole idea is relatively new and we have yet to explore its full potential. Yes... that is kind of gutsy. I don't

Re: [Wicket-user] Why I recommended Wicket...

2006-12-15 Thread Joe Toth
You want the session to be as lightweight as possible in order for it to be easily replicated in a fault tolerant system. With service/dao layer code I like to let the ORM (EJB/Hibernate) cache whatever I need for performance. By keeping a cache of these objects in the application layer and a

Re: [Wicket-user] Why I recommended Wicket...

2006-12-15 Thread Roland Kaercher
Have you tried using LoadableDetachable models for that? Another way could be to use Terracotta for the clustering where the objects are just replicated to servers which need them. I haven't tried it yet but this approach seems pretty scalable and fault-tolerant to me (given that the

[Wicket-user] Make a choice... Work with us!

2006-12-15 Thread Eloy Rock
Dear Sir/Madam! We are a small and relatively new Software Development and Outsourcing Company specializing in enterprise application development, system integration, corporate networks and other software solutions for business and finance. The company based in Ukraine

[Wicket-user] new SortableContainer Component

2006-12-15 Thread Ryan Sonnek
Hey wicket-users, I've written up a short tutorial on a new Wicket component (SortableContainer) that integrates scriptaculous into wicket for drag/drop reordering of ListView items. http://jroller.com/page/wireframe?entry=wicket_sortable_container I'd be very interested to hear any feedback

[Wicket-user] Wicket Tag Cloud Component / Model properties

2006-12-15 Thread bednarz-hannover
Hi All, I am working on a tag cloud component and looking for a solution how to append simple property models to a label and display them: So far my current code is: CloudLabel cl = new CloudLabel(); // Simple Object with two Strings cl.setName(Name); cl.setWeight(10);

[Wicket-user] 'Virtual' folders in url structure

2006-12-15 Thread Ryan
I am trying to implement an IRequestCodingStrategy that creates a virtual directory in the url path for all generated links. An example url would be: /contextName/folder-name1/mount/path/Home /contextName/folder-name2/mount/path/Home I would like both urls to go to Home.class which is mounted

[Wicket-user] Wicket Tag Cloud Component / Model properties

2006-12-15 Thread bednarz-hannover
I have just found a more efficent way :_) Label label = new Label(label, Name); label.add(new AttributeModifier(style, true, new Model(font-size: 10px))); So my question is obsolete. Maciej Hi All, I am working on a tag cloud component and looking for a

[Wicket-user] DefaultButtonImageResource to get image

2006-12-15 Thread wicketmarsh
Hi, can somebody help me to get image from shared folder using DefaultButtonImageResource? i have shared resources at root /sharedResources/Images/a.gif , Application has - getSharedResources().add(aShared, new DefaultButtonImageResource(?)); I would like to have html like input

[Wicket-user] Wicket Ajax Javascript Error

2006-12-15 Thread Andrew Berman
Hello, I repeatedly get the following error: t has no properties (got the info using Firebug with Firefox) It bombs on line 586 of wicket-ajax.js: if (t.readyState == 4) Looks like t which is set to this.transport is null. There are many situations where this happens in my application. One

Re: [Wicket-user] Wicket Ajax Javascript Error

2006-12-15 Thread Igor Vaynberg
try removing firebug from firefox, it has caused me to have this error in the past -igor On 12/15/06, Andrew Berman [EMAIL PROTECTED] wrote: Hello, I repeatedly get the following error: t has no properties (got the info using Firebug with Firefox) It bombs on line 586 of wicket-ajax.js:

Re: [Wicket-user] Wicket Ajax Javascript Error

2006-12-15 Thread Andrew Berman
Cool, I'll give it a shot Igor. Thanks, Andrew On 12/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote: try removing firebug from firefox, it has caused me to have this error in the past -igor On 12/15/06, Andrew Berman [EMAIL PROTECTED] wrote: Hello, I repeatedly get the following error:

[Wicket-user] glorify

2006-12-15 Thread Humphry F. Craig
Abbas, a relative moderate, was to address the Palestinians on Saturday on his plans for ending the impasse and was expected to threaten early elections. Hamas, responsible for dozens of deadly suicide bombings in Israel, is listed as a terror group by the U. The scientists also warned the

Re: [Wicket-user] Why I recommended Wicket...

2006-12-15 Thread Carfield Yim
1. Session support. Many other web frameworks do not use sessions out of How about this approach of store session data? Or part of session data? http://weblogs.java.net/blog/gmurray71/archive/2005/05/storing_secure.html

Re: [Wicket-user] Wicket Idea Plugin

2006-12-15 Thread Anders Holmbech Brandt
Hello Nick, Friday, December 15, 2006, 4:58:18 PM, you wrote: I posted a message to the wicket-stuff-devel mailing list regarding compiling the plugin. I'm mentioning it here in case nobody is looking there yet.:) Any help would be appreciated. Thanks. Still waiting for the

[Wicket-user] About putting other resources in classpath

2006-12-15 Thread Carfield Yim
I would like to put all my image and CSS to classpath so that when I update my web application, I just need to replace the jar. I am now thinking having logic at onBeginRequest() to check the URL and see if the request path have resource exist in classpath. If it exist, open outputstream of