[Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Ingram Chen
When runtime exception throw, wicket show ExceptionErrorPage.Can I custom this page ? I don't want end user to see internal stack trace..-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Igor Vaynberg
take a look at IApplicationSettings.setIneternalErrorPage()-IgorOn 3/22/06, Ingram Chen [EMAIL PROTECTED] wrote:When runtime exception throw, wicket show ExceptionErrorPage. Can I custom this page ? I don't want end user to see internal stack trace..-- Ingram ChenJava [EMAIL PROTECTED]Institue of

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Dirk Markert
Ingram, try getApplicationSettings().setInternalErrorPage(); Call it in theinit method of your application class. Dirk 2006/3/22, Ingram Chen [EMAIL PROTECTED]: When runtime exception throw, wicket show ExceptionErrorPage.Can I custom this page ? I don't want end user to see internal stack

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Johan Compagner
that doesn't really replace our exception page when in development mode.The best thing to do is implement/override RequestCycle.onRuntimeException()johanOn 3/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: take a look at IApplicationSettings.setIneternalErrorPage()-Igor On 3/22/06, Ingram Chen

Re: [Wicket-user] Switching to https

2006-03-22 Thread Johan Compagner
the only thing i can think of right now is use the ExternalLink to specify the full url where you want to move to johanOn 3/21/06, John Patterson [EMAIL PROTECTED] wrote:Hi, Is there a standard way to handle switching between http and

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Ayodeji Aladejebi
How about how to use ur own Session Timeout Page On 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote: that doesn't really replace our exception page when in development mode.The best thing to do is implement/override RequestCycle.onRuntimeException() johan On 3/22/06, Igor Vaynberg [EMAIL

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Igor Vaynberg
IApplicationSettings.setPageExpiredErrorPage()-IgorOn 3/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:How about how to use ur own Session Timeout Page On 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote: that doesn't really replace our exception page when in development mode.The best

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Ingram Chen
Yeah.. I already tried IApplicationSettings.setIneternalErrorPage(), and still get old exception page. Sounds like I need to try deploy mode again.ThanksOn 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote: that doesn't really replace our exception page when in development mode.The best thing to

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Ingram Chen
I tried, and it works well in deployment mode. thanks a lot.But I think it's weird that it only works in deployment mode, how do I test this in development mode while developing ?On 3/22/06, Ingram Chen [EMAIL PROTECTED] wrote: Yeah.. I already tried IApplicationSettings.setIneternalErrorPage(),

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Johan Compagner
in development mode we have our ExceptionPage so that you can easily debug and see the exception trace. and more info of the pages.The internalerror page is for deployment so that that kind of information is not seen to the public. (that is not something you want) You can specify you own nice

Re: [Wicket-user] Some wicket tag questions

2006-03-22 Thread Johan Compagner
you should not look at the markup exception but the cause of this because i see this line: jteam.wickettest.site.components.EmployeeTree.init(java.lang.String)so something goes wrong in the initialize phase/constructor of youre employeetree component.johan On 3/21/06, Tom van Zummeren [EMAIL

Re: [Wicket-user] wicket-contrib-tinymce bug

2006-03-22 Thread Iulian Costan
fixed, let me know if it works for you. /iulianOn 3/21/06, Joe Toth [EMAIL PROTECTED] wrote: Tried to use wicket-contrib-tinymce expanded in the classpath (notfrom jar), but when it would search for resources it didn't add the folders for the package of the TinyMCEInitializer.class.So I changed

Re: [Wicket-user] Wicket / Databinder issue

2006-03-22 Thread Gwyn Evans
On 21/03/06, Igor Vaynberg [EMAIL PROTECTED] wrote: if you want an example of a wicket+spring+hibernate app look at wicket-phonebook in wicket stuff cvs. i think more people here have experience with that setup so you will be able to find more help. -Igor Just as an aside, it's also at

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Dirk Markert
Ingram, try getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE) in your init method. Dirk 2006/3/22, Ingram Chen [EMAIL PROTECTED]: I tried, and it works well in deployment mode. thanks a lot.But I think it's weird that it only works in deployment

RE: [Wicket-user] Some wicket tag questions

2006-03-22 Thread Tom van Zummeren
I think I know what went wrong, my EmployeeTree doesnt have a EmployeeTree(String id) constructor. (I mean a constructor with only a single argument, the id) If I try it with a Label component it does initialize successfully because label does have a Label(String id) constructor. Tom

[Wicket-user] HTTPS switching

2006-03-22 Thread John Patterson
Hi, Is there a standard way to handle switching between http and https? Thanks, John. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live

Re: [Wicket-user] Switching to https

2006-03-22 Thread John Patterson
OK Thanks. It would get a bit messy to check this for every link ie links on secure pages going back to http also. I can set up redirections in Apache but this requires two requests eg the first http request returns a redirect to the https listener and it is also non portable.

Re: [Wicket-user] Switching to https

2006-03-22 Thread Juergen Donnerstag
I think the last time we discussed that topic the conclusion was that no immediate action is required as most applications which require https tend to have only a very limited number of http pages. Juergen On 3/22/06, John Patterson [EMAIL PROTECTED] wrote: OK Thanks. It would get a bit messy

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That's not the preferred way of working though. If you want to play nice with the framework, you should either make it a resource - imo the most elegant solution, and again, look at wicket-contrib-jasperreports - or a custom request target.

Re: [Wicket-user] Switching to https

2006-03-22 Thread Martijn Dashorst
There is no work planned on such a thing, but you are welcome to provide an implementation :-)As for the external link thing, why don't you create your own 'securelink' component that does this for you.You could go overboard with either having a page implement some ISecuredPage interface, or an

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
On 3/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: why not just push a download request target into the request cycle? it works for 1.2. search this list for excel So if I were to use the request target approach I would do: protected void onSubmit() {

Re: [Wicket-user] Switching to https

2006-03-22 Thread John Patterson
On Wednesday 22 Mar 2006 08:29, Juergen Donnerstag wrote: I think the last time we discussed that topic the conclusion was that no immediate action is required as most applications which require https tend to have only a very limited number of http pages. This doesn't really sound right to

Re: [Wicket-user] Switching to https

2006-03-22 Thread John Patterson
On Wednesday 22 Mar 2006 08:44, Martijn Dashorst wrote: There is no work planned on such a thing, but you are welcome to provide an implementation :-) Cool. Yes I would love to... I am about to go on Safari in Venezeula for three weeks! I recall someone saying a number of months ago that

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Johan Compagner
See DynamiceByteArrayResourceThen you can do the load lazy. Only when the link is clicked.johanOn 3/22/06, Mats Norén [EMAIL PROTECTED] wrote:On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That's not the preferred way of working though. If you want to play nice with the framework, you

Re: [Wicket-user] Switching to https

2006-03-22 Thread Johan Compagner
there only will be 2 scenario's if you want to go from non secure to secure.(or back but then you really have to know that)first again through an external link (or youre own link impl like martijn described) Or have youre own IRequestTarget (wicket 1.2) like: RedirectToSecurePageTarget(Class

[Wicket-user] validation in wicket framework

2006-03-22 Thread ketan gote
hi i am looking for validation of the username wich will take only character's. wating for reply... ketan

Re: [Wicket-user] validation in wicket framework

2006-03-22 Thread Johan Compagner
use a regexp see PatternValidator.johanOn 3/22/06, ketan gote [EMAIL PROTECTED] wrote: hi i am looking for validation of the username wich will take only character's. wating for reply... ketan

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
Sorry, I'm not quite with you. How is the DynamicByteArrayResource called from the internals? On 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote: See DynamiceByteArrayResource Then you can do the load lazy. Only when the link is clicked. johan On 3/22/06, Mats Norén [EMAIL PROTECTED]

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Johan Compagner
just create ResourceLink with a DynamicByteArrayResourceAnd implement getResourceState() and when that is called you do youre loading.johanOn 3/22/06, Mats Norén [EMAIL PROTECTED] wrote: Sorry, I'm not quite with you.How is the DynamicByteArrayResource called from the internals?On 3/22/06, Johan

Re: [Wicket-user] HTTPS switching

2006-03-22 Thread Vincent Jenks
I'm actually dying to know this myself as I'm in the throes of building a shopping cart that will need SSL at some point in the process.Can this in fact be done? Can part of my application somehow reside behind https? I'm sure it's been asked before but I don't see any examples of this

Re: [Wicket-user] HTTPS switching

2006-03-22 Thread Nick Heudecker
This was the subject of a long discussion on IRC. At the time the decision was to do nothing. I've been considering protecting certain pages using mounted URLs and servlet filters, but I haven't gotten past the consideration stage. Eelco and Martijn might be able to weigh in on the details of that

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
Ok, thanks! On 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote: just create ResourceLink with a DynamicByteArrayResource And implement getResourceState() and when that is called you do youre loading. johan On 3/22/06, Mats Norén [EMAIL PROTECTED] wrote: Sorry, I'm not quite with you.

Re: [Wicket-user] HTTPS switching

2006-03-22 Thread tcolar
Tipycally i would leave the application server (tomcat, jetty) alone and run in on port 8080 or whatever then have apache runnin on port 80 and 443. then you configure apache ascially like this: everything on port 80 goes to port 8080, except if it's /cart/* then deny (or redirect to

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Eelco Hillenius
You don't need a PageRequestTarget as the page doesn't add any value here. I would use ResourceStreamRequestTarget and provide your content wrapped in a IResourceStream. Eelco On 3/22/06, Mats Norén [EMAIL PROTECTED] wrote: On 3/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: why not just push

[Wicket-user] Back button, setVisible, isVisible, Submit Button is not Visible

2006-03-22 Thread Robert McClay
I'm writing a simple Upload File/View File/Delete File panel. It has 3 buttons. 1. Upload - Only visible when no file is stored permissions are correct via isVisible() override. 2. View File - Only visible when a file is already stored via isVisible() override. 3. Delete File - Only visible

Re: [Wicket-user] Back button, setVisible, isVisible, Submit Button is not Visible

2006-03-22 Thread Igor Vaynberg
problem with approach like that in this case is that when you go back the upload button should indeed be hidden because youve already uploaded a file. so in your case it would be better to call setvisible isntead of overriding isvisible because your condition does not work well across requests.

[Wicket-user] wicket.markup.html.form.FormComponent and wicket.markup.html.form.Form

2006-03-22 Thread Frank Silbermann
I created a page using a DropDownChoice, overriding the void wantOnSelectionChangedNotifications() to return TRUE. I noticed that it worked, even though I neglected to embed it within an HTML form, adding it simply to the page (and not to a wicket.markup.html.form.Form). That made me

[Wicket-user] Re: Back button, setVisible, isVisible, Submit Button is not Visible

2006-03-22 Thread Robert McClay
Perhaps a flag on the component to specify whether it handles clicks when it is invisible? That would fix the issue and the component would get the click, could check if it whether it is visible / invisible and then act accordingly. I tried turning on versioning and then using setVisible

Re: [Wicket-user] Re: Back button, setVisible, isVisible, Submit Button is not Visible

2006-03-22 Thread Igor Vaynberg
no, letting an event be executed on an invisible component is a security issue.set/getVisible should work with versioning enabled. if you want you can share some code and maybe someone can give you some advice. -IgorOn 3/22/06, Robert McClay [EMAIL PROTECTED] wrote: Perhaps a flag on the component

Re: [Wicket-user] wicket.markup.html.form.FormComponent and wicket.markup.html.form.Form

2006-03-22 Thread Johan Compagner
if you don't sit in a form then the selection change still works in the browser and we just do a get request (location.href)If you are in a form then the forms submit is used.johan On 3/22/06, Frank Silbermann [EMAIL PROTECTED] wrote: I created a page using a DropDownChoice,

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
Even better. Thanks for the tip. There are so many options it's quite easy to get confused :) Mats On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote: You don't need a PageRequestTarget as the page doesn't add any value here. I would use ResourceStreamRequestTarget and provide your content

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Eelco Hillenius
Yeah. Having many options is not always a good thing. Please note that request targets are not specifically meant for day-to-day end user usage. They are meant to more clearly define the request processing, and to have extensibility form a framework's perspective, e.g. to implement new things like

[Wicket-user] Re: Successful CRUD with Wicket: HOW TO

2006-03-22 Thread Nathan Hamblen
(Sorry if this double-posts... listserv seems to have eaten my first msg) Allright, you can consider that problem FIXED. I've has instituted a contingency plan for Databinder 0.4 that doesn't depend on Maven upload requests: http://technically.us/n8/articles/2006/03/22/databinder-0-4-go-n-get-it

Re: [Wicket-user] AJAX dynamic forms and links.

2006-03-22 Thread Igor Vaynberg
this is possible.what you have to do is create a page that has an empty panel at first. then when one of those ajaxified links(AjaxLink or AjaxFallbackLink) is clicked it creates a panel that wraps the proper form, substitutes it with the empty panel and redraws it via ajax (by adding it to the

Re: [Wicket-user] Re: Successful CRUD with Wicket: HOW TO

2006-03-22 Thread Thibaut Colar
Great, perfect timing for me :-) I wanted to start using the wicket 1.2 authentication suffs with databinder. Thanks. Nathan Hamblen wrote: (Sorry if this double-posts... listserv seems to have eaten my first msg) Allright, you can consider that problem FIXED. I've has instituted a

RE: [Wicket-user] AJAX dynamic forms and links.

2006-03-22 Thread WATSON Matthew
Wow fast reply. Great.Thanks for that. Will take a look at the todo code then. Matt -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Igor VaynbergSent: Thursday, 23 March 2006 12:03 PMTo: wicket-user@lists.sourceforge.netSubject: Re:

Re: [Wicket-user] RadioGroup's validation

2006-03-22 Thread Igor Vaynberg
if validation fails call textfield.error(message);that way the feedbackborder will pickup that your textfield is in error-IgorOn 3/22/06, R.A [EMAIL PROTECTED] wrote: I create RadioGroup, including 10 RadioChoice and 1 TextField.I want validate the TextField only when the last

Re: [Wicket-user] RadioGroup's validation

2006-03-22 Thread R.A
Hi Igor, I followed your advice to call textfield.error(message) in onSubmit method, and I succeeded. Thanks a lot!! Thank you, R.A -- View this message in context: http://www.nabble.com/RadioGroup%27s-validation-t1327838.html#a3544987 Sent from the Wicket - User forum at Nabble.com.

[Wicket-user] help

2006-03-22 Thread ketan gote
hi i want to validation of textfield which will take only characters in it eg for name there shouls be only character string. for which i have written TextField txtusername=new TextField(username,Character.class); which only check for single alphabets wating for reply ketan

[Wicket-user] Re: Successful CRUD with Wicket: HOW TO

2006-03-22 Thread Nathan Hamblen
What's in order is for a certain Maven project member to attend to his upload queue. Until he does that, my shiny new 0.4 site would lead people down a path of certain Failed to resolve artifact errors. I'm glad to hear you're considering Databinder for a project. The 0.4 sources and examples

Re: [Wicket-user] help

2006-03-22 Thread Eelco Hillenius
Yeah, so that would be something like: TextField txtusername = new TextField(username); txtusername.add(new PatternValidator([a-zA-Z])); Eelco On 3/22/06, JasonB [EMAIL PROTECTED] wrote: Johan wrote an answer earlier that you should use a regular expression validator. I believe he was

Re: [Wicket-user] help

2006-03-22 Thread Igor Vaynberg
did you mean ([a-zA-Z]*) ? notice the star at the end-IgorOn 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Yeah, so that would be something like: TextField txtusername = new TextField(username);txtusername.add(new PatternValidator([a-zA-Z]));EelcoOn 3/22/06, JasonB [EMAIL PROTECTED] wrote:

Re: [Wicket-user] help

2006-03-22 Thread Eelco Hillenius
Heh. You don't want just one character? :) Eelco On 3/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: did you mean ([a-zA-Z]*) ? notice the star at the end -Igor On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, so that would be something like: TextField txtusername = new

[Wicket-user] possible bug - wicket 1.2 beta2

2006-03-22 Thread Dorel Vaida
Can anyone check if this is a bug the following: label.add(new AttributeModifier(class, true, new Model(newClass))); will not add the class attribute to the label's span, but it will replace it if it's there. --- This SF.Net email is

Re: [Wicket-user] Re: Successful CRUD with Wicket: HOW TO

2006-03-22 Thread Martijn Dashorst
I have been on the waitinglist for the old Wicket releases as well. Could take a couple of days, or sometimes more than a week.Carlos Sanches is usually the guy that takes care of the uploads. I guess they wait for several uploads to process them. Would make it more efficient. And they are quite