Re: hot deploy new/updated components?

2007-10-25 Thread Bruno Borges
This is a problem of understanding, IMHO. :) Actually, hot deploys are re-deploys. They are just re-deploys of one file. The JSP will be recompiled, a new Servlet class will be generated on the fly and then the page will be updated. Even so, I agree that the hot deploy you are asking for, is

Re: hot deploy new/updated components?

2007-10-25 Thread Eelco Hillenius
Did you take a look at this:http://www.zeroturnaround.com/blog/javarebel-brings-class-reloading-to-java/? Or the reloading wicket-filter? Eelco On 10/24/07, Mike03 [EMAIL PROTECTED] wrote: Hi, I'm at a new job that has a very ugly JSP presentation layer and I'm really missing Wicket. I

Re: wicketstuff push and sharing an IChannelService

2007-10-25 Thread Michael Sparer
Hi Xavier, thanks for your effort but please don't take too much time investigating my issues :-) I'm using wicket 1.3.0-beta3 and wicketstuff push... well since it doesn't show the svn version numbers the version of monday this week. Yesterday I had a more thorough look into what's exactly

TagTester - Howto get the value?

2007-10-25 Thread Per Newgro
Hi *, is there a way for getting the value between the tags? If i try TagTester t = wicketTester.getTagByWicketId(myId); i only get the tag with its attributes. But i would like to access the value enclosed by tags: span wicket:id=myIdThis value i'm looking for/myId A hint would be nice.

Re: Non-serializable objects and efficiency

2007-10-25 Thread WicketKeeper
Hi Thanks... Then how do I get that object by it's id? (did you mean component id?) I guess what i'm asking is how to best structure things in Wicket when there is a resource that isn't serializable and is used by multiple components. So in my case I have a number of tabs, each with its own

LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Stefan Fußenegger
Hi folks, I am quite new to wicket but I already figured out that it deserved its name ;) Currently, I am playing around with IDataProvider in conjunction with LoadableDetachableModels. As far as I understand, the main purpose of LoadableDetachableModels is to tune serialization performance. At

Re: Non-serializable objects and efficiency

2007-10-25 Thread Johan Compagner
opening a DataConn everytime for every request isn't really what you want i guess? (else you could have a custom request cycle that does this) But what you could do is hold an transient field in your custom Wicket Session object and maybe besides that a id or description so that you can restore

Re: Non-serializable objects and efficiency

2007-10-25 Thread WicketKeeper
Thanks for prompt reply. Yes, I was thinking having 1 DataConn for every new request. So what i envision is: 1. User goes to home page (active window being the browser window) 2. On connection, a new DataConn object should be initialised. 3. User does data enquiry stuff from that page (lots of

Re: Setting charset of javascript includes?

2007-10-25 Thread Matej Knopp
I see, well, in that case you can use IHeaderResponse.renderText() to render the entire script tag on your own (you can look at the implementation of renderJavascriptReference to do something similiar just put the encoding attribute in there) -Matej On 10/25/07, kent lai [EMAIL PROTECTED] wrote:

Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
I'm currently trying to update from 1.4beta2 to 1.4beta4 by changing the revision of our project's wicket-external (http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/src/main/java). Unfortunately it does not build any more because it seems to require a new library. Where can I

Re: LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Matej Knopp
Where do you have your LoadableDetachableModel declared? And what kind of IDataProvider are you talking about? If it is wicket's IDataProvider than it has to be serializable, because DataView/Table keep it's reference. LoadableDetachableModel is usually declared as anonymous class inside

Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
I think you can make use of a modal window to do this Regards Dipu On 10/25/07, Federico Fanton [EMAIL PROTECTED] wrote: Hi everyone! I have a form with a submit button, and I need to implement a sequence like this: - user presses the button - form submit - server-side validation of

Re: How do I dynamically populate TreeTable nodes

2007-10-25 Thread Matej Knopp
It's about how you implement the TreeModel. You need to roll your own TreeNode implementation that loads the children lazily when then children() method is called. That way you don't have to populate the whole tree upfront. -Matej On 10/25/07, lubosp [EMAIL PROTECTED] wrote: I use extensions

Confirmation message after form submit

2007-10-25 Thread Federico Fanton
Hi everyone! I have a form with a submit button, and I need to implement a sequence like this: - user presses the button - form submit - server-side validation of submitted data - popup with confirmation message (like javascript confirm() ) - if user presses yes, call Java method X - if user

Changing DocType of the page.

2007-10-25 Thread ravi.gidwani
Hi All: Wicket used: 1.2.6 I know this will sound a bit not common. But I have a requirement as follows: AbstractPage1 extends WebPage{ //The Html of this page has DocType at the top } ChildPage1 extends AbstractPage1 { // This page provides the extending HTMl code. And requires

Re: LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Stefan Fußenegger
Hi Matej Thanks for your reply. In deed, I declared the LoadableDetachableModel inside the IDataProvider. So the bottom line of your post is, that it is serialized anyway altogether? Are there some docs for wicket serialization around? As I figured out, wicket likes serialization. But so far I

Re: Confirmation message after form submit

2007-10-25 Thread Federico Fanton
On Thu, 25 Oct 2007 10:40:20 +0100 Dipu Seminlal [EMAIL PROTECTED] wrote: I think you can make use of a modal window to do this You mean, a modal window instead of the javascript confirm() ? - To unsubscribe, e-mail: [EMAIL

Re: FormComponentFeedbackIndicator not triggered with 1.3b4?

2007-10-25 Thread Eelco Hillenius
On 10/24/07, Matej Knopp [EMAIL PROTECTED] wrote: No, there shouldn't be as far as I know. This might be a regression though, could you file a jira issue and attach a quickstart that demonstrates the problem? Thanks. Or unit test... that's even better. Eelco

Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
yes a modal window, i am not sure about how would you pop up a javascript confirm() after doing a server side validation. there might be a way, but i don't know how Dipu On 10/25/07, Federico Fanton [EMAIL PROTECTED] wrote: On Thu, 25 Oct 2007 10:40:20 +0100 Dipu Seminlal [EMAIL PROTECTED]

Re: possible bug in 1.2.6 / 1.3 Include

2007-10-25 Thread Al Maw
Jeremy Levy wrote: I found this while working on 1.2.6 and checked it out in 1.3 and it's the same. It appears as though Include does not pay attention to the contextpath if it is explicitly set. Line 162 (In 1.2.6) or line 233 (in 1.3b4) of Include is the following line which as I understands

AccessControlException whenstarting Wicket1.3

2007-10-25 Thread Peter Neubauer
Hi there, trying to start a very simple Wicket app under Tomcat5 on Linux, I get the following Exception. Is there a problem with the Java permissions or maybe Linux file permisstions? This is a standard Tomcat installation, the web.xml looks like: ?xml version=1.0? web-app

AutoCompleteTextField / combobox

2007-10-25 Thread Clay Lehman
Hey everyone, I need a combobox, where a user types in part of the entry, and the possible choices are looked up and presented for the user to select. The AutoCompleteTextField looks like it is close to what I want, but I was hoping there is a way to have an object behind the component's

Re: Confirmation message after form submit

2007-10-25 Thread Swaroop Belur
Do it like this: In js file function yourconfirmationjsfunction( urltogotoonok , urltogotooncancel) { var retValue = confirm( Are you sure ); if(retValue == false){ window.location.href=urltogotooncancel; } window.location.href=urltogotoonok ; } In java file...

Re: AccessControlException whenstarting Wicket1.3

2007-10-25 Thread Maurice Marrink
Looks like tomcat is running under a securitymanager. according to the wiki you might need to add a few permissions, however they did not mention anything about mbeans. http://cwiki.apache.org/WICKET/java-security-permissions.html Anybody else been here before? Maurice On 10/25/07, Peter

Intercept AjaxRequestTarget

2007-10-25 Thread wheleph
Hello everyone! My application has a lot of ajax components. And every time validation error occurs I need to add my FeedbackPanel to AjaxRequestTarget. Is there a way to do it automatically? I mean to add my FeedbackPanel to every ajax response wheleph -- View this message in context:

Re: Back button and AjaxLazyLoadPanel

2007-10-25 Thread Matej Knopp
you can try to add cache-control: no-store header to your page. If that doesn't help, fill a jira issue with attached quickstart. -Matej On 10/25/07, Evan Chooly [EMAIL PROTECTED] wrote: I'm having issues using the ALLP and the back button. I'm getting the following error:

ResourceLocator question.

2007-10-25 Thread Andrew MacKenzie
The documentation doesn't seem clear on this. I'm using Wicket 1.2 and need 'some' pages to be loaded from different locations than the default. I've found the documentation here: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html In that example the custom locator

DropDownChoice model being lost.

2007-10-25 Thread Andrew MacKenzie
I'm having a number of problems with DropDownChoices in Wicket. I have a rather complex page that has a form with multiple submit buttons and ListView within ListView within ListView. In the lowest ListView I have a drop down and a text field. The text field works fine, but the drop down gives

Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
No possibility? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Component autorefresh with Ajax

2007-10-25 Thread Artur W.
Hi! I have complex dependencies between components on my page. e.g. when user clicks on a button coupe of other components change. Now I refresh them with AjaxRequestTarget and a lots of conditions. Is it possible that Wicket automatically adds dirty component to the

Re: Component autorefresh with Ajax

2007-10-25 Thread Matej Knopp
Wicket doesn't track dirty components (because there are lot of different ways you can consider a component dirty). But you can mark your dirty dirty yourself (e.g. setting some flags) and then use a visitor (MarkupContainer.visitChildren()) to find dirty components and add them to

Re: Creating google-sitemap for wicket application

2007-10-25 Thread John Patterson
You can also mount whole packages at a time. Or if you have too many packages you can add your own IRequestTargetUrlCodingStrategy and mount that and write your own logic for finding Bookmarkable pages pages with nice URL's. John On 25 Oct 2007, at 09:09, martinf wrote: Hi, basically

Re: Setting charset of javascript includes?

2007-10-25 Thread kent lai
Sounds like thats the only way. Probably will stick to this until jquery.validate.js has an update. Thanks! On 25 Oct 2007, at 5:33 PM, Matej Knopp wrote: I see, well, in that case you can use IHeaderResponse.renderText() to render the entire script tag on your own (you can look at the

Re: Creating google-sitemap for wicket application

2007-10-25 Thread Nino Saturnino Martinez Vazquez Wael
if some of your pages are predictable you could just have a masterpage using parameters, and making that bookmarkable.. Like this: http://mynicesite.com/masterpage/products/toys This will give the parameter called products with the value toys to the master page you could then redirect

Re: Get libs without installing Maven?

2007-10-25 Thread Nino Saturnino Martinez Vazquez Wael
goto maven2 repo and get them from there or ask someone that has a running wicket to give you them..:) Thomas Singer wrote: No possibility? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Component autorefresh with Ajax

2007-10-25 Thread Sam Hough
We do this, although have a few places where we mark a component dirty manually (obscure change in model etc). We use an identity hash map to record components considered dirty then a simple algorithm to remove descendants of already dirty components. Wicket is not great for getting this to

Model inheritance question

2007-10-25 Thread Martin-2
Hi there, we have a simple Problem and may be too blind to find the obvious solution...We have a base page (AbstractUserPage) that has a model which wraps basic properties of a user (like login). Next we have a bunch of specialized pages that inherit from AbstractUserPage and these pages' models

Re: Get libs without installing Maven?

2007-10-25 Thread Frank Bille
There is always the standard distribution, which contains binaries and sources. http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4 Frank On 10/25/07, Thomas Singer [EMAIL PROTECTED] wrote: I'm currently trying to update from 1.4beta2 to 1.4beta4 by changing the revision of our project's

Internationalizing Paragraphs w/ Links

2007-10-25 Thread spencer.c
If we have a link that is in the body of a paragraph, what is the best way to internationalize the entire paragraph? As far as I can tell, we would have to define 3 key/value pairs, ie. before.link.text, link.text, after.link.text and define the values for each in the properties file(s). Is

RadioChoice not allow setEscapeModelStrings(false) ?

2007-10-25 Thread mi11h0use
Hi, I'm trying to do something like this: add(new RadioChoice(testid, Arrays .asList(new Boolean[] { new Boolean(true), new Boolean(false) }),

Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
Maybe I'm blind, but I could not find the jars for Wicket 1.3.0beta4 (the version number in the initial posting was wrong), I just could find versions up to 1.2.6: http://repo1.maven.org/maven2/wicket/wicket/ Tom - To

Re: Get libs without installing Maven?

2007-10-25 Thread Eelco Hillenius
On 10/25/07, Thomas Singer [EMAIL PROTECTED] wrote: Maybe I'm blind, but I could not find the jars for Wicket 1.3.0beta4 (the version number in the initial posting was wrong), I just could find versions up to 1.2.6: http://repo1.maven.org/maven2/wicket/wicket/ We changed package names but

Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
The binary distribution seems not to contain the dependent jars, but just the own wicket jars. Here is the list of the lib directory: wicket-1.3.0-beta4.jar wicket-auth-roles-1.3.0-beta4.jar wicket-datetime-1.3.0-beta4.jar wicket-extensions-1.3.0-beta4.jar wicket-guice-1.3.0-beta4.jar

Re: Get libs without installing Maven?

2007-10-25 Thread Thomas Singer
I only can find the wicket jars, but were are the required libraries? Should I pick the out of the pom myself or is there a more user-friendly way? Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: RadioChoice not allow setEscapeModelStrings(false) ?

2007-10-25 Thread Martijn Dashorst
Use the RadioGroup instead. RadioChoice is merely for convenience and quick'n dirty lists of radio buttons. Martijn On 10/25/07, mi11h0use [EMAIL PROTECTED] wrote: Hi, I'm trying to do something like this: add(new RadioChoice(testid, Arrays

Re: Confirmation message after form submit

2007-10-25 Thread Eelco Hillenius
On 10/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote: are you not missing istemporary() { return true; } in there...that would be helpful i would imagine... You're right. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: LoadableDetachableModel and anonymous inner classes - unwanted serialization overhead?

2007-10-25 Thread Eelco Hillenius
Thanks for your reply. In deed, I declared the LoadableDetachableModel inside the IDataProvider. So the bottom line of your post is, that it is serialized anyway altogether? That data provider will be stored as component state of your repeater. Anything on your page will be serialized. We

Re: is it a bug? (using beta 4)

2007-10-25 Thread Al Maw
This should work just fine. What's the URL in your browser's address bar? Wicket will automatically prepend things to make paths relative to the context root. Regards, Al Johan Compagner wrote: filter should be mapped on /* thats why we have the filter. I don't know why the ../ is

Re: is it a bug? (using beta 4)

2007-10-25 Thread Otan
When mapped with /* the URL of the homepage that I see in my browser is http://server/context_path/ But a generated image path, which is wrong, looks like this: ../images/mainmenu-home.jpg which translates to http://server/images/mainmenu-home.jpg The correct path of the image src should be

Re: is it a bug? (using beta 4)

2007-10-25 Thread Otan
And another thing, the problem occurs only on the homepage. On 26/10/2007, Otan [EMAIL PROTECTED] wrote: When mapped with /* the URL of the homepage that I see in my browser is http://server/context_path/ But a generated image path, which is wrong, looks like this: ../images/mainmenu-

Re: is it a bug? (using beta 4)

2007-10-25 Thread Otan
The problem with the extra dot-dot in the image src that arises when the filter is map to /* seems to be fixed when I do this: mountBookmarkablePage(/home, HomePage.class); Now, the URL I see in the browser when I access the homepage is this: http://server/context-path/home instead of

Re: Reload Captcha Image

2007-10-25 Thread Toscano
Thank you!! Finally I just made a submitlink and just make the image refresh in the onsubmit of the form. That worked fine. Thank you for your time and your help! Oskar -- View this message in context: http://www.nabble.com/Reload-Captcha-Image-tf4674760.html#a13419561 Sent from the Wicket -

Changing IDEs to eclipse

2007-10-25 Thread Ballist1c
Hey guys, I have been developing up until now, solely on netbeans and it is really starting to crap itself now. Netbeans did have alot of stuff setup with integrated tomcat which made things conveinient. So ive chosen to move to eclipse, and to jetty webserver and I am having alot of trouble

Re: Changing IDEs to eclipse

2007-10-25 Thread Igor Vaynberg
see instructions for quickstart on wicket.apache.org -igor On 10/25/07, Ballist1c [EMAIL PROTECTED] wrote: Hey guys, I have been developing up until now, solely on netbeans and it is really starting to crap itself now. Netbeans did have alot of stuff setup with integrated tomcat which

Re: Wizard - change the component outlook

2007-10-25 Thread mfs
Questions - 1)How would i pass my new css...don't see any api to do so ? 2)The new css ?, shouldnt it have the same classes defined as expected by the Wizard Panel components ? 3) How would i go about changing the css for the FeedbackPanel? Question 2 applies on it too. Farhan. Eelco

Re: AccessControlException whenstarting Wicket1.3

2007-10-25 Thread Peter Neubauer
Ok, thanks! I tried to insert the permissions into the /etc/tomcat5/policy.d/04webapps.policy file under kubuntu 7.10 but without success. disabling the security in /etc/init.d/tomcat5 solved the symptoms but is of course not optimal. Maybe the mentioned permissions need to be set on system