{wicket 1.3 rc1}testing ajaxbutton...

2007-12-14 Thread Nino Saturnino Martinez Vazquez Wael
Hi How do I test the ajaxbutton? If I try to execute the event I just get an null pointer exeception like this: wicketTester.executeAjaxEvent("form:ajaxButton", "onclick"); Should I just check if theres ajax present? And the process the form using the formtester? -- Nino Martinez W

Re: {wicket 1.3 rc1}testing ajaxbutton...

2007-12-14 Thread Nino Saturnino Martinez Vazquez Wael
Ohh hold on for a minute.. I saw the *WICKET-1199 was fixed.. I'll try to upgrade and see if it fixes the problem...* Nino Saturnino Martinez Vazquez Wael wrote: Hi How do I test the ajaxbutton? If I try to execute the event I just get an n

Re: Using Spring beans with session scope

2007-12-14 Thread Daniel Stoch
Have you defined RequestContextListener in your web.xml? It is required for request scope and session scope beans: org.springframework.web.context.request.RequestContextListener Daniel On Dec 14, 2007 7:36 AM, Ravi

Re: {wicket 1.3 rc1}testing ajaxbutton...

2007-12-14 Thread Nino Saturnino Martinez Vazquez Wael
Hmm didnt help me though.. calling this wicketTester.submitForm("form"); just gives a NPE... Hmm using form tester and wicketTester.executeAjaxEvent works after upgrading. Very nice:) Thanks :) Nino Saturnino Martinez Vazquez Wael wrote: Ohh hold on for a minute.. I saw the *WICKET-1199

How to dynamic load a HTML file

2007-12-14 Thread qinyi lai
Hi I wanne to dynamic load a HTML file to mapping a JAVA class page! a JAVA class file will have many HTML files(1:n mapping), and in the running time, the JAVA class file will select a HTML file to display a different Page layout to User! How to carry it out? I found a article about this, h

Re: How to dynamic load a HTML file

2007-12-14 Thread wicket user
override getVariation() in your page to get the appropriate html/markup picked. regards -dipu On Dec 14, 2007 9:43 AM, qinyi lai <[EMAIL PROTECTED]> wrote: > Hi > I wanne to dynamic load a HTML file to mapping a JAVA class page! > a JAVA class file will have many HTML files(1:n mapping), and

RE: How to dynamic load a HTML file

2007-12-14 Thread qinyi lai
Thanks, I will try it! But any example for this! I find in the wicket.Component.java public String getVariation() { return null;//how to override it, return the HTML file path+filename? } and any one have wicket offline API, documents! > From: [EMAIL PROTECTED] > To: users@wicket.apa

Re: How to dynamic load a HTML file

2007-12-14 Thread wicket user
You don't have to worry about the path. You should name your file like YourWebPage_variation.html and place the file where you would place it in normal case. For example If the variants of the page are YourWebPage_1.html, YourWebPage_2.html, YourWebPage_n.html ,.,YourWebPage_n.html String

Re: {wicket 1.3 rc1}testing ajaxbutton...

2007-12-14 Thread Nino Saturnino Martinez Vazquez Wael
Hmm Can any confirm that wicketTester.assertComponentOnAjaxResponse(component) are working properly. I get an error event though my component are on response. Seems as it are checking for mine comes after the html document... regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hmm did

RE: Trouble Localizing Validator Messages

2007-12-14 Thread Shelli D. Orton
Can anyone help me set up my properties file correctly? Thanks in advance! Shelli -Original Message- From: Shelli D. Orton [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 9:13 AM To: users@wicket.apache.org Subject: RE: Trouble Localizing Validator Messages Hi, I'm using 1

Re: Apache Wicket 1.3.0-rc2 released!

2007-12-14 Thread Johan Compagner
yes! 1 to go, 1.3RC3, and try to promote that one as a final! johan On Dec 13, 2007 1:34 PM, Frank Bille <[EMAIL PROTECTED]> wrote: > This is the second release candidate for Apache Wicket we have prepared > for > your pleasure. The number of issues fixed are decreasing as we are > approaching

Modal window problem in IE 6 (6.0.2900.2180.xpsp_sp2_gdr.070227-2254)

2007-12-14 Thread marcus dickerhof
Hi everybody, I implemented a page that makes use of the ModalWindow component (displays a details-panel). I tested it in different browsers including IE 6, and it works fine. Now I deployed it on our test-server so our client can view the site. He has got a very tricky problem: The modal window s

Re: Question about wicket:message

2007-12-14 Thread AshleyAbraham
Igor, Thanks for your reply! as you suggested I tried the ascii html entity for colon ":" and it didnt work, it just used the characters as part of the attribute name and didn't convert it into colon : . I will add a rfe in the jira Anymore suggestions... Thanks Ashley igor.vaynberg wrot

Re: Using Spring beans with session scope

2007-12-14 Thread Ravi_116
I found an earlier post that had the same question. Sorry for the same question. http://www.nabble.com/Spring-bean-in-session-with-annotation-td13817750.html#a13817750 Ravi Ravi_116 wrote: > > Daniel, > That worked !! thanks... > How can i access the Spring Application Context in the wicket

Re: Using Spring beans with session scope

2007-12-14 Thread Daniel Stoch
You can see SpringWebApplication class to see how to access Spring application context. Or you can create a field with @SpringBean annotation to inject your bean into the session object. But then you must call InjectorHolder.getInjector().inject(this); before access this bean (probably the

Re: Using Spring beans with session scope

2007-12-14 Thread Ravi_116
Daniel, That worked !! thanks... How can i access the Spring Application Context in the wicket MyApplicationWebSession (extends AuthenticatedWebSession) to retrieve the bean and set the user name and password. Ravi Daniel Stoch-2 wrote: > > Have you defined RequestContextListener in your web

Re: Getting Error "Field not serializable" on one of the constructor attrib ?

2007-12-14 Thread mfs
hmm..but should it do that?...its not an instance within the form, i mean we'll be invoking the service layer from within the form.onsubmit (most of the times) event, and that would require all the service or other classes invoked to be made serializable.. Whats the work around, i wouldnt want th

Re: Getting Error "Field not serializable" on one of the constructor attrib ?

2007-12-14 Thread Igor Vaynberg
On Dec 14, 2007 9:54 AM, mfs <[EMAIL PROTECTED]> wrote: > > hmm..but should it do that?...its not an instance within the form, i mean > we'll be invoking the service layer from within the form.onsubmit (most of > the times) event, and that would require all the service or other classes > invoked to

RE: Modal window problem in IE 6 (6.0.2900.2180.xpsp_sp2_gdr.070227-2254)

2007-12-14 Thread Stefan Lindner
We had a similar problem with another framework: the dropdown menus did not work in som case. As if the javascript library (not the css as in your case, but I think it contains js too)was not loaded. The cause was a firewall misconfiguration at the customer's side and in another case it was a pe

Using SignInPanel throws "FormComponent class org.apache.wicket.markup.html.form.PasswordTextField does not support cookies"

2007-12-14 Thread Per Newgro
Hi *, I build an out of the box quickstart project with 1.3.0-rc2. Then i copied from wicket examples (template http://www.wicketstuff.org/wicket13/authentication/) to my own pages. So far everything seems to be correct. But if i start the application i get the bottom exception. Maybe persistent

Re: Using SignInPanel throws "FormComponent class org.apache.wicket.markup.html.form.PasswordTextField does not support cookies"

2007-12-14 Thread Johan Compagner
I think we did support of passwords being stored as a cookie before, is that changed? On 12/14/07, Per Newgro <[EMAIL PROTECTED]> wrote: > Hi *, > > I build an out of the box quickstart project with 1.3.0-rc2. > Then i copied from wicket examples (template > http://www.wicketstuff.org/wicket13/aut

Re: Using SignInPanel throws "FormComponent class org.apache.wicket.markup.html.form.PasswordTextField does not support cookies"

2007-12-14 Thread Frank Bille
No it's just been disabled per default, because it's not safe. I'll take a look at it. Frank On Dec 14, 2007 11:06 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > I think we did support of passwords being stored as a cookie before, > is that changed? > > On 12/14/07, Per Newgro <[EMAIL PROTECT

Writing to the output buffer in wicket web pages

2007-12-14 Thread Haritha Juturu
Hi Everyone I can use 'out' object towrite to the JSP's output stream. Is there an equivalent in Wicket framework. I need to write some content to the output buffer. Thanks Haritha Never miss a thing.

Re: Using SignInPanel throws "FormComponent class org.apache.wicket.markup.html.form.PasswordTextField does not support cookies"

2007-12-14 Thread Frank Bille
On Dec 14, 2007 9:45 PM, Per Newgro <[EMAIL PROTECTED]> wrote: > But if i start the application i get the bottom exception. Maybe > persistent > handling of PasswordTextField changed? Or did i miss something? > Read this: http://cwiki.apache.org/WICKET/migrate-13.html#Migrate-1.3-PasswordTextFie

Re: Using SignInPanel throws "FormComponent class org.apache.wicket.markup.html.form.PasswordTextField does not support cookies"

2007-12-14 Thread Gerolf Seitz
On Dec 15, 2007 12:37 AM, Frank Bille <[EMAIL PROTECTED]> wrote: > Read this: > > > http://cwiki.apache.org/WICKET/migrate-13.html#Migrate-1.3-PasswordTextFieldnolongersupportscookiesbydefault > > i added the reason (security issues) for throwing the exception. Gerolf

Re: Writing to the output buffer in wicket web pages

2007-12-14 Thread Johan Compagner
RequestCycle.get().getResponse(). But when or why do you need that? On 12/15/07, Haritha Juturu <[EMAIL PROTECTED]> wrote: > Hi Everyone > I can use 'out' object towrite to the JSP's output stream. > Is there an equivalent in Wicket framework. > I need to write some content to the output buffer.

The Textis incomprehensible

2007-12-14 Thread JohnSmith333
My wicket code in xp show normally. The text isn't incomprehensible. But when I deploy the code to linux os and in weblogic ap server. The text from db table date also OK. The text code in html also OK. But the text code in wicket program all are incomprehensible. I am use the Chinese langua

Styled TabbedPanel in ModalWindow, cannot apply style to page

2007-12-14 Thread dtoffe
Hi !! I'm trying to put a TabbedPanel like the one shown in the Wicket examples within a ModalWindow. The ModalWindow is ok, the style of the ModalWindow is ok, the page contained in the ModalWindow is ok but the style of the TebbedPanel is broken, the tabs are rendered as a bulleted list.

Session.invalidate()

2007-12-14 Thread NateRedding
Hello, I am writing a web application that has a need to log the user out when a certain action is performed. So, I do a Session.invalidate(). This takes me to the Page Expired Error Page that I set in my application settings. However, when this particular action is performed, I simply want to t

SOLVED ! Re: Styled TabbedPanel in ModalWindow, cannot apply style to page

2007-12-14 Thread dtoffe
OK, I've found the source of the modal window frame with the help of Web Developer Firefox extension. Then solved the stylesheet issue with a header contributor. Cheers ! Daniel dtoffe wrote: > > > I'm trying to put a TabbedPanel like the one shown in the Wicket > examples within a M

Re: Session.invalidate()

2007-12-14 Thread Igor Vaynberg
session.invalidate(); setresponsepage(new mypage()); requestcycle.setredirect(true); <=== -igor On Dec 14, 2007 8:14 PM, NateRedding <[EMAIL PROTECTED]> wrote: > > Hello, > > I am writing a web application that has a need to log the user out when a > certain action is performed. So, I do a Sessi