Wicket + Scala + Eclipse hack

2007-12-13 Thread Eelco Hillenius
Hi, I saw on message from someone having problems to get Wicket + Scala + Eclipse working together on one of the zillion mailing lists I'm on, but I don't remember which one, nor can I find it back with Google. Anyway, in case that person or anyone else with the same problems is reading this list,

Re: Using Spring beans with session scope

2007-12-13 Thread Igor Vaynberg
this is a spring error not a wicket one. im guessing there is some sort of a filter you need to map to web.xml that lets spring retrieve the http session. -igor On Dec 13, 2007 10:36 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > > Caused by: org.springframework.beans.factory.BeanCreationException:

Re: Using Spring beans with session scope

2007-12-13 Thread Ravi_116
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inquiryEngine' defined in class path resource [lingo-context.xml]: Cannot resolve reference to bean 'userContext' while setting bean property 'userContext'; nested exception is org.springframework.b

Re: Using Spring beans with session scope

2007-12-13 Thread Igor Vaynberg
show us the complete stack trace -igor On Dec 13, 2007 9:08 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > Igor, > > The exception happens while loading the spring config files - > > Caused by: java.lang.IllegalStateException: No thread-bound request found: > Are you referring to request attributes

Re: Using Spring beans with session scope

2007-12-13 Thread Ravi_116
Igor, The exception happens while loading the spring config files - Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request? If you are actually operating within a web request and still receive this messa

Re: Using Spring beans with session scope

2007-12-13 Thread Igor Vaynberg
i think it should work, you simply have to declare the bean as scope=session in spring config -igor On Dec 13, 2007 3:57 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > I am a newbie to wicket. Our wicket application is integrated with Spring > using the SpringComponentInjector. Is it possible to se

Re: Question about wicket:message

2007-12-13 Thread Igor Vaynberg
have you tried encoding the column's : char into &whatever; ? if that doesnt work then add an rfe into our jira -igor On Dec 13, 2007 3:22 PM, AshleyAbraham <[EMAIL PROTECTED]> wrote: > > I am trying to use wicket:message inside a tag in the following format > wicket:message="attribute:resource_

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

2007-12-13 Thread igor . vaynberg
your form anonymous class keeps the ref to your login svc instance -igor On 12/13/07, mfs <[EMAIL PROTECTED]> wrote: > > Ok...so here is the LoginPanel class...with the constructor i was referring > to .. further the implementation for I_LoginService (i.e. LoginService...on > which the serializab

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

2007-12-13 Thread mfs
Ok...so here is the LoginPanel class...with the constructor i was referring to .. further the implementation for I_LoginService (i.e. LoginService...on which the serializable error is pointing to) is being passed over from the caller component... public class LoginPanel extends Panel {

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

2007-12-13 Thread Martijn Dashorst
This message needs some source code... Martijn On Dec 14, 2007 12:52 AM, mfs <[EMAIL PROTECTED]> wrote: > > Guys, > > Not sure why, but wicket is giving me an error "Field that is not > serializable" on one of constructor attributes (of a panel) which is an > implementation to an interface...i wo

Re: Keep state of values between AjaxTabbedPanel tab change

2007-12-13 Thread Daniel Wu
Thanks very much! On Dec 13, 2007 4:27 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > instead of returning ajaxfallbacklink return ajaxsubmitlink > > or use javascript tabs rather then serverside tabs > > -igor > > > On Dec 13, 2007 10:18 AM, Daniel Wu <[EMAIL PROTECTED]> wrote: > > > > Hi, > > H

Using Spring beans with session scope

2007-12-13 Thread Ravi_116
I am a newbie to wicket. Our wicket application is integrated with Spring using the SpringComponentInjector. Is it possible to set a UserContext bean in Spring (scoped "session") from the AuthenticatedWebSession ? Spring provides some nice AOP proxy services with spring beans. Ravi -- View thi

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

2007-12-13 Thread mfs
Guys, Not sure why, but wicket is giving me an error "Field that is not serializable" on one of constructor attributes (of a panel) which is an implementation to an interface...i wonder why is that ? The attribute is not used as a model or anything its just a serviceHandler which i am passing to

Question about wicket:message

2007-12-13 Thread AshleyAbraham
I am trying to use wicket:message inside a tag in the following format wicket:message="attribute:resource_identifier" My question is the attribute which I am using is a custom attribute "ric:title" (without quotes) and it also has a colon in it. How can I tell wicket to ignore the colon in the a

Moved permanently (301) redirect

2007-12-13 Thread Ari Miller
What is the best practice for sending a 301 redirect ( HttpServletResponse.SC_MOVED_PERMANENTLY) in Wicket? I found the following discussion: http://www.nabble.com/302-vs.-301-Redirect-td14156515.html But no guidance as to best practice. This explains how to send a 302 (Temporarily moved) redirec

Re: vertical TabbedPanel

2007-12-13 Thread Beyonder Unknown
Hi Matej, I figure it out. Thanks! You can design however you want, by using CSS. Regards, Allan -- The only constant in life is change. - Original Message From: Matej Knopp <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Saturday, December 8, 2007 3:01:18 AM Subject: Re: verti

Re: GWT + Wicket

2007-12-13 Thread Igor Vaynberg
i believe we have halped dan on irc. he was afraid that the wicket filter would block requests to the servlet used to communicate with gwt, when in fact this is not the case. wicket filter will not handle non-wicket related requests, thus they will be passed down to the servlet. -igor On Dec 11,

Re: GWT + Wicket

2007-12-13 Thread Igor Vaynberg
let us know when you are ready to contribute something like this :) -igor On Dec 13, 2007 9:02 AM, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > rather than have Wicket/GWT > > sincerely i envision a wicket contrib project that can help us generate > javascript on the fly from pure java code wi

Re: Keep state of values between AjaxTabbedPanel tab change

2007-12-13 Thread Igor Vaynberg
instead of returning ajaxfallbacklink return ajaxsubmitlink or use javascript tabs rather then serverside tabs -igor On Dec 13, 2007 10:18 AM, Daniel Wu <[EMAIL PROTECTED]> wrote: > > Hi, > How can I keep the state of the fields of a tab (DropDownChoice and > TextField fields) when I switch tab

Re: How to know the markupStream of a border body

2007-12-13 Thread Igor Vaynberg
the markup stream of the border's body is that of border's parent. -igor On Dec 13, 2007 7:42 AM, Jan Vermeulen <[EMAIL PROTECTED]> wrote: > > We have created an FieldSet component that automatically creates components > for the input fields in the form using information of the bean passed to it

Keep state of values between AjaxTabbedPanel tab change

2007-12-13 Thread Daniel Wu
Hi, How can I keep the state of the fields of a tab (DropDownChoice and TextField fields) when I switch tabs? I've already read the topic http://www.nabble.com/How-to-save-page-values-between-AjaxTabbedPanel-tab-change--td12638034.html#a12638407 but I couldn't find a newtablink method to be overri

Re: GWT + Wicket

2007-12-13 Thread Ayodeji Aladejebi
rather than have Wicket/GWT sincerely i envision a wicket contrib project that can help us generate javascript on the fly from pure java code within wicket for common and simple client side behavior. Wicket ajax is very solid but believe me, Javascript has come to stay for a while. So I think a f

RE: Trouble Localizing Validator Messages

2007-12-13 Thread Shelli D. Orton
Hi, I'm using 1.2.5 Shelli -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 1:38 AM To: users@wicket.apache.org Subject: Re: Trouble Localizing Validator Messages Which version of Wicket are you using? Martijn On Dec 13, 2007 1:06

Re: How to know the markupStream of a border body

2007-12-13 Thread Jan Vermeulen
We have created an FieldSet component that automatically creates components for the input fields in the form using information of the bean passed to its model. One of the ways to configure the behavior of that FieldSet, is to provide markup: that way, the user can at the same time define what fiel

Re: Where to apply a general security policy

2007-12-13 Thread Maurice Marrink
Actually wicket already does that for you. It does so by delegating to the IAuthorizationStrategy. The default one just allows everything. Maurice On Dec 13, 2007 1:36 PM, Christopher Hlubek <[EMAIL PROTECTED]> wrote: > AFAIK you could use a custom WebRequestCycle that checks your security > poli

Re: Where to apply a general security policy

2007-12-13 Thread Christopher Hlubek
AFAIK you could use a custom WebRequestCycle that checks your security policy on every request (see http://wicket.sourceforge.net/apidocs/wicket/RequestCycle.html and http://wicket.sourceforge.net/apidocs/wicket/protocol/http/WebRequestCycle.html). Best regards, Christopher Hlubek 2007/12/13, ap

Apache Wicket 1.3.0-rc2 released!

2007-12-13 Thread Frank Bille
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 the final release. In this announcement: - Apache Wicket - This release - Migrating from 1.2 - Downloading the release - Valida

Re: Where to apply a general security policy

2007-12-13 Thread Maurice Marrink
you could take a look at the IAuthorizationStrategy but that would basically mean building your own security framework from scratch. A better solution would be to use either Wicket-Auth-Roles or Swarm as your security framework. Neither is centralized, both are geared towards securing individual c

Re: IUnauthorizedComponentInstantiationListener: keep the page paramaters

2007-12-13 Thread Gabor Szokoli
Solved in-house, sorry about the noise. I was looking at the wrong place, I should have used continueToOriginalDestination in the login form submit code. Again, for the sake of completeness, here's the pattern to preserve the bookmarkable URL complete with page parameters across the login procedu

Re: wicket cluster on tomcat 6

2007-12-13 Thread Johan Compagner
every second you rerender the table? is that page versioned? Because you you are constantly changing the tables and generate new links then a link click that is right after the ajax update behavior could target a component that isn't there anymore If the page is versioned then the link click should

Re: wicket cluster on tomcat 6

2007-12-13 Thread michalb_cz
I don't do that, but when I use setResponsePage(backPage) - links on backPage are broken from time to time (I don't know the reason) This exception is throwed: org.apache.wicket.WicketRuntimeException: component formChooseCategory:tableShowBooks:rows:202:cells:8:cell:editLink not found on page Ch

Where to apply a general security policy

2007-12-13 Thread apsegian
I am requested to apply a security policy in a wicket project on every request (including ajax requests) posted to the server. The obvious solution to this, is to call a method (like applySecurity()) in every onClick(), onUpdate() etc event of all form components of the page. The problem is that t

Re: wicket cluster on tomcat 6

2007-12-13 Thread Johan Compagner
huh? When are you doing back by javascript in your wicket application? Do you have clientside scripts that does fancy things? normally if you want to go back to a previous page then just set that page as a response page (on the serverside) johan On Dec 13, 2007 11:49 AM, michalb_cz <[EMAIL PRO

Re: When to use getModelObject, getConvertedInput, getInput

2007-12-13 Thread Johan Compagner
But the AjaxFormComponentUpdatingBehavior should set the model object to what is now in the browser (if no validation error occurs) So you should be able to base your decision on whats in side the model. johan On Dec 12, 2007 12:42 PM, wicket user <[EMAIL PROTECTED]> wrote: > Ok that's cool bu

Re: How to send a non-html response ?

2007-12-13 Thread Martin Funk
Joshua Jackson schrieb: Dear all, Is there any guide anyone can redirect me to send a non-html response ? Where do I set this up? I wanted to give an MS-Word format document back to the client. Can anyone give me a clue on this? Thanks in advance. how about: http://www.nabble.com/Stream-

Re: How to send a non-html response ?

2007-12-13 Thread wicket user
Create a YourResponsePage that extends Page instead of WebPage and set the appropriate mimeType. That will do the trick regards dipu On Dec 13, 2007 10:50 AM, Joshua Jackson <[EMAIL PROTECTED]> wrote: > Dear all, > > Is there any guide anyone can redirect me to send a non-html response > ? Whe

How to send a non-html response ?

2007-12-13 Thread Joshua Jackson
Dear all, Is there any guide anyone can redirect me to send a non-html response ? Where do I set this up? I wanted to give an MS-Word format document back to the client. Can anyone give me a clue on this? Thanks in advance. -- I'm a coder not a drag-n-dropper Blog: http://joshuajava.wordpress

Re: wicket cluster on tomcat 6

2007-12-13 Thread michalb_cz
Any workaround? I can't do just back in history (for example by javascript), because I need rerender the back page ('cos I modify back page's model) Sebastiaan van Erk wrote: > > It has to do with the page store. Note that the back button will work, > but clicking on links on the page after yo

RE: JRPdfResource onResourceRequested() file dialog not displayed when using AjaxFallbackLink

2007-12-13 Thread lizz
Hi clay, I tried adding the target.appendJavascript(getMarkupId()+".submit()"); for the AjaxFallbackLink but nothing (still) happened. Could you provide an example of how to do this? I might have misunderstood how you did this. Thanks :-) Lizz cblehman wrote: > > I had a similar problem with sh

Re: Help for custom textfield component w/ javascript

2007-12-13 Thread freak182
Yes.i have a webpage and there is a form there the that access it. like the following code snippet: class TestPage extend Webpage { public TestPage(){ Form form = new StudentForm("std",new CompoundPropertyModel(new Student())); } class StudentForm extends Form { public StudentFo

Re: Binding application to another thred

2007-12-13 Thread Vit Rozkovec
Thank you, I will have a look at it. Vitek Eelco Hillenius wrote: Thanks. I just thought that there would be some "correct" way how to do it because as I read Application.set() is not part of public api. The correct way is not to do it *typically*. If you have a good reason, you can alway

Re: HTML code inside language file

2007-12-13 Thread Johan Compagner
Does wicket:message tag escape the html? Make a jira issue for this On 12/12/07, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote: > And is there a way to this without a label, houst with the ? > > On Dec 12, 2007 1:23 PM, Sébastien Piller <[EMAIL PROTECTED]> wrote: > > > Marco Aurélio Silva a écrit

Re: Help for custom textfield component w/ javascript

2007-12-13 Thread Johan Compagner
So stdid is a property of a compountmodel that is assigend to a parent of that component? On 12/13/07, freak182 <[EMAIL PROTECTED]> wrote: > > Hello, > I have a problem.I'm creating a custom component and it happens to be a > textfield.My problem start when i follow the DatePicker component > str

Re: wicket:message and HTML

2007-12-13 Thread Gabor Szokoli
On Dec 12, 2007 6:51 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote: > Hi > Is there a way to use html code from a language file using, like > setEscapeModelStrings(false) on a label? I read about the wicket:message implementation recently (to see if I could do something similar for headers an

Re: Trouble Localizing Validator Messages

2007-12-13 Thread Martijn Dashorst
Which version of Wicket are you using? Martijn On Dec 13, 2007 1:06 AM, Shelli D. Orton <[EMAIL PROTECTED]> wrote: > Hi, > > I'm working on my first Wicket app and am hoping someone can tell me what > I'm doing wrong. I have a wizard component and on one of the steps I've > added a custom pattern