Re: application deployment

2007-08-31 Thread Ghodmode
For the record, the URL I'm using is http://localhost:8080/helloworld1/HelloWorld1Application This is based on a url-pattern in the servlet mapping of "/helloworld1/*" and a servlet-name of "HelloWorld1Application". I'm still getting a 404 error from Tomcat. Thank you, Vince On 9/1/

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

2007-08-31 Thread Thomas Singer
Ah, that's the secret missing link. I then suggest to have a method getSessionKey(String wicketFilterName) which is used by the "normal" WicketFilter to read/write and the WicketSessionFilter to read the WebSession. Thanks, Eelco! -- Cheers, Tom Eelco Hillenius wrote: No, my confusion is ab

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

2007-08-31 Thread Eelco Hillenius
> No, my confusion is about how it comes into the HttpSession accessible under > the attribute name which is build only in WicketSessionFilter (aren't the > HttpSession's attributes not a simple string-to-object map so you need the > right key to get the value?). That's why you need to provide the

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

2007-08-31 Thread Thomas Singer
Thanks, I will take a look at the example. Tom Eelco Hillenius wrote: This creates following question for me: - Where the httpSession attribute with the sessionKey is set? Using the default session store implementations, this is done in HttpSessionStore#setAttribute. SecondLevelCacheSessionS

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

2007-08-31 Thread Thomas Singer
Hi Johan, Do you think that the WicketSessionFilter CREATES a WicketSession object for you? No, my confusion is about how it comes into the HttpSession accessible under the attribute name which is build only in WicketSessionFilter (aren't the HttpSession's attributes not a simple string-to-o

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

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 te

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/ -igor On 8/31/07, Ghodmode <[EMAIL PROTECTED]> wrote: > > more information: > >- I'm tr

Re: application deployment

2007-08-31 Thread Ghodmode
more information: - I'm trying to access the page at http://localhost:8080/helloworld1/HelloWorld1Application - I realized that I didn't have the HelloWorld1.html file in the right place and I put it in the mypackage folder - I also tried removing the package from the code of both

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 k

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

application deployment

2007-08-31 Thread Ghodmode
I'm new to Wicket, so I'm starting with the first example from the documentation and I'm having some trouble getting it to run. Visiting the Web app's page, I get a Tomcat 404 error. I must be making an obvious mistake, but I can't see it. Can anyone see what's wrong? ... Here's my directory st

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: WizardStep "isComplete" and Next button interaction

2007-08-31 Thread Eelco Hillenius
Thanks Dough, I'll try to take a look at it this weekend. Eelco On 8/31/07, Doug Leeper <[EMAIL PROTECTED]> wrote: > > 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://w

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 l

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: 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

Re: BookmarkablePage URL

2007-08-31 Thread Eelco Hillenius
> 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. It should work without. What we're saying is make it easier for yourself and use mounting. Eelco

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: 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 i

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 the

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

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

2007-08-31 Thread Scott Swank
I will not argue against Lisp. The paucity of Lisp/Scheme/Haskell within professional software development is criminal. That is why, for example, we will be seeing continuations in Java 7. - To unsubscribe, e-mail: [EMAIL PROTEC

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

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. > >

BookmarkablePage URL

2007-08-31 Thread V. Jenks
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 wrong: ?wicket:bookmarkablePage=:com.myapp.Bookmarked

Re: Hierarchy of components

2007-08-31 Thread Eelco Hillenius
> you are right we changed > we are going to add a parameter that in development will let us to get the > wicket standard error page > Andrea It actually should already work like that (Wicket serving different pages depending on whether you're in development or deployment mode), unless you provide

Re: Dynamic message for "required" validation in 1.3

2007-08-31 Thread Igor Vaynberg
and formcomponent.setlabel(imodel) -igor On 8/31/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > 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 cust

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 pane

Dynamic message for "required" validation in 1.3

2007-08-31 Thread Russell Morrisey
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 IssueStatusPanel, and I have: IssueStatusPanel.properties: statusDate.Required=Status date is required! What I w

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

2007-08-31 Thread Eelco Hillenius
On 8/31/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > 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 ha

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: 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 fo

Re: WizardStep "isComplete" and Next button interaction

2007-08-31 Thread Eelco Hillenius
On 8/31/07, Doug Leeper <[EMAIL PROTECTED]> wrote: > > 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( t

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

2007-08-31 Thread Eelco Hillenius
> This creates following question for me: > - Where the httpSession attribute with the sessionKey is set? Using the default session store implementations, this is done in HttpSessionStore#setAttribute. SecondLevelCacheSessionStore (the default for Wicket 1.3) extends HttpSessionStore (the default

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

2007-08-31 Thread Eelco Hillenius
> Some of those were a bit procedural, but it still seems like, in > practice, it's mostly been Applets and other UI-ish things that that > made extremely frequent use of them. Wicket is pretty UI-ish, so that actually makes perfect sense :) We are a bit constrained with what Java provides of cou

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

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

2007-08-31 Thread Kirk Israel
Well of course they are "fancier" than, say, structs in C, simply because they exist for a reason and can do things generic data structures cannot. I'm familiar with them, have no trouble reading or writing the syntax of them or understanding what they do, it's a matter of using them enough that th

Re: Tree not "redrawn" when resetting root node

2007-08-31 Thread Matej Knopp
Hi, this should definitely work (without you doing anything special about it). Btw. By setRootNode you mean setRoot()? I will need to see the actual code, as it might be a problem with Wicket. Could you please create a JIRA entry and assign a quick start project to it that can be used to reproduce

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

2007-08-31 Thread Scott Swank
That should have been: "I read most of the resumes..." 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: 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
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 Kirk Israel
Well, that's a good point-- They aren't complex, per se, but they (and especially anonymous inner classes) seem to show up a lot more in the class of programming of which Applets and Wicket are both subsets than they do in most of the rest of Java land. So they're a little less familiar to me, and

Re: CheckGroup in a DataTable

2007-08-31 Thread Tim Lantry
Good point. I'll have to think about that one. On 8/31/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > 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

Re: Hierarchy of components

2007-08-31 Thread andrea pantaleoni
you are right we changed we are going to add a parameter that in development will let us to get the wicket standard error page Andrea igor.vaynberg wrote: > > you should get that on the error page, unless you changed the error page > used to your own > > -igor > > > On 8/31/07, andrea pantal

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: 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/3

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. wh

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")); -igor On 8/31/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > > I suddenly started getting errors using wicket:container saying it failed > to > handle

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 sele

Re: DataView paging

2007-08-31 Thread Igor Vaynberg
you are holding on to the entire list in your data provider, this is bad. you should only load the pieces of your list you need. further your loadabledetachablemodel is broken since you hold on to the actual object itself. loadabel detachable models are meant to hold on to the id, and in load() lo

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

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

Re: Component Factory and code against interface

2007-08-31 Thread Igor Vaynberg
we already have support for "unobtrusive" ajax via AjaxFallbackLink and AjaxFallbackButton. read the javadoc for AjaxFallbackLink, i think it will be just what you are looking for. -igor On 8/31/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > > igor, > > I've not been able to get rid of the require

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: Custom page <-> class mapping

2007-08-31 Thread Igor Vaynberg
yep, you will have to write your own. i would start with PackageRequestTargetUrlCodingStrategy and see how that works, then create your onw. -igor On 8/31/07, Peter Dotchev <[EMAIL PROTECTED]> wrote: > > > Hello, > > I'd like to use custom convention for page class names. > Something like Home.h

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

Re: Urgent : how can i design get all input of a single form with TextField, ListMultiplechoice and FileUpload components

2007-08-31 Thread Evan Chooly
There's an example in the examples for doing FileUpload. http://www.wicketstuff.org/wicket13/upload/single On 8/30/07, bhupat parmar <[EMAIL PROTECTED]> wrote: > > Hi, > Anyone please guide me to fit upload example in Forminput example, > my requirement is i want a develop > > a single form with

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?

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(

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 Pagea

DataView paging

2007-08-31 Thread Holda, Dariusz
Hi, I'm using my implementation of a DataView to display list of objects that are own by another object. I wrote my IDataProvider and LoadableDetachableModel so I can page through the list - the list is quite long it can even have 5000, 6000 objects. I'm displaying 10 rows on each page. When I run

Re: Hierarchy of components

2007-08-31 Thread Kees de Kooter
Check out this thread: http://www.nabble.com/hierarchy-does-not-match-tf4344474.html#a12414152 I had the same problem, it is solved in trunk. 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 > W

Hierarchy of components

2007-08-31 Thread andrea pantaleoni
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 components) Anyone knows a way to DEBUG wicket to understand how is built the internal hierarchy of components f

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: 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 ins

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 proxie

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 > direc

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

2007-08-31 Thread Johan Compagner
again look at the source :) Session.get() will create a WicketSession object. (Session.findOrCreate()) And if you then make a statefull page that has to be stored in the session, the session will also be stored. (Session.bind()) johan On 8/31/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > > Did

Re: Tree not "redrawn" when resetting root node

2007-08-31 Thread Doug Leeper
Matej Knopp-2 wrote: > > What does it mean "reset root node". What exactly do you do with your > TreeModel. And what tree model are you using? > > I am using DefaultTreeModel and calling setRootNode() with a new node after I call setRootNode(), I call the methods in my original post. -- Vi

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: 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

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 interac

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: 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

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

2007-08-31 Thread Johan Compagner
And if you use the WicketSessionFilter always first TEST if the session is there so: Session session = null if (Session.exists()) { session = Session.get() } else you will still have the RequestCycle problem... johan On 8/31/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > You don't interact wit

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 pr

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 ) DefaultTreeModel.n

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. T

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 i

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

2007-08-31 Thread Thomas Singer
What is the preferred way of obtaining a WebSession from a non-Wicket-Filter/Servlet. I've taken a look at WicketSessionFilter, but this one requires a filterName init parameter and seems to expect the session as a HttpSession parameter. But how the WebSession should come into the HttpSession w

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 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 relev

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/

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

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 ag

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?

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

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 Ex