Re: Problems with CheckGroup

2009-08-03 Thread burnstone
Martin Makundi wrote: What is U? In my understanding Check(box) operates on a Boolean value so the classcast exception might be there (btw. I always use CheckBox.. I never tried Check..). is just the parameter type, in this case a String, but could be an Integer or Float as well. The exampl

Re: Problems with CheckGroup

2009-08-03 Thread Martin Makundi
What is U? In my understanding Check(box) operates on a Boolean value so the classcast exception might be there (btw. I always use CheckBox.. I never tried Check..). ** Martin 2009/8/4 burnst...@burnstone.ch : > Hi all > > I'm trying to use CheckGroup, but encounter some problems. First, my code:

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 NameValueListView> extends ListView { void displayItem(ListItem listItem, ParameterValueProvider parameter) { ... List enumItems = new ArrayList(parameter.getEnumCodes()); addMultiSelectPanelListItem(li

Re: strange icon appears in webpage

2009-08-03 Thread Martin Makundi
Sync properly: -> filesystem charset -> html charset -tag ** Martin 2009/8/3 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://ww

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: WicketSessionFilter and nullpointerexception

2009-08-03 Thread Fernando Wermus
thanks igor On Mon, Aug 3, 2009 at 10:30 AM, Igor Vaynberg wrote: > 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,

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, fachhoch wrote: > > My pages I see

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 fa

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: 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, fachhoch wrote: >> >> That I get

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 -- V

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 Palka wrote: > Hi, > > I am experiencing a strange issue with a For

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 wrote: > us

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 Wermus wrote: > Wicket 1.3.6 > > This is the line > >                se

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 wrote: > what version of wicket are you using? for me line 158 is "}" > > -igor > > On Mon, Aug 3, 2009 at 9:59

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 Wermus 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 MessageBrokerServlet > (blazeds ser

Re: tags are truely evil!

2009-08-03 Thread Martin Funk
thank you 2009/8/3 Igor Vaynberg > voila > > -igor > > On Mon, Aug 3, 2009 at 9:46 AM, Martin Funk > wrote: > > https://issues.apache.org/jira/browse/WICKET-2412 > > > > wow, now we all can be happy together ;-) > > > > mf > > > > 2009/8/3 Igor Vaynberg > > > >> yep, now if you would only attac

Re: tags are truely evil!

2009-08-03 Thread Igor Vaynberg
voila -igor On Mon, Aug 3, 2009 at 9:46 AM, Martin Funk wrote: > https://issues.apache.org/jira/browse/WICKET-2412 > > wow, now we all can be happy together ;-) > > mf > > 2009/8/3 Igor Vaynberg > >> yep, now if you would only attach it to a jira issue and check that >> "attachment is ASL licens

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: ja

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: ja

Re: 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 > 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,

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 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:2

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, fachhoch wrote: > > That I get  it from the database but my question is when user clicks on a > particular Item ie  AuditProgramDocument I want to reload

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 do

Re: 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 Funk wrote: > like this? > > ~/dev/sandbox/wicket-trunk$ jsvn diff > Index: wicket/src/main/java/org/apache/wic

Re: 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) +++ wicket/src/main/java/org/apache/w

Re: 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 wrote: > The next version of WicketForge has an inspection that looks for this. > > On Mon, Aug 3, 2009 at 8:24 AM, Igor Vaynberg >wrote: > > > it should be possible to create an IResponseFilter that checks for > > thi

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 Vaynberg wrote: > use HiddenField instead of a TextField, that way there is no need to disable > it. > > then the textfield/lookup button c

Re: 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 wrote: > 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 Funk > wr

Re: 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 Funk wrote: > I know its been talked about before > http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Gotcha

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, nytrus wrote: > > > egolan74 wrote: >> >> 1. If you in control of the input of these d

Re: detachable model in a listview

2009-08-03 Thread Igor Vaynberg
where does List documents come from? -igor On Mon, Aug 3, 2009 at 7:49 AM, tubin gen wrote: > Please help me use detachablemodel inside a list view > > here is my code > > private class DocumentsPanel  extends  Panel { > > public DocumentsPanel( final List documents ,final > String name) { > supe

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

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: 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. Go

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 List documents ,final String name) { super("documentsPanel"); List> models= new ArrayList>(); for(final AuditProgramDocument auditProgramDocument :

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. > http://www.nabble.com/How-to-catch-unknown-(not-mounted

Re: Mounting application homepage

2009-08-03 Thread Erik van Oosten
Please see this thread. http://www.nabble.com/How-to-catch-unknown-(not-mounted)-URLs--td14949092.html#a14949092 I am not sure, but I think there are more answers out there. Or, ... you could wait for Wicket 1.5 :) Regards, Erik. Roman Uhlig Maxity.de wrote: We currently do a multilangu

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: h

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 wrote: > I think you're right. Maybe I need smth like a dom ready thing. The > javascript call I'

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 Mixed

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 wrote: > That can not be right. The

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 compo

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,

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 wrote: > I'm not sure, but are you looking for this: > AjaxRequestTarget #

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, A

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 compl

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 : > 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...?

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? Th

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

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? Thanks&Regards, Gerald A On Mon, Aug 3, 2009 at 10:53 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > Her

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 m

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 : > Feedbacks should be processed in prepareRender method which should be > called on Ajax requests as well. I

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 Makundi wrote: > Hi! > > In normal requests feedbackmessages are processed like follows: >        public final void

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: 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 actio