Re: [Wicket-user] Updating items of a Set...

2007-04-25 Thread Eelco Hillenius
So, the need is basically to browse a set to be able to increase/decrease the value of each element. So, for each element, it should look like this: ElementName ElementValue + - + and – are links that the user can click on. Then I would like a submit button under this to be able to

Re: [Wicket-user] What's the easiest way to do a pageable/sortable list screen?

2007-04-25 Thread Martijn Dashorst
For more information on the redirect strategies available in Wicket (that we don't have any documentation is a lie ;-)) see: http://cwiki.apache.org/WICKET/render-strategies.html Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net:

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread mraible
igor.vaynberg wrote: On 4/24/07, mraible [EMAIL PROTECTED] wrote: You typically don't need to call setRedirect yourself though. Was there any reason for doing that? Also, flash message works good here, but if you already know the page you are going to display it on, you might as

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Igor Vaynberg
its been doing that since before 1.0 afaik. in fact i dont even remember what that dialog looks like anymore :) did you mess with render strategies at all? i think if you change the strat to one-pass-render it might not do it for you. -igor On 4/24/07, mraible [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Eelco Hillenius
Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. That's surprising. What does your application object look like? The default

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Martijn Dashorst
On 4/25/07, mraible [EMAIL PROTECTED] wrote: Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. If you haven't changed the default render strategy it

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Igor Vaynberg
rofl, ok thats only three of the same response so far, lets see if we can rack up some more. i wish gmail could tell you that someone is responding to the same message you are. it does IM, why not this??? -igor On 4/24/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 4/25/07, mraible [EMAIL

[Wicket-user] Integrate Wicket into existing Spring MVC application

2007-04-25 Thread Uladzimir Liashkevich
Hi, I have an existing web application based on Spring and Spring MVC. I've seen a lot of articles describing how to integrate Spring and Wicket, but haven't find one about integrating Wicket pages into Spring MVC controller dispatch scheme. What I'm trying to achieve is to dispatch certain URLs

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread mraible
Eelco Hillenius wrote: Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. That's surprising. What does your application object look like?

Re: [Wicket-user] Integrate Wicket into existing Spring MVC application

2007-04-25 Thread Igor Vaynberg
i dont know that much about springmvc, but if you mount your pages you should be able to redirect to those urls without problems. but for that to work you need to have your servlet properly mapped to /app/* or another path. so if you mount a page to /some/page the actual url is /app/some/page.

[Wicket-user] Proxy Error: Wicket Library Examples

2007-04-25 Thread James Perry
I am trying to access the wicket library examples but there is a proxy error. James - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No

Re: [Wicket-user] onGoingBack2Page(+innerForm) = innerForm.fields = empty!?

2007-04-25 Thread manu
Actually the flow page1ToPage2 it's done by form submission, i.e., all form is correctly processed. The matter was when going back from Page2...N to Page1. It was happening that the inerForm page1.Form1 was not keeping state (fields were null). After reviewing the code, I noticed that I was

Re: [Wicket-user] General question on DetachableModel, edit form for based on set and components

2007-04-25 Thread Francois Armand
Le mardi 24 avril 2007 à 08:08 -0700, Igor Vaynberg a écrit : On 4/24/07, Francois Armand [EMAIL PROTECTED] wrote: i only have time to help you with one, so here goes [resolve my pb in just a few lignes of code] -igor Wow. thanks you very much for you answer, now I'm _really_ impressed by

Re: [Wicket-user] State management and new page instances

2007-04-25 Thread Johan Compagner
those examples (like those auto links) are bookmarkable pages. And a bookmarkable url wil always make a new page (there are talk about stable pages, 1 instance for a session but that is today just an idea) When you do a submit (like form input) then you target the same page. or click on links or

Re: [Wicket-user] Problem with TinyMCE on a panel

2007-04-25 Thread Iulian Costan
this question is mostly for Igor and his rtebehavior and tinymceenabler examples. does tinymceenabler really works for you? if it does please tell me what wicket/tinymce versions are you using. in your case i also saw that tinymce scripts are loaded from a static context, /html/static/js/...

Re: [Wicket-user] Proxy Error: Wicket Library Examples

2007-04-25 Thread Johan Compagner
http://wicketstuff.org/wicket13/ On 4/25/07, James Perry [EMAIL PROTECTED] wrote: I am trying to access the wicket library examples but there is a proxy error. James - This SF.net email is sponsored by DB2 Express

Re: [Wicket-user] Problem with TinyMCE on a panel

2007-04-25 Thread Igor Vaynberg
the behavior works, i like it a lot better then a panel. to me: TextField tf=new TextField(..); tf.add(new TinyMceEnabler().setAllowLinking(false)); seems a lot more natural then adding a panel, etc. and yes, in my project we store tinymce in a static dir so all of its scripts/modules are

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Eelco Hillenius
rofl, ok thats only three of the same response so far, lets see if we can rack up some more. i wish gmail could tell you that someone is responding to the same message you are. it does IM, why not this??? Gmail actually had the feature that showed you updates in the thread while you are

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Eelco Hillenius
// Fixed SiteMesh: http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); It's likely be pretty easy to port when I have with SiteMesh to use the page extension stuff that Wicket has,

[Wicket-user] Access Feedbackmessages on RedirectPage

2007-04-25 Thread behlma
Hi, can I, in a forms onSubmit method redirect to a new page (setRedirect(new Page())) and access the error/info feedback messages on the new Page? If so, how? Cheers -- View this message in context: http://www.nabble.com/Access-Feedbackmessages-on-RedirectPage-tf3646550.html#a10184451 Sent

Re: [Wicket-user] Access Feedbackmessages on RedirectPage

2007-04-25 Thread Martijn Dashorst
Page page = new Page(); page.info(Hello, World!); setResponsePage(page); On 4/25/07, behlma [EMAIL PROTECTED] wrote: Hi, can I, in a forms onSubmit method redirect to a new page (setRedirect(new Page())) and access the error/info feedback messages on the new Page? If so, how? Cheers --

Re: [Wicket-user] Access Feedbackmessages on RedirectPage

2007-04-25 Thread Eelco Hillenius
On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Page page = new Page(); page.info(Hello, World!); setResponsePage(page); That, or alternatively, you can use 'flash' messages by doing Session.get().info(Hello, World!) in which case they will be rendered the first time a feedbackpanel (or

[Wicket-user] Is it possible to prevent page expired?

2007-04-25 Thread mraible
I'm using Eclipse, Maven 2 and the Maven Jetty Plugin (with mvn jetty:run) to develop my Wicket application. Everytime I save a .java or .html file, Jetty reloads and all is good. However, when I hit refresh on my browser, Wicket allways gives me a page expired error and I have to start from

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread mraible
Eelco Hillenius wrote: // Fixed SiteMesh: http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); It's likely be pretty easy to port when I have with SiteMesh to use the page

Re: [Wicket-user] Is it possible to prevent page expired?

2007-04-25 Thread Matej Knopp
This is strange. It seems that your session is being invalidated when you save .java or .html file. This is not normal. I don't know what kind of magic maven jetty plugin does, i usually run my web apps with embedded jetty as regular Java application, though I'm not sure that this is what causes

Re: [Wicket-user] Is it possible to prevent page expired?

2007-04-25 Thread Eelco Hillenius
Using Wicket 1.3 is the surest way to get rid of it. In your case, I wouldn't be surprised if the problem can be traced back to the fact that you use SiteMesh with Wicket. As I understand it, SiteMesh combines separate requests like working with frames would do, correct? So for every Wicket piece

Re: [Wicket-user] Access Feedbackmessages on RedirectPage

2007-04-25 Thread behlma
Thanks as always :) Eelco Hillenius wrote: On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Page page = new Page(); page.info(Hello, World!); setResponsePage(page); That, or alternatively, you can use 'flash' messages by doing Session.get().info(Hello, World!) in which case they

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Eelco Hillenius
I agree that using Wicket's decoration mechanism is probably a better way to go. One small question though - how do I put the contextPath into URLs in my BasePage.html? In my SiteMesh decorator, I have: c:set var=ctx value=${pageContext.request.contextPath}/ link rel=shortcut icon

[Wicket-user] Custom CSS for Tree and TreeTable

2007-04-25 Thread Stefan Wille
Hi, is it possible to use my own CSS style definitions for Tree and TreeTable? Both components add their own CSS file via header contribution. I would like to override some style definitions. How would I do this? Thanks, Stefan

Re: [Wicket-user] Is it possible to prevent page expired?

2007-04-25 Thread mraible
I'll try disabling SiteMesh and see if it still happens. Matt Eelco Hillenius wrote: Using Wicket 1.3 is the surest way to get rid of it. In your case, I wouldn't be surprised if the problem can be traced back to the fact that you use SiteMesh with Wicket. As I understand it, SiteMesh

Re: [Wicket-user] Problem with TinyMCE on a panel

2007-04-25 Thread Brian Topping
I don't believe the behavior works *in* a panel though. I put a link to a complete M2 project with the behavior in the email that started this thread, and it uses this behavior with no result. Brian On Apr 25, 2007, at 8:36 AM, Igor Vaynberg wrote: the behavior works, i like it a lot

[Wicket-user] Authentication and page expired

2007-04-25 Thread Xavier Hanin
Hi, I'm trying to implement authentication using wicket and I get some trouble... My problem is that when I try to access a page requiring authentication, I get redirected to a login page. Fine. But then, once authenticated, I get a Page expired message, and I don't find how to get rid of it

Re: [Wicket-user] Authentication and page expired

2007-04-25 Thread Igor Vaynberg
what do you mean by once authenticated what does your loginpage code look like, eg how do you navigate back? -igor On 4/25/07, Xavier Hanin [EMAIL PROTECTED] wrote: Hi, I'm trying to implement authentication using wicket and I get some trouble... My problem is that when I try to access a

[Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar:

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]]

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
Could you try to suggestion in the error message to put: Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) in your Application's init method and see if all works ok then? Meanwhile, I hope Johan notes this error and takes a look. Eelco On 4/25/07, Bjön

Re: [Wicket-user] Authentication and page expired

2007-04-25 Thread Xavier Hanin
On 4/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what do you mean by once authenticated what does your loginpage code look like, eg how do you navigate back? My login page is really very simple, it doesn't do much except include a SigninPanel. So as far as I understand from the SigninPanel

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Matej Knopp
Why would you want to serializable a log?! -Matej On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Martijn Dashorst
On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote: Why would you want to serializable a log?! Isn't the recommendation of one of the logging guru's to not make the loggers static, but just members or local vars? If you make them non-static members, they'll get serialized. Martijn -- Learn Wicket

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
Yeah, I would prefer to either have log fields as static in components or get them just in time rather than keeping references to them. Keeping references in instances kind of combines the worst of both. Eelco On 4/25/07, Peter Ertl [EMAIL PROTECTED] wrote: looks like the logging guru is wrong

[Wicket-user] Form.loadPersistentFormComponentValues is called too late?

2007-04-25 Thread Peter Ertl
I have a login form which persists username and password using FormComponent.setPersistent(boolean) On page load I want to set the focus on - username, if username is empty - password, if username is not empty The form values are initialized from the cookie values in Page.renderPage() --

[Wicket-user] from 1.2.5 to 1.2.6

2007-04-25 Thread dzenanr
I have replaced wicket jar files in my project from 1.2.5 to 1.2.6. CSS does not work properly now. I have the css directory in the root directory of the Eclipse. The following line in my html files produced the correct CSS before: link rel=stylesheet type=text/css media=screen href=css/box.css

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Thats what i have heard too. At least JCL isnt thread-safe. Dont really know about slf4j On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote: Why would you want to serializable a log?! Isn't the recommendation of one of the logging guru's to

Re: [Wicket-user] Custom CSS for Tree and TreeTable

2007-04-25 Thread James McLaughlin
You can override the css with more specific rules. Wicket tree already uses an html element specifier, so your best bet would be to put the tree in another div with a class, say mytree. Then in the wicket:head section of your panels markup, provide a style element with rules such as: .mytree

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Justin Morgan
Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin Bjön Limell [EMAIL PROTECTED] Sent by:

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Maybe I was a bit unclear. The problem only occurs when you're using jcl104-over-slf4j (JCL's Log not slf4j's Logger). JCL104-over-slf4j just enables you to use old 'Log log = LogFactory.getLog()' with slf4j (without classloading issues etc) ps. Same problem with

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
What's the stack trace you get when you use normal serialization? It should point you to an offending field. If you only get it with JCL, there is probably something in JCL that isn't serializable. You should consider either making it a static variable, getting it only when you need it (don't

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
here's the trace: ERROR org.apache.wicket.util.lang.Objects Error serializing object class testpage.PollPage [object=[Page class = testpage.PollPage, id = 1, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:Unable to serialize class:

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
Yep, that's pretty clear. SLF4JLocationAwareLog[1] doesn't implement serializable. So, to fix, see my previous comment. Eelco [1] http://www.slf4j.org/api/org/apache/commons/logging/impl/SLF4JLocationAwareLog.html On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: here's the trace: ERROR

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Matej Knopp
Yeah, if it really should be a member variable (which makes sense when logger is not thread safe), it probably could be something like this: private transient Logger logger; private Logger getLogger() { if (logger == null) initializeLogger; return logger; } On 4/26/07, Eelco Hillenius [EMAIL

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Yepp, thanks! But i think the best thing for me to do is to replace all use of Log(jcl) - Logger(slf4j) in my app :) On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Yep, that's pretty clear. SLF4JLocationAwareLog[1] doesn't implement serializable. So, to fix, see my previous comment.

[Wicket-user] MarkupContainer.autoAdd in DataView

2007-04-25 Thread craigdd
Is it possible to implement IComponentResolver interface in a child implementation of DataView so that a Label object is added for each cell found in the markup? This would be similar to some of the examples I've seen when extending ListView. Thanks Craig -- View this message in context:

Re: [Wicket-user] MarkupContainer.autoAdd in DataView

2007-04-25 Thread craigdd
Ok, after doing a little research I found out that if you create your own implementation of IDataProvider or extend an existing one. you can over ride the model method with; @Override public IModel model(Object object) {