Re: Component initModel() order (design issue?)

2009-10-01 Thread Edmund Urbani
Can't be done, because the component does not yet know its parent during object initialization. initModel/getDefaultModel needs to be called later, when the component knows its place in the hierarchy. by giving the child component a model that obtains the model from its parent (MyTextfield) the

Re: Default implementation of IChainingModel

2009-10-01 Thread Daniel Stoch
Hi, Jeremy Thomerson wrote: I don't think one was ever created and it fell off my radar. If you create one, can you post yours and post a link to it back on this thread? Here is my implementation for Wicket 1.4 (with generics). It is a little bit different than Scott's one. import

Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Hello everybody, I've just subscribed to this ml, and even thou I searched past mails about my problem, I couldn't find any hint. I have a page that's refreshing its components every n seconds using AbstractAjaxTimerBehavior. Among these components there's a list of links. If I try to click a

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
Is blocking the page with a veil while refreshing a valid solution? That way users could not click on links while the page is refreshing... Best, Ernesto On Thu, Oct 1, 2009 at 12:37 PM, Alessandro Novarini a.novar...@sourcesense.com wrote: Hello everybody, I've just subscribed to this ml,

Re: AjaxPagingNavigation

2009-10-01 Thread Pedro Santos
Hi Douglas, you extend the AjaxPagingNavigator and override his method newNavigation to return an PagingNavigation. The default implementation for ajax return an AjaxPagingNavigation. That is what your links don't work asynchronously. On Wed, Sep 30, 2009 at 8:49 PM, Douglas Ferguson

Re: Click link lost during self updating

2009-10-01 Thread Pedro Santos
I have a page that's refreshing its components every n seconds using AbstractAjaxTimerBehavior. Among these components there's a list of links. Would be nice if you apply AbstractAjaxTimerBehavior only to components that need to be updated. Than you don't get in trouble with your links... On

RE: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Joe Hudson
Thank you so much for the response, that was very helpful. So, I've got half of the equation figured out but now, I have the issue of how to generate a URL that call a component that allows for a straight HTML response. Here is the issue now: Component someMadeUpAjaxComponent = ... {

Re: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Pedro Santos
1) Is there a component (the someMadeUpAjaxComponent) that I can get a URL for which will trigger the onClick method http://wicket.apache.org/docs/1.4/org/apache/wicket/IRequestTarget.html http://wicket.apache.org/docs/1.4/org/apache/wicket/behavior/AbstractAjaxBehavior.html#getCallbackUrl%28%29

download file inside panel caching tab

2009-10-01 Thread tubin gen
My page have several tabls all of them are panel cahcing tab it worked fine loading only once , I added a new pancel caching tab which has a download link , here clicking on the link i should create a response stream with byte array and here is the code setRedirect(false);

Re: 1 EAR, 2 WARs causes Spring Context Problem

2009-10-01 Thread shetc
Thanks Martin! That did the trick. Here's some info for other developers fortunate enough to work with IBM's WebSphere: Firstly, IBM's docs claim that, by default, each application server instance has a WAR class loader policy in which a different class loader is used for each WAR file. This is

Re: Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Ernesto, Thanks for the quick reply, but maybe I haven't explained in an accurate way the problem. Please correct me if I'm wrong; I get that you're suggesting me to disable all the components after the user clicks on a link, and enabling them after the server sends back the response. Is it

RE: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Joe Hudson
So, it is looking like I could do something like this: LinkString link = new AjaxLinkString(componentId, new ModelString(View Details)) { @Override public void onClick(AjaxRequestTarget target) { String resultHTML = convertPanelToHTML();

Re: Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Pedro, Thank you. This is indeed a solution, but it would mean rewriting the whole application. There are lots of components that need to be refreshed, and adding to each of them the behavior don't seem trivial. I'll give it a try anyway. Thank you Ale On Thu, Oct 1, 2009 at 1:17 PM, Pedro

Re: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Pedro Santos
1) I just want to return straight HTML (not contents within the ajax-response node) return to where? to broser? target.appendjavascript(document.body.innerHTML = '+resultHTML); how I could show a dynamic tooltip with data retrieved using ajax?

Re: Click link lost during self updating

2009-10-01 Thread Pedro Santos
Hi, consider to use Wicket api like IVisitor to help keep your code clear On Thu, Oct 1, 2009 at 10:00 AM, Alessandro Novarini a.novar...@sourcesense.com wrote: Pedro, Thank you. This is indeed a solution, but it would mean rewriting the whole application. There are lots of components

java.lang.StackOverflowError and ModalWindow

2009-10-01 Thread Altuğ B . Altıntaş
Hi all; I have a modal window; In that modal window i put a flash upload tool which calls a Servlet to post data. System works fine. But sometimes it gives java.lang.StackOverflowError. I couldn't understand this issue. Note : Also i increased Tomcat heap size... My wicket version is 1.4.1 JDK

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
What I suggested was the other way round... When the page is refreshing block it so that users can't click on a link while that is happening... And the way to block it could be using a veil (e.g. a transparent div layer with a loading icon) that does not allows the user to click on a link (the

Custom session is null

2009-10-01 Thread Stephen Nelson
Hello Wicket Users, I'm a beginner to wicket having previously used Spring MVC and Struts 1/2 so definitely from the other side as far as web frameworks go! Anyway I have a custom session to store a logged-in user; a panel component which performs the login; and a form web page. I'm

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
Maybe this thread has information useful to you. http://www.nabble.com/How-to-tackle-Ajax-Flooding-td25216116.html#a25221503http://www.nabble.com/How-to-tackle-Ajax-%22Flooding%22-td25216116.html#a25221503 http://www.nabble.com/How-to-tackle-Ajax-%22Flooding%22-td25216116.html#a25221503 Ernesto

Re: Custom session is null

2009-10-01 Thread Pedro Santos
I have bookmarkable pages for the login and the form page. Now I go to the form page If you using a link to go to form page, for some reason you don't get an cookie on your browser holding your session information. If you just writing the url to form page on browser, you are not passing session

Re: Custom session is null

2009-10-01 Thread Stephen Nelson
On 1 Oct 2009, at 15:11, Pedro Santos wrote: I have bookmarkable pages for the login and the form page. Now I go to the form page If you using a link to go to form page, for some reason you don't get an cookie on your browser holding your session information. If you just writing the url to

Re: User name validation - how to check database to find if a name has already been taken?

2009-10-01 Thread Nicolas Melendez
Thanks Igor.Always is good another point of view. NM On Wed, Sep 30, 2009 at 5:14 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: actually you got it completely wrong. especially as your project, and the number of devs who work on it, grows exceptions are a much more scalable way of handling

models from component parents

2009-10-01 Thread Troy Cauble
If this works Panel // no explicit model WebMarkupContainer // no explicit model RefreshingView (listModel) should this? Panel (listModel) WebMarkupContainer // no explicit model RefreshingView // no explicit model RefreshingView#getModelObject() returns null. I thought

Re: java.lang.StackOverflowError and ModalWindow

2009-10-01 Thread Altuğ B . Altıntaş
I think problem occurs because of old disk written Session. I cleaned Tomcat work directory. It works for now. 2009/10/1 Altuğ B. Altıntaş alt...@gmail.com Hi all; I have a modal window; In that modal window i put a flash upload tool which calls a Servlet to post data. System works fine.

Re: Component initModel() order (design issue?)

2009-10-01 Thread Igor Vaynberg
initmodel isnt called until the first getmodel/object call. why would that happen before the component is added to its parent? -igor On Thu, Oct 1, 2009 at 1:03 AM, Edmund Urbani e...@liland.org wrote: Can't be done, because the component does not yet know its parent during object

Re: Click link lost during self updating

2009-10-01 Thread Alessandro Novarini
Ok, thank you to everyone. I've made further investigation and I (think) can describe the problem: The refresh of the page is set to 3 seconds; The server takes 2 seconds to give the response back to the client; If the user clicks during the 2 seconds interval, the event is lost, and the dialog

Re: Custom session is null

2009-10-01 Thread Pedro Santos
The cookie used to keep session information. When you use link to access the form page, you are sending the session cookie stored on browser back to server, that now can to know with what session he has to work. Creates a cookie, a small amount of information sent by a servlet to a Web browser,

Re: download file inside panel caching tab

2009-10-01 Thread Igor Vaynberg
listviews refresh on every render. you can use repeatingview if you want to control/do the refreshing yourself. -igor On Thu, Oct 1, 2009 at 5:26 AM, tubin gen fachh...@gmail.com wrote: My page have several tabls all of them are panel cahcing tab   it worked fine loading only once   , I added

Re: models from component parents

2009-10-01 Thread Igor Vaynberg
inly if your ldm implemetns IInheritedModel which it does not by default -igor On Thu, Oct 1, 2009 at 8:34 AM, Troy Cauble troycau...@gmail.com wrote: If this works Panel  // no explicit model   WebMarkupContainer  // no explicit model      RefreshingView (listModel) should this? Panel

Re: Custom session is null

2009-10-01 Thread Stephen Nelson
On 1 Oct 2009, at 17:06, Pedro Santos wrote: The cookie used to keep session information. When you use link to access the form page, you are sending the session cookie stored on browser back to server, that now can to know with what session he has to work. Creates a cookie, a small amount

WebMarkupContainer and SimpleAttributeModifier problems on 1.4.1 upgrade.

2009-10-01 Thread VGJ
I've got a little helper method for replacing HTML tag attributes: public static WebMarkupContainer getContainer( String name, String attribute, String value) { //modify check add-on img tag WebMarkupContainer container = new

Re: Click link lost during self updating

2009-10-01 Thread Ernesto Reinaldo Barreiro
You have to be very careful about what you are doing. Think about the following situation: 1-You have panel A that contains a panel B which in turn contains a check box. 2-Suppose panel B in recreated every time panel A is rendered (e.g. on onBeforeRendered()). 3-The state of the check box depends

Exceptions and Ajax Events

2009-10-01 Thread Nicolas Melendez
Hi there,Our team was discussing about if there is a place where all exceptions, that come from an ajax behaviour, can be catched. We want to do this because we strongly belive that exceptions should be catched in one place, but now we have to catch the exception in every ajax method( onSubmit,

Re: Exceptions and Ajax Events

2009-10-01 Thread Jeremy Thomerson
something like this in your application should work: @Override public RequestCycle newRequestCycle(Request request, Response response) { return new WebRequestCycle(this, (WebRequest)request, (WebResponse)response) { @Override public Page onRuntimeException(Page page,

AutoCompleteTextField stops showing completions

2009-10-01 Thread Julian Sinai
I'm having trouble with AutoCompleteTextField. It works great most of the time, but occasionally the autocompletions won't show up. This seems to be more of a problem on Safari and IE6. It happens either when the page first renders, or after clicking OK to take action based on the user's

Doubt with Link

2009-10-01 Thread Pedro Sena
Hi Guys, First of all, sorry for a so newbie question, but I'm really a newbie in Wicket. I'm trying to add a Behaviou to my link, it works fine with link.add(myBehaviourHere) I'd like to know how to avoid any page redirect the link does. I left onClick without code but it redirects to the page

Re: Doubt with Link

2009-10-01 Thread Pedro Santos
Refresh the page is default link behavior, you may want to use AjaxLink to avoid it On Thu, Oct 1, 2009 at 5:44 PM, Pedro Sena sena.pe...@gmail.com wrote: Hi Guys, First of all, sorry for a so newbie question, but I'm really a newbie in Wicket. I'm trying to add a Behaviou to my link, it

Re: Doubt with Link

2009-10-01 Thread Pedro Sena
It worked. Thanks for the quick input. Regards, On Thu, Oct 1, 2009 at 5:53 PM, Pedro Santos pedros...@gmail.com wrote: Refresh the page is default link behavior, you may want to use AjaxLink to avoid it On Thu, Oct 1, 2009 at 5:44 PM, Pedro Sena sena.pe...@gmail.com wrote: Hi Guys,

Re: WebMarkupContainer and SimpleAttributeModifier problems on 1.4.1 upgrade.

2009-10-01 Thread VGJ
Hmm...nevermind, I guess? It seems like the problem just went away. I can't explain it...a few redeploys later and it's all working as if the error never happened. I'll submit this one to the X-Files. On Thu, Oct 1, 2009 at 12:01 PM, VGJ zambi...@gmail.com wrote: I've got a little helper

Re: Exceptions and Ajax Events

2009-10-01 Thread Esteban Masoero
Hi: We found out we need something else. Is there a way we can access to the component asociated to the listener that was processing the event? (of course it only applies to ajax events), becase from onRuntimeException we ony have the Page. Thanks, Esteban Jeremy Thomerson escribió:

Re: WebMarkupContainer and SimpleAttributeModifier problems on 1.4.1 upgrade.

2009-10-01 Thread Jeremy Thomerson
It was a classpath issue - you had an old version of Wicket somewhere. 1.3 / 1.4 are not binary compatible. Perhaps even in a serialized session? -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 1, 2009 at 4:21 PM, VGJ zambi...@gmail.com wrote: Hmm...nevermind, I guess? It

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-10-01 Thread Nicolas Melendez
hi, in your example, there aren't behaviours, or where are they? On Thu, Sep 24, 2009 at 5:54 AM, jWeekend jweekend_for...@cabouge.comwrote: Chris, The fact that you've chosen to use Wicket probably shows there's not so much danger of that! To better see what's going on, try the snippet

ModalWindow and LazyLoading Exception

2009-10-01 Thread Albert Romanius
Hi, I am working with wicket and jpa/hibernate/spring. I am trying to create a ModalWindow, but I get a LazyLoadingException. I tryed the OSIVpattern, but it did not work. Using the modal inside a form does not make any difference also. Has anyone else this problem? The page which the

Re: AjaxPagingNavigation

2009-10-01 Thread Douglas Ferguson
Umm... I apologize. Somebody else wrote this wrapper and I didn't catch that. Thanks! D/ On Oct 1, 2009, at 6:08 AM, Pedro Santos wrote: Hi Douglas, you extend the AjaxPagingNavigator and override his method newNavigation to return an PagingNavigation. The default implementation for

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-10-01 Thread Douglas Ferguson
What are the implications of turning this one? D/ On Sep 30, 2009, at 1:23 AM, Igor Vaynberg wrote: the javadoc in the later versions mentions that it is enabled by default, however if you are using the default secondlevel caching page store it will be disabled... -igor On Tue, Sep 29,

Re: Wicket component cannot be found from page relative component path.

2009-10-01 Thread yong mook kim
Hi, Any comments and feedback on it? Thanks Best Regards, yong --- On Mon, 9/28/09, yong mook kim mkyong2...@yahoo.com wrote: From: yong mook kim mkyong2...@yahoo.com Subject: Wicket component cannot be found from page relative component path. To: users@wicket.apache.org Date: Monday,

Immediate need for Wicket developer

2009-10-01 Thread Eric Glass
Hi All, We have the immediate need for a Wicket developer in the Canton/Akron Ohio, USA area. The candidate needs to be a Senior Java Developer with at least one year of Wicket experience. It would be great if the candidate also has JQuery experience, but any JavaScript/Ajax experience would

Re: ModalWindow and LazyLoading Exception

2009-10-01 Thread Marcelo Fukushima
while i couldnt identify which object is throwing the lazyInitialization, the problem is probably that the entity is not associated with the hibernate session. On the request that opens the ModalWindow you must either reload or reatach the entity On Thu, Oct 1, 2009 at 7:55 PM, Albert Romanius