Re: Nothing happens on AJAX call after session timeout

2011-05-13 Thread vov
Thanks for your reply Yes, I tried to use the filters but to no avail. http://apache-wicket.1842946.n4.nabble.com/file/n3519427/request.png request.png this is data from 'Tamper Data' plugin for FireFox(action clicking to link after session expired). May be it can help. -- View this message

Re: New Website up using wicket

2011-05-13 Thread Attila Király
To the topic starter: Did you consider using wicket's html compressor? On May 13, 2011 7:37 AM, Josh Kamau joshnet2...@gmail.com wrote: Works really fast. Just curious. Whats on the back end? spring/guice/hibernate/??? Josh. On Thu, May 12, 2011 at 6:45 PM, nino martinez wael

RE: warn on exit from browser

2011-05-13 Thread Hielke Hoeve
You could use an ajax callback to wicket in the onbeforeunload and do something serverside but showing a modalwindow is probably impossible as the onbeforeunload will continue after the ajax call is done... Hielke -Original Message- From: Andrea Del Bene [mailto:adelb...@ciseonweb.it]

RE: Getting Parameters from URL

2011-05-13 Thread Hielke Hoeve
This is because a session is created only once for each user, until it expires ofcourse... If you wish to check url parameters for each request I would suggest you do this in RequestCycle.onBeginRequest(). There is also RequestCylce.onEndRequest() if you need to do anything at the end of the cycle

Re: warn on exit from browser

2011-05-13 Thread Martin Grigorov
I'm not sure this will work. First the Ajax call should be synchronous otherwise onbeforeunload will continue and unload the DOM/page. Second the returned ajax response is executed again in asynchronous way - using function chaining, and I think this will also release the lock. Canceling the

Re: Weird jsp include output

2011-05-13 Thread Alexandru Artimon
I'm using version 1.4.17. How would you change it in to a Behaviour ? Are there some classes that you'll extend or implement? Thanks, Alex On 05/12/2011 10:08 PM, Martin Grigorov wrote: Not sure what exactly happens but looking at the code in wiki I'd re-make JspContainer to JspBehavior. I

Re: Weird jsp include output

2011-05-13 Thread Martin Grigorov
JspFileContainer extends AbstractBehavior From there on it should be easy to figure out. On Fri, May 13, 2011 at 9:48 AM, Alexandru Artimon aarti...@developmentgateway.org wrote: I'm using version 1.4.17. How would you change it in to a Behaviour ? Are there some classes that you'll extend

Re: Weird jsp include output

2011-05-13 Thread Alexandru Artimon
Tried this version, but I can't figure out how to add the behaviour to the page at this point. Because for wicket defined html tags I know I have to use container./autoAdd/(component). Now with this method I can only add components and not behaviours. Using container.add(JspBehaviour)

Re: Weird jsp include output

2011-05-13 Thread Martin Grigorov
Right. It is too late to add behaviors at this point. Not sure what exactly happens. I have to try/debug it... Another thing that you may try: use IMarkupFilter instead of resolver. There you can add the behavior. See org.apache.wicket.markup.parser.filter.WicketMessageTagHandler for example. On

IE call wicket twice from JS

2011-05-13 Thread vov
Hi All, I have a table and JS on the page - when table scrolling in the very down JS function call wicket and label which displayed on the page incremented. All good with FireFox and all good in case with IE if you will pull scrolling down by your mouse. But if you will use your mouse wheel -

Re: Nothing happens on AJAX call after session timeout

2011-05-13 Thread vov
I found the solutions but I do not know that it fully safely. variable wicketGlobalFailureHandler is used in wicket-ajax.js for registration of failure handlers. I added this code to my BaseWebPage class which superclass for all my pages: add(new AbstractBehavior() { @Override

Re: 1.5 - mapping different error pages for specific errors

2011-05-13 Thread nino martinez wael
Did anything come out of this.. Im looking to utilize the exception Mapper but I cant find any documentation on it, so do I have to look in the code to discover the funtionality? What I basically want todo is to catch a dbconnection exception and tell the user that there is no connection to the

Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-13 Thread heapifyman
Am 12.05.2011 15:41, schrieb Martin Grigorov: I am not sure whether you solution actually works. I think they will be always the same. it is working fine for me here. On Thu, May 12, 2011 at 3:35 PM, heapifyman heapify...@gmail.com wrote: Am 12.05.2011 15:17, schrieb Martin Grigorov: It

Re: Nothing happens on AJAX call after session timeout

2011-05-13 Thread vov
And new question occur - how can I close all modal windows before redirecting to HomePage. Or how to redirect to Home Page my main window but not a modal? -- View this message in context:

DataTable: Multiple Filter, and OrderSubmittingLink

2011-05-13 Thread Tom Eicher
Hello, (I have been unable to locate a current and working wicketstuff mailing list, so I am sending to wicket mailing list instead. I searched for quite some time. This is really confusing with the old SF list still accepting subscribe requests etc etc) We are using wicket, wicketstuff and a

Re: IE call wicket twice from JS

2011-05-13 Thread Igor Vaynberg
it may be a problem with IE sending events differently. i would try to use jquery in hopes that it normalizes how events work across browsers. -igor On Fri, May 13, 2011 at 4:34 AM, vov vov...@mail.ru wrote: Hi All, I have a table and JS on the page - when table scrolling in the very down JS

Rendering the page, error some elements are missing

2011-05-13 Thread Anna Simbirtsev
Hi, I have the following markup for MyPanel.html: wicket:panel wicket:enclosure child=mylabel h3 span class=titleimg src=images/title-ico.gif border=0nbsp;My page /span /h3 div class=content div class=selectdown pimg src=images/asterisk.jpgLabel/p

post request with wicket

2011-05-13 Thread wmike1...@gmail.com
I need to make a POST request when i click a button. I'm finding very sparce documentation about how this side of wicket works. Any ideas? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/post-request-with-wicket-tp3520861p3520861.html Sent from the Users forum mailing

Re: post request with wicket

2011-05-13 Thread Igor Vaynberg
if your button submits a form it will be processed as a post. -igor On Fri, May 13, 2011 at 11:26 AM, wmike1...@gmail.com wmike1...@gmail.com wrote: I need to make a POST request when i click a button. I'm finding very sparce documentation about how this side of wicket works. Any ideas? --

Re: post request with wicket

2011-05-13 Thread wmike1...@gmail.com
It's not with a form, it's for a soap request. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/post-request-with-wicket-tp3520861p3520891.html Sent from the Users forum mailing list archive at Nabble.com.

Re: post request with wicket

2011-05-13 Thread Igor Vaynberg
use something like apache commons httpclient for that. -igor On Fri, May 13, 2011 at 11:41 AM, wmike1...@gmail.com wmike1...@gmail.com wrote: It's not with a form, it's for a soap request. -- View this message in context:

Re: post request with wicket

2011-05-13 Thread wmike1...@gmail.com
Thanks Igor. Just so I have this clear: There's no way to make the POST request straight from the client's browser? I need to have the client browser hit the wicket server which will then use straight java to create the POST request. Is this what you're thinking Igor? -mike -- View this

Re: post request with wicket

2011-05-13 Thread Matthias Gasser
Or use a javascript to trigger (and create) the POST request. Or the way you proposed, will also work. Depending on what you're trying to achieve. Matthias Am 13.05.2011 um 20:59 schrieb wmike1...@gmail.com: Thanks Igor. Just so I have this clear: There's no way to make the POST request

Re: post request with wicket

2011-05-13 Thread wmike1...@gmail.com
just add something like this into my markup file? # Send is this in keeping with wicket? I'm confused about this. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/post-request-with-wicket-tp3520861p3520964.html Sent from the Users forum mailing list archive at

How to bind object in Hashset to CompoundPropertyModel expression

2011-05-13 Thread datazuul
I have this model: final CompoundPropertyModel userModel = new CompoundPropertyModelUser(user); and want bind a checkbox to a boolean field in User - getUserAccount - getMemberships - Membership - acceptedTerms (the boolean field) I used this expression:

Re: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-13 Thread Sven Meier
A set doesn't allow indexed access. Sven On 05/13/2011 09:55 PM, datazuul wrote: I have this model: final CompoundPropertyModel userModel = new CompoundPropertyModelUser(user); and want bind a checkbox to a boolean field in User - getUserAccount - getMemberships - Membership - acceptedTerms

Form submit and nice urls

2011-05-13 Thread Peter Karich
Hi, when I'm doing [1] in 1.4.17 in a quickstart then I'm getting nice urls ala ?q=something e.g. for typing something in the textfield. The problem is that it prints two GET requests (why not POST + GET?): NOW: q = [todo] query=todo GET NOW: query=null GET In firebug I can see

Form submit and nice urls

2011-05-13 Thread Peter Karich
Hi, when I'm doing [1] in 1.4.17 in a quickstart then I'm getting nice urls ala ?q=something e.g. for typing something in the textfield. The problem is that it prints two GET requests (why not POST + GET?): NOW: q = [todo] query=todo GET NOW: query=null GET In firebug I can see

How to check markup attributes?

2011-05-13 Thread Craig Pardey
I'd like to check that particular markup attributes have been set on a component. My first instinct was to use component.getMarkupAttributes(), but the JavaDoc quite clearly suggests that it shouldn't be used. For example, all TextFields should have a 'maxlength' defined: public class

Re: How to check markup attributes?

2011-05-13 Thread Igor Vaynberg
if you are doing validation you can use imarkupfilter to check the attrs. -igor On Fri, May 13, 2011 at 1:57 PM, Craig Pardey craig.par...@intelliware.ca wrote: I'd like to check that particular markup attributes have been set on a component. My first instinct was to use

TextField not getting the value after a validation eror

2011-05-13 Thread msalman
I have a text field that is required to have a value. I also have a link that on being clicked inserts a value into the text field. It all works fine except if the user submits the form without setting the value for the text field. Once the form has been submitted without the required

Re: TextField not getting the value after a validation eror

2011-05-13 Thread Clint Checketts
I'm not sure I understand the steps that cause the problem. Case 1 1- A user opens the page 2- The user click the link, updating the value textfield 3- User submits the form, no validation error occurs, all is well. Case 2- 1- user opens page 2- user submits form 3- required error apears,

Handling session and load-balancer cookie timeout

2011-05-13 Thread Alec Swan
Hello, Our webapp has two types of users - Admins and Guests. Guests can view the site without logging in. However, when the session times out or load-balancer cookie expires Guests, like Admins are redirected to our login page, which confuses the Guests. What's a good way to redirect Guests

Sending to a new page from Iframe

2011-05-13 Thread Nelson Segura
I have a JSP page which has a small wicket mini page embedded in an IFrame. The small wicket page has wicket button that when preset should take the user to a full Wicket page. My problem is that when Using setResponsePage from the onclick event in the mini page, the Iframe gets refreshed. Instead

Re: Handling session and load-balancer cookie timeout

2011-05-13 Thread Igor Vaynberg
what is redirecting them back? -igor On Fri, May 13, 2011 at 3:45 PM, Alec Swan alecs...@gmail.com wrote: Hello, Our webapp has two types of users - Admins and Guests. Guests can view the site without logging in. However, when the session times out or load-balancer cookie expires Guests,

Re: Sending to a new page from Iframe

2011-05-13 Thread Igor Vaynberg
use an ajaxbutton/link instead and in response do target.appendjavascript(window.top.location='+urlFor(MyPage.class)+');); -igor On Fri, May 13, 2011 at 4:11 PM, Nelson Segura nsegu...@gmail.com wrote: I have a JSP page which has a small wicket mini page embedded in an IFrame. The small

Re: TextField not getting the value after a validation eror

2011-05-13 Thread Pedro Santos
Hi Mohammad, make sure of notify the textfield about the model change by invoking the Component#modelChanged method, inside the Link#onClick implementation after set the new value. e.g. field.modelChanged() On Friday, May 13, 2011, msalman mohammad_sal...@yahoo.com wrote: I have a text field

Re: Handling session and load-balancer cookie timeout

2011-05-13 Thread Alec Swan
The login page is returned from WebRequestCycle#onRuntimeException() and Application#getHomePage() and there is also a RestartResponseAtInterceptPageException(LOGIN_PAGE) thrown from IAuthorizationStrategy#isInstantiationAuthorized(). I am not sure how session timeout is handled by wicket, but I