Re: Has anybody seen this before?

2009-12-02 Thread Igor Vaynberg
do you have two query string parameters with the same name? -igor On Wed, Dec 2, 2009 at 4:11 PM, Douglas Ferguson wrote: >> [Ljava.lang.String; cannot be cast to java.lang.String >> >> java.lang.ClassCastException:[Ljava.lang.String; cannot be cast to >> java.lang.String     >> org.apache.wick

Re: Has anybody seen this before?

2009-12-02 Thread Ernesto Reinaldo Barreiro
using OSGi or some other "weird" thing? Ernesto On Thu, Dec 3, 2009 at 1:11 AM, Douglas Ferguson wrote: > > [Ljava.lang.String; cannot be cast to java.lang.String > > > > java.lang.ClassCastException:[Ljava.lang.String; cannot be cast to > java.lang.String > > org.apache.wicket.request.target

Re: Query related to displaying ListView items in a particular way

2009-12-02 Thread vineet semwal
take a look at gridview On Thu, Dec 3, 2009 at 11:33 AM, wrote: > Hi, > > > > I have a List View. I want to display the items in this list view in 2 > columns. The logic for this is as follows: > > > > If only 1 item in list then there will 1 item in left columns, and no > right column. > > For

Re: Query related to displaying ListView items in a particular way

2009-12-02 Thread Igor Vaynberg
see GridView -igor On Wed, Dec 2, 2009 at 10:03 PM, wrote: > Hi, > > > > I have a List View. I want to display the items in this list view in 2 > columns. The logic for this is as follows: > > > > If only 1 item in list then there will 1 item in left columns, and no > right column. > > For 2 it

Query related to displaying ListView items in a particular way

2009-12-02 Thread vinay.karmarkar
Hi, I have a List View. I want to display the items in this list view in 2 columns. The logic for this is as follows: If only 1 item in list then there will 1 item in left columns, and no right column. For 2 items there will be 1 item in left and 1 in right. For 3 items there will be 1st it

Re: feedback messages

2009-12-02 Thread Gw
Thanks for ur help, Marco... :) GBU. On Mon, Nov 30, 2009 at 6:04 PM, Marco Mancini wrote: > Hi, > > Usualy i use this code: > > > .getFeedbackMessagesModel().setObject(null); > target.addComponent(); > > > but i don't know if is it the right solution > > ^_^ > > Marco > > 2009/11/30 Gw > > > Hi

Re: Wicket 1.5 experiences

2009-12-02 Thread Major Péter
We are fr away from clustering or using VM's. :) I heard lately about EJB proxy classes, which would do the lookup, and they also could create log entries in web layer, who's trying to call a specific business method from what IP. This could be also fun. Regards, Peter 2009-12-03 03:46 kelte

Re: Wicket 1.5 experiences

2009-12-02 Thread McIlwee, Craig
IMO, looking up EJBs through JNDI is better than relying on injection. Make the hostname (localhost, another ip, etc) part of the JNDI URL configurable and you give yourself the flexibility of being able to deploy them locally or in another VM. If you are using EJBs with JPA this will allow yo

Re: Wicket 1.5 experiences

2009-12-02 Thread Igor Vaynberg
no, there is no approximate release date. -igor 2009/12/2 Major Péter : > Anyone? > > 2009-12-01 23:17 keltezéssel, Major Péter írta: >> Hi, >> >> I'm trying to make my project 1.5-compatible, but I had run into two issues: >> First I was stumbled when saw IComponentBorder has been deleted, but >

Has anybody seen this before?

2009-12-02 Thread Douglas Ferguson
> [Ljava.lang.String; cannot be cast to java.lang.String > > java.lang.ClassCastException:[Ljava.lang.String; cannot be cast to > java.lang.String > org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.jav

Re: Wicket 1.5 experiences

2009-12-02 Thread Major Péter
Anyone? 2009-12-01 23:17 keltezéssel, Major Péter írta: > Hi, > > I'm trying to make my project 1.5-compatible, but I had run into two issues: > First I was stumbled when saw IComponentBorder has been deleted, but > after some Googling I found the corresponding ticket: > https://issues.apache.org

RE: making tinyMce TextArea readonly

2009-12-02 Thread Alex Rass
Yeah, would be good to update the whole tinyMCE thing. It's SO popular! It's rather outdated from what's on tinyMCE site. It should really be repackaged with some helper stuff like setReadOnly(true/false). And provide with a convenient tabbed panel for HTML/RAW edit window. Anyone who knows how t

Re: palette and event

2009-12-02 Thread Martin Makundi
http://issues.apache.org/jira/browse/WICKET-1574 2009/12/2 Swarnim Ranjitkar : > > I was trying to attach AjaxFormComponentUpdatingBehavior to palette and looks > like I can't do it this way. Is there anyways to attach action to palette > change event. > Here is my code. Appreciate you feedback

Re: palette and event

2009-12-02 Thread Martin Makundi
http://www.mail-archive.com/users@wicket.apache.org/msg14153.html 2009/12/2 Swarnim Ranjitkar : > > I was trying to attach AjaxFormComponentUpdatingBehavior to palette and looks > like I can't do it this way. Is there anyways to attach action to palette > change event. > Here is my code. Appreci

palette and event

2009-12-02 Thread Swarnim Ranjitkar
I was trying to attach AjaxFormComponentUpdatingBehavior to palette and looks like I can't do it this way. Is there anyways to attach action to palette change event. Here is my code. Appreciate you feedback Palette affiliatePalette = new Palette("affiliatePalette", new Proper

Re: Customized FeedbackPanel question

2009-12-02 Thread Doug Leeper
That is my backup plan. -- View this message in context: http://old.nabble.com/Customized-FeedbackPanel-question-tp26613644p26614645.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: Customized FeedbackPanel question

2009-12-02 Thread Igor Vaynberg
why dont you simply check in your filter if the reporter component is a descendant of the form and then ignore the message? -igor On Wed, Dec 2, 2009 at 10:11 AM, Doug Leeper wrote: > We have a requirement to render the offending FormComponent with a visual > change (not an indicator...but a st

ModalWindow on Firefox plus IE tab

2009-12-02 Thread Bernard LUPIN
Hi, My web site as to run on Firefox and Internet Explorer, so I use IE tab (https://addons.mozilla.org/fr/firefox/addon/1419) to test it, and for the first time I see a difference between IE tab and normal IE. I introduced one ModalWindow (IFrame version) in my page : it works well on IE and o

Customized FeedbackPanel question

2009-12-02 Thread Doug Leeper
We have a requirement to render the offending FormComponent with a visual change (not an indicator...but a style change such as background is red) and show the error message below the component. I have created a customized FeedbackPanel for this so this is not a problem. The problem we have is t

Re: AjaxFallbackLink does not work on Windows Mobile Internet Explorer

2009-12-02 Thread Richard Wilkinson
Actually I've just realiaed, you can't remove the behaviour with component instansiation because it hasn't been added yet. Look at ibeforeonbeforerenderlistener. Its called something like that, can't check at the moment. Richard On 2 Dec 2009 17:30, "richardwilko" wrote: Hi, You could implemen

Re: AjaxFallbackLink does not work on Windows Mobile Internet Explorer

2009-12-02 Thread richardwilko
Hi, You could implement your own IComponentInstantiationListener, and in it add some sort of behavior to modify the component which removes the onclick. Or you could try an remove the AjaxEventBehavior from the AjaxFallbackLink. This should work globally but will only require you to modify your

RE: Session stealing with wicket-auth-roles

2009-12-02 Thread Andrew Turner
Marvellous, thanks for the input folks. So, in a nutshell, what we're basically saying is that when using Wicket we recommend HTTPS and disabling URL rewrite (we are using weblogic and I presumed one of the other settings should have disabled URL rewrite, the fool I am, cookie-secure seemed t

AjaxFallbackLink does not work on Windows Mobile Internet Explorer

2009-12-02 Thread Leszek Gawron
it seems that Mobile IE understands "onclick" a little bit to start running it but not enough to actually process the request so no actual fallback is being made. As I would really like to keep my code as it is I thought I would introduce "Simple HTML" mode which would strip all "onclick" tags

making tinyMce TextArea readonly

2009-12-02 Thread tubin gen
I ma trying to make TextArea with TinyMce behaviour readonly , I added the following custom settings but it did not work tinyMCESettings.addCustomSetting("readonly : true"); tinyMCESettings.addCustomSetting("mode : textareas"); please suggest me how to make it readonly ?

Re: nested property and CompoundPropertyModel

2009-12-02 Thread fachhoch
It worked I was wrong. Thanks fachhoch wrote: > > I tried it did now work , need suggestion If I can make it work > > James Carman-3 wrote: >> >> Have you tried it? >> >> On Wed, Dec 2, 2009 at 10:51 AM, tubin gen wrote: >>> I am using   CompoundPropertyModel  as my form model , can I prov

Re: Static link for stateful page (Wicket 1.3)

2009-12-02 Thread Ryan Crumley
After some thought I have a better description of what I am trying to do: - I would like to have a stateless page that is always accessed via a bookmarkable link. - This page has an iframe whose content is backed by a stateful page that is altered via ajax links. - When the parent page is refreshe

Re: nested property and CompoundPropertyModel

2009-12-02 Thread James Carman
Read this: http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels On Wed, Dec 2, 2009 at 10:53 AM, James Carman wrote: > Have you tried it? > > On Wed, Dec 2, 2009 at 10:51 AM, tubin gen wrote: >> I am using   CompoundPropertyModel  as my

Re: nested property and CompoundPropertyModel

2009-12-02 Thread fachhoch
I tried it did now work , need suggestion If I can make it work James Carman-3 wrote: > > Have you tried it? > > On Wed, Dec 2, 2009 at 10:51 AM, tubin gen wrote: >> I am using   CompoundPropertyModel  as my form model , can I provide a >> nested property   as id for a form component ? >> > >

Re: nested property and CompoundPropertyModel

2009-12-02 Thread James Carman
Have you tried it? On Wed, Dec 2, 2009 at 10:51 AM, tubin gen wrote: > I am using   CompoundPropertyModel  as my form model , can I provide a > nested property   as id for a form component ? > - To unsubscribe, e-mail: users-uns

nested property and CompoundPropertyModel

2009-12-02 Thread tubin gen
I am using CompoundPropertyModel as my form model , can I provide a nested property as id for a form component ?

Re: Announcement: Annotation-based Mounting of Resources

2009-12-02 Thread James Carman
Is this annotation-based approach really saving that much? It seems to me that a few helper methods would do just as well. On Wed, Dec 2, 2009 at 1:51 AM, Toscano wrote: > > Hi again, > > First of all, thank you for your time and dedication with this project, I > think is really useful and inter

Re: Session timeout - AJAX-enabled controls

2009-12-02 Thread Bernard Lupin
Thank you Igor. Does somebody have a short example of java code to check for wicket-Ajax header ? Or an example of what such a header looks like ? In the debug window, I can see wicket xml responses, bot no query... Bernard in your servlet filter you will have to check for Wicket-Ajax header a

Re: Session stealing with wicket-auth-roles

2009-12-02 Thread Marat Radchenko
2009/12/2 Andrew Turner : > > > Good morning all, > > I'm hoping I've misconfigured something in my application, but we seem to be > prone to session stealing in our wicket application.  We're using > wicket-auth-roles to provide the security, and if you are able to access the > jsessionid you c

AW: Session stealing with wicket-auth-roles

2009-12-02 Thread Giambalvo, Christian
Hmm, for me it doesn't work. I mount the pages via: this.mount("/pages/secure", PackageName.forClass(this.getHomePage())); If I try to access the page from machine B with the same jessionid as machine A, then I get redirected to LoginPage. -Ursprüngliche Nachricht- Von: Andrew Turner

Re: Session stealing with wicket-auth-roles

2009-12-02 Thread Erik van Oosten
Thats basically the same code as on http://randomcoder.com/articles/jsessionid-considered-harmful. OWASP also has a good deal to say about sessions: http://www.owasp.org/index.php/Session_Management Regards, Erik. James Carman wrote: The Seam folks have a "fix" for removing JSESSIONID fr

Re: Session stealing with wicket-auth-roles

2009-12-02 Thread James Carman
The Seam folks have a "fix" for removing JSESSIONID from the URLs, too: http://seamframework.org/Documentation/RemovingJSESSIONIDFromYourURLsAndFixingScache On Wed, Dec 2, 2009 at 9:31 AM, James Carman wrote: > This is not a Wicket issue.  However, there is a good discussion on > the topic her

Re: Session stealing with wicket-auth-roles

2009-12-02 Thread James Carman
This is not a Wicket issue. However, there is a good discussion on the topic here: http://old.nabble.com/JSESSIONID-hijacking-td22492701.html What application server are you using? On Wed, Dec 2, 2009 at 4:24 AM, Andrew Turner wrote: > > > Good morning all, > > I'm hoping I've misconfigured so

Re: Session stealing with wicket-auth-roles

2009-12-02 Thread nino martinez wael
Cant you use http://www.mkyong.com/wicket/how-do-encrypt-encode-url-in-wicket/ But I guess it might still get the session id appended..? 2009/12/2 Loritsch, Berin C. > I too would like to know the Wicket answer. The problem is that > JSESSIONID is how the Servlet container differentiates the s

RE: Session stealing with wicket-auth-roles

2009-12-02 Thread Loritsch, Berin C.
I too would like to know the Wicket answer. The problem is that JSESSIONID is how the Servlet container differentiates the session with the user. It's part of the spec since the beginning. Because it is well known and certain browsers (Firefox, representing over a third of browser clients) make

Re: Wizard and confirmation screens

2009-12-02 Thread Eyal Golan
Hi, I once had a similar problem and made it work even with static steps. Please allow me to share it. I wanted to use statics steps in order "to feel them". Just for the fun, as I did wizard with dynamic steps before. So, I had a class Profile and wanted the wizard to create a new one (the wizard

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Clint Checketts
I use the AjaxEditableLabel and related components and I've subclassed them overriding the onBeforeRender adding a call that checks if it should be in edit mode, then its just a matter of setEnabled(false) to keep the AjaxEditableLabel as a label. -Clint On Wed, Dec 2, 2009 at 3:24 AM, Pieter D

Re: InvalidUrlException considered evil?

2009-12-02 Thread Marat Radchenko
2009/12/2 Ilja Pavkovic : > Am Mittwoch, 2. Dezember 2009 12:18:55 schrieb Marat Radchenko: >> There some places in Wicket sources where it throws >> InvalidUrlException that causes exception logging and >> InternalErrorPage is shown. >> >> However, I don't agree that badly constructed URL is and _

Re: InvalidUrlException considered evil?

2009-12-02 Thread Marat Radchenko
Same applies to "org.apache.wicket.WicketRuntimeException: unable to find component with path ... on stateless page ..." that can also be triggered by badly constructed url. - To unsubscribe, e-mail: users-unsubscr...@wicket.apach

Re: InvalidUrlException considered evil?

2009-12-02 Thread Ilja Pavkovic
Am Mittwoch, 2. Dezember 2009 12:18:55 schrieb Marat Radchenko: > There some places in Wicket sources where it throws > InvalidUrlException that causes exception logging and > InternalErrorPage is shown. > > However, I don't agree that badly constructed URL is and _internal_ > error. It is externa

InvalidUrlException considered evil?

2009-12-02 Thread Marat Radchenko
There some places in Wicket sources where it throws InvalidUrlException that causes exception logging and InternalErrorPage is shown. However, I don't agree that badly constructed URL is and _internal_ error. It is external error (for example, user was playing with urls, modifying them by hand).

AutocompleteTextField in wicket 1.3.6 ?

2009-12-02 Thread Matthias Keller
Hi I just tried to add a AutocompleteTextField to a 1.3.6 application but it doesn't seem to work. I copied the exact example from http://www.wicket-library.com/wicket-examples/ajax/autocomplete and removed the generics for 1.3.6 Yet still no matter if I enter anything or not, no autocomplete

Re: IDataProvider

2009-12-02 Thread Pieter Degraeuwe
I agree; JRebel is realy handy, but sometimes it gives realy nasty effects. In my case, restarting my appserver solves the problem.. On Wed, Dec 2, 2009 at 10:38 AM, Lester Chua wrote: > Thanks for the reply, > > I got very weird errors popping and grew suspicious of the instances that I > am wo

Re: IDataProvider

2009-12-02 Thread Lester Chua
Thanks for the reply, I got very weird errors popping and grew suspicious of the instances that I am working with (using JRebel for superfast deployment). So I scratched the class I was working with and recoded from scratch. Restarted my instance and everything works now. I guess I need to pay

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Pieter Degraeuwe
Hmm, that seems to be an easier solution; this way I, don't need to wrap everyting in a panel... Thanks for that tip ! On Wed, Dec 2, 2009 at 10:21 AM, Daan van Etten wrote: > Ah, I misread your original question. > Maybe you can use Wicket Fragments for each type of input. > http://wicket.apac

Session stealing with wicket-auth-roles

2009-12-02 Thread Andrew Turner
Good morning all, I'm hoping I've misconfigured something in my application, but we seem to be prone to session stealing in our wicket application. We're using wicket-auth-roles to provide the security, and if you are able to access the jsessionid you can get another machine to log straight

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Daan van Etten
Ah, I misread your original question. Maybe you can use Wicket Fragments for each type of input. http://wicket.apache.org/examplefragments.html Regards, Daan van Etten On Wed, 2009-12-02 at 10:19 +0100, Pieter Degraeuwe wrote: > I'll go for the 'each detail' has a panel, and create these detail

Re: IDataProvider

2009-12-02 Thread Daan van Etten
Hi, Sidenote: I suggest you look at the LoadableDetachableModel, see: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/model/LoadableDetachableModel.html Regards, Daan van Etten On Wed, 2009-12-02 at 16:20 +0800, Lester Chua wrote: > Hi, > > I am changing my tables f

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Pieter Degraeuwe
I'll go for the 'each detail' has a panel, and create these detail Panels via a factory. Thanks all of you. On Wed, Dec 2, 2009 at 10:12 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Reuse the complex markup and use different detail panels for each detail? > Maybe via some factor

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Ernesto Reinaldo Barreiro
Reuse the complex markup and use different detail panels for each detail? Maybe via some factory? Ernesto On Wed, Dec 2, 2009 at 10:06 AM, Pieter Degraeuwe < pieter.degrae...@systemworks.be> wrote: > I want to avoid this, since I wanted to reuse the (complex) markup... > Is there no way arou

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Daan van Etten
You have some options: Write one abstract panel with the complex markup and extend the read-only and editable panels from that class (wicket:child and wicket:extend). Or, create a panel with the complex markup and create two separate panels to edit and read. Switch those panels from the ComplexMa

Re: How to write markup if type of component is not known yet...

2009-12-02 Thread Pieter Degraeuwe
I want to avoid this, since I wanted to reuse the (complex) markup... Is there no way around this? On Wed, Dec 2, 2009 at 10:02 AM, Giambalvo, Christian < christian.giamba...@excelsisnet.com> wrote: > Keep it simple and write 2 panels. > > > -Ursprüngliche Nachricht- > Von: Pieter Degraeu

AW: How to write markup if type of component is not known yet...

2009-12-02 Thread Giambalvo, Christian
Keep it simple and write 2 panels. -Ursprüngliche Nachricht- Von: Pieter Degraeuwe [mailto:pieter.degrae...@systemworks.be] Gesendet: Mittwoch, 2. Dezember 2009 09:55 An: users@wicket.apache.org Betreff: How to write markup if type of component is not known yet... Hi all, I want to wri

How to write markup if type of component is not known yet...

2009-12-02 Thread Pieter Degraeuwe
Hi all, I want to write a panel which kan render in 2 modes: editable and read-only. In read-only mode all my components are just labels. In edit mode, are these labels replaced by input fields (e.g. Textfields, DropDowns, etc) The problem is now that I only want to write one markup (since all co

Help required in understanding DataView Mystery

2009-12-02 Thread Lester Chua
Hi I need help with understanding DataView. My code that construct the dataview is as follows (name changed to protect the guilty), IDataProvider dataProvider = new MyRecordDataProvider(); DataView dataView = new DataView("summary", dataProvider) { SimpleDateFormat s

IDataProvider

2009-12-02 Thread Lester Chua
Hi, I am changing my tables from RefreshingView to DataView. In the IDataProvider interface, Is this a correct implementation for the model() function? public IModel model(MyRecord inmodel) { return new Model(inmodel); }

Re: Wizard and confirmation screens

2009-12-02 Thread John Armstrong
Found my problem. I needed to be using a DynamicWizardModel, not a WizardModel. This lets me add the steps as required and therefore get access to the version of the model at that stage of the process. I'd done this before, just had to paw through my personal svn to find how I implemented it. Yes