How to display an error message?

2009-08-03 Thread Gajo Csaba
Hello, I have a FeedbackPanel, a TreeTable and an Add button. When I click on the Add button, I check if there are any selected nodes in the tree. If there are none, I want to display an error message in the FeedbackPanel. How to do this? The following doesn't work: feedback.error(Select

Re: How to display an error message?

2009-08-03 Thread Igor Vaynberg
feedback.rendercomponent()??? i assume this add button is an ajax button? in that case you have to add the feedback panel to the ajax target passed to you. there are plenty of examples in wicket-examples. -igor On Sun, Aug 2, 2009 at 11:23 PM, Gajo Csabacg...@i-rose.si wrote: Hello, I have a

Re: How to display an error message?

2009-08-03 Thread Gajo Csaba
Thanks Igor, that was exactly what I needed to do. Could you tell me what does target.addComponent() do? It tells Wicket which component should be refreshed by the ajax request? Igor Vaynberg wrote: feedback.rendercomponent()??? i assume this add button is an ajax button? in that case you

Re: Wicket for non Web/AJAX developers?

2009-08-03 Thread CrocodileShoes
I'm sure he was just using WTF as a reference to his own reaction when digging down into the deeper classes and not as a criticism. In fact I think he has said this. Using Google is fine but Google sometimes refers you forums and mailing lists where experts can help. Anyway, the wicket in

Feedback messages and ajax request

2009-08-03 Thread Martin Makundi
Hi! In normal requests feedbackmessages are processed like follows: public final void beforeRender() { if (!(this instanceof IFeedback)) { internalBeforeRender(); } else {

Re: Feedback messages and ajax request

2009-08-03 Thread Matej Knopp
Feedbacks should be processed in prepareRender method which should be called on Ajax requests as well. If it isn't it would be a bug. -Matej On Mon, Aug 3, 2009 at 11:59 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! In normal requests feedbackmessages are processed like

Re: Feedback messages and ajax request

2009-08-03 Thread Martin Makundi
Is it possible they are not ajax-processed at all if they are not visible in some earlier stage (=if there are no messages when isvisible is checked...??)? ** Martin 2009/8/3 Matej Knopp matej.kn...@gmail.com: Feedbacks should be processed in prepareRender method which should be called on Ajax

Re: Stateless login form?

2009-08-03 Thread Erik van Oosten
Ah, I get it. Yes, you are right too, just never got around rewriting the login to a stateless form. It has no priority though as our session never dies. Regards, Erik. Martin Makundi wrote: Login page is visible, but the form action=/?wicket:interface=:0:1 which is stateful. If my

Re: Doubt please help me to clear

2009-08-03 Thread Gerald Fernando
Hi Martin Which is suitable to create a financial Portal. In Flex we can easily create UI components.(I heared). shall we insert a flex graph in to wicket page? ThanksRegards, Gerald A On Mon, Aug 3, 2009 at 10:53 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Here are

Re: Doubt please help me to clear

2009-08-03 Thread Martin Makundi
Which is suitable to create a financial Portal. Both. In Flex we can easily create UI components.(I heared). shall we insert a flex graph in to wicket page? Yes, you can also MIX, no problem. We have done that. Wicket site with Flex Widgets. You can pick the best of both worlds. ** Martin

Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
Hello, I've got an ajaxTabbedPanel inside a ModalWindow. I would like to call some javascript _after_ the panel from ajaxTabbedPanel is displayed. Overriding onAjaxUpdate(AjaxRequestTarget target) doesn't help as it seems it gets called before the panel gets displayed. Do you have any ideas?

Re: Feedback messages and ajax request

2009-08-03 Thread Martin Makundi
I added a jira issue with a possible fix suggestion: https://issues.apache.org/jira/browse/WICKET-2411 ** Martin 2009/8/3 Martin Makundi martin.maku...@koodaripalvelut.com: Is it possible they are not ajax-processed at all if they are not visible in some earlier stage (=if there are no

Re: Components and nullable data

2009-08-03 Thread Iain Reddick
Thanks - that's very neat. It also made me spend some time looking at that area of the framework, which will be useful in the future. With that strategey and annotation, handling nullable data is a non-issue when a component uses a model for all its data requirements. There are obviously

Re: Adding javascript after tab clicked

2009-08-03 Thread Eyal Golan
I'm not sure, but are you looking for this: AjaxRequestTarget #appendJavascript(javascript) ? Eyal Golan egola...@gmail.com 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 On Mon,

Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
Hello, Tks for the reply. Yes, I'm using that, the problem is it gets called before the rendering finishes. I need something that runs after it got rendered. Any ideas? Cristi On Mon, Aug 3, 2009 at 1:07 PM, Eyal Golan egola...@gmail.com wrote: I'm not sure, but are you looking for this:

Re: Adding javascript after tab clicked

2009-08-03 Thread Erik van Oosten
That can not be right. The javascript added with AjaxRequestTarget#appendJavascript should be executed /after/ the DOM manipulations have finished. Maybe you called prependJavascript by accident? Or do you refer to something another thing when you write 'before the rendering finishes'? BTW,

Form skips validation for disabled/not visible components

2009-08-03 Thread Nicola Tucci
Hi all! I've a situation where I want the form to validate some hidden or disabled field. An example is a text field where the user is not allowed to write directly but only insert some items from some source, a lookup button (this is much more flexible than a drop down box!). I set this

Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
I think you're right. Maybe I need smth like a dom ready thing. The javascript call I'm making is to update something that's not yet there. If I use firebug to inject the call after it finished rendering it works. On Mon, Aug 3, 2009 at 2:03 PM, Erik van Oosten e.vanoos...@grons.nlwrote: That

Mounting application homepage

2009-08-03 Thread Roman Uhlig Maxity.de
We currently do a multilanguage site with Wicket and ran across the following problem: To be able to encode the chosen language in the URL, we append it to every URL like www.site.com/sitemap/fr www.site.com/sitemap/en (www.site.com/sitemap would mean default language) This works fine with

Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
I used JQuery $(document).*ready*(function(){ // Your code here... }); and it works now. Don't know why OOB Wicket doesn't work in this case. Thks. On Mon, Aug 3, 2009 at 2:08 PM, Cristi Manole cristiman...@gmail.comwrote: I think you're right. Maybe I need smth like a dom ready thing.

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread Eyal Golan
1. If you in control of the input of these disabled fields, why allowing illegal arguments in the first place? 2. If you can't control the entered values, try use FormValidator. With this class, you can create your own Validate logic with the desired fields. Eyal Golan egola...@gmail.com Visit:

Re: Mounting application homepage

2009-08-03 Thread Roman Uhlig
Thanks, that is even more than I needed and will solve other issues I have with Wicket and requests/URLs. And yes, I'm eagerly awaiting some first 1.5 beta download. ;) Regards, Roman Erik van Oosten wrote: Please see this thread.

detachable model in a listview

2009-08-03 Thread tubin gen
Please help me use detachablemodel inside a list view here is my code private class DocumentsPanel extends Panel { public DocumentsPanel( final ListAuditProgramDocument documents ,final String name) { super(documentsPanel); ListIModelAuditProgramDocument models= new

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread nytrus
egolan74 wrote: 1. If you in control of the input of these disabled fields, why allowing illegal arguments in the first place? 2. If you can't control the entered values, try use FormValidator. With this class, you can create your own Validate logic with the desired fields. 1. Good

img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
I know its been talked about before http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Gotchas Just had to restate it, make myself remember. mf

Re: How to display an error message?

2009-08-03 Thread Igor Vaynberg
/** * Adds a component to the list of components to be rendered * * @param component *component to be rendered */ public void addComponent(Component component) i suggest you get sources or javadoc into your IDE so you can see it. it

Re: detachable model in a listview

2009-08-03 Thread Igor Vaynberg
where does ListAuditProgramDocument documents come from? -igor On Mon, Aug 3, 2009 at 7:49 AM, tubin genfachh...@gmail.com wrote: Please help me use detachablemodel inside a list view here is my code private class DocumentsPanel  extends  Panel { public DocumentsPanel( final

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread Igor Vaynberg
use HiddenField instead of a TextField, that way there is no need to disable it. then the textfield/lookup button can be client-side things that populate the hidden field. -igor On Mon, Aug 3, 2009 at 7:51 AM, nytrusnytrus...@gmail.com wrote: egolan74 wrote: 1. If you in control of the

Re: img src= ... tags are truely evil!

2009-08-03 Thread Igor Vaynberg
it should be possible to create an IResponseFilter that checks for this and reports the error in dev mode. -igor On Mon, Aug 3, 2009 at 8:00 AM, Martin Funkmafulaf...@googlemail.com wrote: I know its been talked about before

Re: img src= ... tags are truely evil!

2009-08-03 Thread Nick Heudecker
The next version of WicketForge has an inspection that looks for this. On Mon, Aug 3, 2009 at 8:24 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: it should be possible to create an IResponseFilter that checks for this and reports the error in dev mode. -igor On Mon, Aug 3, 2009 at 8:00

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread James Carman
And, if you want to display the currently-selected thing, then try using a label (with a little style to it perhaps). On Mon, Aug 3, 2009 at 11:23 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: use HiddenField instead of a TextField, that way there is no need to disable it. then the

Re: img src= ... tags are truely evil!

2009-08-03 Thread Cristi Manole
anything similar for Eclipse? On Mon, Aug 3, 2009 at 4:40 PM, Nick Heudecker nheudec...@gmail.com wrote: The next version of WicketForge has an inspection that looks for this. On Mon, Aug 3, 2009 at 8:24 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: it should be possible to create an

Re: img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
like this? ~/dev/sandbox/wicket-trunk$ jsvn diff Index: wicket/src/main/java/org/apache/wicket/Application.java === --- wicket/src/main/java/org/apache/wicket/Application.java(revision 800428) +++

Re: img src= ... tags are truely evil!

2009-08-03 Thread Igor Vaynberg
yep, now if you would only attach it to a jira issue and check that attachment is ASL licensed check box we will be happy to roll it in :) -igor On Mon, Aug 3, 2009 at 8:58 AM, Martin Funkmafulaf...@googlemail.com wrote: like this? ~/dev/sandbox/wicket-trunk$ jsvn diff Index:

Re: detachable model in a listview

2009-08-03 Thread fachhoch
That I get it from the database but my question is when user clicks on a particular Item ie AuditProgramDocument I want to reload this as its auditProgramDocument.getDocumentBytes() is lazy , In refreshing view I can reload each item but why not in listview ? igor.vaynberg wrote: where

Re: detachable model in a listview

2009-08-03 Thread Martijn Dashorst
Use DataView or take a look at how PropertyListView creates a CompoundPropertyModel for each listitem. Martijn On Mon, Aug 3, 2009 at 6:25 PM, fachhochfachh...@gmail.com wrote: That I get  it from the database but my question is when user clicks on a particular Item ie  AuditProgramDocument I

Re: detachable model in a listview

2009-08-03 Thread Igor Vaynberg
yep, use dataview and http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ -igor On Mon, Aug 3, 2009 at 9:28 AM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: Use DataView or take a look at how PropertyListView creates a CompoundPropertyModel for each listitem. Martijn On

Re: img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
https://issues.apache.org/jira/browse/WICKET-2412 wow, now we all can be happy together ;-) mf 2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com yep, now if you would only attach it to a jira issue and check that attachment is ASL licensed check box we will be happy to roll it in :) -igor

WicketFilter and nullpointerexception

2009-08-03 Thread Fernando Wermus
Hi all, I am using wicket and blazeds. The users logs in through wicket and they use blazeds services as well. I need to verify in MessageBrokerServlet (blazeds servlet) that the user has logged in. Then I added the WicketSessionFilter to get the session. But I got a null pointer exception:

WicketSessionFilter and nullpointerexception

2009-08-03 Thread Fernando Wermus
Hi all, I am using wicket and blazeds. The users logs in through wicket and they use blazeds services as well. I need to verify in MessageBrokerServlet (blazeds servlet) that the user has logged in. Then I added the WicketSessionFilter to get the session. But I got a null pointer exception:

Re: img src= ... tags are truely evil!

2009-08-03 Thread Igor Vaynberg
voila -igor On Mon, Aug 3, 2009 at 9:46 AM, Martin Funkmafulaf...@googlemail.com wrote: https://issues.apache.org/jira/browse/WICKET-2412 wow, now we all can be happy together ;-) mf 2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com yep, now if you would only attach it to a jira issue and

Re: img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
thank you 2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com voila -igor On Mon, Aug 3, 2009 at 9:46 AM, Martin Funkmafulaf...@googlemail.com wrote: https://issues.apache.org/jira/browse/WICKET-2412 wow, now we all can be happy together ;-) mf 2009/8/3 Igor Vaynberg

Re: WicketSessionFilter and nullpointerexception

2009-08-03 Thread Igor Vaynberg
what version of wicket are you using? for me line 158 is } -igor On Mon, Aug 3, 2009 at 9:59 AM, Fernando Wermusfernando.wer...@gmail.com wrote: Hi all,    I am using wicket and blazeds. The users logs in through wicket and they use blazeds services as well. I need to verify in

Re: WicketSessionFilter and nullpointerexception

2009-08-03 Thread Fernando Wermus
Wicket 1.3.6 This is the line sessionKey = application.getSessionAttributePrefix(null) + Session.SESSION_ATTRIBUTE_NAME; On Mon, Aug 3, 2009 at 10:11 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: what version of wicket are you using? for me line 158 is } -igor On Mon,

Re: WicketSessionFilter and nullpointerexception

2009-08-03 Thread Igor Vaynberg
it looks like you are not setting the filterName attribute of the session filter to the name of the wicket filter. because of that it cannot find the correct application object. -igor On Mon, Aug 3, 2009 at 10:25 AM, Fernando Wermusfernando.wer...@gmail.com wrote: Wicket 1.3.6 This is the

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread Eyal Golan
HiddenField is a good thing to know about :) Eyal Golan egola...@gmail.com 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 On Mon, Aug 3, 2009 at 5:23 PM, Igor Vaynberg

Re: Form tag does not get rendered on a Panel placed in a TabbedPanel within a ModalWindow

2009-08-03 Thread Matej Knopp
From modal window javadoc: * If you want to use form in modal window component make sure that you put the modal window itself * in another form (nesting forms is legal in Wicket). -Matej On Mon, Aug 3, 2009 at 8:15 PM, Marcin Palkamarcin.pa...@gmail.com wrote: Hi, I am experiencing a

Re: Form tag does not get rendered on a Panel placed in a TabbedPanel within a ModalWindow

2009-08-03 Thread Marcin Palka
Matej, Thanks. I missed that remark :-| I have used forms within a modal window before and I haven't suffered of problems like this one. I mean I haven't had to put that extra form outside a modal window. Except for the fact that I haven't had any TabbedPanels on my modals. cheers, Marcin --

Re: detachable model in a listview

2009-08-03 Thread fachhoch
Please provide me an example of ListView where each item is detachable . Martijn Dashorst wrote: Use DataView or take a look at how PropertyListView creates a CompoundPropertyModel for each listitem. Martijn On Mon, Aug 3, 2009 at 6:25 PM, fachhochfachh...@gmail.com wrote:

strange icon appears in webpage

2009-08-03 Thread tubin gen
My pages I see a strange symbol donot know the cause of this , the symbol in IE and firefox is differnt . Please help me tell what is causing this.Will attach the images in reply to this post.

Re: strange icon appears in webpage

2009-08-03 Thread fachhoch
My pages I see a strange symbol donot know the cause of this , the symbol in IE and firefox is differnt . Please help me tell what is causing this.below are the images. In IE http://www.nabble.com/file/p24797435/IE.png in firefox http://www.nabble.com/file/p24797435/firefox.png

Re: strange icon appears in webpage

2009-08-03 Thread Erik Post
Hi, Those symbols are shown when your system doesn't know how to render a particular character code. This could happen e.g. when you're trying to display Japanese characters without having a Japanese font installed. Cheers, Erik On Mon, Aug 3, 2009 at 10:17 PM, fachhochfachh...@gmail.com wrote:

Re: WicketSessionFilter and nullpointerexception

2009-08-03 Thread Fernando Wermus
thanks igor On Mon, Aug 3, 2009 at 10:30 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: it looks like you are not setting the filterName attribute of the session filter to the name of the wicket filter. because of that it cannot find the correct application object. -igor On Mon, Aug 3,

Re: strange icon appears in webpage

2009-08-03 Thread Erik Post
Btw, this might happen when you copy text from, say, a web page. The page may look normal, but contain non-standard versions of common characters such as double quotes/apostrophes/three consecutive dots/other. They may look ok in your editor, but they'll have non-standard char codes and could lead

Re: strange icon appears in webpage

2009-08-03 Thread Martin Makundi
Sync properly: - filesystem charset - html charset meta .. -tag ** Martin 2009/8/3 fachhoch fachh...@gmail.com: My pages I see a  strange symbol donot know the cause of  this ,  the symbol in IE   and firefox  is differnt .  Please help me  tell what  is causing this.below are the images.

Problems with CheckGroup

2009-08-03 Thread burnst...@burnstone.ch
Hi all I'm trying to use CheckGroup, but encounter some problems. First, my code: class NameValueListViewT extends ParameterValueProvider? extends ListViewT { U void displayItem(ListItemT listItem, ParameterValueProviderU parameter) { ... ListU enumItems = new