Re: Dynamic javascript generation

2010-03-22 Thread Sigmar Muuga
It cannot be done like this, I got the error: WicketMessage: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) On Sun, Mar 21, 2010 at 10:38 PM, Stefan Lindner lind...@visionet.dewrote: Add them in the needed order

Re: Dynamic javascript generation

2010-03-22 Thread Sigmar Muuga
But I got my problem solved with response.renderJavascript( second, firstUniqueID); AbstractBehaviour didnt help me out... Thanks! On Mon, Mar 22, 2010 at 8:54 AM, Sigmar Muuga meedi...@gmail.com wrote: It cannot be done like this, I got the error: WicketMessage: Cannot modify component

Re: Links and labels

2010-03-22 Thread Sigmar Muuga
I think that the last sample is too complicated. Wicket is meant to be simple, I dont want to write 100 lines of code because of one simple link. On Mon, Mar 22, 2010 at 1:26 AM, Steve Mactaggart steve.mactagg...@gmail.com wrote: The other way I have implemented that in our local code is

Remove pageparameters

2010-03-22 Thread Sigmar Muuga
Hello, another issue with wicket: how to remove page parameters? Lets say I set parameter like this: ?do=something Now I navigate through my site and when I call setResponsePage for that particular page, all these parameters appear also on the address bar. I dont want them there and does anybody

SV: Text replace with component

2010-03-22 Thread Wilhelmsen Tor Iver
Now I want to replace %destinationLink% with new BookmarkableLink(...); I am using GNU Gettext translations(.po files), thats why such solution... Is it possible or is there any reasonable way to do this? Look into the various urlFor() methods. In your case in particular String url =

Re: A web site developed with Wicket

2010-03-22 Thread Wilhelmsen Tor Iver
After using CSS for layout things for two years my summary is: Use tables for layout, CSS for the rest It it simple, it works, and it doesn't break in each new version of IE The question then becomes: what do you use to lay out tabular data? :) (IE is broken in all versions, and its CSS

Re: Remove pageparameters

2010-03-22 Thread Jens Alenius
Sigmar Muuga skrev: Hello, another issue with wicket: how to remove page parameters? Lets say I set parameter like this: ?do=something Now I navigate through my site and when I call setResponsePage for that particular page, all these parameters appear also on the address bar. I dont want them

DropDownChoice and Null value

2010-03-22 Thread Ivan Dudko
Hello guys! I am trying to use DropDownChoice. The first problem is no null value in DropDownChoice... (I must add null value to choices array) How i can do this in right way? And second problem is i can't understand why if i add System.out.println in getIdValue method it calls twice for

Re: Forms in a base class

2010-03-22 Thread Martijn Dashorst
I concur: the form fields need to be inside the form tag, otherwise the browser will not send them to the server. Martijn On Mon, Mar 22, 2010 at 6:00 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: dont think that will work. it will work for rendering, but for processing components it wont

Re: Simple javascript from wicket

2010-03-22 Thread marioosh.net
2010/3/18 Jeremy Thomerson jer...@wickettraining.com: Wicket is just java, just html.  Just add the JS to your HTML file.  Don't add an AjaxEventBehavior in java - because you don't want Ajax, and you don't need to do it in the java. -- Jeremy Thomerson http://www.wickettraining.com

Re: Remove pageparameters

2010-03-22 Thread Sigmar Muuga
Actually it makes the same. I am using them too, but I dont want them to be restorded into cache. At the moment I think it depends on session cookies, wicket stores them into cookies(I proved it by removing all cookies and then revisiting my app). On Mon, Mar 22, 2010 at 11:42 AM, Jens Alenius

Deleting items form ListView (ajaxed)

2010-03-22 Thread marioosh.net
I have BoxBorder component with close button : public abstract class BoxBorder extends Border { public BoxBorder(String id) { super(id); add(new AjaxLink(delete) { @Override public void

Re: Remove pageparameters

2010-03-22 Thread Jens Alenius
Have a look at this. Mayby it helps http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html Jens - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: @RequireHttps - forms misbehaving

2010-03-22 Thread gilberthuph
I'm having the same problem and I can reproduce this in a quickstart, I just want to check before creating a jira: - In my quickstart I'm calling setRedirect(true) within the form submit button's onSubmit(), is this the correct place to force a redirect? - SignInPage has the @RequireHttps

TypeNotPresentException

2010-03-22 Thread Svante Reutland
Hi! Im working on a project and I'm getting a weird exception in which I don't understand how to resolve. My application resides in two modules. One server side module where all business logic are. On the server side I user spring and restful webservices. Than I have a web module which

Re: Ajax has too much control?

2010-03-22 Thread David Chang
Hello Martin, Thanks for your input and sharing your code! I will give it a try. Did you have the same problem I have now? Here is what I have for the Country DDC: countryDDC.add(new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target)

Reasons against using Acegi with Wicket?

2010-03-22 Thread David Chang
Hello, I am learning Wicekt via the book WIA and I understand that Wicket has its own way (interfaces, components, sub-projects) of handling web security. I am thinking about using Acegi with Wicket. The reason is that I am familiar with Acegi, but I hope I am not going to do the wrong thing

Re: Access file from Javascript

2010-03-22 Thread JonnyL
That worked and now thanks to your guidance I understand how to use resources. Thanks so much for your time MartinM wrote: Hi! Well.. you have the url.. you can reference it from javascript by expressing it in for exampel a javascript variable... would that work for you?

Re: Reasons against using Acegi with Wicket?

2010-03-22 Thread James Carman
David, My example application I pointed out to you contains a Spring Security (formerly Acegi) configuration for Wicket (with a superclass for the application/session). That should help get you off the ground quickly if you want to go with Spring Security. James On Mon, Mar 22, 2010 at 8:15

Re: Reasons against using Acegi with Wicket?

2010-03-22 Thread David Chang
James, I did read some of your code for clues regarding how to program Wicket. Glad to know that it even has Acegi integration there!!! Best, David --- On Mon, 3/22/10, James Carman jcar...@carmanconsulting.com wrote: From: James Carman jcar...@carmanconsulting.com Subject: Re: Reasons

Re: TypeNotPresentException

2010-03-22 Thread Martijn Dashorst
From the JavaDoc from TypeNotFoundException: * Thrown when an application tries to access a type using a string * representing the type's name, but no definition for the type with * the specified name can be found. This exception differs from * {...@link ClassNotFoundException} in that

Re: TypeNotPresentException

2010-03-22 Thread svantepower
Anyone have any idea of what can cause my problem? -- View this message in context: http://old.nabble.com/TypeNotPresentException-tp27957971p27985887.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Registering a Wicket Application using OSGi HTTP service

2010-03-22 Thread Jaime Soriano Pastor
Hi, On Thu, Mar 18, 2010 at 9:12 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: That's weird. Did you tried to check-out [1] and  [2]? They did work a couple of month ago when I tested them. Don't worry, it wasn't an Antilia problem :) I finally fixed it, the answer in StackOverflow:

Re: Forms in a base class

2010-03-22 Thread Jeremy Thomerson
Martijn, they would still be in the form tag when rendered - see the placement of the wicket:child tag. However, I think Igor is right - the transparent resolver may not work on a form. I haven't used it for that, so I couldn't tell you. What it really boils down to is that you need the

RE: Help with integrating NTLM in wicket application

2010-03-22 Thread Juan Carlos Garcia M.
You can try http://jcifs.samba.org/ for NTLM authentication, i have used it in the past and it just works. jchappelle wrote: Bryan, We have an NTLMPage that we redirect the browser to. If there is no authorization header this is what we do. String auth =

Re: Ajax has too much control?

2010-03-22 Thread Martin Makundi
Hi! If you redraw something, you need to submit the form values, otherwise the redrawn state is different... if that's your case. ** Martin 2010/3/22 David Chang david_q_zh...@yahoo.com: Hello Martin, Thanks for your input and sharing your code! I will give it a try. Did you have the same

TextField hosting an Integer

2010-03-22 Thread Steven Haines
Hi, I'm creating a text field to host an integer, namely the year that a house was built: TextFieldInteger yearBuilt = new TextFieldInteger( yearBuilt ).setRequired( true ); And I'm using a CompoundPropertyModel that maps yearBuilt to an underlying bean property. My problem is that the

Re: TextField hosting an Integer

2010-03-22 Thread Thierry Peng
Steven Haines schrieb: Hi, I'm creating a text field to host an integer, namely the year that a house was built: TextFieldInteger yearBuilt = new TextFieldInteger( yearBuilt ).setRequired( true ); And I'm using a CompoundPropertyModel that maps yearBuilt to an underlying bean property. My

Re: Avoiding wickety URLs in login form

2010-03-22 Thread Antoine van Wel
3. I tried setting up the CryptedUrlWebRequestCodingStrategy. This successfully managed to encrypt the resulting wicket specific URL to ?x=a325u0234usdajfasdf, but the thing is, the login page now started expiring again. The reason is that CryptedUrlWebRequestCodingStrategy uses a key

Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1

2010-03-22 Thread shetc
Hi All, I'm bringing this issue up again as I am going to have to make a decision soon, which is: stick with Wicket 1.4.7 or go back to using 1.3.7. I have spent quite a bit of time trying to understand why the redirection fails when using AuthenticatedWebApplication. I created a small

Re: TextField hosting an Integer

2010-03-22 Thread James Carman
Change your property to Integer and not int? That way, it can be null (which would show up as empty on the text field). On Mon, Mar 22, 2010 at 11:09 AM, Steven Haines lyg...@yahoo.com wrote: Hi, I'm creating a text field to host an integer, namely the year that a house was built:

Re: TextField hosting an Integer

2010-03-22 Thread Swanthe Lindgren
And add RangeValidator. //Swanthe On 2010-03-22 17:00, James Carman wrote: Change your property to Integer and not int? That way, it can be null (which would show up as empty on the text field). On Mon, Mar 22, 2010 at 11:09 AM, Steven Haineslyg...@yahoo.com wrote: Hi, I'm creating a

Re: Ajax has too much control?

2010-03-22 Thread David Chang
Martin, I tried your approach it will not be working for me. Because I am going to add other required fields before or after the two dropdown list. Using AjaxFormSubmitBehavior would likely cause validation errors all the time. Besides, AjaxFormComponentUpdatingBehavior should be what I

Re: Wicketstuff versioning

2010-03-22 Thread Major Péter
Yepp, nice chat, but who wants to do the dirty work?? The first thing would be to create the 1.4.x branch, then release the current state as wicketstuff 1.4.7, and then modify the settings of the trunk to compile with wicket trunk. Let's split these jobs up to people, then do it. Also maybe we

Re: Ajax has too much control?

2010-03-22 Thread Martin Makundi
Hi! I tried your approach it will not be working for me. Because I am going to add other required fields before or after the two dropdown list. Using AjaxFormSubmitBehavior would likely cause validation errors all the time. No. AjaxFormSubmittingChangeListenerBehavior does NOT validate the

Re: AJAX slower than full page update

2010-03-22 Thread Keith R. Bennett
I too am experiencing extremely slow performance on IE. I just did a test on an Ajax call on IE, Firefox, and Opera, running on the same machine running Windows. Here are the results, in seconds: 2.4: IE 0.7: Firefox 0.6: Opera I'm doing nothing fancy, but there is a data table (about 12

Re: Handling Composite Data Table Efficiently

2010-03-22 Thread Pedro Santos
Take a look at: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/table-parent/table/src/main/java/org/wicketstuff/table/cell/renders/LenientTextField.java hope it give you some ideas. On Sat, Mar 20, 2010 at 1:41 PM, rock stone tempche...@gmail.com wrote: Hi, I have

Re: Handling Composite Data Table Efficiently

2010-03-22 Thread James Carman
You could use Fragments instead of Panels. They're a bit more lightweight. On Mon, Mar 22, 2010 at 3:59 PM, Pedro Santos pedros...@gmail.com wrote: Take a look at:

Reusing a Form

2010-03-22 Thread William Chu
Hi, I would like to reuse a login form - it looks like this: form wicket:id = loginForm div wicket:id=feedbackerfeedback/div div class=rowlabel class=left style=width: 160px; for=emailEmail: /labelinput type=text wicket:id=email //div div

Re: Deleting items form ListView (ajaxed)

2010-03-22 Thread Pedro Santos
Hi, take a look at: http://markmail.org/search/?q=list%3Aorg.apache.wicket.users+from%3A%22Pedro+Santos%22+view#query:list%3Aorg.apache.wicket.users%20from%3A%22Pedro%20Santos%22%20view+page:1+mid:442snjhrd3mjyjl2+state:results about how to remove the border, you can implement the designated

Re: Reusing a Form

2010-03-22 Thread Martin Makundi
You have two options: a) copy-paste the form markup b) put the form into a panel ** Martin 2010/3/22 William Chu will...@gmail.com: Hi, I would like to reuse a login form - it looks like this: form wicket:id = loginForm                  div wicket:id=feedbackerfeedback/div                

Re: DropDownChoice and Null value

2010-03-22 Thread Pedro Santos
About the first question: http://www.jarvana.com/jarvana/view/org/apache/wicket/wicket/1.4.0/wicket-1.4.0-javadoc.jar!/org/apache/wicket/markup/html/form/AbstractSingleSelectChoice.html#setNullValid%28boolean%29 On Mon, Mar 22, 2010 at 7:06 AM, Ivan Dudko ivan.du...@gmail.com wrote: Hello guys!

Behaviour being also a Validator

2010-03-22 Thread Uwe Schäfer
hi i ran into a problem, where a Behaviour, that at some point happens to also implement also IValidator did no longer get the expected callbacks. this is understandable given the fact, that i call either add(IValidator) on FormComponent or add(IBehaviour) on Component to add it. I am

Re: Links and labels

2010-03-22 Thread Jeremy Thomerson
That's what he's saying - write that as a link class and you can use it all over your app with a single line that creates the link and nested label with only one line of code. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 22, 2010 at 2:07 AM, Sigmar Muuga meedi...@gmail.com

what's an 'ajax-only' page (wrt HybridUrlCodingStrategy)?

2010-03-22 Thread Nikita Tovstoles
The javadoc for HybridUrlCodingStrategy says: Also to preserve state on refresh with ajax-only pages the HybridUrlCodingStrategy does an immediate redirect after hitting bookmarkable URL, e.g. it immediately redirects from /mount/path to /mount/path.3 where 3 is the next page id. This preserves