Re: resource for href=...

2010-12-13 Thread Zilvinas Vilutis
Image class creates a LocalizedImageResource which creates a resource reference from a file. What you can do ( probably not recommended ) is extend the Image class to retrieve the URL dynamically e.g. http://pastebin.com/XCpcgLzC Regards Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:  

Re: Ajax response render as source in the browser

2010-12-13 Thread Wayne W
Hello everyone, I thought you might be interested. At the weekend I experienced this problem myself on my local machine, so I had the chance to debug and figure what was happening. The short version is 99.9% sure its a javascript engine bug on Firefox (and we've had a couple of users say they

Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Sam Zilverberg
Hi all, I've got a lot of forms on my app that use tables for layout and generally look like this after being rendered: form table tr thName/th * in the original markup it was a wicket:message key=name* tdinput name=name/input/td* in the original markup it was a simple input wicket:id=name* /tr

[1.5] onBeforeRender() not called after AjaxRequestTarget.add()

2010-12-13 Thread ilde...@gmail.com
Hey everyone. Maybe I am a little rusty with Wicket but.. I am on a new project with Wicket 1.5, M3. I have a simple behavior on a form field: form.add(otherComponent); form.add(codeField); codeField.add(new AjaxEventBehavior(onChange) { @Override

Re: [1.5] onBeforeRender() not called after AjaxRequestTarget.add()

2010-12-13 Thread ilde...@gmail.com
a couple of new experiments: I've added comp1 and comp2 as target in the onEvent. comp1 just have @Override protected void onBeforeRender() { super.onBeforeRender(); } while comp2 @Override protected void

Re: [1.5] onBeforeRender() not called after AjaxRequestTarget.add()

2010-12-13 Thread ilde...@gmail.com
sorry email was started before I completed it. Anyway I'll prepare a working zip and wil send the issue as a jira bug if I can confirm the problem. On Mon, Dec 13, 2010 at 2:13 PM, ilde...@gmail.com ilde...@gmail.comwrote: a couple of new experiments: I've added comp1 and comp2 as target in

Re: resource for href=...

2010-12-13 Thread James Carman
What do you want it to do when you click it? 2010/12/13 Ladislav DANKO em...@1ac0.net: No, I don't need to download it, what I need is right path in href attribute in anchor html tag as is in img html tag (created as new Image). -Original Message- From: jcar...@carmanconsulting.com

New Wicket based website: https://mm.web.de

2010-12-13 Thread Martin Funk
There is yet another Wicked based site out in the wild. https://mm.web.de To take a ride you have to have a web.de e-mail account though. srry.. But they do have a free plan too.. ;-) If you do have an account you should be able to access your web.de e-mail on quite a variety of mobile gadgets.

Re: Generate markup outside of DataTable relatively to visible data

2010-12-13 Thread Benedikt Schlegel
Basically, i need a way to hook into the row-generating routine. I would use DataView, but i need the column-based datahandling of the DataTable.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Generate markup outside of DataTable relatively to visible data

2010-12-13 Thread Igor Vaynberg
datatable#newrowitem generates an item for each row. you can add a behavior that renders something before or after the row. -igor On Mon, Dec 13, 2010 at 5:07 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: Basically, i need a way to hook into the row-generating routine. I would use

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-13 Thread eugenebalt
Sorry to bump this again, but is there a way to do Repaint + Download with the Validators kicking in before the repaint as they normally do? Right now, I'm able to initiate the download upon clicking the Submit buttons, but that happens BEFORE any of the Validators kick in. I should only

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-13 Thread Igor Vaynberg
in the ajaxrequetstarget append javascript that does window.location to a url that starts streaming the data -igor On Mon, Dec 13, 2010 at 5:12 PM, eugenebalt eugeneb...@yahoo.com wrote: Sorry to bump this again, but is there a way to do Repaint + Download with the Validators kicking in

Re: resource for href=...

2010-12-13 Thread Zilvinas Vilutis
did that help? Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com 2010/12/13 Zilvinas Vilutis cika...@gmail.com: Image class creates a LocalizedImageResource which creates a resource reference from a file. What you can do ( probably not recommended ) is extend the

Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread eugenebalt
Is there a way to invoke a Validator manually in an arbitrary place in the code, or do we have no control over when Wicket runs Validators (it always happens on the form submit)? In my situation, I'd like to invoke a validator manually in the Ajax part of my code. Thanks -- View this message in

Re: [1.5] [Solved] onBeforeRender() not called after AjaxRequestTarget.add()

2010-12-13 Thread ilde...@gmail.com
Ok, I got it, I told I was rusty :) I forgot that if a component is marked non visible on the first time is rendered, it will never be rendered again until someone make it visilble. Of course, I can't make it visible again in it's own onBeforeRender that is exactly the method that will never be

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
form.validate() i believe -igor On Mon, Dec 13, 2010 at 6:15 PM, eugenebalt eugeneb...@yahoo.com wrote: Is there a way to invoke a Validator manually in an arbitrary place in the code, or do we have no control over when Wicket runs Validators (it always happens on the form submit)? In my

Re: [1.5] [Solved] onBeforeRender() not called after AjaxRequestTarget.add()

2010-12-13 Thread Igor Vaynberg
see component#onconfigure() -igor On Mon, Dec 13, 2010 at 6:16 PM, ilde...@gmail.com ilde...@gmail.com wrote: Ok, I got it, I told I was rusty :) I forgot that if a component is marked non visible on the first time is rendered, it will never be rendered again until someone make it visilble.

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread eugenebalt
Thanks Igor. That method is a void. Is it possible to get some kind of a boolean result from form.validate() to indicate success/failure? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invoke-Validators-manually-in-arbitrary-places-e-g-Ajax-tp3085646p3085680.html

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
after you call it call form.haserrors() or form.isvalid() or something similar -igor On Mon, Dec 13, 2010 at 6:29 PM, eugenebalt eugeneb...@yahoo.com wrote: Thanks Igor. That method is a void. Is it possible to get some kind of a boolean result from form.validate() to indicate

Re: Best practice for content without encompassing tag

2010-12-13 Thread Martin Grigorov
Both are OK On Mon, Dec 13, 2010 at 5:39 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Should I use wicket:container for a section of html that I want to include on my page without having a particular tag rendered to the user. For example, if I just want to output the text

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Zilvinas Vilutis
That's probably already popular topic, but I'll ask that question again ( please point me to the existing thread if you're aware of this question ) Is there any way to validate only one form component at a time and return the results to UI ( ajax )? Thank you! Žilvinas Vilutis Mobile:   (+370)

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
formcomponent.validate() -igor On Mon, Dec 13, 2010 at 6:56 PM, Zilvinas Vilutis cika...@gmail.com wrote: That's probably already popular topic, but I'll ask that question again ( please point me to the existing thread if you're aware of this question ) Is there any way to validate only one

Re: [1.5] [Solved] onBeforeRender() not called after AjaxRequestTarget.add()

2010-12-13 Thread ilde...@gmail.com
On Mon, Dec 13, 2010 at 5:18 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: onconfigure Yes, I also tried to use that new 1.5 method but again, overriding the one of the component but is a tecnique that does not work. It is needed to set the visiblity in the onConfigure of a parent object

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Michal Kurtak
Thank you for your replies Igor. I have another question regarding to clustered environment. Suppose we have versioned pages opened in two windows. If one node goes down, only the last page user made request from is stored in http session and replicated to other nodes. So i suppose that only one

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Michal Kurtak
Hmm... This solutions seems really good. sorry for bothering michal 2010/12/13 Igor Vaynberg igor.vaynb...@gmail.com: when the page that is stored in http session is deserialized on another node it is also spooled to disk. so in a cluster all nodes have identical spooled pages - so

How to get notified when a component is added to a hierarchy?

2010-12-13 Thread Vitaly Tsaplin
Hi everyone, I far as I could find out there is onRemove method which gets called once a component has been removed from its parent. But how about the opposite? How to get notified when a component is added to a hierarchy? (setParent is final) Best regards, Vitaly

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Michal Kurtak
And one more thing. do you have some benchmarks comparing DiskDataStore, AsynchronousDataStore to Pagemaps stored in http sessions (as in earlier wicket versions)? I mean writing pages to disks comparing to writing them to http session (and replicating big sessions)? 2010/12/13 Michal Kurtak

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Igor Vaynberg
thats how it works in 1.4.x as well. -igor On Mon, Dec 13, 2010 at 8:08 PM, Michal Kurtak michal.kur...@gmail.com wrote: Hmm... This solutions seems really good. sorry for bothering michal 2010/12/13 Igor Vaynberg igor.vaynb...@gmail.com: when the page that is stored in http session is

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Igor Vaynberg
no, but you are welcome to test and ping us back with the results :) -igor On Mon, Dec 13, 2010 at 8:14 PM, Michal Kurtak michal.kur...@gmail.com wrote: And one more thing. do you have some benchmarks comparing DiskDataStore, AsynchronousDataStore to Pagemaps stored in http sessions (as in

Re: How to get notified when a component is added to a hierarchy?

2010-12-13 Thread Igor Vaynberg
oninitialize() -igor On Mon, Dec 13, 2010 at 8:08 PM, Vitaly Tsaplin vitaly.tsap...@gmail.com wrote:     Hi everyone,     I far as I could find out there is onRemove method which gets called once a component has been removed from its parent. But how about the opposite? How to get notified

Re: How to get notified when a component is added to a hierarchy?

2010-12-13 Thread Vitaly Tsaplin
Hi Igor, It seams to be checking the flag.. if (!getFlag(FLAG_INITIALIZED)) { setFlag(FLAG_INITIALIZED, true); setFlag(FLAG_INITIALIZE_SUPER_CALL_VERIFIED, false); onInitialize();

Re: How to get notified when a component is added to a hierarchy?

2010-12-13 Thread Igor Vaynberg
feel free to file an rfe. -igor On Mon, Dec 13, 2010 at 8:28 PM, Vitaly Tsaplin vitaly.tsap...@gmail.com wrote: Hi Igor, It seams to be checking the flag..                if (!getFlag(FLAG_INITIALIZED))                {                        setFlag(FLAG_INITIALIZED, true);              

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Michal Kurtak
We are developing (at my employer) UI library based on wicket 1.5 (former version was based on wicket 1.2.6.) and we will make performance measurements so I can provide you some results:) But the tests will be made in January, if it doesn't matter 2010/12/13 Igor Vaynberg igor.vaynb...@gmail.com:

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Igor Vaynberg
anytime is good. cheers, -igor On Mon, Dec 13, 2010 at 8:41 PM, Michal Kurtak michal.kur...@gmail.com wrote: We are developing (at my employer) UI library based on wicket 1.5 (former version was based on wicket 1.2.6.) and we will make performance measurements so I can provide you some

RE: Best practice for content without encompassing tag

2010-12-13 Thread Brown, Berlin [GCG-PFS]
MartinG said it is OK, I like it. Also, I am blbrown on #freenode.wicket. I may ask you about it later. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, December 13, 2010 11:43 AM To: users@wicket.apache.org Subject: Re: Best practice for content

How to retrieve ListItem objects from a ListView

2010-12-13 Thread drf
I have the following use case : Having built a page using a standard ListView and implementing populateItem(), I then want to pass the ListView to a method, extract the contents, and use those contents to build a spreadsheet, cvs file, etc. This way, there will be no need to repeat the same

WebMarkupContainer not refreshing after form error

2010-12-13 Thread taygolf
Hey guys, I have a unique error. I have a form and I have a few fields in that form wrapped in a webMarkupContainer to refresh once a selection has been made. This handles default values based on another form value nicely and everything works fine. My problem is that I also have required fields

Re: How to retrieve ListItem objects from a ListView

2010-12-13 Thread Martin Grigorov
Most of the time you just need listView.getDefaultModel(). Anyway, to get children you may use listView.iterator() or .visitChildren() to iterate over them On Mon, Dec 13, 2010 at 8:19 PM, drf davidrfi...@gmail.com wrote: I have the following use case : Having built a page using a standard

Re: WebMarkupContainer not refreshing after form error

2010-12-13 Thread Martin Grigorov
show some code On Mon, Dec 13, 2010 at 8:19 PM, taygolf taylor.a.yo...@gmail.com wrote: Hey guys, I have a unique error. I have a form and I have a few fields in that form wrapped in a webMarkupContainer to refresh once a selection has been made. This handles default values based on

Re: How to retrieve ListItem objects from a ListView

2010-12-13 Thread Daniel Bartl
Not really sure if this is what you are trying to achieve but here it is anyway: public final ListT ListView#getModelObject() On Mon, Dec 13, 2010 at 8:19 PM, drf davidrfi...@gmail.com wrote: I have the following use case : Having built a page using a standard ListView and implementing

Re: WicketRuntimeException: component not found on page

2010-12-13 Thread Takeo Hosomi
Hello, The problem was solved by the advice I got from a wiquery developer. He said it was a common problem which happens when double ajax requests are issued where the first ajax request rewrite a component, and the next one refer to it. I solved the problem by preventing it by using the

Re: Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Sam Zilverberg
I realize my last post was a mess so here is an attempt to summarize it: I'm trying to turn input wicket:id=name/ which renders as input name=name id=some_generated_wicked_id/ to something that will render like this: label for=generated_idlabel/label * -FormComponentLabel* input name=name

RE: resource for href=...

2010-12-13 Thread Ladislav DANKO
Hmm, is it possible from Image object get url for image which is generated in Image(id, file_path)? If yes, than it should be possible with AttributeModifier change href in Link object.. -Original Message- From: Zilvinas Vilutis [mailto:cika...@gmail.com] Sent: Monday, December 13,

Re: Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Igor Vaynberg
use a behavior to render all the html. if you want to render using wicket components and not html use a border -igor On Mon, Dec 13, 2010 at 9:47 PM, Sam Zilverberg samzilverb...@gmail.com wrote: I realize my last post was a mess so here is an attempt to summarize it: I'm trying to turn

RE: resource for href=...

2010-12-13 Thread Ladislav DANKO
It is link for lightbox so it will know where the image for display is. Laco -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Monday, December 13, 2010 2:24 PM To: users@wicket.apache.org Subject: Re:

Re: resource for href=...

2010-12-13 Thread Pedro Santos
Can u use only the Image component? I don't think you actually need an Link at your component structure if your JavaScript framework needs only the src attribute value at the img tag. 2010/12/13 Ladislav DANKO em...@1ac0.net It is link for lightbox so it will know where the image for display

Re: Announcing the Topicus Dashboard

2010-12-13 Thread Martijn Dashorst
The competition has run its course and unfortunately the Topicus Dashboard is not the winner, however we did get an honorable mention from the judges: This wallboard also boasts a very clean and simple design with sexy animations. Products stats, builds and issue details are complimented by

Re: resource for href=...

2010-12-13 Thread Zilvinas Vilutis
Why don't you just check-out the source code of wicket lightbox: http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-lightbox to check how it's done there once you decided to write your own one... Regards Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com

how to validate a Label?

2010-12-13 Thread rolandpeng
Hi, I need to validate a readonly Label with required which displays some selection from a modalwindow. But a Label is not a formcomponent , so I cannot use setRequired() to fulfill my requirement. If I use a TextField/setEnable(false)/setRequired(true) for instead, the validator also

Re: how to validate a Label?

2010-12-13 Thread James Carman
hidden field? On Mon, Dec 13, 2010 at 8:35 PM, rolandpeng rolandp...@cht.com.tw wrote: Hi,   I need to validate a readonly Label with required which displays some selection from a modalwindow. But a Label is not a formcomponent , so I cannot use setRequired() to fulfill my requirement.   If

Re: how to validate a Label?

2010-12-13 Thread rolandpeng
I've tried a Label + TextField/setVisible(false)/setRequired(true) as well. But as the TextField is hidden,the required validation also disable ,either. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086378.html Sent from the

Re: how to validate a Label?

2010-12-13 Thread rolandpeng
oh, thank you for the hint. I find a HiddenField in the form package. I'll try this component later. Thank you again! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086380.html Sent from the Users forum mailing list archive at

Re: how to validate a Label?

2010-12-13 Thread James Carman
That's the ticket! Good luck, On Mon, Dec 13, 2010 at 9:18 PM, rolandpeng rolandp...@cht.com.tw wrote: oh, thank you for the hint. I find a HiddenField in the form package. I'll try this component later. Thank you again! -- View this message in context:

How to listen for CHILD ajax form submits

2010-12-13 Thread guydog28
I have a panel. I cannot figure out a way to have this panel informed if any of its children happens to exectute an AjaxFormSubmittingBehavior form submit. Ideally, I'd like my panel to listen for this, and have access to the AjaxRequestTarget. Is there a reasonable way to do this? My panel

Re: Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Sam Zilverberg
Thanks, that was pretty short and clear :) I decided to go with border so that if I decide I need some ajax behavior for a field I will be able to easily do addComponent(borderOfComponent). I wish there was some flag to tell wicket that it doesn't need to check that form components are associated