Autocomplete on a modal window

2007-11-09 Thread Cristi Manole
Hello, I am trying to make a modal window with an autocomplete text field using regular wicket classes. The problem is the autocomplete list gets rendered behind the modal window so it is not visible. Is there a way to make it appear on top of it? Tks in advance, Cristi

RE: Attempted summary of multiple wicket:child / thread

2007-11-09 Thread Stefan Fußenegger
I think it would be a nice feature to define defaults and overrides this way. However, this wouldn't be backwards compatible anymore as the contents are currently ignored. (Ok, you are currently forced to extend them, so you probably wouldn't see the markup from such sections in *old*

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread serban.balamaci
Why is everybody pointing out not to have database data inside the page? Many times retrieving the data from the database could be the slowest thing and having that sort of cache is one nice thing in my opinion. Is it not much better to have data in the session? I understand that it will be a

Re: facebook support

2007-11-09 Thread Stefan Fußenegger
I'd be interested in Facebook and Open Social support. However, I don't have any experience with either of them. It would be extremely cool to have a common interface for both of them - write once run everywhere. I would also help implementing it. I don't have much time to spend tough. For my

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Sebastiaan van Erk
Hi, You should use a second level cache to cache objects and queries from your database; and that's not Wicket's job, Wicket is a Web framework. For example, use Hibernate + ehcache. Regards, Sebastiaan serban.balamaci wrote: Why is everybody pointing out not to have database data inside

Re: Copenhagen wicket users meeting?

2007-11-09 Thread Nino Saturnino Martinez Vazquez Wael
Could more people signup if interested? We cant only be 3 guys in denmark interested in this.. I think the release of wicket 1.3 should be an excellent time to hold a meeting, of course we need to agree on a exact date... Again as I wrote earlier this is an excellent way to get introduced

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Eelco Hillenius
You should use a second level cache to cache objects and queries from your database; and that's not Wicket's job, Wicket is a Web framework. For example, use Hibernate + ehcache. Yep. That way you'll avoid redundancy in caching, and have caching regardless of whatever UI framework you're

Re: Enable and Disable using Ajax

2007-11-09 Thread Dmitry Kandalov
On Friday 09 November 2007 11:22:20 Toscano wrote: Hello, I found some questions related to this topic, but I couldn't make it to work. I have two dropdowns, countries and regions. The easy thing is that I load the regions when the country has been selected, and I use

Re: Page Expired issue

2007-11-09 Thread Eelco Hillenius
On Nov 8, 2007 11:46 PM, Joshua Jackson [EMAIL PROTECTED] wrote: Darn it doesn't work. I guess this is a problem with Websphere :( Igor was referring to putting something like: session-config session-timeout60/session-timeout /session-config somewhere at the end

Re: Doing something on Shift+Click

2007-11-09 Thread Nino Saturnino Martinez Vazquez Wael
take a look at http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events vr.sundar wrote: Hi, I have to activate a hidden option when a user shift+clicks something. How do I go about doing this? From reading the docs, the idea I currently have is this: Add a new

Re: Component.wrap and IChainingModel

2007-11-09 Thread Dmitry Kandalov
On Thursday 08 November 2007 23:28:40 ChuckDeal wrote: Perhaps I didn't get the explanation but why can't you wrap models in this order? AppendingListModel(     SortingModel(         HibernateListModel()     ) ) In that order the list would be sorting PRIOR to appending the item,

Re: Page Expired issue

2007-11-09 Thread Joshua Jackson
Thanks Eelco. I already did that. It worked with StatelessLink and StatelessForm. Anyway is there any issue if we use WicketServlet instead of WicketFilter as such: servlet servlet-namewicket.wicket/servlet-name

Re: Enable and Disable using Ajax

2007-11-09 Thread Dmitry Kandalov
On Friday 09 November 2007 12:24:12 Dmitry Kandalov wrote: Probably that is because this component is already rendered. I mean the component has been already checked for being enabled :) Dima - To unsubscribe, e-mail: [EMAIL

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread serban.balamaci
Most database expensive operations come from the result of stored procedures(my current experience at least). A cache solution can be implemented by caching the method results with spring(in case of using spring) but is a heavy(difficult) thing to maintain that cache per user - http session is a

Re: Page Expired issue

2007-11-09 Thread Gwyn Evans
Hi Joshua, One point to note might be that the 'traditional' Wicket advice for using a Servlet mapping was not to use the root context /* but rather use a sub mapping, e.g. /app/*, which leaves you with the option of having static files not having to be served by Wicket. You can always put a

Re: Ajax Dojo Drag and Drop

2007-11-09 Thread Andrew Moore
Andrew Moore wrote: Hi, At the moment I have a list on a page using some code like below: form.add(imageView = new DataView(galleryList, imageCollection.getImages(),10){ public void populateItem(final ListItem listItem){ final Image image =

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Johan Compagner
Also caching data inside a session and having those object over multiply request gives in hibernate always errors like LazyInitalizationException or Transient/StaleObjectException Holding on to data in sessions is really a bad idea because you dont know when they come back if you have a session

Re: Page Expired issue

2007-11-09 Thread Martijn Dashorst
And in addition, currently we prefer to use the WicketFilter in favor of the WicketServlet precisely for this reason (wicket 1.3 only) Martijn On 11/9/07, Gwyn Evans [EMAIL PROTECTED] wrote: Hi Joshua, One point to note might be that the 'traditional' Wicket advice for using a Servlet

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread German Morales
Hi, I was thinking (as a last hope) that if this works for the HTMLs, i could provide different HTMLs that point internally to different CSSs, and it should work. But that would be duplicating the HTML just to have the CSS changed, and then it's not a good idea. Perhaps someone can tell me an

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Gwyn Evans
Hi, It's not hard to do it with Wicket, but I'm fairly sure that for the typical web-app, the metrics showed that the a re-request to database wasn't a big issue, whereas the gain in terms of reducing the session size was, especially where it needs replicating. As such, the recommendation is as

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread Johan Compagner
if you are creating your own ResourceReferences then you have to give the style and locale to them We could enhance the constructors that it does Session.get().getLocale() and Session.get().getStyle() if you dont give them.. johan On Nov 9, 2007 10:27 AM, German Morales [EMAIL PROTECTED]

Re: Is it possible to get AjaxLink stateless?

2007-11-09 Thread Johan Compagner
but my question remains, what are you doing inside that ajax link?? On Nov 9, 2007 1:17 AM, Chris Lintz [EMAIL PROTECTED] wrote: Ok that makes sense. To me i can chalk this up as one thing in the framework that would be a real joy to fix - that being having AjaxLink or other related Ajax

Re: Page Expired issue

2007-11-09 Thread Joshua Jackson
On 11/9/07, Gwyn Evans [EMAIL PROTECTED] wrote: Hi Joshua, One point to note might be that the 'traditional' Wicket advice for using a Servlet mapping was not to use the root context /* but rather use a sub mapping, e.g. /app/*, which leaves you with the option of having static files not

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread serban.balamaci
I'm not for not considerate caching outside the web layer or a naive aproach to cache everything even if that object changes 10 times a sec. I am just saying that it may be ok in some cases to keep state on some objects and not have detachable models. I'm not saying keep all in session and pay no

Wicket runtime Exception

2007-11-09 Thread tbt
Hi I'm a newbie to wicket and i'm using RadioGroup in my application. But sometimes it gives the following runtime exception ERROR (RequestCycle.java:1043) - submitted http post value [radio0] for RadioGroup component [27:paperForm:panel:radioGroup] is illegal because it does not contain

Re: facebook support

2007-11-09 Thread Mats Norén
What kind of support are we talking about? Being able to build applications or retrieving information from FB or MySpace? Or both? /Mats On Nov 9, 2007 9:16 AM, Stefan Fußenegger [EMAIL PROTECTED] wrote: I'd be interested in Facebook and Open Social support. However, I don't have any

Re: Page Expired issue

2007-11-09 Thread Joshua Jackson
I know :( But somehow I must use WicketServlet because: 1. Spring ContextLoaderListener doesn't work in WAS 5 2. The workaround is to use ContextLoaderServlet 3. If I use WicketFilter, it gets loaded first before ContextLoaderServlet - This will cause an exception from Spring :( I hope

Re: Wicket behind a front-end proxy

2007-11-09 Thread Frank Bille
First of all, you don't need /app/* anylonger. just /*. I'm running behind proxy as well and it works well. Are you sure you haven't run into this problem: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork Frank On Nov

Adding a component dynamically

2007-11-09 Thread barabasy
Hi, Is it possible to add components into a page without linking it to wicket:id in a page? Here is my situation, I need to add dynamically an unknown number of components of different types. I can not know in advance which component I will add into page, so I can not set wicket:id for them in

Re: Wicket behind a front-end proxy

2007-11-09 Thread Murat Yücel
Hi Frank I have changed the /app/* to /* but it doesnt change the urls. They are still wrong. For example i enter the following url: www.wicket.com The url is transformed to www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage If i remove the the wicket part from the url then

Re: Several localized buttons in a form

2007-11-09 Thread Johan Compagner
form.add(new Link(cancel).add(new Label(label,,new MyStyledResourceModel(cancel, this, null On Nov 9, 2007 10:58 AM, Pills [EMAIL PROTECTED] wrote: igor.vaynberg wrote: i would make the cancel button a Link, but thats just me... -igor Yes, I too, but when I make it a link,

Re: Attempted summary of multiple wicket:child / thread

2007-11-09 Thread Sebastiaan van Erk
Hi, Actually, Wicket already works like this. It does *NOT* require the wicket:extend, and if it's not present it just renders the contents of the wicket:child. (Just tested this with beta4). Furthermore, your patch works exactly the same as far for multilple child sections (as far as I can

Re: WicketNotSerializableException withi FileUpload

2007-11-09 Thread James Perry
I removed the Model instantion from the FileUploadField and this issue has gone. Cheers! J. On Nov 8, 2007 11:31 PM, Johan Compagner [EMAIL PROTECTED] wrote: Ok the problem is that somehow you are holding on to a FileUpload in your page And those are not meant to be kept over requests. it

Re: Wicket behind a front-end proxy

2007-11-09 Thread Frank Bille
Sounds weird. Can you show me your apache conf for the proxy? Frank On Nov 9, 2007 12:44 PM, Murat Yücel [EMAIL PROTECTED] wrote: Hi Frank I have changed the /app/* to /* but it doesnt change the urls. They are still wrong. For example i enter the following url: www.wicket.com The url

Re: Border component

2007-11-09 Thread Martijn Dashorst
http://wicket.apache.org/examplemarkupinheritance.html On 11/9/07, Joshua Jackson [EMAIL PROTECTED] wrote: Dear all, When I read this document: http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html It is written that the border component is now updated and the document

Re: Wicket behind a front-end proxy

2007-11-09 Thread Murat Yücel
Hi Frank I have substituted my projectname with wicket. Below is the conf for the proxy part. VirtualHost * ServerAdmin [EMAIL PROTECTED] ServerName www.wicket.com ServerAlias wicket.com ProxyRequests off ProxyPreserveHost On RewriteEngine On #

Re: Attempted summary of multiple wicket:child / thread

2007-11-09 Thread Stefan Fußenegger
Of course, it really is optional. Wicket only checks whether a page has a wicket:extend tag or not to decide if markup merging is needed. (Therefore, my patch does not have any impact on that, as there is no markup merging triggered) Thanks for pointing this out! -- stefan Sebastiaan van Erk

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread Johan Compagner
it should fallback just fine.. what version of wicket are you using? Because in the ResourceStreamLocator we do now this: public IResourceStream locate(final Class clazz, String path, final String style, final Locale locale, final String extension) { // Try the various combinations of

Re: Wicket behind a front-end proxy

2007-11-09 Thread Frank Bille
Read this again: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork Frank On Nov 9, 2007 1:26 PM, Murat Yücel [EMAIL PROTECTED] wrote: Hi Frank I have substituted my projectname with wicket. Below is the conf for the

Border component

2007-11-09 Thread Joshua Jackson
Dear all, When I read this document: http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html It is written that the border component is now updated and the document is not valid against the latest wicket distribution. Could anyone please give me a hint on what have changed?

Re: Wicket runtime Exception

2007-11-09 Thread James Perry
Hello, Please send your code. J. On Nov 9, 2007 9:48 AM, tbt [EMAIL PROTECTED] wrote: Hi I'm a newbie to wicket and i'm using RadioGroup in my application. But sometimes it gives the following runtime exception ERROR (RequestCycle.java:1043) - submitted http post value [radio0] for

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread German Morales
Hi, Well, i'm not sure to want to be creating the ResourceReferences on my own. Is there another way to have the same i have for HTML (automatic look up by the framework for localized and styled versions) but for CSSs? German It seems that Johan Compagner wrote: if you are creating your own

Re: Adding a component dynamically

2007-11-09 Thread Martijn Dashorst
Search the archives. There are hundreds of these questions answered. Martijn On 11/9/07, barabasy [EMAIL PROTECTED] wrote: Hi, Is it possible to add components into a page without linking it to wicket:id in a page? Here is my situation, I need to add dynamically an unknown number of

Change css-class of form on validation

2007-11-09 Thread BatiB80
[EMAIL PROTECTED], I want to use a different css-class for my inputfields after the validation of that field has failed. For example, if an requiredfield isn't filled, the field should get red. Does anybody knows how to do this? Furthermore I do not want to have the message field ... is

Re: Copenhagen wicket users meeting?

2007-11-09 Thread Flemming Boller
done :-) On Nov 9, 2007 9:22 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Could more people signup if interested? We cant only be 3 guys in denmark interested in this.. I think the release of wicket 1.3 should be an excellent time to hold a meeting, of course we need

RE: Wicket meetup (the netherlands) ideas

2007-11-09 Thread Arje Cahn
Hi guys, Thanks for the heads-up Johan, our Wicket meetup is in 3 weeks already so we need to get going :) To answer the infra question: yes, there will be wireless internet, powerplugs taped to the tables, beamers, whiteboards, the whole lot :) And I'd definitely be interested in a

Re: Wicket behind a front-end proxy

2007-11-09 Thread Murat Yücel
It seems like wicket doesnt support it, because there is no workaround on the link that Frank Bille send. There is only information about that this is a problem. /Murat 2007/11/9, Johan Compagner [EMAIL PROTECTED]: so we dont support this currently? myserver1.xxx.com:80 -

Re: Border component

2007-11-09 Thread Joshua Jackson
Would you recommend using the border component or the markup inheritance? By nature I like the border component as it as more natural for templating. Is it deprecated? Thanks On 11/9/07, Martijn Dashorst [EMAIL PROTECTED] wrote: http://wicket.apache.org/examplemarkupinheritance.html On

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread German Morales
version 1.3.0-beta4. I insist that the problem must be something different, perhaps in the way i pretend it to work. I know about the ResourceStreamLocator, and as i tell it works perfectly for the HTML. The difference is that from my class the framework looks automatically for the corresponding

JPA best-practices?

2007-11-09 Thread Uwe Schäfer
hi i plan to use JPA together with Wicket. Are there any battle-proven best-practices out there of how to handle EnityManagers and Transactions? What do other people use (no, not the spring crowd ;) ? One EntityManager per Request seems to be the obvious idea and a guice Provider may help

Re: Copenhagen wicket users meeting?

2007-11-09 Thread Murat Yücel
When is the meeting? I have just signed up for the new wicket mailing list. Maybe i should participate this time :). Flemming do you give a ride? /Murat 2007/11/9, Flemming Boller [EMAIL PROTECTED]: done :-) On Nov 9, 2007 9:22 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]

Re: Wicket behind a front-end proxy

2007-11-09 Thread Johan Compagner
so we dont support this currently? myserver1.xxx.com:80 - localhost:8080/myapp1 myserver2.xxx.com:80 - localhost:8080/myapp2 johan On Nov 9, 2007 1:35 PM, Frank Bille [EMAIL PROTECTED] wrote: Read this again:

Re: wicket:enclosure and authorization

2007-11-09 Thread Sebastiaan van Erk
It seems a JIRA issue was not made for this discussion. I wouldn't want this to be forgotten about, so should I create one? Regards, Sebastiaan Igor Vaynberg wrote: there seems to be a bit of a disconnect between render in auth and our general component visibility concept. perhaps it might be

How to enable AJAX in a Wicket application

2007-11-09 Thread James Perry
I am wanting to use AJAX for my Wicket application but I could not find any reference documentation on how to configure it. I looked at the examples and it appears that you need to add the following to the application's init() method: getRequestCycleSettings().addResponseFilter(new

Re: Change css-class of form on validation

2007-11-09 Thread Martijn Dashorst
Then override the message with an empty string. Add an attribute modifier that modifies the class attribute when the form component is invalid. Martijn On 11/9/07, BatiB80 [EMAIL PROTECTED] wrote: [EMAIL PROTECTED], I want to use a different css-class for my inputfields after the validation

Re: Border component

2007-11-09 Thread Johan Compagner
really? i always find the border component counter intuitive. Thats why i though of something simpler IComponentBorder That can be used as you would also do it in a swing app (a component has a border instead of a border has components) johan On Nov 9, 2007 2:05 PM, Joshua Jackson [EMAIL

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread Johan Compagner
no as i said before you have to create the resourcereference with the locale and the style. Those are not automatically picked up from the session. If you don't give them in the constructor then both are just null What you could do is this: ResourceReference reference = new

Re: wicket:enclosure and authorization

2007-11-09 Thread Martijn Dashorst
Go ahead! On 11/9/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: It seems a JIRA issue was not made for this discussion. I wouldn't want this to be forgotten about, so should I create one? Regards, Sebastiaan Igor Vaynberg wrote: there seems to be a bit of a disconnect between render in

Re: wicket:enclosure and authorization

2007-11-09 Thread Johan Compagner
i think sebastian is over his jira quota for today. On Nov 9, 2007 2:47 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Go ahead! On 11/9/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: It seems a JIRA issue was not made for this discussion. I wouldn't want this to be forgotten about, so

Re: Change css-class of form on validation

2007-11-09 Thread BatiB80
But in which message do I have to override it? I use the RequiredText- and PasswordTextField. Do I have to extend this classes with my own versions or where I can override the message? -- View this message in context:

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Al Maw
serban.balamaci wrote: I am just saying that it may be ok in some cases to keep state on some objects and not have detachable models. I agree. Anything that uses a List of database entities, I tend to put in a detachable model. If I'm merely using a single POJO that was originally pulled

Re: How to enable AJAX in a Wicket application

2007-11-09 Thread James Perry
Happy days! :-) On Nov 9, 2007 1:14 PM, Frank Bille [EMAIL PROTECTED] wrote: No, you just use an Ajax component (like AjaxLink) and it is enabled. Nothing else than that. Frank On Nov 9, 2007 2:09 PM, James Perry [EMAIL PROTECTED] wrote: I am wanting to use AJAX for my Wicket

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread German Morales
Hi again, With your solution, the generated HTML now looks this way: link rel=stylesheet type=text/css href=resources/path.to.mypage.MyPage/style_mystyle_mylocale.css / i don't have style_mystyle_mylocale.css, but only style_mystyle.css But it works! So it seems that wicket later (when the

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread Johan Compagner
But even with bind() it still shows you the locale in the url? On Nov 9, 2007 3:22 PM, German Morales [EMAIL PROTECTED] wrote: Hi again, With your solution, the generated HTML now looks this way: link rel=stylesheet type=text/css

Re: Wicket behind a front-end proxy

2007-11-09 Thread Al Maw
Johan Compagner wrote: so we dont support this currently? myserver1.xxx.com:80 - localhost:8080/myapp1 myserver2.xxx.com:80 - localhost:8080/myapp2 We support that just fine. That, in fact, is most of the reason why we're using relative URLs in 1.3. Murat: I have this working perfectly

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread German Morales
Furthermore, now that i understand more about this, i tried again my original version: cResponse.getHeaderResponse().renderCSSReference(new ResourceReference(MyPage.class, style.css, getLocale(), getStyle())); and it also works as expected. Perhaps i was not expecting it to work because the

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread German Morales
Yes, at least that's what i see when i ask Firefox to show me the source of the page. It seems that Johan Compagner wrote: But even with bind() it still shows you the locale in the url? On Nov 9, 2007 3:22 PM, German Morales [EMAIL PROTECTED] wrote: Hi again, With your solution, the

Re: Change css-class of form on validation

2007-11-09 Thread BatiB80
Hmmm... - sorry, but one more question on this. I added an attributemodifier to my component. When accessing the page the attribute is correctly renderred. But I want to rerender the component after the validation failed. But the validation method isn't called again. example: myfield.add(new

Re: Change css-class of form on validation

2007-11-09 Thread Al Maw
BatiB80 wrote: Hmmm... - sorry, but one more question on this. I added an attributemodifier to my component. When accessing the page the attribute is correctly renderred. But I want to rerender the component after the validation failed. But the validation method isn't called again. example:

Re: JPA best-practices?

2007-11-09 Thread Francis De Brabandere
You might want to have a look at http://databinder.net, that project is using hibernate but the setup should be similar? The big problem is that a EntityManager is not thread-safe and should indeed be created per request. Let me know if you get there! On Nov 9, 2007 1:52 PM, Uwe Schäfer [EMAIL

Re: Change css-class of form on validation

2007-11-09 Thread BatiB80
I found something in the wiki :-) http://cwiki.apache.org/WICKET/removing-message-bundle-requirements-for-validation.html -- View this message in context: http://www.nabble.com/Change-css-class-of-form-on-validation-tf4777497.html#a13668693 Sent from the Wicket - User mailing list archive at

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread Johan Compagner
I think i asked this before, but what version of wicket?? Normally (in the current wicket 1.3 buids) a ResourceReference to a PackageResource will fallback to the real locale the PackageResource is loaded from after the ResourceReference is binded. johan On Nov 9, 2007 3:34 PM, German Morales

Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills
Hi, I have a strange problem with the PropertyModel and a form. The property model is bound with one of my class, like that: shops = new DropDownChoice(shop, new PropertyModel(formTarget, shops), new ShopDAO().findAll(), new ChoiceRenderer() { @Override public

Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills
Hi, I have a strange problem with the PropertyModel and a form. The property model is bound with one of my class, like that: shops = new DropDownChoice(shop, new PropertyModel(formTarget, shops), new ShopDAO().findAll(), new ChoiceRenderer() { @Override

Re: Can wicket handle events generated from javascript created?

2007-11-09 Thread dd du
Hi, igor, thanks for your response, I am not sure I understand what you mean, can you make it a little bit more specific or direct me to example or where to start to look at it? I am thinking to pass an url to javascript, when a button created from javascript is clicked, then direct it to the url,

Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills
I think I've found the problem: I didn't override equals and hashcode in my class Shop. Can anybody confirm that was the cause of that problem? -- View this message in context: http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778359.html#a13669424 Sent from the

Re: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread Johan Compagner
what version of wicket is that code? I guess 1.2? then you should use onAttach() because onBeforeRender you can't change anything anymore because the page is already rendering. johan On Nov 9, 2007 4:00 PM, William Hoover [EMAIL PROTECTED] wrote: I'm curious if my approach is incorrect when

Re: facebook support

2007-11-09 Thread Matt Jensen
Can't speak for anyone but myself, but I couldn't use any solution that does not give me access to at least the lowest common denominator of data for these sites: users, groups, contacts, etc. Just about every useful application that I can think of involves mixing in with these constructs

Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread James Perry
I had a similar problem but I had accidentally used == for string equality within my equals(). I will add this to the Wiki as it's a common problem for beginners. A lot of MSc Internet Software Systems students at the University of Birmingham (they teach Wicket as part of the syllabus) had this

Using a Form BoundCompoundPropertyModel and exluded model property references

2007-11-09 Thread William Hoover
Is there a way to exclude properties from being resolved in the BoundCompoundPropertyModel? I'm using: // in page form SomeModel someModel = new SomeBean(); Form someForm = new Form(some-form-id, new BoundCompoundPropertyModel(someModel)); someForm.add(someModel.bind(new

RE: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread William Hoover
Its 1.3.0-beta4 Is it still an issue? -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 10:15 AM To: users@wicket.apache.org Subject: Re: beforeRender() - Cannot modify component hierarchy during render phase? what version of wicket is

Re: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread Martijn Dashorst
don't override beforeRender, but *onBeforeRender* Martijn On 11/9/07, William Hoover [EMAIL PROTECTED] wrote: Its 1.3.0-beta4 Is it still an issue? -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 10:15 AM To:

Re: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread Matej Knopp
I am affraid you can't modify a component from a behavior before render. Unline onBeforeRender in component, the behavior's beforeRender is called right before component rendering, i.e. during the rendering process. In the next verion we will probably rename the before/afterRender methods in

Re: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread Martijn Dashorst
Ah, this is about behaviors... never mind. /me crawls back in the hole called book writing On 11/9/07, Martijn Dashorst [EMAIL PROTECTED] wrote: don't override beforeRender, but *onBeforeRender* Martijn On 11/9/07, William Hoover [EMAIL PROTECTED] wrote: Its 1.3.0-beta4 Is it still an

Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread James Perry
I would also recommend using CompoundPropertyModel rather than using lots of PropertyModels; it will save you a lot of time and code. J. On Nov 9, 2007 4:05 PM, Pills [EMAIL PROTECTED] wrote: So it's just because we have to override equals when using custom objects. Thank you for your answer

RE: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread William Hoover
Is there any way that to dynamically update a StringResourceModel? -Original Message- From: Matej Knopp [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 11:11 AM To: users@wicket.apache.org Subject: Re: beforeRender() - Cannot modify component hierarchy during render phase? I

RE: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread William Hoover
Actually, you may be on to something here. Maybe I need to look into using the component instead of a behavior? -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 11:16 AM To: users@wicket.apache.org Subject: Re: beforeRender() - Cannot

Re: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread Johan Compagner
changet the model value itself. instead of setting a new model On Nov 9, 2007 5:30 PM, William Hoover [EMAIL PROTECTED] wrote: Is there any way that to dynamically update a StringResourceModel? -Original Message- From: Matej Knopp [mailto:[EMAIL PROTECTED] Sent: Friday, November 09,

Re: Wicket meetup (the netherlands) ideas

2007-11-09 Thread Uwe Schäfer
Martin Funk schrieb: my presentenion skills could need some practicing. I'd be more than happy to chip in a 10 or up to 15 minute thing on wicket-contrib-gmap2. i wont make it there, yet i am very much interested in the subject. it would be great if you guys would be so kind to upload your

Re: ResourceReference with locale and style, for CSSs

2007-11-09 Thread German Morales
1.3.0 beta 4 It seems that Johan Compagner wrote: I think i asked this before, but what version of wicket?? Normally (in the current wicket 1.3 buids) a ResourceReference to a PackageResource will fallback to the real locale the PackageResource is loaded from after the ResourceReference is

Re: Is it possible to get AjaxLink stateless?

2007-11-09 Thread Johan Compagner
what happens if you also override your behaviors *public* *boolean* getStatelessHint(Component component) { *return* *false*; } and return true. I dont know if all the urls are generated right then.. On Nov 9, 2007 4:51 PM, Chris Lintz [EMAIL PROTECTED] wrote: The onsubmit is adding a

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread pmularien
James, The _official_ project itself wasn't migrated - that remains on Wicket 1.2 / Spring 2 / Hibernate. The migration was simply for my own purposes of hands-on learning. I wanted to see whether a working, relatively simple database-driven application using the aforementioned stack could be

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread Al Maw
pmularien wrote: Was there a conscious design decision to not use the org.apache.wicket.injection.web.InjectorHolder class (and, by association, have the wicket-guice stuff inherit from ConfigurableInjector)? It would be pretty convenient if the GuiceComponentInjector worked similarly to the

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread James Perry
Hello Peter, Out of interest why did you migrate from a Spring/Hibernate design to Guice? Cheers, James. On Nov 9, 2007 5:03 PM, pmularien [EMAIL PROTECTED] wrote: Hi Wicket folks, I've just spent some time converting a Wicket 1.2.6 / Spring 2.0 / Hibernate 3 project that we did to Wicket

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread pmularien
Al Maw wrote: Yes, there was, and this issue hasn't been resolved for 1.3 yet. I did it like this because some people will want to use both Guice and Spring in their apps at the same time, especially if they're mid-migration. We should come up with a decent way to make this still

RE: beforeRender() - Cannot modify component hierarchy during render phase?

2007-11-09 Thread William Hoover
Gottcha... works (see below), Thanks Johan! new AbstractBehavior(){ @Override public final void beforeRender(Component component) { component.getModel().setObject(new StringResourceModel(getResourceKey(), refComponent, null).getString()); } } -Original

Re: Is it possible to get AjaxLink stateless?

2007-11-09 Thread Chris Lintz
I haven't added any behaviors. You are asking me to override any default behaviors associated with AjaxLink ? Johan Compagner wrote: what happens if you also override your behaviors *public* *boolean* getStatelessHint(Component component) { *return* *false*; } and return

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread Al Maw
pmularien wrote: Al Maw wrote: Yes, there was, and this issue hasn't been resolved for 1.3 yet. I did it like this because some people will want to use both Guice and Spring in their apps at the same time, especially if they're mid-migration. We should come up with a decent way to make

Re: Real World Ajax Examples/Tutorials/Help

2007-11-09 Thread Curtis Cooley
Gwyn Evans wrote: CC The only difference between my java file and the WorldClock CC example is that it extends BasePage and I extend Panel. I'm also CC updating a label that is in a ListView. I'm trying to build a CC table of data that updates dynamically. That might be significant. Could

Re: Real World Ajax Examples/Tutorials/Help

2007-11-09 Thread JulianS
Curtis Cooley-2 wrote: Also, it seems that when I attempt to enable ajax, whenever I click on another tab, I get the page expired link. What's up with that? I am also seeing the page expired problem frequently with 1.3.0-beta4. We are just in the process of upgrading to 1.3 from 1.2.6

  1   2   >