Re: Twenty Six Wicket Tricks

2009-07-29 Thread okrohne
Hi, +1 yes, of course I will buy that book. Oliver Jonathan Locke wrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called

RE: Thanks Wicket-Team!

2009-07-29 Thread okrohne
Hi José just me as developer and my co-founder who did the design. Wicket has quite a high learning curve but after a while one can be so productive that is makes just fun :) Thanks, Oliver José Antonio Matute wrote: Wow Only four months? How many developers? I'm very impressed

TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
Hi everyone, I have some questions regarding TextTemplateHeaderContributor. I can use it properly but I want to use it as a referenced script rather than something that is included in the html page. What i mean is i don't want to see script lang = javascript type = text/javascript

RE: TextTemplateHeaderContributor Questions

2009-07-29 Thread Frank Klein Koerkamp
Hi, To do this use. add(HeaderContributor.forJavaScript(Clazz.class, path from class to file example: js\helloworld.js)); This is for 1.3.5. Kind Regard, Frank -Original Message- From: Carlo Camerino [mailto:carlo.camer...@gmail.com] Sent: Wednesday, July 29, 2009 9:08 AM To:

Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
Hello, I've recently started working with Wicket, so a lot of things are still unknown for me. For example, right now I have a tabbed panel with two tabs. In the begining, I write setSelectedTab(1), so that the first tab is the default. This works ok. However, I have an AjaxFallbackLink on

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Martin Makundi
Duh.. I am not sure but I guess you must create a mechanism... for example ajax button opens page with such parameter that the tab selects tab 0. You need to build that logic into tabbedpanel when it is being rendered... That's what we did. I am not sure if it is possible to call setSelectedTab

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
I really hope that I don't have to write ?wicket:interface=:6:innertabs:tabs-container:tabs:0:link:8:ILinkListener:: into the code :( Martin Makundi wrote: Duh.. I am not sure but I guess you must create a mechanism... for example ajax button opens page with such parameter that the tab

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Martin Makundi
Nono... just look at the source code of the link. ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si: I really hope that I don't have to write ?wicket:interface=:6:innertabs:tabs-container:tabs:0:link:8:ILinkListener:: into the code :( Martin Makundi wrote: Duh.. I am not sure but I guess

Re: Resource without sessionId

2009-07-29 Thread Gatos
help anyone? :P On Tue, Jul 28, 2009 at 10:16 AM, Gatos ega...@gmail.com wrote: When I try to request a resource using url http://domain.com/resource.csv then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad and all generated links it csv file with 'jsessionid' parameter.

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
This is what the link does in Wicket's source code: new Link(linkId) { private static final long serialVersionUID = 1L; @Override public void onClick() { setSelectedTab(index); // - } }; This is my code: /** Click on

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
This is what the link does in Wicket's source code: new Link(linkId) { private static final long serialVersionUID = 1L; @Override public void onClick() { setSelectedTab(index); // - } }; This is my code: /** Click on

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Martin Makundi
Ah.. do you repaint the page after your ajax button call? ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si: This is what the link does in Wicket's source code: new Link(linkId) {           private static final long serialVersionUID = 1L;           @Override           public void onClick() {

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Linda van der Pal
Try adding the following line to that delteBtnClick method (as the last line): target.addComponent(tabPanel); Linda Gajo Csaba wrote: This is what the link does in Wicket's source code: new Link(linkId) { private static final long serialVersionUID = 1L; @Override

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
Hmm there's something very wrong here... I try to refresh the page like this: setResponsePage(getPage()); When this is the only action, the current page is refreshed. When I write setSelectedTab(0) above it, I get an error. 10:42:27 ERROR [RequestCycle] - No Page found for component

Re: intercomponent communications

2009-07-29 Thread Marcin Palka
That's quite interesting stuff. Could you contribute your code to the wicketsuff (e.g. create a new wicketstuff project) ? cheers, Marcin Vladimir K wrote: I don't see much buzz about this topic here, just a request for the trick for the forthcoming Johnatan Locke book. So it seems for

Fancy URL

2009-07-29 Thread uud ashr
Hi all, Need help here. What is the best way or how can I mount this kind of URL? *http://localhost/app/blog/myblog* - it go to Blog.class *http://localhost/app/blog/myblog/201* - go to BlogDetails.class which open blog entry with ID 201 *http://localhost/app/blog/myblog/category* - go to

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Martin Makundi
1. You can fix linda's suggestion by calling setOutputMarkupId(true) on your tabbedpanel. 2. The reason for: 10:42:27 ERROR [RequestCycle] - No Page found for component [MarkupContainer [Component id = panel]] java.lang.IllegalStateException: No Page found for component [MarkupContainer

FW: servlet request header information

2009-07-29 Thread Mihai Toma
Hi, I want to get some information from request header using something like the code bellow but for my requests I receive null. HttpServletRequest request = ((ServletWebRequest) getRequest()) .getHttpServletRequest();

Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
hmm, ya but how do i use texttemplateheadercontributor together with it? Thanks On Wed, Jul 29, 2009 at 3:12 PM, Frank Klein Koerkamp fkleinkoerk...@educator.eu wrote: Hi, To do this use. add(HeaderContributor.forJavaScript(Clazz.class, path from class to file example:

Re: FW: servlet request header information

2009-07-29 Thread Martin Makundi
Some proxies can be configured to forward the real client address: - Apache ProxyPreserveHost Directive - Description: Use incoming Host HTTP request header for proxy request - Syntax: ProxyPreserveHost On|Off - Default: ProxyPreserveHost Off - Context: server config,

Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
hmm, ya but how do i use texttemplateheadercontributor together with it? Thanks On Wed, Jul 29, 2009 at 3:12 PM, Frank Klein Koerkamp fkleinkoerk...@educator.eu wrote: Hi, To do this use. add(HeaderContributor.forJavaScript(Clazz.class, path from class to file example:

update quickstart page

2009-07-29 Thread Maarten Bosteels
Hello, Could someone update http://wicket.apache.org/quickstart.html and add 1.4.0 to the dropdown box ? The 1.4-RC1 and milestones can probably be removed from the list. I would also suggest to use mvn archetype:generate instead of archetype:create Thanks Maarten PS: I tried to do the

How to use Session.replaceSession() ??

2009-07-29 Thread Matthias Keller
Hi I'm writing our custom internal error handler which is supposed to terminate the current session and create a new one (in order to pass over the locale to the new session). I've stumbled upon the Session.replaceSession() method which, according to the javadoc, should just exactly do

RE: FW: servlet request header information

2009-07-29 Thread Mihai Toma
Thanks, but we are using here an OC4J server so we can’t add Apache ProxyPreserveHost Directive. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Wednesday, July 29, 2009 12:59 PM To: users@wicket.apache.org Subject: Re: FW: servlet request

Re: FW: servlet request header information

2009-07-29 Thread Martin Makundi
Well.. similar options you can find in OC4J proxy too. Or else you will not get the client ip (it is not possible to get it if the proxy does not deliberately pass it). ** Martin 2009/7/29 Mihai Toma mihai.t...@asf.ro: Thanks, but we are using here an OC4J server so we can’t add Apache

Re: update quickstart page

2009-07-29 Thread Martijn Dashorst
1.4.0 is not yet officially released. We take care of that once we have everything in place. And yes, the official documentation site is committers only. Martijn On Wed, Jul 29, 2009 at 12:16 PM, Maarten Bosteelsmbosteels@gmail.com wrote: Hello, Could someone update  

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
Thanks Martin, it finally works! :) Martin Makundi wrote: 1. You can fix linda's suggestion by calling setOutputMarkupId(true) on your tabbedpanel. 2. The reason for: 10:42:27 ERROR [RequestCycle] - No Page found for component [MarkupContainer [Component id = panel]]

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Martin Makundi
Good. Finally I said something useful :) ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si: Thanks Martin, it finally works! :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

RE: TextTemplateHeaderContributor Questions

2009-07-29 Thread Frank Klein Koerkamp
As far as I know this is not possible. Regards -Original Message- From: Carlo Camerino [mailto:carlo.camer...@gmail.com] Sent: Wednesday, July 29, 2009 12:04 PM To: users@wicket.apache.org Subject: Re: TextTemplateHeaderContributor Questions hmm, ya but how do i use

Re: How to use Session.replaceSession() ??

2009-07-29 Thread Erik van Oosten
Try this in a method of your WebSession subclass: ((WebRequest) RequestCycle.get().getRequest()).getHttpServletRequest().getSession().invalidate(); // Bind forces a connect of the current Wicket session to the new HTTP session. bind(); Regards, Erik. Matthias Keller

Re: How to use Session.replaceSession() ??

2009-07-29 Thread Martin Makundi
This is one of the nasty parts of wicket.. very difficult to get rid of a session. This is what I have come up with: public static void logout(RequestCycle requestCycle, Request request) { // flush session Session.unset(); TakpApplication application = TakpApplication.get();

Re: Google Analytics and AJAX

2009-07-29 Thread Rodolfo Hansen
I have a couple of behaviors I wrote somewhere.. Don't think they're worth writing a project though... On Wed, Jul 29, 2009 at 12:15 AM, John Armstrong siber...@gmail.com wrote: Is anyone doing this: http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519 If so can you

Re: Fancy URL

2009-07-29 Thread Mathias Nilsson
take a look at HybridUrlCodingStrategy -- View this message in context: http://www.nabble.com/Fancy-URL-tp24715302p24720044.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

RE: TextTemplateHeaderContributor Questions

2009-07-29 Thread Mathias Nilsson
have you looked at the java doc? There should be a forjavascript method that takes both a class and a TextTemplate as parameter -- View this message in context: http://www.nabble.com/TextTemplateHeaderContributor-Questions-tp24713664p24720298.html Sent from the Wicket - User mailing list

Re: Resource without sessionId

2009-07-29 Thread Igor Vaynberg
doesnt look like that url is even handled by wicket -igor On Tue, Jul 28, 2009 at 12:16 AM, Gatosega...@gmail.com wrote: When I try to request a resource using url http://domain.com/resource.csv then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad and all generated

AjaxEditableLabel doesn't work in IE7

2009-07-29 Thread Vytautas Čivilis
Hi. I'm testing AjaxEditableLabel as well as AjaxEditableMultiLineLabel using wicket rc7 now, but the same problem initially occurred with rc3. Mysteriously, the ajax call isn't working with IE7, although it's working with IE6, firefox etc. Is it possible this is due to crippled IE7

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Igor Vaynberg
of course there is no reason to use an ajax link if all you are going to do is repaint the entire page anyways... also code like this: setresponsepage(getpage()) is always suspect. by default wicket repaints the same page so there is no need to call this. when inside ajax you should add

Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Carlo Camerino
can't seem to find one in the javadocs, hmmm, i guess it'ss better to put in html so that if values change, the javascript won't be cached. i don't know if its the reason for this. On Wed, Jul 29, 2009 at 10:40 PM, Mathias Nilsson wicket.program...@gmail.com wrote: have you looked at the

Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Mathias Nilsson
Which version of Wicket are you using? google for TextTemplateHeaderContributor wicket 1.4 ( or the version you are using ) and you will see the methods you can use. -- View this message in context: http://www.nabble.com/TextTemplateHeaderContributor-Questions-tp24713664p24723507.html Sent

Re: AjaxEditableLabel doesn't work in IE7

2009-07-29 Thread Mathias Nilsson
What about the wicket examples. Does this work for you? http://www.wicket-library.com/wicket-examples/ajax/editable-label http://www.wicket-library.com/wicket-examples/ajax/editable-label I've tried it in IE7 and it works fine. -- View this message in context:

Re: AjaxEditableLabel doesn't work in IE7

2009-07-29 Thread ivilis vytautas.civi...@gmail.com
good news, it doesn't. thanks a lot Mathias :D cvl Mathias Nilsson wrote: What about the wicket examples. Does this work for you? http://www.wicket-library.com/wicket-examples/ajax/editable-label http://www.wicket-library.com/wicket-examples/ajax/editable-label I've tried it in IE7 and

Re: Twenty Six Wicket Tricks

2009-07-29 Thread Ralf Eichinger
Hi Jonathan, Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I would prefer to see - Javascript component integration: especially YUI split, resizable

Re: Twenty Six Wicket Tricks

2009-07-29 Thread Vladimir K
Personally I would embed YUI splitter and jQuery layout only if their state could survive page refresh. It does not seem they are capable for now. AFAIK it is possible to use coockies to save the state of splitter or docked panel. Ralf Eichinger wrote: I would prefer to see - Javascript

currency symbol in windows and unix different for a label model

2009-07-29 Thread tubin gen
I have a Label new Label(recommendedAmt,NumberFormat.getCurrencyInstance().format(stgFinding.getFindingAmt()==null ? new BigDecimal(0): stgFinding.getFindingAmt())); this works fine but when deployed in windows I get the label as $0.00 and when deployed in unix i Get this as ¤0.00 and I

Re: AW: SSL - ajax login

2009-07-29 Thread Andreas Petersson
according to some, it has to do with non-port 80 requests appearing more suspicous that port-80, and just in combination with firefox = 3.0. did you try deploying your site to http://localhost:80 and https://localhost:443 ? this worked for me. firefox 3.5 did not complain about port 8080/8443

Re: Thanks Wicket-Team!

2009-07-29 Thread Jeremy Thomerson
I'd be interested in knowing from your viewpoint what parts had a high learning curve? And what background are you coming from (that may effect your individual curve)? In my experience, Wicket has a MUCH lower learning curve than Spring Web Flow and Tapestry (any incarnation). So, as someone

WicketNotSerializableException

2009-07-29 Thread David Brown
Hello, I have a small show-stopper with a WicketTester testcase and a Wicket Page. The Wicket Page is a concrete Class extending WebPage. I am calling a simple private method: init() that is nested within the Page constructor. Inside the init() method I have an anonymous inner class constructed

Re: Thanks Wicket-Team!

2009-07-29 Thread Erik Post
Hi Jeremy, Just to weigh in on this, I personally think that working with JPA entity managers/Hibernate sessions could do with some clarification beyond just use Spring. There are a number of quickstart type projects out there, but they all seem to revolve around using Spring, whereas I would

Re: Thanks Wicket-Team!

2009-07-29 Thread Dane Laverty
Erik, I'd certainly be happy for you to do that :) On Wed, Jul 29, 2009 at 3:38 PM, Erik Post eriksen...@gmail.com wrote: Hi Jeremy, Just to weigh in on this, I personally think that working with JPA entity managers/Hibernate sessions could do with some clarification beyond just use Spring.

Re: WicketNotSerializableException

2009-07-29 Thread Jeremy Thomerson
Can you show the code? When you create an anonymous inner class, it gets references to variables that are outside of the declaration. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jul 29, 2009 at 5:46 PM, David Browndbr...@sexingtechnologies.com wrote: Hello, I have a small

Re: WicketNotSerializableException

2009-07-29 Thread David Brown
Hello Jeremy, thanks for the reply. Please find the requested WebPage included below. At the cost of looking somewhat contrived I had to edit to keep the Lawyers happy. Yes, you're right (again), there are plenty of references outside the declaration but those also got: implements Serializable

Re: Thanks Wicket-Team!

2009-07-29 Thread Alan Garfield
On Thu, 2009-07-30 at 00:38 +0200, Erik Post wrote: Having typed all of that, maybe I should just write a tutorial myself... Oh well, my 2c. +1 for that! I'd love to see an more balanced reasoning than the obvious just use spring too. More JPA/Hibernate/JavaEE integration documentation would

reloading DropDownChoice choices

2009-07-29 Thread Troy Cauble
I have the following Page Form DDC TextFields Buttons The DDC has a LoadableDetachableModel with a hibernate call for the *choices* model and new Model() for the DDC model. Changing the DDC selection, changes the TextFields appropriately. But I have a Button and a form submit