Re: Regression in 1.3.0-beta3(?)

2007-08-31 Thread Johannes Schneider
I don't use any AjaxFAllbackOrderByBorder or anything else in my code. So I think there must be another trigger for the bug, too. Johannes Schneider Jonas-21 wrote: I've been able to reproduce the problem with a these few classes: http://www.nabble.com/file/p12409279/Expected_close_tag.zip

Re: Portlet Support

2007-08-31 Thread Dipu Seminlal
Hi All, many thanks for pointing me to the right direction. Regards Dipu On 8/30/07, Matej Knopp [EMAIL PROTECTED] wrote: Hi Ate, thanks for the examples. The progress is tremendous. Awesome. -Matej On 8/30/07, Ate Douma [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: I think it

Custom page - class mapping

2007-08-31 Thread Peter Dotchev
Hello, I'd like to use custom convention for page class names. Something like Home.html - HomePage.class How can I do this in wicket 1.3? I don't want to mount each page separately. I guess I should implement IRequestTargetUrlCodingStrategy but would not like to do it from scratch. Any hints?

MarkupContainer.get(path) or hold reference?

2007-08-31 Thread Sam Hough
Any distinct differences between using MarkupContainer.get(path) or just holding a reference to a component? The latter seems faster and more consistent with GWT/Swing? Got a vague memory of reading somewhere that holding lots of references to Components is an anti-pattern but I can't find it

Re: MarkupContainer.get(path) or hold reference?

2007-08-31 Thread Eelco Hillenius
Any distinct differences between using MarkupContainer.get(path) or just holding a reference to a component? The latter seems faster and more consistent with GWT/Swing? Got a vague memory of reading somewhere that holding lots of references to Components is an anti-pattern but I can't find

Re: MarkupContainer.get(path) or hold reference?

2007-08-31 Thread Sam Hough
Great. I must have just imagined the anti-pattern comment or got it the wrong way around. Thanks Eelco Hillenius wrote: Any distinct differences between using MarkupContainer.get(path) or just holding a reference to a component? The latter seems faster and more consistent with GWT/Swing?

Re: MarkupContainer.get(path) or hold reference?

2007-08-31 Thread Eelco Hillenius
Great. I must have just imagined the anti-pattern comment or got it the wrong way around. An anti pattern in Wicket 1.2 would be to keep passing pages in to other pages. One back page is no problem, but a linked list out of them would eat considerable memory. In Wicket 1.3 this is hardly

wicketstuff-dojo: deprecated warnings?

2007-08-31 Thread Thies Edeling
Using the DojoDatePicker widget from wicketstuff-dojo (1.3.0-beta) gives a dojo warning: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for simpledropdowndatepicker in dojo.widget registered to namespace dojo. Developers must specify

Re: MarkupContainer.get(path) or hold reference?

2007-08-31 Thread Sam Hough
Thanks Eelco, On a related subject. Why does Wicket get us to do: new Button(id) { @Override public void onSubmit() { } }; rather than: Button b = new Button(id); b.addOnSubmit(new SubmitHandler() { public void onSubmit(Field f) { } }}; ? The latter seems more common elsewhere. Is it

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Matej Knopp
You don't interact with WicketSessionFilter directly. You just set it up, providing name of your WicketFilter ad argument. You need to map the WicketSessionFilter to same url as your non-wicket filter/servlet and make sure that you use a non-wicket filter WicketSessionFilter gets invoked first.

Re: MarkupContainer.get(path) or hold reference?

2007-08-31 Thread Sam Hough
using addSomeEventHandler would also remove the need for: @Override protected boolean wantOnSelectionChangedNotifications() { return true; } in DropDownChoice

Tree not redrawn when resetting root node

2007-08-31 Thread Doug Leeper
I have a tree that I reset the root node when a user selects on another component (Component A). However, the tree is not redrawn until I click on the tree (the previous tree contents are shown). Besides Tree.invalidateAll() and DefaultTreeModel.nodeStructureChanged(tnode )

Re: Tree not redrawn when resetting root node

2007-08-31 Thread Matej Knopp
What does it mean reset root node. What exactly do you do with your TreeModel. And what tree model are you using? -Matej On 8/31/07, Doug Leeper [EMAIL PROTECTED] wrote: I have a tree that I reset the root node when a user selects on another component (Component A). However, the tree is not

Re: Download link from DynamicWebResource?

2007-08-31 Thread Nino Saturnino Martinez Vazquez Wael
Hi Jan this is working very smoothly.. It should be part of core wicket... Maybe a little more generic... regards Nino Jan Kriesten wrote: hi nino, i use something like that to download dynamically generated excel-files. to get a resourcestream, i use this class: --- package wicket.util;

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Thomas Singer
Matej and Johan, thanks for your feed-back. I've tried to avoid the WicketSessionFilter and make everything work from our code. Just curious: is the WicketSessionFilter handled something special by Wicket? Or how does it get the WebSession reference? Tom Matej Knopp wrote: You don't

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Johan Compagner
look at the source :) On 8/31/07, Thomas Singer [EMAIL PROTECTED] wrote: Matej and Johan, thanks for your feed-back. I've tried to avoid the WicketSessionFilter and make everything work from our code. Just curious: is the WicketSessionFilter handled something special by Wicket? Or how does

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Thomas Singer
Did you read my first mail in this thread? How does the WebSession reference comes into the HttpSession? That's what I don't understand for now. Tom Johan Compagner wrote: look at the source :) On 8/31/07, Thomas Singer [EMAIL PROTECTED] wrote: Matej and Johan, thanks for your feed-back.

Re: How to integrate wicket frame work with spring

2007-08-31 Thread Evan Chooly
You can also look at qwicket.sf.net for some ideas on integrating spring and wicket. It's a little out of date atm but the ideas are the same either way On 8/30/07, bhupat parmar [EMAIL PROTECTED] wrote: hi i need help in integrating wicket frame work with spring frame .i am using direct

Re: Component Factory and code against interface

2007-08-31 Thread Sam Hough
igor, I've not been able to get rid of the requirement I've been given to support an Ajax capable client and old browser with tiny bit of JavaScript. Your words seem more true than ever but I can't think of a better way of doing it than the Swing/AWT style with our own simple objects being

Re: CheckGroup in a DataTable

2007-08-31 Thread Tim Lantry
Ok. I noticed in the updateModel method of the CheckGroup it is clearing the collection each time before adding the new ones to avoid duplicates in the collection. So I created a new component that extends the CheckGroup and changed the updateModel method. I removed the collection.clear() and

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Thomas Singer
OK, let's look at the sources of WicketSessionFilter. According to my understanding: init() method: - the filterName init parameter (which is stored as a member, but should in a local variable) defines the sessionKey doFilter() method: - first the httpSession will be fetched if available -

Re: Update a ListView (Solved)

2007-08-31 Thread juliez
Just need to remember only the model get updated for each request. So after I changed to code as follows, it works! After: PageableListView messageListView = new PageableListView(messageTable, new PropertyModel(this, messages), 5) Before: PageableListView messageListView = new

WizardStep isComplete and Next button interaction

2007-08-31 Thread Doug Leeper
When I create a WizardStep, I automatically call setComplete( false ). When the user performs the necessary option (selects an item), I call setComplete( true ). However, the Next button is disabled even though I called setComplete( true ). Actually, I found out that once you call setComplete(

wicket:container beta3 and post snapshots

2007-08-31 Thread Evan Chooly
I suddenly started getting errors using wicket:container saying it failed to handle it. Is anyone else seeing this or is my env just really busted?

Re: MarkupContainer.get(path) or hold reference?

2007-08-31 Thread Igor Vaynberg
we went with the cheapest variant possible as default. a callback method doesnt have the memory overhead of holding onto a list, besides since buttons/links 99% of the time only have a single listener anyways it makes sense. if you have a lot of cases where you need more then one listener you can

Re: CheckGroup in a DataTable

2007-08-31 Thread Igor Vaynberg
then the problem is that previously checked but now unchecked things wont be cleared from your collection -igor On 8/31/07, Tim Lantry [EMAIL PROTECTED] wrote: Ok. I noticed in the updateModel method of the CheckGroup it is clearing the collection each time before adding the new ones to

Re: Regression in 1.3.0-beta3(?)

2007-08-31 Thread Igor Vaynberg
have you tried it with trunk? -igor On 8/31/07, Johannes Schneider [EMAIL PROTECTED] wrote: I don't use any AjaxFAllbackOrderByBorder or anything else in my code. So I think there must be another trigger for the bug, too. Johannes Schneider Jonas-21 wrote: I've been able to reproduce

Re: Component Factory and code against interface

2007-08-31 Thread Igor Vaynberg
yeah, im def not saying that _everything_ will work like that, but it is _possible_ to do it. what we did is already cover the most common things like links and form submit buttons. so try to get that case working first instead of switching between button and ajaxbutton use ajaxfallbackbutton.

Re: Hierarchy of components

2007-08-31 Thread Igor Vaynberg
it helps when you paste the stacktrace -igor On 8/31/07, andrea pantaleoni [EMAIL PROTECTED] wrote: Hi, I build a page quite complex with 10 panels several listview a nd other components When I try to run the application I got always an error: hierarchy does not match (markup and page

Re: Component Factory and code against interface

2007-08-31 Thread Sam Hough
Igor, Thanks. I did have a look at that early on (so maybe I wasn't thinking Wicket enough to get it). It seemed to me that that didn't really help for things like forms etc that we want to work in Ajax style (partial update etc) and with full page refresh (only JavaScript being onchange for

Re: wicket:container beta3 and post snapshots

2007-08-31 Thread Igor Vaynberg
works fine for me WebMarkupContainer container = new WebMarkupContainer(container); add(container); container.add(new Label(label, hello)); wicket:container wicket:id=containerdiv wicket:id=label/div/wicket:container -igor On 8/31/07, Evan Chooly [EMAIL PROTECTED] wrote: I suddenly started

Re: Hierarchy of components

2007-08-31 Thread andrea pantaleoni
Thanks a lot for the suggestion finally I solved the problem. Anyway I would find more helpful a clear debug that shows visually the internal hierarchy of components. Just to find quicker the bugs Andrea igor.vaynberg wrote: it helps when you paste the stacktrace -igor On 8/31/07,

Re: Hierarchy of components

2007-08-31 Thread Igor Vaynberg
you should get that on the error page, unless you changed the error page used to your own -igor On 8/31/07, andrea pantaleoni [EMAIL PROTECTED] wrote: Thanks a lot for the suggestion finally I solved the problem. Anyway I would find more helpful a clear debug that shows visually the

Re: best practice for a header component with links defined by the page

2007-08-31 Thread Igor Vaynberg
they are not fancier then generic data structures. they exist for a reason and can do things other generic data structures cannot. i suggest you read up on them, they are a pretty standard part of oop and are used throughout java - unless of course you have been living in a struts-like land where

Re: best practice for a header component with links defined by the page

2007-08-31 Thread Scott Swank
That is why flat, page/request granularity web UI frameworks have succeeded. They are simple and procedural. The reason that languages such as Smalltalk, Java C# are much better than languages such as Fortan, Pascal and C is that the former have a range of syntax, objects, that their procedural

Re: best practice for a header component with links defined by the page

2007-08-31 Thread Igor Vaynberg
On 8/31/07, Kirk Israel [EMAIL PROTECTED] wrote: Probably the most difficult grinding of gears, then, for someone who gets the syntax and knows the basic concept in theory more than practice, is the idea that it's reasonable to make small, single uses class definitions (as opposed to setting

Re: best practice for a header component with links defined by the page

2007-08-31 Thread Kirk Israel
On 8/31/07, Scott Swank [EMAIL PROTECTED] wrote: That is why flat, page/request granularity web UI frameworks have succeeded. They are simple and procedural. The reason that languages such as Smalltalk, Java C# are much better than languages such as Fortan, Pascal and C is that the former

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Johan Compagner
Reading your mails i think you are a bit confused. to make it clear to me what you think WicketSessionFilter does Do you think that the WicketSessionFilter CREATES a WicketSession object for you? If you think that then that is what the big confusion is all about in this thread. The only thing the

Re: Dynamic message for required validation in 1.3

2007-08-31 Thread Igor Vaynberg
statusDate.Required=${label} date is required! -igor On 8/31/07, Russell Morrisey [EMAIL PROTECTED] wrote: Hello, all, Wicket-1.3.0-SNAPSHOT I'm trying to customize the required error message automatically based on the field name. The field I'm working with is on a custom panel called

Re: BookmarkablePage URL

2007-08-31 Thread Igor Vaynberg
you dont build urls like that, you mount pages - then you know what the url is. what is the full stack trace? -igor On 8/31/07, V. Jenks [EMAIL PROTECTED] wrote: I'm sure this has been asked 1000x but I'm unable to find the answer...and don't have enough time left to keep digging. I

Re: BookmarkablePage URL

2007-08-31 Thread Eelco Hillenius
On 8/31/07, V. Jenks [EMAIL PROTECTED] wrote: I'm sure this has been asked 1000x but I'm unable to find the answer...and don't have enough time left to keep digging. I simply want to call a bookmarkable page and pass it a parameter value... I got this far but my guesses have so far been

Re: best practice for a header component with links defined by the page

2007-08-31 Thread Matej Knopp
On 8/31/07, Kirk Israel [EMAIL PROTECTED] wrote: On 8/31/07, Scott Swank [EMAIL PROTECTED] wrote: That is why flat, page/request granularity web UI frameworks have succeeded. They are simple and procedural. The reason that languages such as Smalltalk, Java C# are much better than

Re: BookmarkablePage URL

2007-08-31 Thread V. Jenks
I guess I'm completely confused. I'm pretty sure I've done it this way before and it worked fine...but it's been a while. I've never mounted a URL before, I'm not familiar w/ it. I've been going through the Reference Library on the wiki and I can't find an example of how to do this and what

Re: BookmarkablePage URL

2007-08-31 Thread Matej Knopp
it's simple :) application.mountBookmarkablePage(/home/page, HomePage.class); and the url can look like http://server.com/context/home/page/cat/4 -Matej On 8/31/07, V. Jenks [EMAIL PROTECTED] wrote: I guess I'm completely confused. I'm pretty sure I've done it this way before and it

Re: BookmarkablePage URL

2007-08-31 Thread Igor Vaynberg
http://wicketstuff.org/wicket13/niceurl/the/homepage/path but like i said, lets see the full stacktrace, might not even be a wicket problem -igor On 8/31/07, V. Jenks [EMAIL PROTECTED] wrote: I guess I'm completely confused. I'm pretty sure I've done it this way before and it worked

Re: Dynamic message for required validation in 1.3

2007-08-31 Thread Russell Morrisey
statusDate.Required=${label} date is required! -igor and formcomponent.setlabel(imodel) -igor Aha, there was a nicer way! I remember seeing ${label} in my co-worker's properties file for a different panel, but I didn't know that that property was set automatically when you stick a label on

Re: Tree not redrawn when resetting root node

2007-08-31 Thread Doug Leeper
See entry WICKET-914 https://issues.apache.org/jira/browse/WICKET-914 -- View this message in context: http://www.nabble.com/Tree-not-%22redrawn%22-when-resetting-root-node-tf4359637.html#a12435297 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: WizardStep isComplete and Next button interaction

2007-08-31 Thread Doug Leeper
I have created issue WICKET-915 See https://issues.apache.org/jira/browse/WICKET-915 for attached quick start project -- View this message in context: http://www.nabble.com/WizardStep-%22isComplete%22-and-Next-button-interaction-tf4360742.html#a12435359 Sent from the Wicket - User mailing

Re: WizardStep isComplete and Next button interaction

2007-08-31 Thread Eelco Hillenius
On 8/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Thanks Dough, erm *Doug* not Dough. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: application deployment

2007-08-31 Thread Igor Vaynberg
what url are you hitting when you get a 404? also see this: https://svn.apache.org/repos/asf/wicket/trunk/archetypes/README it will let you quickly build a properly configured app - use archetype version 1.3.0-beta3 -igor On 8/31/07, Ghodmode [EMAIL PROTECTED] wrote: I'm new to Wicket,

Re: application deployment

2007-08-31 Thread Ghodmode
Thank you for your reply Igor, I'm using http://home:8080/helloworld1/HelloWorld1Application I'll look at the archetypes info. I don't know Maven very well and I don't know Jetty at all. Even if I get it working with Maven and Jetty using the instructions at the README you provided I won't

Re: application deployment

2007-08-31 Thread Igor Vaynberg
the url you are accesing is wrong http://localhost:8080/helloworld1/HelloWorld1Application you should access http://localhost:8080/helloworld1/http://localhost:8080/helloworld1/HelloWorld1Application -igor On 8/31/07, Ghodmode [EMAIL PROTECTED] wrote: more information: - I'm trying to

Re: Rendering a BoxBorder without the black line border

2007-08-31 Thread Cristina
Hi Eelco, thanks so much for your reply. Let me try to explain myself better... I've started with a BoxBorder mainly because the Navomatic example uses it around a navigation menu: actually, what I'm trying to build is something between 5 and 10 reusable navigation menus. I've already built a

Re: Rendering a BoxBorder without the black line border

2007-08-31 Thread Eelco Hillenius
On 8/31/07, Cristina [EMAIL PROTECTED] wrote: Hi Eelco, thanks so much for your reply. Let me try to explain myself better... I've started with a BoxBorder mainly because the Navomatic example uses it around a navigation menu: actually, what I'm trying to build is something between 5 and 10