Re: HeaderContributer for a title

2008-07-01 Thread Eyal Golan
Thanks John, That is a great way of doing it. On Tue, Jul 1, 2008 at 5:35 PM, John Krasnay [EMAIL PROTECTED] wrote: I like to do this in my base page: title wicket:id=titlefoo/title protected IModel getPageTitleModel() { return new ResourceModel(getClass().getSimpleName()); } add(new

Re: [Follow up] Ajax link doesn't call event

2008-07-01 Thread ezegb
I ended up commenting loads of code and it turns out my Ajax link will quit responding if it has something else after itself in the form. I got rid of all the textfields that followed, and I got it to work. The troublesome component is actually the ajax link, plus a textfield to input data, plus

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Eelco Hillenius
I've been thinking about the way in which wicket is an MVC framework and whether people use it according to the MVC pattern. The MVC pattern is bastardized - especially when it comes to web application frameworks - up to the point that it is hardly useful to use the term. Everyone seems to have

Re: patterns for web ui apps. mvc models

2008-07-01 Thread James Carman
On Tue, Jul 1, 2008 at 1:56 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: I've been thinking about the way in which wicket is an MVC framework and whether people use it according to the MVC pattern. The MVC pattern is bastardized - especially when it comes to web application frameworks - up to

Re: Client side validation

2008-07-01 Thread Ryan Sonnek
Okay, I've attached a patch that adds the maxlength html attribute. On Tue, Jul 1, 2008 at 11:24 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Tue, Jul 1, 2008 at 7:11 AM, Ryan Sonnek [EMAIL PROTECTED] wrote: Do any of the core validators actually implement this interface? Not yet I think,

Wicket @ berlin.jar Java Conference

2008-07-01 Thread Jan Kriesten
Hi, I will present Wicket at berlin.jar. The presentation will be based on my presentation from october last year (with some updates of course). I hope to see some of you around there! :-) More infos on berlin.jar at http://berlin.jar.jug-bb.de/ Best regards, --- Jan.

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Sven Meier
Well, in Wicket the markup doesn't do much (which is a good thing) besides layout. If you're correctly using CSS, the markup isn't even responsible for the look (and feel). I don't know if this qualifies it as a 'V' in MVC. Sven James Carman schrieb: On Tue, Jul 1, 2008 at 1:56 PM, Eelco

Re: patterns for web ui apps. mvc models

2008-07-01 Thread James Carman
On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier [EMAIL PROTECTED] wrote: Well, in Wicket the markup doesn't do much (which is a good thing) besides layout. If you're correctly using CSS, the markup isn't even responsible for the look (and feel). I don't know if this qualifies it as a 'V' in MVC.

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Rodolfo Hansen
Igor, stop taking the piss... What he means is: Wicket is *NOT* an MVC framework... On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier [EMAIL PROTECTED] wrote: Well, in Wicket the markup doesn't do much (which is a good thing) besides layout. If you're correctly using CSS, the markup isn't even

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Igor Vaynberg
you mean taking a piss? -igor On Tue, Jul 1, 2008 at 11:42 AM, Rodolfo Hansen [EMAIL PROTECTED] wrote: Igor, stop taking the piss... What he means is: Wicket is *NOT* an MVC framework... On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier [EMAIL PROTECTED] wrote: Well, in Wicket the markup

Multiple links on screen, same link on page?

2008-07-01 Thread Manuel Corrales
Hi, i have a table and a couple of pagination controls (links). Is there a way of duplicate this links (i want the controls to be on top and bottom of the table) without having to add two times the same links on the page and without having to use different wicket:id for each link? Thanks!

Re: generics

2008-07-01 Thread Patrick Angeles
I second Matej here... maybe instead of GenericPanelT, GenericFragmentT, etc. you could name it something more explicit. Some examples: SingleModelPanelT ModelBoundPanelT It took me the better part of one day to convert a partially genericized project (we started out with 1.3 then switched to

Re: generics

2008-07-01 Thread Rodolfo Hansen
I too like this compromise alot Although I don't see a good use case for generifying Link ? Am I missing something? On Fri, Jun 27, 2008 at 2:49 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2008, Igor Vaynberg wrote: since no one complained, should we apply this change over

Re: Multiple links on screen, same link on page?

2008-07-01 Thread Igor Vaynberg
no, there is no way to do that. this was a restriction imposed by our ajax support. win some, lose some. -igor On Tue, Jul 1, 2008 at 11:49 AM, Manuel Corrales [EMAIL PROTECTED] wrote: Hi, i have a table and a couple of pagination controls (links). Is there a way of duplicate this links (i

Re: generics

2008-07-01 Thread Igor Vaynberg
onPopulateItem(ItemUser item) { add(new LinkUser(delete, item.getModel()) { protected void onClick() { service.delete(getModelObject()); } }); } -igor On Tue, Jul 1, 2008 at 11:51 AM, Rodolfo Hansen [EMAIL PROTECTED] wrote: I too like this compromise alot Although I don't see a

Re: generics

2008-07-01 Thread Patrick Angeles
add (new LinkPerson(edit, person) { public void onClick () { setResponsePage (new EditPersonPage (getModel())); } }); This code makes a lot more sense if it is inside a repeater... Rodolfo Hansen-2 wrote: I too like this compromise alot Although I don't see a good use case for

Re: generics

2008-07-01 Thread Joni Freeman
Isn't this a same thing: onPopulateItem(final ItemUser item) { add(new Link(delete) { protected void onClick() { service.delete(item.getModelObject()); } }); } Joni On Tue, 2008-07-01 at 11:56 -0700, Igor Vaynberg wrote: onPopulateItem(ItemUser item) { add(new LinkUser(delete,

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Rodolfo Hansen
joking about On Tue, Jul 1, 2008 at 2:45 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: you mean taking a piss? -igor On Tue, Jul 1, 2008 at 11:42 AM, Rodolfo Hansen [EMAIL PROTECTED] wrote: Igor, stop taking the piss... What he means is: Wicket is *NOT* an MVC framework... On Tue,

RE: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread David Leangen
I think stateless pages already do something like that. Also look at hybrid url encoding that also preserves the bookmarkable url and makes the url even prettier. That's possible. I haven't yet made my way into 1.4 waters yet. none of this is 1.4 In any case, even if this exists for

Re: Wicket Iolite, maven guru wanted

2008-07-01 Thread Maurice Marrink
I wouldn't presume calling myself a maven guru :) but i recently build an archetype myself too. I wonder why you have to use resource in your archetype. i get that your archetype is a maven multiproject but i don't see how using resource is better then using source. I am just guessing here but

Re: Wicket Iolite, maven guru wanted

2008-07-01 Thread Nino Saturnino Martinez Vazquez Wael
Maurice Marrink wrote: I wouldn't presume calling myself a maven guru :) but i recently build an archetype myself too. Any feedback highly appreciated..:) I wonder why you have to use resource in your archetype. i get that your archetype is a maven multiproject but i don't see how using

Re: generics

2008-07-01 Thread Sven Meier
Wouldn't it be better to leave the generic part to this reusable link then? Why 'pollute' all links with a generic parameter? Back to your definition: (1) only components that use their model have a generic type (components you are likely to call getmodel/getmodelobject on as a user). What

Re: self refreshing table with effects

2008-07-01 Thread mfs
Created the jira issue https://issues.apache.org/jira/browse/WICKET-1724 with a quickstart Initially got it to work by using HyBridURLCodingStrategy with which the issue wasnt occuring, but then later on for some other issues with using HUCS was to forced to use QSUCS again and the problem still

Re: generics

2008-07-01 Thread Igor Vaynberg
the question here is: do most people use the model in the Link or not? when you use compound property model in conjunction with form components you never call getmodel/object() on those either. what now? not generify form components? i dont think a strict criteria will work. some components fall

Re: AjaxLink in a DataView causing issues when loading multiple instance of the page

2008-07-01 Thread mfs
Thanks for the follow up Maurice, so i just checked for AutomaticMultiWindowSupport and turns out its not turn on, now what does that signify, shouldnt it be turned out automatically ? Also just for info, havent really changed any setting relating to the session-store and using whatever is

RE: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Ned Collyer
A possible added bonus to this that it *might* be possible to catch a session expired, and re-login to the bookmarkable page. -- View this message in context: http://www.nabble.com/-PROPOSAL--Use-path-in-URL-when-target-is-instance-of-BookmarkablePageRequestTarget-tp18188845p18228914.html Sent

Re: generics

2008-07-01 Thread Timo Rantalaiho
On Tue, 01 Jul 2008, Matej Knopp wrote: There is one thing that helped me quite a lot when migration the project I'm working out. I've created GenericPanel, GenericWebMarkupContainer and GenericFragment classes. In most cases the only change was renaming PanelMyClass to GenericPanelMyClass.

Re: [Follow up] Ajax link doesn't call event

2008-07-01 Thread Timo Rantalaiho
On Tue, 01 Jul 2008, ezegb wrote: I ended up commenting loads of code and it turns out my Ajax link will quit responding if it has something else after itself in the form. I got rid of all the textfields that followed, and I got it to work. The troublesome component is actually the ajax link,

Re: Multiple links on screen, same link on page?

2008-07-01 Thread Timo Rantalaiho
On Tue, 01 Jul 2008, Manuel Corrales wrote: Hi, i have a table and a couple of pagination controls (links). Is there a way of duplicate this links (i want the controls to be on top and bottom of the table) without having to add two times the same links on the page and without having to use

IE/Safari - AjaxLink raises exception on Session-Expiry

2008-07-01 Thread mfs
Guys, I am facing this issue (with Safari/IE) with the usage of AjaxLink when used on a page mounted though any of the BookmarkablePageRequestTargetUrlCodingStrategy extensions To be precise i get a NullPointerException (in BookmarkableListenerInterfaceRequestTarget.processEvents) when

IE/Safari - AjaxLink raises exception on Session-Expiry

2008-07-01 Thread mfs
Guys, I am facing this issue (with Safari/IE) with the usage of AjaxLink when used on a page mounted though any of the BookmarkablePageRequestTargetUrlCodingStrategy extensions To be precise i get a NullPointerException (in BookmarkableListenerInterfaceRequestTarget.processEvents) when clicking

configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Rakesh Sinha
I am trying to have the title of a given page, populated from the code. HTML: == html head titlewicket:id=mysiteName/title /head body strongHomepage/strong br / br / span wicket:id=messagemessage will be here/span /body /html Java: (HomePage.java only) = public class HomePage extends

Re: IE/Safari - AjaxLink raises exception on Session-Expiry

2008-07-01 Thread mfs
Let me also add that 1 out of 5 times, it works fine as expected, i.e. the SessionExpiry page is shown. mfs wrote: Guys, I am facing this issue (with Safari/IE) with the usage of AjaxLink when used on a page mounted though any of the BookmarkablePageRequestTargetUrlCodingStrategy

Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Igor Vaynberg
not unless you are planning on keeping any existing query params in the url for the duration of the entire session, a lot of bookmarkable pages need context. once again, i dont see what this offers over the hybrid strategy. -igor On Tue, Jul 1, 2008 at 7:05 PM, Ned Collyer [EMAIL PROTECTED]

Re: configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Igor Vaynberg
title wicket:id=mysiteName[title will be here]/title just like the span... -igor On Tue, Jul 1, 2008 at 9:01 PM, Rakesh Sinha [EMAIL PROTECTED] wrote: I am trying to have the title of a given page, populated from the code. HTML: == html head titlewicket:id=mysiteName/title /head

Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread David Leangen
once again, i dont see what this offers over the hybrid strategy. Maybe you can correct me if I'm wrong here... The hybrid stategy is only applied when the target is an IBookmarkablePageRequestTarget. So, for normal bookmarkable pages, there is no problem, like you say. The issue only arises

Re: Multiple links on screen, same link on page?

2008-07-01 Thread Nino Saturnino Martinez Vazquez Wael
Yup dependancy on id's are in a hierachy:) Timo Rantalaiho wrote: On Tue, 01 Jul 2008, Manuel Corrales wrote: Hi, i have a table and a couple of pagination controls (links). Is there a way of duplicate this links (i want the controls to be on top and bottom of the table) without having to

Re: configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Rakesh Sinha
Thanks Igor. That works. Thanks Apache Wicket team once again for a wonderful framework. On Wed, Jul 2, 2008 at 12:37 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: title wicket:id=mysiteName[title will be here]/title just like the span... -igor On Tue, Jul 1, 2008 at 9:01 PM, Rakesh Sinha

Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Johan Compagner
I think stateless pages already do something like that. Also look at hybrid url encoding that also preserves the bookmarkable url and makes the url even prettier. On 6/30/08, David Leangen [EMAIL PROTECTED] wrote: Currently, when a target is an instance of IListenerInterfaceRequestTarget, the

No effect of code until restarting netbeans.

2008-07-01 Thread Sushant
I am a newuser using wicket. I have been facing this problem since a week. I'm in serious trouble. Whenever i make any changes in my code in netbeans the changes i have made doesn't works until i restart netbeans. After restarting my netbeans the changes that i have made in my code works. For

Strange stack trace in logs

2008-07-01 Thread Piller Sébastien
Hello, I've put my wicket app in production for a bit more than a month now. Yesterday, I tried to see what is in the logs. I see a lot of stacktrace like this: org.apache.wicket.WicketRuntimeException: Internal error parsing wicket:interface = :57:container1:link1 at

More on wicket url stratergy

2008-07-01 Thread Mathias P.W Nilsson
In my itemList class I set the response page like this. setResponsePage( new ItemPage( parameters, ItemListPage.this ) ); Now the ItemListPage.this is for back travelling and to get the background from the list class. Is it possible to make the itemPage bookmarkable? -- View this message in

Re: More on wicket url stratergy

2008-07-01 Thread David Leangen
On Tue, 2008-07-01 at 02:50 -0700, Mathias P.W Nilsson wrote: In my itemList class I set the response page like this. setResponsePage( new ItemPage( parameters, ItemListPage.this ) ); Now the ItemListPage.this is for back travelling and to get the background from the list class. Is it

Re: No effect of code until restarting netbeans.

2008-07-01 Thread Thomas Mäder
Are you running in debug mode? Did you try to restart the server? On Tue, Jul 1, 2008 at 9:58 AM, Sushant [EMAIL PROTECTED] wrote: I am a newuser using wicket. I have been facing this problem since a week. I'm in serious trouble. Whenever i make any changes in my code in netbeans the

Re: No effect of code until restarting netbeans.

2008-07-01 Thread Martijn Dashorst
You have to make the project to compile the changed classes. Martijn On Tue, Jul 1, 2008 at 12:09 PM, Thomas Mäder [EMAIL PROTECTED] wrote: Are you running in debug mode? Did you try to restart the server? On Tue, Jul 1, 2008 at 9:58 AM, Sushant [EMAIL PROTECTED] wrote: I am a newuser

Re: generics

2008-07-01 Thread Matej Knopp
There is one thing that helped me quite a lot when migration the project I'm working out. I've created GenericPanel, GenericWebMarkupContainer and GenericFragment classes. In most cases the only change was renaming PanelMyClass to GenericPanelMyClass. I was wondering, even though those classes

Re: More on wicket url stratergy

2008-07-01 Thread Mathias P.W Nilsson
Thanks, but this what not what I meant My ItemPage takes the ItemListPage as a parameter in the constructor so that I can go back to the exact location I were before. Now If I want to use the Item as a bookmarkable page, how can this be achieved with a reference to ItemListPage? -- View this

patterns for web ui apps. mvc models

2008-07-01 Thread marco m
Hi guys, I've been thinking about the way in which wicket is an MVC framework and whether people use it according to the MVC pattern. Wikipedia has this to say: Model The domain-specific representation of the information on which the application operates. Domain logic adds meaning to raw

HeaderContributer for a title

2008-07-01 Thread Eyal Golan
Hi, Is there a special header contributer for title/title ? -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary

Re: HeaderContributer for a title

2008-07-01 Thread Martijn Dashorst
nope. just use: title wicket:id=title/title add(new Label(title, Hello, World!)); On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, Is there a special header contributer for title/title ? -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/

Re: HeaderContributer for a title

2008-07-01 Thread Eyal Golan
yeah, but what if I have a markup inheritance? I then must use wicket:head ... don't I ? On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: nope. just use: title wicket:id=title/title add(new Label(title, Hello, World!)); On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan

Re: Client side validation

2008-07-01 Thread Ryan Sonnek
Do any of the core validators actually implement this interface? I have an issue filed in JIRA for the StringValidator.maximumLength() validator to append the maxlength HTML attribute to form components. https://issues.apache.org/jira/browse/WICKET-1310 This seems like a perfect place to

Re: HeaderContributer for a title

2008-07-01 Thread Martijn Dashorst
only if you define the title wicket:id=foo/title in your sub pages. Martijn On Tue, Jul 1, 2008 at 2:36 PM, Eyal Golan [EMAIL PROTECTED] wrote: yeah, but what if I have a markup inheritance? I then must use wicket:head ... don't I ? On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst [EMAIL

Re: HeaderContributer for a title

2008-07-01 Thread John Krasnay
I like to do this in my base page: title wicket:id=titlefoo/title protected IModel getPageTitleModel() { return new ResourceModel(getClass().getSimpleName()); } add(new Label(title, new AbstractReadOnlyModel() { public Object getObject() { return getPageTitleModel().getObject();

Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Igor Vaynberg
none of this is 1.4 -igor On Mon, Jun 30, 2008 at 11:50 PM, David Leangen [EMAIL PROTECTED] wrote: On Tue, 2008-07-01 at 08:48 +0200, Johan Compagner wrote: I think stateless pages already do something like that. Also look at hybrid url encoding that also preserves the bookmarkable url and

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Igor Vaynberg
On Tue, Jul 1, 2008 at 5:07 AM, marco m [EMAIL PROTECTED] wrote: Wicket is supposed to be an mvc framework, so why do the examples put services/daos in the pages? it is? that is big news to me. -igor What patterns are folks using for their wicket apps? -- View this message in context:

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Thomas Mäder
Wicket is a framework to write (mostly) statefulweb pages. Unlike other web frameworks it does not impose a particular way to structure the application logic beyond that. Think of it like, say, the QT widget set. It's a way to display information and to be notified of user interactions. Thomas

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Igor Vaynberg
if it doesnt have patterns how will the enterprise architect be able to model it -igor On Tue, Jul 1, 2008 at 8:23 AM, Thomas Mäder [EMAIL PROTECTED] wrote: Wicket is a framework to write (mostly) statefulweb pages. Unlike other web frameworks it does not impose a particular way to

Ajax link doesn't call event

2008-07-01 Thread ezegb
Hi, the situation is as follows: I have a form embedded in an abstract panel. The form has an autocompletetextfield and an AjaxSubmitLink which acts on the data in the textfield. The panel, in turn, extends several other panels which are in the end the ones that get instantiated. The very code

Re: Client side validation

2008-07-01 Thread Eelco Hillenius
On Tue, Jul 1, 2008 at 7:11 AM, Ryan Sonnek [EMAIL PROTECTED] wrote: Do any of the core validators actually implement this interface? Not yet I think, but it's never to late :-) Eelco - To unsubscribe, e-mail: [EMAIL

Re: No effect of code until restarting netbeans.

2008-07-01 Thread Jeremy Levy
Use Undeploy and Deploy on your EAR or WAR... On Tue, Jul 1, 2008 at 3:58 AM, Sushant [EMAIL PROTECTED] wrote: I am a newuser using wicket. I have been facing this problem since a week. I'm in serious trouble. Whenever i make any changes in my code in netbeans the changes i have made