Re: URL Help

2009-01-06 Thread Dipu
try getRequestCycle().getRequest().getURL() Regards Dipu On Tue, Jan 6, 2009 at 7:41 AM, Nilesh More nm...@cybage.com wrote: Hi Friends, I want to check the content of the url in my java code. How can I do it? Thanks in advance Nilesh N. More Legal Disclaimer: This

Re: RestartResponseAtInterceptPageException and the query string

2009-01-06 Thread Arie Fishler
Thanks a lot. I will take a look. It seems like for some reason when hitting the intercept page it creates a new sessiontherefore I cannot use the session to store things to achieve the required communication between the calls. Basically I do want to use

HOW TO REDIRECT

2009-01-06 Thread PSkarthic
Hi everybody I have a problem in redirecting to a class(webpage) My Scenario is A login page when user is clicks the login button it will go to authentication page form there (automatically)if he is a valid user he must be directed to success page or to a failure page. How to do this

Re: HOW TO REDIRECT

2009-01-06 Thread Piller Sébastien
Hi, try using redirectToInterceptPage and continueToOriginalDestination instead ( http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/IPageMap.html ) PSkarthic a écrit : Hi everybody I have a problem in redirecting to a class(webpage) My Scenario is A

Re: HOW TO REDIRECT

2009-01-06 Thread PSkarthic
Thanks for your reply redirectToInterceptPage is not working After login button is clicked the control is passed to verify page in that i have code like this if(user.equals(admin) || user.equals(karthic)){ //setRedirect(true);

Re: HOW TO REDIRECT

2009-01-06 Thread Dipu
throw new RestartResponseException(new SuccessPage()); Cheers Dipu On Tue, Jan 6, 2009 at 9:37 AM, PSkarthic kart...@touchpointindia.com wrote: Thanks for your reply redirectToInterceptPage is not working After login button is clicked the control is passed to verify page in that i have code

Re: HOW TO REDIRECT

2009-01-06 Thread PSkarthic
Thanks very much for ur help, its working, but is that a properway to divert to success or failure page depending on conditions or is there any thing like sendRedirect... Thanks karthic -- View this message in context: http://www.nabble.com/HOW-TO-REDIRECT-tp21307007p21307624.html Sent

Help,DownloadLink, when file is not existed, not error message

2009-01-06 Thread wch2001
Dear all, I am doing downloadLink , when the file is existed, it is ok to download it, but when the file is not existed, no any error message No file exist! to popup! According to debug, i can see it already go to the line: target.appendJavascript(alert('No file exist!')); the codes is below,

Re: HOW TO REDIRECT

2009-01-06 Thread PSkarthic
The doubt raised because of the word exception in that command. Once again Thank you very much for your support. Karthic. -- View this message in context: http://www.nabble.com/HOW-TO-REDIRECT-tp21307007p21307822.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: HOW TO REDIRECT

2009-01-06 Thread Dipu
it depends on your usecase, if you want to redirect conditionally that's the way to do it ( as far as i know ) dipu On Tue, Jan 6, 2009 at 9:58 AM, PSkarthic kart...@touchpointindia.com wrote: Thanks very much for ur help, its working, but is that a properway to divert to success or failure

RE: URL Help

2009-01-06 Thread Nilesh More
Hi I used the method but it's giving the url of the component that I am clicking. Actually I wanted to get the content of the main page url Is there any different solution? Nilesh -Original Message- From: Dipu [mailto:dipu@googlemail.com] Sent: Tuesday, January 06, 2009 2:36 PM To:

Re: URL Help

2009-01-06 Thread Dipu
from java doc java.lang.CharSequence urlFor(java.lang.Class pageClass, PageParameters parameters) Returns a bookmarkable URL that references a given page class using a given set of page parameters. java.lang.CharSequence urlFor(IBehavior behaviour, RequestListenerInterface listener)

Re: FormComponent cookie persistent issue

2009-01-06 Thread Serkan Camurcuoglu
Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I uncheck it. Did you check the host, path and the values of the cookies in your browser? Murat Yücel wrote:

Re: Moments of awesome.

2009-01-06 Thread Johan Compagner
think a big part of making it so good was the dutch cultural willingness (even eagerness) to puzzle over things until they make sense (discussion they call it). :)

Re: Bug? The page set by setReponsePage does not process its own response.

2009-01-06 Thread Matej Knopp
Well, page id per pagemap used to be the only option in first 1.3 releases. I don't think we need it now, you can make page id unique per session default. -Matej On Tue, Jan 6, 2009 at 3:32 PM, Johan Compagner jcompag...@gmail.com wrote: This is because of your: getSession().replaceSession();

Re: Bug? The page set by setReponsePage does not process its own response.

2009-01-06 Thread Martin Makundi
Tnx guys..! 2009/1/6 Matej Knopp matej.kn...@gmail.com: Well, page id per pagemap used to be the only option in first 1.3 releases. I don't think we need it now, you can make page id unique per session default. -Matej On Tue, Jan 6, 2009 at 3:32 PM, Johan Compagner jcompag...@gmail.com

Re: Bug? The page set by setReponsePage does not process its own response.

2009-01-06 Thread Johan Compagner
This is because of your: getSession().replaceSession(); call You can change that in 2 ways change the place where you call that so not at the beginning of the onsubmit but completely at the end: // Return onto the same page but disable inputField

Re: Modal window - chagne width and height

2009-01-06 Thread Vitek Tajzich
there is no special code just on ajaxrequesttarget call method appendJavascript() and use the code below. Window will get resized and centered. I have also noticed that If I set width and height to empty strings, window will resize to it's needs :-) V. 2009/1/6 Martin Makundi

Re: How to avoid blank node labels in TreeTable?

2009-01-06 Thread bburton
Did you ever find a solution to this problem? I'm having the same issue, and I was thinking about rewriting TreeTable (which I would really like to avoid if possible). Hannes-15 wrote: Hi all, if text is too long to fit into column width of PropertyTreeColumn, then it gets blanked. This

Redirect to modal window?

2009-01-06 Thread dbuttery
Hi all, I have a modal window which collects user input and then calls an external servlet with that data. The servlet then feeds back the response (varying mime types). My issue is that I want the response from the servlet to appear in its own window. Currently it is replacing the

Re: Wicket: Testing Request URLs

2009-01-06 Thread walnutmon
When you say do any work myself, do you mean to the WicketTester class? I simply want to specify a URL and then use wicket to render the proper page, it's a trivial test of something basic... but I was wondering if there was a way to do it in the mock servlet. Thanks again! igor.vaynberg

how to remove jsessionid parameters in the url at the first time ppl visit the site?

2009-01-06 Thread Quan Zhou
Firstly, i should say i have already read about those past threads which are concerned with the jsessionid appending in url problem. My experiment proved the conclusion: the first time people visit the site, the application server (tomcat) would append the jsessionid into the url no matter whether

Re: how to remove jsessionid parameters in the url at the first time ppl visit the site?

2009-01-06 Thread Johan Compagner
create your own BufferedWebResponse and overwrite this method: public CharSequence encodeURL(CharSequence url) and do nothing, just return the url johan On Tue, Jan 6, 2009 at 18:14, Quan Zhou betoget...@gmail.com wrote: Firstly, i should say i have already read about those past threads

Re: How to avoid blank node labels in TreeTable?

2009-01-06 Thread Matej Knopp
Actually, rewriting the treetable is probably the only solid solution to this problem. Back then it was not possible to replace table rows using ajax thus the layout was constructed using CSS, which unfortunately causes lot of problems. Rewriting the TreeTable with regular table layout should not

Extending to all components

2009-01-06 Thread Dane Laverty
Is there an easy way to add/override a function to all my Wicket classes (panels, pages, forms, etc.)? For example, I have a custom session. Rather than having to cast (MySession)getSession() , I just want getSession() to return a MySession. Two solutions come to mind, but neither seems optimal.

Re: HOW TO REDIRECT

2009-01-06 Thread Jeremy Thomerson
throw a RestartResponseAtInterceptPageException On Tue, Jan 6, 2009 at 4:13 AM, PSkarthic kart...@touchpointindia.comwrote: The doubt raised because of the word exception in that command. Once again Thank you very much for your support. Karthic. -- View this message in context:

Re: Extending to all components

2009-01-06 Thread Scott Swank
We added the following to our Session: public static final MySession get() { return (MySession) Session.get(); } And then we just call MySession.get() instead of calling getSession(). Scott On Tue, Jan 6, 2009 at 9:59 AM, Dane Laverty danelave...@chemeketa.edu

Re: Extending to all components

2009-01-06 Thread Per Newgro
If i'm not completly wrong there is a Session.get(). You could write a Helper which is casting that session instance. So you could use it everywhere you want. SessionConverter.java public static MySession getConverted() { return (MySession) Session.get(); } and in component where you want to

Re: Extending to all components

2009-01-06 Thread James Carman
You don't need a helper if you do what Mr. Swank recommended. With JDK5, you can have covariant return types. So, just set up a new get() method that returns your exact session type. On Tue, Jan 6, 2009 at 1:11 PM, Per Newgro per.new...@gmx.ch wrote: If i'm not completly wrong there is a

Re: Extending to all components

2009-01-06 Thread Scott Swank
Since get() is a static method there is no relationship (i.e. overriding) between MySession.get() and Session.get(). Hence you do not even need Java 5. On Tue, Jan 6, 2009 at 10:25 AM, James Carman jcar...@carmanconsulting.com wrote: You don't need a helper if you do what Mr. Swank

Re: ComponentResolver and CompoundPropertyModels

2009-01-06 Thread Igor Vaynberg
autocomponents are components that only exist during the render phase, thus they are removed after. what you have to do is add a component instead of autoadd. if your model is not being updated set a breakpoint in updatemodel() and see what it is doing, also make sure there are no validation

Multiple Sorting in a DataTable

2009-01-06 Thread schapey
Hi Wicket Users, Has anyone tried to implement multiple sorting in a data table? I was thinking of trying to do something simliar to the filtertoolbar but for sorting. Thanks for any input. Karen -- View this message in context:

Re: Extending to all components

2009-01-06 Thread James Carman
Duh! :) Good point. On Tue, Jan 6, 2009 at 1:40 PM, Scott Swank scott.sw...@gmail.com wrote: Since get() is a static method there is no relationship (i.e. overriding) between MySession.get() and Session.get(). Hence you do not even need Java 5. On Tue, Jan 6, 2009 at 10:25 AM, James

Re: Wizard and redirect to a Page + backbutton

2009-01-06 Thread jorgesantoro
I have the same problem, did you find a solution for it? Thanks Pills wrote: Hello, I've a little problem with wicket. I'm trying to debug the following use case: In a wizard, I sometimes need to redirect the user to a page outside the wizard (that is: quit the wizard). I use the

Re: examples of Wizard and working back button

2009-01-06 Thread jorgesantoro
I have the same problem, did you find a solution for it? Thanks, novotny wrote: Hi, I should have been more clear- I mean an example where the browser back button works like the previous button in the 1-2-3 example. I have a simple wizard already working but if a user is on Step 3 and

where to find SpringComponentInjector class

2009-01-06 Thread rjilani
Hi: can some one tell me which jars holds the class SpringComponentInjector. It doesn't look like the part of the core (I am using netbeans id that has pre-installed wicket jars). I also appreciate if some one tell me the url from where I can download the jar containing SpringComponentInjector.

Re: Wizard and redirect to a Page + backbutton

2009-01-06 Thread Sébastien Piller
Hi, Unfortunately, not really. Now I don't rely on the wizard's events anymore and use a regular link instead, this works better If you find a way to make a clean redirection from inside onActiveStepChanged, I'll highly appreciate it ;) jorgesantoro wrote: I have the same problem, did

addComponentInstantiationListener method

2009-01-06 Thread rjilani
Hi: I am using the following code from wicket wiki to add a Springcomponent injector to addComponentInstantiationListener to hook spring application context, but the code is not compiling. addComponentInstantiationListener(new SpringComponentInjector(this, ctx)); When I dug further I found

Re: How to avoid blank node labels in TreeTable?

2009-01-06 Thread bburton
Matej, I was really hoping do avoid doing that if possible, as I'm not (yet) that comfortable with Wicket. If I were going to do this, would it be as simple as changing the tags to td in the response.write calls of onComponentTagBody and wrapping everything in tr/table where appropriate? I'd

Re: XSLT in a Panel

2009-01-06 Thread jeredm
I believe that is what I am looking for; however, I am not able to get the objects to work. Are there any Hello World examples of those objects in action? igor.vaynberg wrote: see XsltTransformer and XsltTransformerBehavior -igor On Mon, Jan 5, 2009 at 4:08 PM, jeredm

Re: XSLT in a Panel

2009-01-06 Thread Jawad Kakar
You can use xmlbean to transfer your xml to java objects and then create the report, just an idea ;) Thanks Jawad --- On Tue, 1/6/09, jeredm jer...@maplewoodsoftware.com wrote: From: jeredm jer...@maplewoodsoftware.com Subject: Re: XSLT in a Panel To: users@wicket.apache.org Date:

Re: examples of Wizard and working back button

2009-01-06 Thread novotny
No, still looking :-( jorgesantoro wrote: I have the same problem, did you find a solution for it? Thanks, novotny wrote: Hi, I should have been more clear- I mean an example where the browser back button works like the previous button in the 1-2-3 example. I have a simple

using AutoCompleteTextField with wicket 1.4-rc1

2009-01-06 Thread Jason Novotny
Hi, I saw the example of the autocomplete textfield at http://www.wicket-library.com/wicket-examples/ajax/autocomplete.1 and I'm trying to use it. Problem is it doesn't look like it responds at all when I start typing in the textfield. I see that the rendered input field does not have a

DataView vs ListView

2009-01-06 Thread Dane Laverty
I've been trying to understand when DataView would come in handy. I have a SQL database table with about 1,000,000 rows. The user can enter a search string, and my application returns a list of all the rows that match the search string. This list might be over 10,000 rows. At first I thought

Re: RestartResponseAtInterceptPageException and the query string

2009-01-06 Thread David Leangen
A new session should not be created. Check the session ID via Wicket. If it changes, you should probably check the headers for your request/responses to figure out where it changes, and maybe that will allow you to understand why. On Tue, 2009-01-06 at 11:14 +0200, Arie Fishler wrote: Thanks

Re: DataView vs ListView

2009-01-06 Thread Jeremy Thomerson
This is totally dependent on your implementation. From what you write, I gather that your expense is doing the search - therefore querying the search for every page might be very expensive. For me, I use Lucene to do the search, and then only load the exact rows I want, so it is much more

anyone has some suggestion? thanks a lot

2009-01-06 Thread wch2001
-- View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21323395.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: anyone has some suggestion? thanks a lot

2009-01-06 Thread John Krasnay
Buy low, sell high? jk On Tue, Jan 06, 2009 at 05:55:08PM -0800, wch2001 wrote: -- View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21323395.html Sent from the Wicket - User mailing list archive at

Re: how to remove jsessionid parameters in the url at the first time ppl visit the site?

2009-01-06 Thread Quan Zhou
Thanks for your reply. This morning I create a new class extends BufferedWebResponse and override encodeURL method as you mentioned. The result remains the same. I do print out the origin url passing in , It has already contains the substring of ;jsessionid=, so it won't help if I just

Re: how to remove jsessionid parameters in the url at the first time ppl visit the site?

2009-01-06 Thread Quan Zhou
I tried to override void redirect(String url) method, and also strip out the jsessionid in it. My problem solved. But I'm not sure whether it would do something harmful to performance or other functions. I would let you know after my fully test. Thank you Johan. It's so kind of you! On Wed, Jan

Re: anyone has some suggestion? thanks a lot

2009-01-06 Thread Jeremy Thomerson
I always found the suggestion don't eat yellow snow to hold true. Any specific topic you were thinking of? :) On Tue, Jan 6, 2009 at 7:59 PM, John Krasnay j...@krasnay.ca wrote: Buy low, sell high? jk On Tue, Jan 06, 2009 at 05:55:08PM -0800, wch2001 wrote: -- View this message in

sorry, what do u mean for that?

2009-01-06 Thread wch2001
-- View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: sorry, what do u mean for that?

2009-01-06 Thread John Krasnay
It was a bad joke. You asked for suggestions but didn't explain what your problem was. jk On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote: -- View this message in context:

Re: sorry, what do u mean for that?

2009-01-06 Thread Igor Vaynberg
i dont think it was that bad. -igor On Tue, Jan 6, 2009 at 9:21 PM, John Krasnay j...@krasnay.ca wrote: It was a bad joke. You asked for suggestions but didn't explain what your problem was. jk On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote: -- View this message in context:

Re: anyone has some suggestion? thanks a lot

2009-01-06 Thread reiern70
The first time I saw snow I was 29 years old... So, I was implicitly following your suggestion most of my life:-). I always found this answer/suggestion, given by Elvis Presley, rather interesting: “Why buy a cow when you can get milk through a fence?” Jeremy Thomerson-5 wrote: I always

Re: sorry, what do u mean for that?

2009-01-06 Thread wch2001
My question is I am doing downloadLink , when the file is existed, it is ok to download it, but when the file is not existed, no any error message No file exist! to popup! According to debug, i can see it already go to the line: target.appendJavascript(alert('No file exist!')); John

Re: sorry, what do u mean for that?

2009-01-06 Thread Martin Makundi
Yellow snow should do it... 2009/1/7 wch2001 wch2...@hotmail.com: My question is I am doing downloadLink , when the file is existed, it is ok to download it, but when the file is not existed, no any error message No file exist! to popup! According to debug, i can see it already go to the

Re: sorry, what do u mean for that?

2009-01-06 Thread Jeremy Thomerson
Well, interestingly enough, I still fail to find a question in your question. Maybe a little more code and an accurate description of your problem would help us give you a more sane answer, which we'd happily do. On Wed, Jan 7, 2009 at 12:19 AM, wch2001 wch2...@hotmail.com wrote: My question

Re: sorry, what do u mean for that?

2009-01-06 Thread wch2001
I use DownloadLink, when file is not existed, there is not any info message. how to solve it? thanks a lot Jeremy Thomerson-5 wrote: Well, interestingly enough, I still fail to find a question in your question. Maybe a little more code and an accurate description of your problem would

Re: sorry, what do u mean for that?

2009-01-06 Thread wch2001
I use DownloadLink, when file is not existed, there is not any info message. how to solve it? I want to show some message like No file finds when the file is not existed thanks a lot Jeremy Thomerson-5 wrote: Well, interestingly enough, I still fail to find a question in your

Re: sorry, what do u mean for that?

2009-01-06 Thread Martin Makundi
Maybe try asking the question in your native language? ** Martin 2009/1/7 wch2001 wch2...@hotmail.com: I use DownloadLink, when file is not existed, there is not any info message. how to solve it? I want to show some message like No file finds when the file is not existed thanks a

Re: sorry, what do u mean for that?

2009-01-06 Thread Jeremy Thomerson
Roll your own link: LinkFile downloadLink = new LinkFile(yourID, yourModelThatReturnsAFile) { private static final long serialVersionUID = 1L; @Override public void onClick() { File file = getModelObject(); if

Re: sorry, what do u mean for that?

2009-01-06 Thread wch2001
Thanks , Jeremy, I tried to use AjaxSubmitLink , to @Override protected void onSubmit(AjaxRequestTarget target, Form form) { final File f1 = new File(path.trim() + / + fname); if (f1.exists()) { final String fn =