Re: How to listen for CHILD ajax form submits

2010-12-16 Thread guydog28
Ernesto, I had thought of that. I was hoping to avoid the custom button/link route, but seeing as I haven't heard anything more elegant yet, I decided to go with it for now. Thanks for your input! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-listen-for-CH

Reload modal page

2010-12-16 Thread Alec Swan
Hello, I have a modal page which allows the user to clone a tab. I would like to reload the modal page after this. Is there an exception I can throw to cause the modal page to get reloaded? Thanks, Alec

Re: Custom Component

2010-12-16 Thread Benedikt Schlegel
Hi Dieter, i think you might want to have a look at the following: https://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html So long, Benedikt - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: How to emulate an ajax-response with Wicket?

2010-12-16 Thread Bruno Borges
Could you provide a wicket quickstart application with such case? Bruno Borges www.brunoborges.com.br +55 21 76727099 "The glory of great men should always be measured by the means they have used to acquire it." - Francois de La Rochefoucauld On Thu, Dec 16, 2010 at 1:19 PM, f a v wrote: >

Re: Modify Attribute on DataView HTML Element

2010-12-16 Thread Martijn Dashorst
item.add(new AttributeModifier("attr", true, "value")); dataview#oncomponenttag doesn't do anything since the dataview repeats its markup with a listitem. the list item#oncomponenttag actually receives the markup tag. Martijn On Thu, Dec 16, 2010 at 10:04 PM, Matt Schmidt wrote: > I'm trying to

Modify Attribute on DataView HTML Element

2010-12-16 Thread Matt Schmidt
I'm trying to modify an attribute on the HTML element that goes with my DataView: HTML JAVA new DataView("dataview", dataProvider) { protected void populateItem(Item item) { item.add(new Label("myLabel", item.getModelObject().getValue())); } protected void onComponentTag(Comp

Re: Detach() explanation

2010-12-16 Thread Eelco Hillenius
This also applies to models, which you should use if you can over doing this directly in components. Also, besides serialization, the default configuration in Wicket keeps the current page in memory between requests. If you properly 'detach' (deflate might have been a good alternative word), you dr

Re: Datatable/Dataview filtering problem

2010-12-16 Thread Benedikt Schlegel
Try to implement the delay on client side. Instead of submitting the form directly, call a function with an internal timer. Something like: function delayedSubmit(form) { if (form._delayedSubmit != null) clearTimeout(form._delayedSubmit); form._delayedSubmit = setTimeout(function(

Re: How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread James Carman
You could also look at the way Wicketopia does what you're talking about: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/model/label/PropertyLabelModel.java It's a metadata-driven approach. On Thu, Dec 16, 2010 at 11:58 AM, James Carman w

Re: URL coding strategies

2010-12-16 Thread Bas Gooren
Well, look at it this way: when the user enters your application without any known state (session or other), how can you differentiate? Only by what you know/get from the url. So yes, if the name itself is not enough input to make a textual identifier unique, you'll have to include more inform

Re: URL coding strategies

2010-12-16 Thread Henrique Boregio
Hey Bas, you're right, I hadn't thought of it that way. In option 1, how would I go about using a unique textual identifier? Say there are 2 items with the name "Ford Ranger Model 2005" but each one is posted by different users, the URL would still be: http://www.mysite.com/item/Ford-Ranger-Model-

Re: How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread James Carman
You could use a class-qualified key (com.myco.domain.entity.Person.name=My Name). On Thu, Dec 16, 2010 at 11:55 AM, Matthias Keller wrote: > Hi James > > Do you mean page or component scoped message properties files? Like > MyPage.properties? > Unfortunately I don't see that as a solution because

Re: How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread Bas Gooren
Hi Matthias, There are several options, but most importantly: there is special handling for this on FormComponent (see LabeledWebMarkupContainer). You could either scope the fields by setting translations per page/panel, but this can get rather tedious. Another option is to create specialized

Re: How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread Matthias Keller
Hi James Do you mean page or component scoped message properties files? Like MyPage.properties? Unfortunately I don't see that as a solution because this would produce hundreds or properties files which would be a real nightmare to maintain (our customer wants *very* frequent text changes whic

Re: How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread James Carman
You can use page or component scoped messages. On Thu, Dec 16, 2010 at 11:48 AM, Matthias Keller wrote: > Hi > > This is an issue I frequently run into and I haven't found a good solution > yet: > I've got a Form using a CompoundPropertyModel and having lots of fields. > The easy way to do these

How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread Matthias Keller
Hi This is an issue I frequently run into and I haven't found a good solution yet: I've got a Form using a CompoundPropertyModel and having lots of fields. The easy way to do these fields is: form.add(new RequiredTextField("name")); The model object has a getter and setter for name, so all wor

Re: URL coding strategies

2010-12-16 Thread Bas Gooren
There are two ways to achieve what you are looking for: 1) store a stable, unique textual identifier per product (e.g. "Ford-Ranger-Model-2005"), and lookup the product from this identifier 2) store a textual identifier -> ID mapping in your session and do the lookup when the page is accessed;

Re: URL coding strategies

2010-12-16 Thread Andrea Del Bene
Hi Henrique, are you using a custom WebRequestCodingStrategy implementation? This class should let you encode visible URL as you prefer. Hello, I am mounting my URLs so I can list product items like so: http://www.mysite.com/item/id/0 http://www.mysite.com/item/id/1 and so on...then I user thi

Re: problem with changing css while application is running

2010-12-16 Thread Sam Zilverberg
Matthias: Yes I use firebug too, but it doesnt save the changes to the original css file. So after I make a few tweaks I need to retrace what I've changed and "copy-paste" to the original css. Martin: When I put the css file inside some package and contribute it like this add(CSSPackageResource

Re: problem with changing css while application is running

2010-12-16 Thread Martin Grigorov
I guess you are running Windows and there is an open file handle to this file by some process ... Use Process Explorer to find who is to blame. On Thu, Dec 16, 2010 at 4:43 PM, Sam Zilverberg wrote: > Sorry, I should have been more clear. > I don't get any error on the application side. > I get t

Re: Wicket.Ajax.registerPreCallHandler

2010-12-16 Thread Alexander Morozov
checkout artifactory sources and check AjaxIndicator implementation. http://www.jfrog.org/community.php -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-registerPreCallHandler-tp3091091p3091105.html Sent from the Users forum mailing list archive at Nabble.c

Wicket.Ajax.registerPreCallHandler

2010-12-16 Thread fachhoch
in this precall handler can I retrieve the dom elements which is sending the request ? in this precall I handler I call showbusysign function to mask page while ajax request is in process , now for some components I donot want to call showbusysign , please advice me is there any way I can mark

Re: problem with changing css while application is running

2010-12-16 Thread Matthias Gasser
Do you know firebug, or the safari / chrome developer tools? Especially firebug is quite convenient, changing styles on the fly... Am 16.12.2010 um 16:43 schrieb Sam Zilverberg: > Sorry, I should have been more clear. > I don't get any error on the application side. > I get the error in eclips

Re: problem with changing css while application is running

2010-12-16 Thread Sam Zilverberg
Sorry, I should have been more clear. I don't get any error on the application side. I get the error in eclipse. It can't save the css file while the application is running. It is pretty annoying because I like making changes to design and then press refresh in application window to see them.

Re: Keep focus in ModalWindow

2010-12-16 Thread Martin Grigorov
it should work out-of-the-box with modalwindow backed by a page for modalwindow backed by a panel my only idea is to register onkeydown listener to the last focusable element and set the focus manually to the first On Thu, Dec 16, 2010 at 4:12 PM, Frank Klein Koerkamp < fkleinkoerk...@educator.eu>

Re: problem with changing css while application is running

2010-12-16 Thread Martin Grigorov
what kind of error do you experience ? On Thu, Dec 16, 2010 at 3:59 PM, Sam Zilverberg wrote: > In my app I have a single css file in my "webapp" directory(the one that > contains WEB-INF, possible libs and so on). > > In my BasePage I contribute this css like this: > add(CSSPackageResource

How to emulate an ajax-response with Wicket?

2010-12-16 Thread f a v
Hi. Is there a way to answer an ajax-response XML asked from a Wicket application from another? Let me explain, I have an ajax filled DropDownChoice just like the example one [1], but it's filled from another webapp generating the ajax-response XML with a JSP. Now I need to emulate the ajax-respon

Re: jquery ui dialog and ajax component updating

2010-12-16 Thread Jeremy Thomerson
On Thu, Dec 16, 2010 at 6:04 AM, jensiator wrote: > Even better > IRequestTarget target = RequestCycle.get().getRequestTarget(); > if(target instanceof AjaxRequestTarget) { > The easier way to do this is to say: if (AjaxRequestTarget.get() != null) -- Jeremy Thomerson http://wick

Keep focus in ModalWindow

2010-12-16 Thread Frank Klein Koerkamp
Hi all, currently having a ModalWindow with some tab sequence inside. But when i 'tab' out of last component inside ModalWindow it goes to the page, but i like it to start again inside ModalWindow. I'm missing something or is this possible with some kind of behavior or not at all? Kind regards,

URL coding strategies

2010-12-16 Thread Henrique Boregio
Hello, I am mounting my URLs so I can list product items like so: http://www.mysite.com/item/id/0 http://www.mysite.com/item/id/1 and so on...then I user this id param to fetch the data from the database. I am not accesing this page directly. I have another page where the items are fully listed (

problem with changing css while application is running

2010-12-16 Thread Sam Zilverberg
In my app I have a single css file in my "webapp" directory(the one that contains WEB-INF, possible libs and so on). In my BasePage I contribute this css like this: add(CSSPackageResource.getHeaderContribution("urs.css")); If I want to edit this css and change some stuff while the applicati

Re: Page mounting

2010-12-16 Thread Pedro Santos
you can mount AdminLogin to some Login.class extension like class AdminLogin extends Login{ constructor(){ super(someParameters); } } On Wed, Dec 15, 2010 at 9:42 PM, Jeffrey Schneller < jeffrey.schnel...@envisa.com> wrote: > I think this was discussed here but I can't seems to find i

Re: Wicket resources (css, js and images)?

2010-12-16 Thread Jeremy Thomerson
Yes, I will do a good writeup of what we are able to accomplish now. I'll try to get that sent out tomorrow. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* On Thu, Dec 16, 2010 at 4:36 AM, Martin Grigorov wrote: > I believe the latest chan

Re: jquery ui dialog and ajax component updating

2010-12-16 Thread jensiator
Even better IRequestTarget target = RequestCycle.get().getRequestTarget(); if(target instanceof AjaxRequestTarget) { pResponse.renderJavascript("$('#"+Dialog.this.getMarkupId(true)+"').dialog('destroy').remove();", null); } pResponse.renderOnDomReadyJavascript("$(fun

SV: Apache Wicket : Please Help.

2010-12-16 Thread Wilhelmsen Tor Iver
> 12/2/10 15:54:28:415 ICT] 0023 WebAppE [Servlet Error]-[Error > while finishing the connection]: java.lang.OutOfMemoryError Increase heap using the -Xmx parameter, or if that does not help look for common causes for runaway page stores like having Page pointers in other Pages ins

Apache Wicket : Please Help.

2010-12-16 Thread Samaporn Ch.
Please help me to solve this problem. App server : Websphere DB : db2 IDE : eClipe 12/2/10 15:54:28:415 ICT] 0023 WebAppE [Servlet Error]-[Error while finishing the connection]: java.lang.OutOfMemoryError at java.io.ByteArrayOutputStream.write(ByteArrayOutputS

Re: jquery ui dialog and ajax component updating

2010-12-16 Thread jensiator
Thanks. Now I got it working. I got a panel that contains an test ajaxlink and a dialog(also in a panel). My problem was that when the outer panel got ajax updated, then the dialogpanel could not find the javascript in the headerpart. And if I added the javascript in pResponse.renderOnDomReadyJa

Re: Wicket resources (css, js and images)?

2010-12-16 Thread Martin Grigorov
I believe the latest changes by Jeremy added functionality for this. Jeremy can you please explain how the new org.apache.wicket.markup.html.IHeaderResponseDecorator can be used (is being used by your customer) ? On Wed, Dec 15, 2010 at 9:05 PM, Alex Objelean wrote: > > Though this topic is qui

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-16 Thread adam.gibbons
Yes, at both the Service and DAO level. It's in the code I posted! :) On 15 December 2010 20:15, James Carman [via Apache Wicket] < ml-node+3089806-1760738882-201...@n4.nabble.com > wrote: > You also need to make sure you've set up your transactions properly. > Are you using the @Transactional

Datatable/Dataview filtering problem

2010-12-16 Thread saschaleier
Hi all, i have a problem implementing filters to my datatable. What i want is a filter reacting on changes in the filter textfields. Let me call it 'live-filter'. So when you type, the table is filtered via dataprovider. I implemented the filter from the phonebook example, but this method

Re: Custom Component

2010-12-16 Thread Ernesto Reinaldo Barreiro
Dieter, Maybe you could use a technique similar to the one shown at [1]. That is, make something on your page implement IResourceListener an use that as a context to serve your data. Regards, Ernesto 1-https://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html On T

Custom Component

2010-12-16 Thread Dieter Bogdoll
Hello Wicket users, I have a question about custom components. I need some more interactive behaviour for this component and decided to use a java applet for this. The user of the component shouldn't be aware of that fact. This component should display some data using JFreeChart. After the applet