Re: Wicket in Php

2009-05-20 Thread Martin Grigorov
Hi Ajayi, Take a look at http://www.caucho.com/ Their web container (Resin) has an addon for PHP (Quercus). I have never use them but maybe you could mix the both apps ;-) El mié, 20-05-2009 a las 16:39 +0100, Ajayi Yinka escribió: > Hi, > > Can anyone give me an insight on how I can integrate

Re: Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread nino martinez wael
Ahh interesting thanks for telling 2009/5/21 John Patterson : > > I just tried it out on 1.4 with no problems.  It took about 2 minutes to edit > the source - mainly by changing getModel() to getDefaultModel() etc > > > Dan Syrstad-2 wrote: >> >> I think Daniel was going to start work on the Wicke

Re: Wicket meeting in Amsterdam?

2009-05-20 Thread nino martinez wael
hehe, not likely :) Our education budget are pending, and I calculated with one trip to either london or amsterdam.. 2009/5/20 Jeremy Thomerson : > Me too if Nino's boss is handing out airline tickets.  :) > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Wed, May 20, 2009 at 3

Re: Tools for Managing a Wicket Project

2009-05-20 Thread Vladimir K
I installed it on MyEclipse I didn't find how to format the text. Does it capable to format text better than WTP does? Linkan wrote: > > We use Aptana plugin for eclipse as html editor. If you dont install the > full suit its free. > > //Swanthe > > Eduardo Nunes wrote: >> I have just one pr

fragment markup resolution

2009-05-20 Thread Joe Fawzy
hi alli have several pages which have a lot of fragments , this works fine when i subclassed this page class , i may change only one fragment or even no one at all but override a method, yet i have to duplicate all the markup for all the fragments even if they are just a clones of those in the bse

Re: Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread John Patterson
I just tried it out on 1.4 with no problems. It took about 2 minutes to edit the source - mainly by changing getModel() to getDefaultModel() etc Dan Syrstad-2 wrote: > > I think Daniel was going to start work on the Wicket 1.4 migration on the > trunk sometime in the near future. Currently the

Re: Example of ModalWindow misleading

2009-05-20 Thread Matej Knopp
I think modal window example could be fixed by using getPageReference() to pass page reference between pages instead of page instance. -Matej On Wed, May 20, 2009 at 10:29 PM, Martin Makundi wrote: >> http://www.wicket-library.com/wicket-examples/ajax/modal-window.1 is >> pretty misleading : pas

Re: Wicket 1.4m3 ModalWindow close problem in Opera

2009-05-20 Thread Stefan Simik
I have the same problem with the latest Opera 9.64. FakeBoy wrote: > > Hi, > I would like to ask you about my problem with modal modal window in Opera. > When i close modal window everything works good in java (all listeners ale > correctly called). But in browser window i still see some parts

Re: Wicket meeting in Amsterdam?

2009-05-20 Thread Jeremy Thomerson
Me too if Nino's boss is handing out airline tickets. :) -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 20, 2009 at 3:18 PM, nino martinez wael wrote: > Although not an amsterdammer, I might be interested (if I get a budget > approval from my boss).. >

Re: Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread Dan Syrstad
I think Daniel was going to start work on the Wicket 1.4 migration on the trunk sometime in the near future. Currently the trunk supports 1.3.5. -Dan On Wed, May 20, 2009 at 3:20 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Are there a trunk or something.. I'd really like to t

Re: Example of ModalWindow misleading

2009-05-20 Thread Martin Makundi
> http://www.wicket-library.com/wicket-examples/ajax/modal-window.1 is > pretty misleading : passing components between components/page is > quite broken as can be seen in the past discussion on the mailing list > (serialization issue can arise and makes both sides using different > references of t

Re: Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread nino martinez wael
Are there a trunk or something.. I'd really like to try it out. But im not going back to 1.3 todo it :) 2009/5/20 Daniel Toffetti : > > danisevsky danisevsky gmail.com> writes: > >> >> Hi >> >> I wanted to try Wicket Web Beans 1.1 upload example but I get the following >> exception >> >> . >>

Re: Wicket meeting in Amsterdam?

2009-05-20 Thread nino martinez wael
Although not an amsterdammer, I might be interested (if I get a budget approval from my boss).. 2009/5/20 francisco treacy : > Hi Linda, > > I am interested, whatever the nature of the event is (sessions, code > reviews, social, etc). > > There's an existing wiki page but apparently this was lined

RE: Empty response on AJAX request when the session has timed out

2009-05-20 Thread Joel Barciauskas
Upgrading to 1.3.6 made this work properly when I'm testing it with a real web server, e.g. when I perform the AJAX request, I am redirected to the PageExpiredErrorPage. However, I am still getting strange results when using WicketTester. For instance, I have the following test...

Re: Wicket meeting in Amsterdam?

2009-05-20 Thread francisco treacy
Hi Linda, I am interested, whatever the nature of the event is (sessions, code reviews, social, etc). There's an existing wiki page but apparently this was lined up only for the meeting during the ApacheCon: http://cwiki.apache.org/WICKET/wicket-community-meetups-amsterdam.html Any other Amster

Re: Wicket in Php

2009-05-20 Thread Jeremy Thomerson
Not impossible. But you really need a reason for taking on such a big project. I've done integration between disparate systems, for example, between a ColdFusion application and a Tapestry application. But they are difficult and time consuming. You should not take on such a project just for "oh,

Re: Wicket in Php

2009-05-20 Thread James Carman
I don't think they said it's impossible, but it's definitely impractical. On Wed, May 20, 2009 at 3:12 PM, Paolo Di Tommaso wrote: > In other words .. impossible > > -- paolo > > On Wed, May 20, 2009 at 6:24 PM, Jeremy Thomerson > wrote: > >> That's for you to decide.  Typically it involves some

Re: Wicket in Php

2009-05-20 Thread Paolo Di Tommaso
In other words .. impossible -- paolo On Wed, May 20, 2009 at 6:24 PM, Jeremy Thomerson wrote: > That's for you to decide. Typically it involves some kind of jump > page between the two applications that once you are signed in, it > sends the user to a page in the other app with a key (perhaps

Re: Separating Development and Deployment

2009-05-20 Thread Dane Laverty
Thanks for piping in, Martijn. I should have clarified, my deployment and development environments use different databases. I'm storing the database connection information inside of the web.xml also, so I need to be able to switch those as well as the Wicket configuration depending on the environme

Re: Separating Development and Deployment

2009-05-20 Thread Martijn Dashorst
Set a system property in your server config or startup script that tells wicket it's running in deployment mode. -Dwicket.configuration=deployment is all there's to it. Martijn On Wed, May 20, 2009 at 6:40 PM, Dane Laverty wrote: > I've got my project set up to deploy with Maven's Tomcat plugin

Re: Separating Development and Deployment

2009-05-20 Thread Clint Popetz
The way I solve that locally (and it may not be a best practice, but it works, eh?) is to use m2eclipse, so that mvn filtering happens incrementally as I change things in eclipse. I also set up maven to copy my src/main/webapp directory into target/test-classes, i.e.: false

Re: Separating Development and Deployment

2009-05-20 Thread James Carman
On Wed, May 20, 2009 at 2:35 PM, Dane Laverty wrote: > Clint - I've run into one (hopefully minor) hitch with the process. The > filtering works, but only after I've used Maven to deploy the project. When > I'm developing, however, I just run the project on the Jetty server that > comes with the Q

Re: Separating Development and Deployment

2009-05-20 Thread Dane Laverty
Clint - I've run into one (hopefully minor) hitch with the process. The filtering works, but only after I've used Maven to deploy the project. When I'm developing, however, I just run the project on the Jetty server that comes with the Quickstart. Of course, that means that the ${} variables are tr

Re: Illegal State Exception on DefaultTeeModel.removeNodeFromParent

2009-05-20 Thread skatz
I posted a bug (WICKET-2178) with a test case/source code. The last action I saw on it was it was assigned to Matej Knopp back in April. I tested the same code against the 1.4 code and it seemed to work. Leena wrote: > > Any resolution on this? Or may be some workaround? I am facing a similar

Re: Separating Development and Deployment

2009-05-20 Thread James Carman
Check out the way I did it in my wicket-advanced example application: http://svn.carmanconsulting.com/public/wicket-advanced/trunk I did a combination of maven profiles and Spring's PropertyPlaceholderConfigurer. If you're not using Spring, it won't help, but if you are, it might be interesting

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
I'll look into it, it sounds good, thank you! Best regards, Kent On Wed, May 20, 2009 at 7:31 PM, Igor Vaynberg wrote: > mount your page - that way you will always know what the url will be > and there is no need to have it constructed at runtime by wicket. > > -igor > > On Wed, May 20, 2009 at

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
On Wed, May 20, 2009 at 7:21 PM, Clint Popetz wrote: > If you need the url creation to happen in the tx and you can't > programatically start the tx (say with JTA's UserTransaction API) > before invoking your bean, you'll have to pass your component  or the > RequestCycle (or an adaptor for either

Re: Separating Development and Deployment

2009-05-20 Thread Dane Laverty
Awesome, that's exactly what I was looking for. Thanks! On Wed, May 20, 2009 at 9:59 AM, Clint Popetz wrote: > I recommend using ${} variables in web.xml and resource filtering, as > you mentioned, but the way to avoid changing them all the time in > pom.xml is to have different maven profiles

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Igor Vaynberg
mount your page - that way you will always know what the url will be and there is no need to have it constructed at runtime by wicket. -igor On Wed, May 20, 2009 at 10:10 AM, Kent Larsson wrote: > I have a follow up question, a harder one. > > I want to send the mail from a Spring Bean using the

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Clint Popetz
If you need the url creation to happen in the tx and you can't programatically start the tx (say with JTA's UserTransaction API) before invoking your bean, you'll have to pass your component or the RequestCycle (or an adaptor for either) to your spring bean. Out of curiousity, why would you need

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
I have a follow up question, a harder one. I want to send the mail from a Spring Bean using the Spring Framework. The Spring Beans mark my transaction boundary. When I call a method in a Spring bean a transaction is started, and when the method returns the transaction is commited. Inside my Wicke

Re: Separating Development and Deployment

2009-05-20 Thread Clint Popetz
I recommend using ${} variables in web.xml and resource filtering, as you mentioned, but the way to avoid changing them all the time in pom.xml is to have different maven profiles that set them differently in your pom. It is true that you'll have to do things like -PtomcatDeployment when running

Re: Login page expired

2009-05-20 Thread Neil Curzon
Hi Jeremy, Thanks for your reply. Adding a session.bind() solved the issue. Neil On Wed, May 20, 2009 at 12:03 PM, Jeremy Thomerson < jer...@wickettraining.com> wrote: > If you're in the stateless form's onsubmit and you redirect to a > stateless page, you may need to call session.bind so that

Separating Development and Deployment

2009-05-20 Thread Dane Laverty
I've got my project set up to deploy with Maven's Tomcat plugin now. My next step is getting the web.xml to use the correct Wicket configuration (development/deployment) value. Is there a way to run two separate web.xml files for the application, and then somehow have Maven pick up the correct one

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
Thank you, it worked! PageParameters pars = new PageParameters(); pars.add("confirmationCode", "some conf?code&string"); System.out.println("URL: " + urlFor(ForgotPasswordRequest.class, pars)); Best regards, Kent On Wed, May 20, 2009 at 6:01 PM, Clint Popetz wrote: > Component.urlFor(ForgotPas

Re: Wicket in Php

2009-05-20 Thread Jeremy Thomerson
That's for you to decide. Typically it involves some kind of jump page between the two applications that once you are signed in, it sends the user to a page in the other app with a key (perhaps a UUID, etc) that correlates to that user in the DB so that the other app can automatically sign the use

Re: Wicket in Php

2009-05-20 Thread Ajayi Yinka
Thanks May I get the description on how to do the integration. I may not mind the integration, provided it can handle my session for me (As in if a user log in through a wicket page, we can use this same log in instance to manage the wicket page). regards, yinka On Wed, May 20, 2009 at 4:45 PM

Re: What is the correct way to include the Wicket DTD?

2009-05-20 Thread Igor Vaynberg
correct. -igor On Wed, May 20, 2009 at 8:19 AM, Steve Swinsburg wrote: > Or are you suggesting we replace the w3 dtd with the wicket one that > incorporates it? > > > cheers, > Steve > > > > On 20 May 2009, at 16:17, Steve Swinsburg wrote: > > So how do you include a DOCTYPE definition as well,

Re: Login page expired

2009-05-20 Thread Jeremy Thomerson
If you're in the stateless form's onsubmit and you redirect to a stateless page, you may need to call session.bind so that it knows that you need the session to be persistent. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 20, 2009 at 10:50 AM, Neil Curzon wrote: > Hi all, > >

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Clint Popetz
Component.urlFor(ForgotPasswordRequest.class,pars); (not a static...call it as "urlFor(...)" from your page or component) -Clint On Wed, May 20, 2009 at 10:54 AM, Kent Larsson wrote: > Hi, > > I have created a BookmarkablePageLink and I would like to grab a > properly escaped URL-string which I

Re: session creation and stateless

2009-05-20 Thread Igor Vaynberg
see wicket-dev-utils, there is a stateless checker there that can help you. wicket's session object is created on every request, but while the app is not stateful it is not persisted/put into httpsession. so you will always have a session object during a wicket request. there is page.ispagestate

Re: ModalDialog in a SubmitLink

2009-05-20 Thread Igor Vaynberg
add(new onsubmitlink(...) { oncomponenttag(tag) { super(tag); tag.put("onclick", "if (!confirm('message')) return; "+tag.getattributes().get("onclick")); } } -igor On Tue, May 19, 2009 at 4:04 PM, Werner Caacbay wrote: > Hello > I'm trying to submit a form with an AjaxSubmitLink wh

Re: AutoComplete results disappear when using scrollbar in IE

2009-05-20 Thread Igor Vaynberg
sounds like we either need to build paging into the list, or you need to limit the number of results you show. -igor On Tue, May 19, 2009 at 2:13 AM, Jan Grathwohl wrote: > Hi list, > > I am using Wicket's AutoCompleteTextField in my application, and the result > list that is shown to the user b

Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
Hi, I have created a BookmarkablePageLink and I would like to grab a properly escaped URL-string which I can then send through e-mail. For my first try noHtmlSensitiveChars & fullyEscaped contained the empty ("") string: PageParameters pars = new PageParameters(); pars.add("confirmationCode", "s

Login page expired

2009-05-20 Thread Neil Curzon
Hi all, I'm having an issue with sitting on the login page for a while before entering credentials. You get a Page Expired if you submit after waiting too long, and I think this will confuse my users. Especially since I was planning on setting my custom expired page to the Login. Some googling le

Re: Wicket in Php

2009-05-20 Thread Jeremy Thomerson
Wicket is written in Java. You would need to build an application in Java, running in a servlet container. Perhaps you could do an integration and have some pages running in PHP and some in Java, but you are looking at a complex project. -- Jeremy Thomerson http://www.wickettraining.com On W

Wicket in Php

2009-05-20 Thread Ajayi Yinka
Hi, Can anyone give me an insight on how I can integrate wicket into php project. I already have an application that is written in php. I will like to upgrade the application with some new features in which I prefer to use wicket. I am afraid if this is possible?

Re: Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread Daniel Toffetti
danisevsky danisevsky gmail.com> writes: > > Hi > > I wanted to try Wicket Web Beans 1.1 upload example but I get the following > exception > > . > > Is Wicket Web Beans 1.1 incompatible with Wicket 1.4 rc4 or is reason of > exception something else? > > Thanks for reply > Hi, WW

Re: What is the correct way to include the Wicket DTD?

2009-05-20 Thread Steve Swinsburg
Or are you suggesting we replace the w3 dtd with the wicket one that incorporates it? cheers, Steve On 20 May 2009, at 16:17, Steve Swinsburg wrote: So how do you include a DOCTYPE definition as well, since that has a DTD associated with it. I just did some experimenting as I had my p

Re: What is the correct way to include the Wicket DTD?

2009-05-20 Thread Steve Swinsburg
So how do you include a DOCTYPE definition as well, since that has a DTD associated with it. I just did some experimenting as I had my pages as the wicket.sourceforge.net one previously: http://www.w3.org/TR/html4/strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.

Empty response on AJAX request when the session has timed out

2009-05-20 Thread Joel Barciauskas
Hi, I am using Spring Security with wicket-auth-roles and wicket 1.3.5. After a user is logged in, the normal behavior on a session timeout is when a subsequent non-AJAX request is made (e.g., requesting a new page using a regular Link), the user is 302 redirected to the LoginPage. However, i

Re: What is the correct way to include the Wicket DTD?

2009-05-20 Thread Igor Vaynberg
Since you can only have one dtd we had to use the full HTML one a a base. -igor On Tuesday, May 19, 2009, Erik van Oosten wrote: > Hi, > > I recently updated the page > http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html for the new DTDs. > However, now that I see that the DTD actually inc

Re: How to validate unique constraint?

2009-05-20 Thread Igor Vaynberg
Pass the id of the entity being edited into the validator and check the database in validate() Alternatively catch the exception in the form's onsubmit and call error on the right component. -igor On Tuesday, May 19, 2009, Christian Helmbold wrote: > > How can I validate a unique constraint wit

session creation and stateless

2009-05-20 Thread adrien le roy
Hello, I am a little bit confuse about about how to test if a session have been created in a Panel I was using Session.get() but it is creating session if it don't exists. Regarding stateless page, how to test if a page is stateless ? If I have understood well, a page is considered statefull when

Re: Wicket And EasyMock

2009-05-20 Thread Alica
Hi, you can subclass your application you supply to WicketTester and overwrite the newSessionStore() Method: @Override protected ISessionStore newSessionStore() { //Serialisierung aufheben DiskPageStore pageStore = new DiskPageStore(){ @Override pr

Example of ModalWindow misleading

2009-05-20 Thread Live Nono
Hi The example here : http://www.wicket-library.com/wicket-examples/ajax/modal-window.1 is pretty misleading : passing components between components/page is quite broken as can be seen in the past discussion on the mailing list (serialization issue can arise and makes both sides using different re

Wicket 1.4 rc 2 : FileUpload name collision

2009-05-20 Thread Live Nono
Hi I just wanted to point out that there is currently two classes named FileUpload in wicket 1.4, one in org.apache.wicket.markup.html.form.upload and in the other in org.apache.wicket.util.upload. Could it be changed ? It would avoid some confusion and potential errors. thanks in advance nono

Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread danisevsky danisevsky
Hi I wanted to try Wicket Web Beans 1.1 upload example but I get the following exception Caused by: java.lang.NoSuchMethodError: com.googlecode.wicketwebbeans.containers.BeanForm.add(Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer; at com.googlecode.wicketwebbeans.containers.