RE: [ANNOUNCE] Wicket 1.4.14 Released

2010-11-29 Thread Chris Colman
Cool! Well done guys. Regards, Chris -Original Message- From: Jeremy Thomerson [mailto:jrthomer...@apache.org] Sent: Monday, 29 November 2010 5:07 PM To: users@wicket.apache.org; Wicket Development; annou...@wicket.apache.org Subject: [ANNOUNCE] Wicket 1.4.14 Released The Wicket

RE: component not visible exception

2010-11-29 Thread Chris Colman
A back button where? The form is on a page and has a submit button only. If there is an error a ModalWindow pops up - it only has an OK button which is meant to make the ModalWindow simply disappear and thus re-enable the page beneath - the one with the form on it. Chris -Original

SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
div wicket:id=listview-container wicket:container wicket:id=list-view/ /div Which is laid out as: ... panel.add((listviewContainer = new WebMarkupContainer(listview-container)).setOutputMarkupId(true)); ... This is almost what I have (in the Page), except the outermost one is

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Martin Makundi
I don't know what you mean with transparent but ofcourse you cannot repaint invisible things. ** Martin 2010/11/29 Wilhelmsen Tor Iver toriv...@arrive.no: div wicket:id=listview-container   wicket:container wicket:id=list-view/ /div Which is laid out as: ... panel.add((listviewContainer =

Re: Maven: Where to find the current binaries

2010-11-29 Thread Uwe Schäfer
On 11/26/2010 08:28 PM, Uwe Schäfer wrote: i am quite puzzle due the maven behaviour described below. I took this to the maven mailinglist, but with no result. to be complete, here´s the link to the according thread on maven-user: http://bit.ly/gj33qP

Re: component not visible exception

2010-11-29 Thread Martin Grigorov
Here is another scenario: Ajax request sets the visibility of the submit button (or its parent) to false but forgets to repaint the button so it is still visible for the user. Then the user clicks on this button, it fires and then the backend shows this message - the button is invisible so it

SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
I don't know what you mean with transparent but ofcourse you cannot repaint invisible things. A transparent container is one that appears in the markup and in the code but which returns true for isTransparentResolver(). It's not invisible but is not part of the explicit hierarchy. An example

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Martin Makundi
wicket:enclosure is not present if not visible (from browser perspective). So it cannot be repainted. http://apache-wicket.1842946.n4.nabble.com/Wicket-ajax-enabled-enclosures-td3033370.html 2010/11/29 Wilhelmsen Tor Iver toriv...@arrive.no: I don't know what you mean with transparent but

SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
wicket:enclosure is not present if not visible (from browser perspective). So it cannot be repainted. I think we are talking past each other: It was just an example of something that is a transparent container to a Wicket developer, though it is implemented using IComponentResolver instead of

[Announce] Wicketstuff-core 1.4.14 Released

2010-11-29 Thread Michael O'Cleirigh
Hello, Following the release of wicket 1.4.14 I've cut a matching release for wicketstuff-core. The artifacts have been promoted and synced into the maven central repository. They can be retrieved like this: dependency groupIdorg.wicketstuff/groupId artifactIdprogressbar/artifactId

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Martin Makundi
Transparent container probably doesn't exist/have an id so yes.. but I guess this could be fixed/automated in wicket. ** Martin 2010/11/29 Wilhelmsen Tor Iver toriv...@arrive.no: wicket:enclosure is not present if not visible (from browser perspective). So it cannot be repainted. I think we

Wicket 1.4.14 Bug with panels updated by Ajax rendering a CSS

2010-11-29 Thread Antoine Angenieux
Hi all, I have just upgraded my dev environment from Wicket 1.4.13 to 1.4.14 this morning and discovered a bug related to CSS. On a page, I have a panel containing a listview, itself populated with panels that have in their constructor: add(CSSPackageResource.getHeaderContribution(CSS));

PropertyModel expression for collection object

2010-11-29 Thread hemilshah
Hi, I have a collection object in a class. I want to retrieve the property value using PropertyModel for the object. Please suggest. Consider - class A { Set objA = new HashSet(); } class B { B b = new B(); } i tried using expression like A[0].b as expression but it fails giving error

onSubmit not getting invoked using AjaxButton

2010-11-29 Thread hemilshah
Hi, I have a panel with 2 dropdown choice component and an AjaxButton. One dropdownchoice has a AjaxFormUpdatingComponent behaviour added and this is working fine. But on clicking, its not invoking onSubmit button. It seems that there is a validation failure as Wicket invokes onError method

Re: onSubmit not getting invoked using AjaxButton

2010-11-29 Thread Poko Booth
Add a feedback and rerender it on the onError method to see the specific error. Regards, Poko On Nov 29, 2010, at 10:29, hemilshah hemil.s...@consult.nordea.com wrote: Hi, I have a panel with 2 dropdown choice component and an AjaxButton. One dropdownchoice has a

wicket + BPM/ jpbm

2010-11-29 Thread Korbinian Bachl - privat
Hello, as I had no luck in the ICQ channel, I post it here: Has anyone some knowledge about putting wicket and BPM together? I saw that there was a wicketBPM project in past by kgalligan under http://bigheadco.blogspot.com/2007/02/wicket-bpm-update.html but email and site are dead. Beside

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Pedro Santos
When an transparent resolved component is rendered, it is able to correctly resolve any wicket:id in the inner html object because it delegates the Component#get to its parent, and it is able to know who are its children components traversing the html at at the markupStream object. So this special

Re: component not visible exception

2010-11-29 Thread Douglas Ferguson
We have not overridden isVisible, nor have we do we have a popup modal. That's why I was asking if this could be a back button issue. The only thing we do is set the button enabled. Could this be the problem even thought he message it talking about visibility? D/ On Nov 29, 2010, at 3:15 AM,

Re: component not visible exception

2010-11-29 Thread Martin Grigorov
On Mon, Nov 29, 2010 at 4:46 PM, Douglas Ferguson doug...@douglasferguson.us wrote: We have not overridden isVisible, nor have we do we have a popup modal. That's why I was asking if this could be a back button issue. The only thing we do is set the button enabled. Could this be the problem

Re: onSubmit not getting invoked using AjaxButton

2010-11-29 Thread Alexander Monakhov
Hey, in development mode you can check ajax debug panel. So, you can see all ajax request. If it doesn't help could you, please, provide sample source? Best regards, Alexander. - To unsubscribe, e-mail:

Re: PropertyModel expression for collection object

2010-11-29 Thread Alexander Monakhov
Hello. See this link for property expression language: https://cwiki.apache.org/WICKET/property-expression-language.html property.index: If the property is a List or Array then the second property can be used as a index on that list/array like this: 'mylist.0'. Best regards, Alexander.

DatePicker to pick a year

2010-11-29 Thread Anna Simbirtsev
Hi, Is it possible to get datapicker to switch between year, currently there are arrows to only switch between month? Thanks, Anna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

WebMarkupContainer issue

2010-11-29 Thread drf
I wonder if someone can help. In my code, I have a java class which extends Panel and associated html. This contains, among other things, a Panel object mainPanel. Everything works fine. I now want to enclose the mainPanel object in a WebMarkupContainer. To do so, I declare an instance variable

Re: DatePicker to pick a year

2010-11-29 Thread Marco Mancini
try this code: DatePicker mydp= new DatePicker(){ private static final long serialVersionUID = 1L; @Override protected boolean enableMonthYearSelection() { return true; } }; 2010/11/29 Anna

Re: WebMarkupContainer issue

2010-11-29 Thread Marco Mancini
mm div wicket:id=pageContainerdiv class=mainPageDiv wicket:id=mainPage/div/ div replace whit div wicket:id=pageContainerdiv class=mainPageDiv wicket:id=mainPage/div/ div need one:-D 2010/11/29 drf davidrfi...@gmail.com I wonder if someone can help. In my code, I have a java

Re: WebMarkupContainer issue

2010-11-29 Thread drf
sorry - can you point out exactly the difference in the html ? It's not clear to me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebMarkupContainer-issue-tp3063886p3063905.html Sent from the Users forum mailing list archive at Nabble.com.

Re: component not visible exception

2010-11-29 Thread Marco Mancini
try to set mybutton.setOutputMarkupPlaceholderTag(true); bye marco 2010/11/29 Martin Grigorov mgrigo...@apache.org On Mon, Nov 29, 2010 at 4:46 PM, Douglas Ferguson doug...@douglasferguson.us wrote: We have not overridden isVisible, nor have we do we have a popup modal. That's why I

Re: DatePicker to pick a year

2010-11-29 Thread Anna Simbirtsev
It does not work, only can switch between month, not year. On Mon, Nov 29, 2010 at 11:33 AM, Marco Mancini marcoman...@gmail.com wrote: try this code: DatePicker mydp= new DatePicker(){                private static final long serialVersionUID = 1L;               �...@override              

Re: WebMarkupContainer issue

2010-11-29 Thread Marco Mancini
wicket:id=pageContainer -your wicket:id=pageContainer mine 2010/11/29 drf davidrfi...@gmail.com sorry - can you point out exactly the difference in the html ? It's not clear to me. -- View this message in context:

Re: UploadProgressBar on nested forms

2010-11-29 Thread Alec Swan
Igor, thanks for fixing JIRA 3191. Based on your comment the progress bar will show up in all nested file upload forms when a single form is submitted. Is there a way to make the progress bar a child component of the outer form and display the bar on submission of any (or all) nested forms?

Re: WebMarkupContainer issue

2010-11-29 Thread drf
That was a just typo in the question It is div wicket:id=pageContainerdiv class=mainPageDiv wicket:id=mainPage/div/div Do you have any other ideas ? Thank you very much ! -- View this message in context:

Re: DatePicker to pick a year

2010-11-29 Thread Marco Mancini
in this page the problem is dateformat... but he can switch year https://issues.apache.org/jira/browse/WICKET-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12846200#action_12846200 try to click on month name for change year! 2010/11/29 Anna

Re: UploadProgressBar on nested forms

2010-11-29 Thread Igor Vaynberg
yeah, just add it to the outer form :) -igor On Mon, Nov 29, 2010 at 8:52 AM, Alec Swan alecs...@gmail.com wrote: Igor, thanks for fixing JIRA 3191. Based on your comment the progress bar will show up in all nested file upload forms when a single form is submitted. Is there a way to make

Re: Wicket 1.4.14 Bug with panels updated by Ajax rendering a CSS

2010-11-29 Thread Brad Grier
Since upgrading the tabs from wiQuery 1.02 no longer work in my application. Could be related as the CSS isn't being picked up at all. These are tabs on panels displayed via ajax. -Original Message- From: Antoine Angenieux Sent: Monday, November 29, 2010 8:42 AM To:

Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brad Grier
After 1.4.14 wiquery tab components no longer render in my application. These tabs are sitting on panels displayed via ajax so perhaps it’s something to do with the css/javascript contribution. Interestingly the wiquery accordions still work fine.

SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
So this special component is designed to be aware of children components only at the rendering time ( working with the markupStream ) and not at the pre-rendering. As the ListView depends on pre-rendering logic, add an transparent resolved component in ajax request target has no effect because

Re: component not visible exception

2010-11-29 Thread Douglas Ferguson
That is wierd.. the component is a field and is private. We don't set visible nor do we override isVisible(). Could this have to do with the parent container? We do set that visible... On Nov 29, 2010, at 9:58 AM, Martin Grigorov wrote: On Mon, Nov 29, 2010 at 4:46 PM, Douglas Ferguson

Re: component not visible exception

2010-11-29 Thread Douglas Ferguson
Hmm... even if we aren't changing the visibility of the button? On Nov 29, 2010, at 10:42 AM, Marco Mancini wrote: try to set mybutton.setOutputMarkupPlaceholderTag(true); bye marco 2010/11/29 Martin Grigorov mgrigo...@apache.org On Mon, Nov 29, 2010 at 4:46 PM, Douglas Ferguson

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
in order for component to be visible all of its parents have to be visible from the page down to the component. same for the enabled state. -igor On Mon, Nov 29, 2010 at 9:21 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Hmm... even if we aren't changing the visibility of the button?

Re: Preventing user input script-injection attacks

2010-11-29 Thread Ian Marshall
Igor I was unaware of the class org.apache.wicket.util.string.Strings, let alone that package. The Strings.escapeMarkup(...) method you mentioned fits my needs exactly. Thank you. Michał -- Thank you also for your tip. I shall be using the Wicket method that Igor mentioned. I shall

Re: DatePicker to pick a year

2010-11-29 Thread Anna Simbirtsev
That works, thanks. I just wonder how users will be able to figure it out. On Mon, Nov 29, 2010 at 11:56 AM, Marco Mancini marcoman...@gmail.com wrote: in this page the problem is dateformat... but he can switch year

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brian Topping
On Nov 29, 2010, at 12:04 PM, Brad Grier wrote: After 1.4.14 wiquery tab components no longer render in my application. These tabs are sitting on panels displayed via ajax so perhaps it’s something to do with the css/javascript contribution. Interestingly the wiquery accordions still work

Re: component not visible exception

2010-11-29 Thread Douglas Ferguson
We do toggle the visibility of the web markup container that contains the button. Here's how it works. 1) Page loads and the container is hidden 2) An ajax timer is used to watch for state to change 3) When state changes we make the container visible (which then makes the submit button

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
easy. the form's action url points to a version of the page where the button is not visible. so when the button is clicked and the form is submitted wicket rolls back the version of the page to one where button is not visible and you get the error. not sure that is what is happening in your app,

Re: component not visible exception

2010-11-29 Thread Douglas Ferguson
The problem is that I can't recreate this error, but I see it in production alot. So I have no way of looking at the action url. D/ On Nov 29, 2010, at 12:59 PM, Igor Vaynberg wrote: easy. the form's action url points to a version of the page where the button is not visible. so when the

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
another possibility, if this page is using hybrid url coding strategy, is that the session expires and the form is submitted against a new instance of the page - where the button is not visible. -igor On Mon, Nov 29, 2010 at 11:05 AM, Douglas Ferguson doug...@douglasferguson.us wrote: The

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brad Grier
Hey thanks for trying it. My tabs are on panels that get swapped in and out via ajax. Are you using this approach? Since our app creates these tabs dynamically via ListViews, I thought maybe it was my implementation. As a test I took the most basic tab example from the wiQuery site and put it

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brian Topping
On Nov 29, 2010, at 2:39 PM, Brad Grier wrote: My tabs are on panels that get swapped in and out via ajax. Are you using this approach? They are ajax, but I haven't bothered looking at how it works. Here's what I use in populateItem(): mainContentPanel =

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brian Topping
On Nov 29, 2010, at 3:02 PM, Brian Topping wrote: On Nov 29, 2010, at 2:39 PM, Brad Grier wrote: My tabs are on panels that get swapped in and out via ajax. Are you using this approach? They are ajax, but I haven't bothered looking at how it works. Here's what I use in

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brad Grier
Okay, well...it's more than a contribution problem. It looks like the tab's associated div, ul and li tags do not get modified by wiquery in 1.4.14. WiQuery assigns classes to these tags (ui-tabs, ui-tabs-nav, ui-state-default, etc). Those are all missing when I run in Wicket 1.4.14. Since it

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread julien roche AKA indiana_jules
Hi all, Can you try tabs with the last release of wiquery ? (the 1.1.1). A lot of changes and refactoring were don into the core. Maybe that will solved your problems. Can you give me your feedbacks please . Thank you Regards Julien Roche On Mon, Nov 29, 2010 at 9:33 PM, Brad Grier

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brian Topping
Ah, great point. I am already using 1.1.1! On Nov 29, 2010, at 4:34 PM, julien roche AKA indiana_jules wrote: Hi all, Can you try tabs with the last release of wiquery ? (the 1.1.1). A lot of changes and refactoring were don into the core. Maybe that will solved your problems. Can you

Re: component not visible exception

2010-11-29 Thread Douglas Ferguson
That seems more likely to me. Is there anything I could do to prevent this? D/ On Nov 29, 2010, at 1:21 PM, Igor Vaynberg wrote: another possibility, if this page is using hybrid url coding strategy, is that the session expires and the form is submitted against a new instance of the page -

Re: Wicket 1.4.14 and WiQuery Tabs

2010-11-29 Thread Brad Grier
Sadly, none of my wiquery components seem to work under 1.1.1. Previously, I had to disable auto-import of jquery resources because I was having conflicts with other jquery-based components (jgrowl, custom stuff). Maybe that's why. I assume 1.1.1 is backwards compatible and setup is the same?

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
this is a shortcoming of the hybrid coding strategy. you can try tweaking it so that if it detects a url with page id but page id is not found in session it can throw a stale page exception. submit a patch and we can role it into core. -igor On Mon, Nov 29, 2010 at 2:31 PM, Douglas Ferguson

Re: UploadProgressBar on nested forms

2010-11-29 Thread Alec Swan
Right, that works. However, the progress bar shows up but doesn't show any progress. It basically sits there without updating and then disappears. Am I missing some customization steps? What I am trying to do is to have the progress bar to be a sort of modal dialog expanding over the outer form

Re: UploadProgressBar on nested forms

2010-11-29 Thread Igor Vaynberg
your quickstart was missing the UploadWebRequest. see progress bar's javadoc. -igor On Mon, Nov 29, 2010 at 5:23 PM, Alec Swan alecs...@gmail.com wrote: Right, that works. However, the progress bar shows up but doesn't show any progress. It basically sits there without updating and then

Dynamically loading image

2010-11-29 Thread Matthew Goodson
Hi all, I'm needing to generate the url to an image dynamically on the client. i.e. I want to be able to chuck a generated url (e.g localhost:8080/images?imageId=blah) into the src of an img which would then go off and hit a wicket page which returns the binary data for the image. I'm not really

WICKET-962 and AbstractRepeater's warning about child ID's

2010-11-29 Thread Alexander Morozov
Hi, could any wicket gurus explain in more details about ajax updates and AbstractRepeater's limitation to child ids ? I found in mentioned in the subject issue, but still did not get the limitation. Is this limitation actual for wicket 1.4.x and wicket-1.5 ? In my project I use repeating view

Re: Dynamically loading image

2010-11-29 Thread Igor Vaynberg
there is a wiki page that explains how to serve images...search for it, i think its called uploade/download or something like that. -igor On Mon, Nov 29, 2010 at 7:11 PM, Matthew Goodson matt...@spidertracks.co.nz wrote: Hi all, I'm needing to generate the url to an image dynamically on the

Re: visural-wicket 0.6.5 released!

2010-11-29 Thread Richard Nichols
Hi Marc, Yes I will intend to improve the Maven support for the next release. For now I have updated the wiki on Maven support to include the required references to the visural-common library. http://code.google.com/p/visural-wicket/wiki/MavenSupport cheers, Richard. On Fri, Nov 26, 2010 at

SetObject with PageableListView

2010-11-29 Thread nivs
Hi I have a question related to using a collection (Set) within a PageableListView. At runtime I get an exception java.lang.ClassCastException: org.hibernate.collection.PersistentSet cannot be cast to java.util.List at org.apache.wicket.markup.html.list.ListView.getList(ListView.java:177)

PageableListView to work with Set

2010-11-29 Thread nivs
Hi I have a question related to using a collection (Set) within a PageableListView. At runtime I get an exception java.lang.ClassCastException: org.hibernate.collection.PersistentSet cannot be cast to java.util.List at org.apache.wicket.markup.html.list.ListView.getList(ListView.java:177) The

SV: PageableListView to work with Set

2010-11-29 Thread Wilhelmsen Tor Iver
I guess it expects only a List type object. I can work around this by converting the Set into a List and then provide it but felt somehow this is a limitation. How can I work with generic collections? Any thoughts much appreciated No, because ordering requires the indexing a List has. In

Re: component not visible exception

2010-11-29 Thread Matthias Keller
One other thing to check is, do you have a custom isVisible() override in the container or do you explicitly set it to visible/invisible using setVisible()? If the former, this logic will usually be re-evaluated upon form submission and if that logic depends on some state which might change