Re: WicketURLEncoder.QUERY_INSTANCE result not (even near) same as java.net.URLEncoder?

2009-02-17 Thread Johan Compagner
as far as i know it does follow the spec specially for query portion and the path portions. On Tue, Feb 17, 2009 at 08:26, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! The constructor WicketURLEncoder(Type type) explains a whole lot about the compatibility of

Re: WicketURLEncoder.QUERY_INSTANCE result not (even near) same as java.net.URLEncoder?

2009-02-17 Thread Martin Makundi
Then maybe java.net.URLEncoder is more strict than the 'spec'... ok. ** Martin 2009/2/17 Johan Compagner jcompag...@gmail.com: as far as i know it does follow the spec specially for query portion and the path portions. On Tue, Feb 17, 2009 at 08:26, Martin Makundi

Stackoverflow running Wicket application on JBOSS cluster

2009-02-17 Thread behrica
Hi, I setup our wicket application on a simple JBoss cluster with session replication. Doing that I get more or less immediately the following track trace: (I paste only the upper part, but the same message gets repeated over and over in the stack trace) I use wicket 1.3.4, but it's the same

Re: .html-templates compiler

2009-02-17 Thread kan
I mean if you have a wicket:id=abc, it will generate class with... emm... not sure, say method getAbc() which will return an object which represents an element, so it can be bound to a Component. So, in java-code you can use only elements which are actually exist in html-markup. Maybe something

Re: RadioGroup, differences between FireFox and Internet Explorer?

2009-02-17 Thread Swanthe Lindgren
I still have the same problem and as the project where it occurred is on ice I left it for what is is. I haven't even filed a JIRA, but please go ahead and do so since it still doesn't work in wicket-1.4-SNAPSHOT. //Swanthe metalotus wrote: I have the same issue. Some places in my

Re: .html-templates compiler

2009-02-17 Thread Andreas Petersson
well, that is not really what wicket does right now. i think it would be interesting to tie the markup + code more tightly together, to have the compiler already check for correctness, instead of runtime. for example warp-widgets ( http://code.google.com/p/warp-core/ ) does this in an elegant way

Wicket Geronimo debugging??

2009-02-17 Thread Edwin Ansicodd
Deploying my wicket web app on Geronimo, I'm getting errors that seem to be somewhere in the wicket. Is there a way to turn on Wicket debugging? I know there are errors because when I click the submit button, my response page is blank. Not how it's supposed to be. No exceptions or error

Re: Adding multiple ajax behavious on same event

2009-02-17 Thread Martin Grigorov
see CompoundBehavior in wicketstuff-minis El lun, 16-02-2009 a las 03:06 -0800, rag...@directi escribió: I am using an AjaxLink which has a javascript for onclick event now i want to add AjaxFormValidatingBehavior to this link on the same event onclick ...i tried adding the same...but the

Re: Problem in Wicket Stuff - Jquery - DatePicker

2009-02-17 Thread Martin Grigorov
I could do it but why it should be lower cased ? What will happen with months (MM)? They will become minutes (mm). Is this correct ? I see there is sdf.toPattern().toLowerCase() below but this seems like a bug to me. Can you give more details because I'm not using this behavior. El lun,

Re: Problem in Wicket Stuff - Jquery - DatePicker

2009-02-17 Thread Dipu
if i supply the date pattern dd/MM/ the date picker will print wrong date like 10/MM/2009 i noticed sdf.toPattern().toLowerCase() and i thought some one missed to call toLowerCase() on format_ = ((ITextFormatProvider) component).getTextFormat(); i called toLowerCase() and it solved the

IResourceStream.close

2009-02-17 Thread Adriano dos Santos Fernandes
Hi! Why does IResourceStream have a close() method? I don't see it being called in 1.4-RC2. Shouldn't ResourceStreamRequestTarget.detach call it? Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

XMLBeanFactory not serializable - what to do??

2009-02-17 Thread Edwin Ansicodd
have a Serializable object on a Wicket page. This object in turn has a reference to an XMLBeanFactory. Wicket is giving me an error because XMLBeanFactory is not serializable. What do I do?? -- View this message in context:

Re: XMLBeanFactory not serializable - what to do??

2009-02-17 Thread Thomas Mäder
LoadableDetachableModel? Thomas On Tue, Feb 17, 2009 at 12:43 PM, Edwin Ansicodd erik.g.hau...@gmail.comwrote: have a Serializable object on a Wicket page. This object in turn has a reference to an XMLBeanFactory. Wicket is giving me an error because XMLBeanFactory is not serializable.

Re: IResourceStream.close

2009-02-17 Thread Adriano dos Santos Fernandes
https://issues.apache.org/jira/browse/WICKET-2109 Johan Compagner escreveu: as far as i know it is called all over the place For example WicketFilter.getLastModified() But you are right about the RSRT that one should call close on detach as far as i can see can you make a jira issue? On Tue,

Re: XMLBeanFactory not serializable - what to do??

2009-02-17 Thread Sébastien Piller
transient field + lazy init method? Edwin Ansicodd wrote: have a Serializable object on a Wicket page. This object in turn has a reference to an XMLBeanFactory. Wicket is giving me an error because XMLBeanFactory is not serializable. What do I do??

Re: Problem in Wicket Stuff - Jquery - DatePicker

2009-02-17 Thread Martin Grigorov
Ok, I see. The JS library works with lower case formats. Fixed with r4575. Additionally I think you are using the old jquery. The one I fixed is at

Re: XMLBeanFactory not serializable - what to do??

2009-02-17 Thread Martin Grigorov
use wicket-spring to get references to your beans El mar, 17-02-2009 a las 03:43 -0800, Edwin Ansicodd escribió: have a Serializable object on a Wicket page. This object in turn has a reference to an XMLBeanFactory. Wicket is giving me an error because XMLBeanFactory is not serializable.

Re: Problem in Wicket Stuff - Jquery - DatePicker

2009-02-17 Thread Dipu
Cheers Dipu On Tue, Feb 17, 2009 at 12:30 PM, Martin Grigorov mcgreg...@e-card.bg wrote: Ok, I see. The JS library works with lower case formats. Fixed with r4575. Additionally I think you are using the old jquery. The one I fixed is at

Feedback message isn't displayed

2009-02-17 Thread Jakub Srba
Hi I have LoadableDetachableModel model1. In load method it calls error(String). When I put model1 into Label, the error message is displayed in my FeedbackPanel. Then I have PropertyModel model2, that wraps model1. This time, when I put model2 into Label, the error message isn't displayed. Do

automatic Page Flow diagrams?

2009-02-17 Thread nino martinez wael
Hi Guys Are there anyone which has done something like a pageflow diagram generator for wicket, would be wonderfull if it were a maven plugin? regards Nino

Re: Wicket source code using Maven

2009-02-17 Thread John Krasnay
I usually put this in my pom.xml so that I don't have to always remember the command line parameter: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration downloadSourcestrue/downloadSources

FeedbackMessage of Level Error, isInfo() returns True

2009-02-17 Thread walnutmon
I created a filter that does this: boolean accept(message) { return message.isInfo(); } This returns true for messages created using error(asdf) To make sure I wasn't mistaken I added this: if(message.isError() message.isInfo()){throw new RuntimeException(something);} That was triggered

Re: FeedbackMessage of Level Error, isInfo() returns True

2009-02-17 Thread Matthew Hanlon
The javadoc on isInfo() says Gets whether the current level is INFO or up. So, since the info level is above the error level, isInfo() returns true for error messages. So, since info is a less granular level than error, a feedback message using error(foo) is at the error level and the info level

Re: Abstract Header JavaScript Behavior

2009-02-17 Thread Martijn Dashorst
Since when does a Label, Link, Image, WebMarkupContainer contribute to the head section of a page? It definitely is not obvious to me that such should be the case. Martijn On Sun, Feb 15, 2009 at 8:15 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Tnx. :) Why don't the component

Modal window from modal window

2009-02-17 Thread Michal Hybler
Hi, is there possibility to open modal window from modal window in wicket? I have form in modal window and i want to implement button that opens next modal window with some user options. Thnx for your answers. with regards Michal -- View this message in context:

Re: How to make wicket text in a td bold?

2009-02-17 Thread John Krasnay
td width=20% wicket:id=personname class=personnamePerson Name/td ...somewhere in your CSS... td.personname { font-weight: bold; } jk On Tue, Feb 17, 2009 at 07:54:36AM -0800, Edwin Ansicodd wrote: have info in a table, want to make the text from wicket bold. How do I do this?

Re: How to make wicket text in a td bold?

2009-02-17 Thread James Carman
It's not supposed to be bold. In no way did you tell it to be bold. What you can do is add a class attribute to the td element (using AttributeAppender behavior) to set a css class and then you use a stylesheet to style your text as bold. On Tue, Feb 17, 2009 at 10:54 AM, Edwin Ansicodd

Re: How to make wicket text in a td bold?

2009-02-17 Thread James Carman
Styling the markup in-line is frowned upon, though. It's better to use stylesheets for this. However, for a quick and dirty solution, this will work quite well! :) On Tue, Feb 17, 2009 at 11:01 AM, Jonas barney...@gmail.com wrote: or like this: [td width=20%][b wicket:id=personname]Person

Validation From A Custom Component

2009-02-17 Thread walnutmon
All, I have custom components which know if they have a validation error when they call updateModel(), the domain is where validation happens, I'm using this to post error messages which are rendered like a validation error: @Override public void updateModel() { try

Re: Modal window from modal window

2009-02-17 Thread dtoffe
Yes it's possible, see the examples here: http://www.wicket-library.com/wicket-examples/ajax/modal-window.2 You can also create a BasePage containing a ModalWindow and use it as a base for all the pages you want to show in a modal window, so you can open a modal window from any other

Re: Wicket Geronimo debugging??

2009-02-17 Thread Jeremy Thomerson
You can try a couple of things - turning the logging level for org.apache.wicket.* down to debug, for example. You can also put you app in development mode with web.xml, but I don't think that's going to help you here. Hoenstly, a blank screen to me would mean that it may *not* be Wicket, since

Re: Validation From A Custom Component

2009-02-17 Thread Jeremy Thomerson
in the custom component's constructor, why don't you do: add(new IValidator() { ... }); Or create a custom validator class and just add it to your custom components. On Tue, Feb 17, 2009 at 10:04 AM, walnutmon justin.m.boy...@gmail.comwrote: All, I have custom components which know if they

@SpringBean vs getApplication().getDao()

2009-02-17 Thread Sergey Podatelev
Okay, this question might actually be more related to Spring, but I'm completely lost here, and my question on Spring forums usually don't get any replies, so I hope Wicket community might help as it usually does. I'm using JCR, and have a RepositoryDao bean configured in applicationContext.xml.

Re: Validation From A Custom Component

2009-02-17 Thread walnutmon
That's a fantastic idea, I'll definitely do that. There is one problem, because the validation is actualy coming from the domain objects setters, I don't know if there was a problem until the updateModel method is called... I don't know if I like calling updateModel from the validator, since I'm

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Martijn Reuvers
Hello, I am not entirely sure if I understand your question correctly. But I usually use Spring like this: YourDao (either defined in applicationContext.xml or in separate spring-config files, or annotation-driven e.g. with @Repository. The template you mention I usually autowire into the dao so

Re: Validation From A Custom Component

2009-02-17 Thread Eduardo Nunes
I'm a little bit out of what you are doing, but validate information directly in setter methods usually isn't a good option... my 50c On Tue, Feb 17, 2009 at 2:19 PM, walnutmon justin.m.boy...@gmail.com wrote: That's a fantastic idea, I'll definitely do that. There is one problem, because

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread James Perry
As far as I am aware, the main internal differential is that annotations provides a quick, safe way to access your spring beans and ensure that the whole container does not get serialized via a proxy. However the magic comes at a cost that it will serial the bean id (as a string) - which can be

RE: Inconsistent Model Binding on Form Submit

2009-02-17 Thread Dane Laverty
In order to see what's going on here, I added this line to my TestPage class: System.out.println(*** Form Test: + user.getTest().toString()); add(new TestForm(testForm, new CompoundPropertyModel(user.getTest(; and then I went into FormComponent.java and added a similar line to

Re: Validation From A Custom Component

2009-02-17 Thread Jeremy Thomerson
I, too, agree that this may not be the best way of doing things. But, anyway, there is a solution that will work: Use ValidationError rather than just a string public void updateModel() { try { super.updateModel(); }

Re: Stackoverflow running Wicket application on JBOSS cluster

2009-02-17 Thread Jeremy Levy
We have seen the same issue with virtually the same set up. You may want to try running it in a profiler and pinpoint directly where it's having an issue. I was able to get it to work if I didn't use distributable/ in web.xml. But then of course there is no session replication. Tomcat session

Re: Validation From A Custom Component

2009-02-17 Thread Nino Martinez
Jeremy Thomerson wrote: I, too, agree that this may not be the best way of doing things. But, anyway, there is a solution that will work: Use ValidationError rather than just a string public void updateModel() { try { super.updateModel();

Re: How exactly does RestartResponseAtInterceptPageException work?

2009-02-17 Thread Jeremy Levy
David, To my knowledge, the onClick will not be rerun. I would do getPage() in that onClick and send them to the page (passing the getPage()) that does something, then send them back after doing some work. When they click on the link again, in theory, token shouldn't be null again... Jeremy

Re: Validation From A Custom Component

2009-02-17 Thread Jeremy Thomerson
Because there's a compile error if you don't The method error(IValidationError) is ambiguous for the type new TextFieldString(){}. I thought the same, and didn't care to look further since this was just a quick example. Take a look for yourself: new TextFieldString(, new ModelString())

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Sergey Podatelev
Okay, thanks for you replies, my question was poorly formulated. There are two issues here. First problem is that I apparently don't understand some very basic principles behind Spring-configured beans handling. I assume that a DAO configured in Spring are created on application deployment,

Add a surrounding component to itself

2009-02-17 Thread Prag
For a component (A) I would like to be able to add a surrounding component (B) (a link) in some cases. Component A itself should be able to add surrounding component B. Example: A product component in some cases has detailed info. If this is the case, the product component should be linkable to

Re: Add a surrounding component to itself

2009-02-17 Thread Jeremy Thomerson
One option: Use a panel that contains both. Rather than adding B, add the panel, which knows to display one or both. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Feb 17, 2009 at 4:37 PM, Prag pragprog...@gmail.com wrote: For a component (A) I would like to be able to add a

inmethod datagrid with a DropDownChoice cell

2009-02-17 Thread Will Jaynes
I'm working with the inmethod datagrid. The grid is editable, and I have it working just as the examples show, with a couple of cells that contain text. As in the examples, clicking on a row changes some cells into TextField components that can be edited. Now I would like to create a cell that

Yet another Wicket quick start application...

2009-02-17 Thread Patrick Angeles
For anyone interested, I've made public yet another quick start application that brings together Wicket, Spring 2.5 and Hibernate. The app features a basic CRUD framework based on wicketstuff-crud. The CRUD framework uses bean annotations to define CRUD properties. It also uses the excellent

Re: Yet another Wicket quick start application...

2009-02-17 Thread Sergey Podatelev
Will definitely check that out, thanks. On Wed, Feb 18, 2009 at 2:41 AM, Patrick Angeles patr...@inertiabev.comwrote: For anyone interested, I've made public yet another quick start application that brings together Wicket, Spring 2.5 and Hibernate. The app features a basic CRUD framework

How can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...

2009-02-17 Thread Jen Van Orman
I am overriding the DatePicker class in order to limit the calendar to 3 months, and I also want to disable the 1st through 4th of each month. My override of getAdditionalJavascript does the following adds a renderer to these dates as an OutOfBoundsDate: * for*( *int* i =

Re: Validation From A Custom Component

2009-02-17 Thread walnutmon
My solution was a combination of the ideas here, let me know what you think :) While I don't particularly love the idea of using domain exceptions to render feedback on the front end, I don't have any control over certain decisions; still, being able to use a strict domain and have it interact

Re: Add a surrounding component to itself

2009-02-17 Thread Willis Blackburn
Prag, It would be tough to write a component that could replace itself, and I think that it's impossible to have a component that's visible when its parent is invisible. What you want to do is create a Panel that either displays the link with the product within it, or just displays the

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Patrick Angeles
To answer your question, yes spring beans are singleton by default. The @SpringBean annotation works roughly like this: in your Application class, you set a ComponentInstantiationListener which gets called every time a Wicket page/component is instantiated. The particular listener that gets set

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Sergey Podatelev
Thanks for your insight, Patrick. But I'm stuck in my dumbness: setting the component's fields -- does this mean a new instance of that particular annotated bean is created, or that singleton is accessed somehow (proxy)? Also, it's not the injected beans that are null, it's their dependencies,

Re: Validation From A Custom Component

2009-02-17 Thread nino martinez wael
Hehe, I knew there were some reason.. Just looked a bit odd. 2009/2/17 Jeremy Thomerson jer...@wickettraining.com Because there's a compile error if you don't The method error(IValidationError) is ambiguous for the type new TextFieldString(){}. I thought the same, and didn't care to look

Re: Adding multiple ajax behavious on same event

2009-02-17 Thread rag...@directi
I guess minis is part of wicketstuff-corei did not find any CompoundBehavior in minis project. martin-g wrote: see CompoundBehavior in wicketstuff-minis El lun, 16-02-2009 a las 03:06 -0800, rag...@directi escribió: I am using an AjaxLink which has a javascript for onclick event now