Re: Does [Parent|Child]HeaderRenderStrategy work with wicket:head tag?

2011-11-17 Thread TH Lim
Bug posted https://issues.apache.org/jira/browse/WICKET-4235 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-Parent-Child-HeaderRenderStrategy-work-with-wicket-head-tag-tp4075161p4079254.html Sent from the Users forum mailing list archive at Nabble.com.

HttpsMapper creates HttpSession by default

2011-11-17 Thread Dirk Forchel
Our Wicket application is stateless and doesn't need a HttpSession (the JSessionID is disabled by default for some SEO reasons for all requests). In Wicket 1.4 we use our own CodingStrategy implementation to switch between the Http/Https protocols if a secure annotation (RequireHttps) for a page

Re: HttpsMapper creates HttpSession by default

2011-11-17 Thread Martin Grigorov
Hi, On Thu, Nov 17, 2011 at 10:34 AM, Dirk Forchel dirk.forc...@exedio.com wrote: Our Wicket application is stateless and doesn't need a HttpSession (the JSessionID is disabled by default for some SEO reasons for all requests). In Wicket 1.4 we use our own CodingStrategy implementation to

Re: HttpsMapper creates HttpSession by default

2011-11-17 Thread Dirk Forchel
I'm not sure. But this is the comment within the source of the HttpsConfig.class: /** * Sets whether or not a new session is created before redirecting from {@code http} to {@code * https} * p * BE VERY CAREFUL WHEN SETTING THIS VALUE TO {@code false}.

Re: AjaxLazyLoadPanel question

2011-11-17 Thread heapifyman
Hello, I'm facing the same problem as the Matt above but honestly I must admit that I do not really understand Pedro's advice. Did you manage to implement his advice, Matt? Could I get a little more information about how this IAjaxCallDecorator might actually look like? That would be a great

Re: HttpsMapper creates HttpSession by default

2011-11-17 Thread Martin Grigorov
This setting is to tell Wicket whether to create a http session before going https. Otherwise if there is no http session until now and you create it in https request then this session wont be visible to any http request. Setting it to false wont bind the Session (i.e. wont create http session).

Re: Purely XML / JSON Result Page

2011-11-17 Thread TH Lim
Thanks for the tips. I some help here too (in case anyone looking for the similar solution) http://stackoverflow.com/questions/2086732/dynamic-markup-in-wicket -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Purely-XML-JSON-Result-Page-tp4075558p4079390.html Sent

Re: HttpsMapper creates HttpSession by default

2011-11-17 Thread Dirk Forchel
I know, that this setting tells Wicket when to create the HttpSession. And it seems that if the HttpSession is created in the Https request, the created Session is not visible to any Http request. In Wicket 1.4 we never switch back to the Http protocol once the secure protocol is used. So probably

Wicket 1.5.2, stalls on one tomcat

2011-11-17 Thread nino martinez wael
Hi I have a very strange problem. At a customers site we have 2 servers with 1 Tomcat 7 installed each. One day on one of the servers our application just stalled after loading the sign in page, when you click the login button. Im not sure this is a wicket problem. Heres what I've tried so far:

Re: wicket 1.5.3 problems with cookies

2011-11-17 Thread kamiseq
hi martin, so yes previously I had a problem with unit tests when I was setting cookie and redirecting with throw new RestartResponseException(new MyOtherPage()); then you advised to used NonResettingRestartException but this for some reason (I had no time yet to investigate) is breaking unittest

Re: Wicket 1.5.2, stalls on one tomcat

2011-11-17 Thread Andrea Del Bene
Profile the stalled server with Visual VM? It should detect existing deadlocks... Hi I have a very strange problem. At a customers site we have 2 servers with 1 Tomcat 7 installed each. One day on one of the servers our application just stalled after loading the sign in page, when you click the

Re: Wicket 1.5.2, stalls on one tomcat

2011-11-17 Thread nino martinez wael
THANKS! 2011/11/17 Andrea Del Bene adelb...@ciseonweb.it Profile the stalled server with Visual VM? It should detect existing deadlocks... Hi I have a very strange problem. At a customers site we have 2 servers with 1 Tomcat 7 installed each. One day on one of the servers our application

Re: wicket 302 redirect loop

2011-11-17 Thread thomas willomitzer
Hi, Thanks for the advice! I follwed and traced the problem. Think it's a combination of Wicket and Tomcat... When i send the request for http://localhost/, wicket get's the session from tomcat, renders the page and buffers the response (since ONE_PASS_RENDER isn't default). Wicket (1.5.3) also

Re: Forum vs list question

2011-11-17 Thread Ian Marshall
Hi Neill, I am in the same position as you. I prefer not to receive E-mails of all the posts and look via my browser instead. Once you have signed up, log in and: Visit the Apache Wicket › Users forum page Go to Options | Your subscription: Users forum (edit) Either Select Receive new

Re: EOFException(java.net.SocketException: Connection reset by peer: socket write error)

2011-11-17 Thread nhsoft.yhw
jira issues: https://issues.apache.org/jira/browse/WICKET-3869 Is only in IE6, IE7, IE8 will occur in this problem? -- View this message in context:

@SpringBean scope, where does it start-end?

2011-11-17 Thread bilgisever
Hello, I am trying to integrate BIRT into Spring-Wicket combo. *The case:* So far, I wrote a class that instantiates report engine and added spring annotations. I already have /context:component-scan base-package=blah.blah.andmoreblah // in bean definition file. Now I can access it via

Re: @SpringBean scope, where does it start-end?

2011-11-17 Thread Martin Grigorov
Only o.a.w.Component and o.a.w.Behavior (since 1.5.3) are auto injected. For anything else you need: class MyClass { @SpringBean private MyBean bean; public MyClass() { // my stuff Injector.get().inject(this); } } On Thu, Nov 17, 2011 at 4:04 PM, bilgisever

Re: @SpringBean scope, where does it start-end?

2011-11-17 Thread vineet semwal
in non component you can inject by Injector.get().inject(this) in constructor On Thu, Nov 17, 2011 at 7:34 PM, bilgisever mehmetate...@hotmail.com wrote: Hello, I am trying to integrate BIRT into Spring-Wicket combo. *The case:* So far, I wrote a class that instantiates report engine and

Re: @SpringBean scope, where does it start-end?

2011-11-17 Thread Ernesto Reinaldo Barreiro
SpringBean magic will only work for components. If you want to use for non-componet you have to explicitly call Injector.get().inject(this); for wicket 1.5.x or InjectorHolder.getInjector().inject(this); for wicket 1.4.x Ernesto On Thu, Nov 17, 2011 at 3:04 PM, bilgisever

Unchanging url's

2011-11-17 Thread hfriederichs
Hello, I read many posts on this, tried may suggestions, must be stupid, but I can't figure it out. I'm using Wicket 1.5.3, an application with a number of tabbed panels. My application's url is, lets say http://localhost:9080/context/ When I enter this URL, the browse immediately changes this

Re: Unchanging url's

2011-11-17 Thread Martin Grigorov
http://stackoverflow.com/questions/8081143/components-not-reloading-on-url-change-in-wicket-1-5-2 http://stackoverflow.com/questions/8135755/wicket-1-5-new-urls/8139152#8139152 On Thu, Nov 17, 2011 at 4:33 PM, hfriederichs h.friederi...@ohra.nl wrote: Hello, I read many posts on this, tried

Re: @SpringBean scope, where does it start-end?

2011-11-17 Thread bilgisever
Thanks it worked like charm. - www.mehmetatas.info -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringBean-scope-where-does-it-start-end-tp4080069p4080367.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Sven Meier
Thanks for the laugh. Where are the irony tags? Sven Am 17.11.2011 16:44, schrieb Eric Kizaki: Violates Dry: You must repeat the component hierarchy of your widgets that are in HTML in Java Code for no good reason. If you move your widget around in the html it will break the Java and you get

RE: Apache Wicket is a Flawed Framework

2011-11-17 Thread Wilhelmsen Tor Iver
Ah, it's been a while since a JSF/JSP zealot bothered to annoy Wicket users. Now go away and cook up a tag library or five. - Tor Iver

Can't Reset Form After DropDownChoice OnChange Handled

2011-11-17 Thread aksarben
I have a drop down choice component, and when the selection changes, I udpate various form fields by Ajax, in the form as follows: *public HistoryDropDown(final String id, final MapK, ? map, final Component dateField, final TrackDetailModel model, final TrackAttribute attribute) {

How to have a list of iframes ?

2011-11-17 Thread heikki
hello list, I'd like to have a dynamically generated list of iframes in my page, where each iframe has the same attributes except for its src attribute, which should dynamically be inserted. The iframes are embedded Youtube videos and I have a list of the urls to be stuck in their src

Re: How to have a list of iframes ?

2011-11-17 Thread Sven Meier
add(videoFrame); You have to add the frame to the ListItem, i.e.: listItem.add(videoFrame); Sven On 11/17/2011 06:15 PM, heikki wrote: hello list, I'd like to have a dynamically generated list of iframes in my page, where each iframe has the same attributes except for its src

Update Component on TextField Entry

2011-11-17 Thread Gregor Kaczor
Hi! I need a hint how to solve the following problem. I have a RepeaterView displaying a list of static links. Below there is a text field. As soon as something is entered in that textfield (not whitespace) I would like to replace those links with a list of completely different links

Re: wicket 302 redirect loop

2011-11-17 Thread Igor Vaynberg
as long as we are passing the /?1 url through servletresponse#encoderedirecturl() tomcat is responsible for appending the JSESSIONID if its not yet available in a cookie... -igor On Thu, Nov 17, 2011 at 2:16 AM, thomas willomitzer wi...@test.at wrote: Hi, Thanks for the advice! I follwed and

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Adam Gray
I'm curious why you wasted your time if you have already determined that Stateful, component-based frameworks are a terrible idea. Html5 + jQuery + Restlet is over -- http://www.restlet.org/ No framework is for everyone or even the best solution for every problem. If you have real suggestions

Re: wicket 302 redirect loop

2011-11-17 Thread thomas willomitzer
Fair enough ... Looking at org.apache.catalina.connector.Response a url of e.g. http://localhost/?1 results in a path of length 0 which doesn't append the jsessionid. if( sb.length() 0 ) { // jsessionid can't be first. It's obviously a tomcat issue ... but given the fact that tomcat is widely

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Nelson Segura
I am just a user of Wicket, but this make me laugh, since we are desperately trying to get out of the JSP nightmare and have found Wicket a quite nice framework. Nice. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Trying to use IAjaxCallDecorator after Modal Window close

2011-11-17 Thread mshaver
Hi all - I'm trying to add a busy indicator after a modal window is closed. In my use case, the WindowClosedCallback's onClose method is performing a few operations, and I just want to let the user know that the system is actually doing something. I noticed that CloseButtonBehavior has a

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Gabriel Landon
Is this April fool's day? Seriously? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-is-a-Flawed-Framework-tp4080411p4081149.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Alex Objelean
This is not an april fool's day, it is just an opinion of an http://www.linkedin.com/pub/eric-kizaki/30/2b1/1a4 inexperienced developer . Eric, if you have troubles in understanding wicket, you are definitely doing it wrong. Wicket is not a silver bullet, but it is a great tool when comparing to

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread thomas willomitzer
Ooohh... I better double check what I'm writing on this list, Since the FBI is around ... ;) On Thu, Nov 17, 2011 at 7:56 PM, Alex Objelean alex.objel...@gmail.comwrote: This is not an april fool's day, it is just an opinion of an http://www.linkedin.com/pub/eric-kizaki/30/2b1/1a4

Re: wicket 302 redirect loop

2011-11-17 Thread Igor Vaynberg
would adding a bogus query param help there? so the url will look like this: localhost/?1bogus=1 -igor On Thu, Nov 17, 2011 at 10:21 AM, thomas willomitzer wi...@test.at wrote: Fair enough ... Looking at org.apache.catalina.connector.Response a url of e.g. http://localhost/?1 results in a

Re: AjaxLazyLoadPanel question

2011-11-17 Thread Igor Vaynberg
you can replace the lazy load panel instance: //check other selections myLazyLoadPanel=myLazyLoadPanel.replaceWith(new MyLazyLoadPanel(myLazyLoadPanel.getId(), ..) target.addComponent(myLazyLoadPanel); this will reset the state of lazyloadpanel to the not-yet-loaded -igor On Thu, Feb 3, 2011

Re: Purely XML / JSON Result Page

2011-11-17 Thread Igor Vaynberg
why use a page at all? why not simple mount a resource or a IRequestHandler that writes out json? -igor On Thu, Nov 17, 2011 at 1:11 AM, TH Lim ssh...@gmail.com wrote: Thanks for the tips. I some help here too (in case anyone looking for the similar solution)

Re: wicket 302 redirect loop

2011-11-17 Thread thomas willomitzer
No I'm afraid ... just tried On Thu, Nov 17, 2011 at 8:19 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: would adding a bogus query param help there? so the url will look like this: localhost/?1bogus=1 -igor On Thu, Nov 17, 2011 at 10:21 AM, thomas willomitzer wi...@test.at wrote: Fair

Re: Dealing with 3 choice components

2011-11-17 Thread Alberto
On 11/16/2011 10:38 PM, Andrea Del Bene wrote: Are you referring to the example from book Apache-Wicket-Cookbook, page n°34? If so, how do you populate the list of C? Maybe you should not set to null B model when you change value in A. If you can try to give an example of values from A,B and

Re: wicket 302 redirect loop

2011-11-17 Thread Igor Vaynberg
so what do we need to do to fix it on our end? -igor On Thu, Nov 17, 2011 at 11:34 AM, thomas willomitzer wi...@test.at wrote: No I'm afraid ... just tried On Thu, Nov 17, 2011 at 8:19 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: would adding a bogus query param help there? so the url

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread geraldkw
This is not an april fool's day, it is just an opinion of an inexperienced developer. This illustrates one of the traditional logical fallacies. If you can't effectively attack the argument, attack the speaker. My biggest problem with Wicket is that I haven't found any documentation on the web

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Richard W. Adams
IMHO, your post looks at the wrong question (i.e., is Wicket perfect?). Of course it's not. No framework is. A better question is: How does it compare to OTHER frameworks? This is subjective of course, but in my personal opinion it is far better than any other framework I've tried (Struts,

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread anant . asty
First ofc all I do not see any need to convince you you can take it or leave it. 1 there is an awesome set of examples if you search for wicket examples, also there are a lot of other extensions or plug ins in wicket extensions , wicket stuff, wi query j query that support all ajax

Re: Exception Handling in 1.5

2011-11-17 Thread Nelson Segura
Hey, any idea how can I get the page/page class of the page that was being rendered when the exception happened? I was depending on that in 1.4 to determine the type of page I needed to return, for example if I am in the context of a modal window, I was showing a message in the window, and a close

Re: Exception Handling in 1.5

2011-11-17 Thread Igor Vaynberg
hrm. you cant yet. but you can check if you are in an ajax request or not by using webrequest.isajax() so you can implement that particular usecase without the page. -igor On Thu, Nov 17, 2011 at 1:19 PM, Nelson Segura nsegu...@gmail.com wrote: Hey, any idea how can I get the page/page class of

Re: Can't Reset Form After DropDownChoice OnChange Handled

2011-11-17 Thread Igor Vaynberg
what does your reset code look like? -igor On Thu, Nov 17, 2011 at 9:00 AM, aksarben rwada...@up.com wrote: I have a drop down choice component, and when the selection changes, I udpate various form fields by Ajax, in the form as follows: *public HistoryDropDown(final String id, final MapK,

Re: Update Component on TextField Entry

2011-11-17 Thread Igor Vaynberg
use the TextField component and add OnChangeAjaxBehavior to it, then from inside onEvent() you can repaint the list. -igor On Thu, Nov 17, 2011 at 9:49 AM, Gregor Kaczor gkac...@gmx.de wrote: Hi! I need a hint how to solve the following problem. I have a RepeaterView displaying a list of

Debugging a NPE from a ModelPropertyResolver

2011-11-17 Thread Jablow, Eric R
I am trying to use Igor's wicket-validation-bean project, and I've managed to make a mistake where I'm getting a NullPointerException from when ValidationForm attempts to add property validators. Unfortunately, I can't tell what property it's trying to attach validators for here, as the

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Peter Ertl
Nice post, Eric! Wicket people are a humorous folk and always appreciate good entertainment :-) Am 17.11.2011 um 22:02 schrieb anant.a...@gmail.com: First ofc all I do not see any need to convince you you can take it or leave it. 1 there is an awesome set of examples if you search for wicket

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Gaetan Zoritchak
I must admit that I agree with you. While I think Wicket is a great framework, the documentation is not up to par. This tool seems a little too elitist. If you're strong enough you will find a great framework. It's a shame because even if the mailing list is very effective it slows down the

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Nelson Segura
You might/might not be right about documentation. This is usually true of most frameworks when you move from the Hello World program to a real life app. The original message said little to nothing about documentations. It is basically comparing Wicket to JSPs, and saying JSP are better. It might

ValidationForm.addPropertyValidators sometimes looks for child properties in parent's model

2011-11-17 Thread Jablow, Eric R
I have some model classes with JSR 303 validation annotations, and I have some FormComponentPanels for each. Some of these will be nested. To test that the Wicket validation is correct, I'm creating a ValidationForm, which contains one of my panels, which contains another of my panels, and I am

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Igor Vaynberg
* there are three books written about wicket: two for beginners and one for intermediate-advanced users. * there is a searchable mailing list archive that spans years upon years of users asking questions and getting answers. * there is a wiki that lists examples and has some good articles. * there

Re: Debugging a NPE from a ModelPropertyResolver

2011-11-17 Thread Igor Vaynberg
it seems like there is a buggy implementation of IPropertyReflectionAwareModel somewhere. did you implement your own model that implements that interface? seems like there is a model somewhere that is a IPropertyReflectionAwareModel but it returns null for all getSetter/Getter/Field() methods...

Re: ValidationForm.addPropertyValidators sometimes looks for child properties in parent's model

2011-11-17 Thread Igor Vaynberg
inline, On Thu, Nov 17, 2011 at 4:05 PM, Jablow, Eric R eric.jab...@mantech.com wrote: I have some model classes with JSR 303 validation annotations, and I have some FormComponentPanels for each. Some of these will be nested. To test that the Wicket validation is correct, I'm creating a

RE: Debugging a NPE from a ModelPropertyResolver

2011-11-17 Thread Jablow, Eric R
No, we are using only the stock models, I think. In any case, the particular test class uses CompoundPropertyModel. From: Igor Vaynberg [igor.vaynb...@gmail.com] Sent: Thursday, November 17, 2011 7:24 PM To: users@wicket.apache.org Subject: Re: Debugging a

Re: Debugging a NPE from a ModelPropertyResolver

2011-11-17 Thread Igor Vaynberg
if you create a testcase and attach it as a pull request i can take a look. or a quickstart attached elsewhere would also work. -igor On Thu, Nov 17, 2011 at 4:35 PM, Jablow, Eric R eric.jab...@mantech.com wrote: No, we are using only the stock models, I think. In any case, the particular

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread robert.mcguinness
i'm baffled when people say the documentation is poor, the javadocs are excellent and like igor said there are some great books (blogs too!). books and blogs get outdated fast since technlogy is rapidly advancing, so *use the source luke!*. Not only will you learn Wicket, but I guarantee your

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread sthomps
As gerald mentioned address the content - not the speaker, much more effective. i'll address a few of your points and bring up a few of my own. I'm sure the others can be addressed with thoughtful/intelligent responses. *Violates DRY*: There is a reason that HTML is separated from your

AjaxEditableLabel inside of AjaxEditableLabel

2011-11-17 Thread Alec Swan
Hello, I have two AjaxEditableLabel components. I use jQuery to place one component inside of another when the user views the page. The problem is that when the user clicks inside of the inner AjaxEditableLabel it goes into edit mode but right after that the outer AjaxEditableLabel goes into edit

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Attila Király
Currently a link to this mail is the most popular on dzone: http://www.dzone.com/links/apache_wicket_is_a_flawed_framework.html Attila

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Jeroen Steenbeeke
I really liked the comment by javakata on that post. Counters every argument with a counter-example and doesn't attack the speaker once. 2011/11/18 Attila Király kiralyattila...@gmail.com: Currently a link to this mail is the most popular on dzone:

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread nino martinez wael
Sensational news are always a hit, even when not true. Any tool can be misused. With great power comes great responsibility. -Nino 2011/11/18 Attila Király kiralyattila...@gmail.com Currently a link to this mail is the most popular on dzone:

Re: Wicket 1.5.2, stalls on one tomcat

2011-11-17 Thread nino martinez wael
So I digged into this and discovered something strange. On the server that was working it had jre 6u24 and on the one not working it had jre 6u29. I could'nt restart the server, but after installing jdk 6u25 it actually worked.. This is not good. It could prove hard to replicate with other

Re: AjaxEditableLabel inside of AjaxEditableLabel

2011-11-17 Thread Martin Grigorov
Hi, You'll need to stop the propagation of the event. To do that you'll have to override org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.EditorAjaxBehavior.onComponentTag(ComponentTag) On Fri, Nov 18, 2011 at 7:48 AM, Alec Swan alecs...@gmail.com wrote: Hello, I have two