Re: manual ajax..

2008-01-26 Thread Nino Saturnino Martinez Vazquez Wael
Solution for me was to append a js where I set the id on a variable... regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Im doing some manual ajax with wicketAjaxGet.. And I need to get a id from one of the things added upon the request, how can I get that? It's for the

DropDownChoice default value

2008-01-26 Thread Mathias P.W Nilsson
I have a dropDownChoice populated with Category objects. If it is the first time the page is rendered the Choose one is visible in the list. If I choose any category this item gets removed because it is not a Category object. How can I always have a Choose one option as the first item in my

Re: DropDownChoice default value

2008-01-26 Thread Timo Rantalaiho
On Sat, 26 Jan 2008, Mathias P.W Nilsson wrote: I have a dropDownChoice populated with Category objects. If it is the first time the page is rendered the Choose one is visible in the list. If I choose any category this item gets removed because it is not a Category object. How can I always

Re: DropDownChoice default value

2008-01-26 Thread Mathias P.W Nilsson
Thanks but it still does not work. I have set the setIsNullValid to true and overrided the getDefaultChoice @Override protected java.lang.CharSequence getDefaultChoice(final Object selected){ return Test value; } But what happens then is that the null value is removed from the list. I

Not allowed to have whitespace in value

2008-01-26 Thread Mathias P.W Nilsson
Hi! I'm not allowed to have WhiteSpace in the value of a DropDownList. How come? If I implement the IChoiceRenderer and implement the method getDisplayValue and returnit is trimmed! I would like to be able to indent child in the drop downlist. How is this possible? Thanks -- View this

Re: Not allowed to have whitespace in value

2008-01-26 Thread James Carman
Have you tried using nbsp;? That's just the nature of HTML (and XML). The surrounding whitespace is ignored. On 1/26/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I'm not allowed to have WhiteSpace in the value of a DropDownList. How come? If I implement the IChoiceRenderer and

Re: Not allowed to have whitespace in value

2008-01-26 Thread Mathias P.W Nilsson
If I put in the html character of whitespace nbsp; it will type the value out! -- View this message in context: http://www.nabble.com/Not-allowed-to-have-whitespace-in-value-tp15107381p15107854.html Sent from the Wicket - User mailing list archive at Nabble.com.

Using javascript limits me from having an immersive user interface:Re: Add row to list of items on a page dynamically via ajax without repainting whole list

2008-01-26 Thread atul singh
Thanks for the pointer. I tried to follow what is in the link. http://www.nabble.com/Adding-item-to-ListView-over-Ajax---refresh-only-newest-row-td11272937.html Still I am facing a lot of serious problem. I am trying to generate html for the new row as said using javascript. I add the item

Re: Using javascript limits me from having an immersive user interface:Re: Add row to list of items on a page dynamically via ajax without repainting whole list

2008-01-26 Thread atul singh
Sorry for this post ..I think my problem is solved(Once i added the item to ajaxrequesttarget which is what i was forgetting)...I do not need to bother about creating the children of the item using javascript...They are just in place after the page is rendered... On Jan 26, 2008 8:56 PM, atul

Re: Not allowed to have whitespace in value

2008-01-26 Thread Eelco Hillenius
On Jan 26, 2008 5:21 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: If I put in the html character of whitespace nbsp; it will type the value out! You have to tell Wicket not to escape the output of your drop down list, which you do by calling setEscapeModelStrings(false) on it. Eelco

Re: Strange Sql exception accesing Wicket page

2008-01-26 Thread Nino Saturnino Martinez Vazquez Wael
How do you store your dao? Is it a transient object on the page? regards nino [EMAIL PROTECTED] wrote: Hello: I have several bookmarkable links that would bring up page with data retrieved from database via JPA/TOPLINK (EntityManager is always created fresh evertime data is retrieved). The

Re: DropDownChoice default value

2008-01-26 Thread Eelco Hillenius
On Jan 26, 2008 4:19 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Thanks but it still does not work. I have set the setIsNullValid to true and overrided the getDefaultChoice @Override protected java.lang.CharSequence getDefaultChoice(final Object selected){ return Test value; }

Dynamic Link Generation

2008-01-26 Thread mgiedt
Suppose I have two users, one with admin rights and one without. How do I remove the 'admin' link from my application when the non-admin logs in? Something similar to the TabbedPanel where I can dynamically create individual tabs, how do I dynamically create a list of links? With thanks, -Matt

Re: Dynamic Link Generation

2008-01-26 Thread Maurice Marrink
You always add all the links and then decide for each link if it should display or not. You can do this manually by having the isVisible method of your link check for an admin user or you can defer this to your security framework, swarm for instance automatically hides secure links.

Re: DropDownChoice default value

2008-01-26 Thread Mathias P.W Nilsson
Thanks alot! It works now. :jumping: -- View this message in context: http://www.nabble.com/DropDownChoice-default-value-tp15106932p15114359.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Not allowed to have whitespace in value

2008-01-26 Thread Mathias P.W Nilsson
This solved my problem. -- View this message in context: http://www.nabble.com/Not-allowed-to-have-whitespace-in-value-tp15107381p15114402.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Label is driving me a *little* crazy

2008-01-26 Thread Andy Czerwonka
I found this thread: http://www.mail-archive.com/users@wicket.apache.org/msg04400.html I have written similair code, but I'm getting an exception. Clearly my markup is wrong, but I can't for the life of me unnderstand why? When I inspect the code, the page contains the right things. I'm a

Wicket Security - runtime ACLs and Groups help plz

2008-01-26 Thread Ned Collyer
With wicket security (either wasp/swarm, or wicket-auth-roles) can things like Roles and Permissions be created through a web interface? Eg, I need a system whereby I can add new roles (or principals) through the web interface, and define their permission to a ACLs which are determined by which

tracking upload with wicket

2008-01-26 Thread Gareth Segree
I am writing a web application that will allow the admin for the app to track who is uploading files and the progress on each file being uploaded. How can this be done using wicket. thanks

Re: tracking upload with wicket

2008-01-26 Thread Igor Vaynberg
http://wicketstuff.org/wicket13/upload/single see that example for a monitored upload. now this upload reports to the user, but you can use the same mechanism to report the progress to somewhere where you can track it. -igor On Jan 26, 2008 6:06 PM, Gareth Segree [EMAIL PROTECTED] wrote: I am

Re: How to get a form component's value that is not a sub-node of the Form.

2008-01-26 Thread smallufo
Can you specify details more precisely ? According to http://www.thescripts.com/forum/thread95602.html It seems nested forms is forbidden. 2008/1/25, Eelco Hillenius [EMAIL PROTECTED]: You could try nested forms. Eelco On Jan 24, 2008 11:19 AM, smallufo [EMAIL PROTECTED] wrote: I have a

RE: TextField not getting value on the fly?

2008-01-26 Thread dvd
Sorry Textfield id should be key. Should be class C extends webpage{ String key = default; add(new Form(f, new CompoundPropertyModel(this)) form.add(new Textfield(key) Hello: here is a strange result class C extends webpage{ String key = default; add(new Form(f, new

TextField not getting value on the fly?

2008-01-26 Thread dvd
Hello: here is a strange result class C extends webpage{ String key = default; add(new Form(f, new CompoundPropertyModel(this)) form.add(new Textfield(tf) } When I enter a something like Test and hit submit I'd expect the textfield would return with Test since it has been saved to mode

RE: TextField not getting value on the fly?

2008-01-26 Thread dvd
Apologies. Pls disregard this question. I found the problem. Sorry Textfield id should be key. Should be class C extends webpage{ String key = default; add(new Form(f, new CompoundPropertyModel(this)) form.add(new Textfield(key) Hello: here is a strange result class C extends

Re: How to get a form component's value that is not a sub-node of the Form.

2008-01-26 Thread Eelco Hillenius
On Jan 26, 2008 7:47 PM, smallufo [EMAIL PROTECTED] wrote: Can you specify details more precisely ? According to http://www.thescripts.com/forum/thread95602.html It seems nested forms is forbidden. In Wicket you can nest them and let Wicket figure out to not actually print the inner ones. I

Re: Label is driving me a *little* crazy

2008-01-26 Thread Erik van Oosten
Try removing the id attributes from the markup. Wicket likes to generate this for itself. You'll also need to add a FormLabel (or something named like that) to the for element. Regards, Erik. Andy Czerwonka wrote: I found this thread: