Re: Getting the exception while starting a application in tomcat

2008-01-30 Thread Gurvinder Pal Singh
Hi , you are right, as the snippet i have given is from the exception sown in the wicket-examples project. Also the quick start example u have mentioned is of wicket1.2 version and that too for jetty server. But i have also tried to do create the HelloWorld example from given examples in the websi

Re: Ajax Busy Indicator

2008-01-30 Thread Igor Vaynberg
should get you started :) the only caveat is if that image component for some reason has setoutputmarkupid(true) set on it, in which case the id attr you put into markup will be overwritten, to make this thing work dynamically you would final Image image=new Image("ajxIndicatorImage", ...); imag

Re: Ajax Busy Indicator

2008-01-30 Thread Martin Makundi
> And wait a minute, is the container in fact the indicator? Yes! > > @Override > > protected void onComponentTag(ComponentTag tag) { > >super.onComponentTag(tag); > >tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR)); > > } > > This part I didn't understand. The html has ju

Re: Getting the exception while starting a application in tomcat

2008-01-30 Thread Igor Vaynberg
the link i pointed to generates wicket 1.3.0 quickstarts. and if you dont want to use jetty then simply run mvn package and that will generate a war file in the target subdir. -igor On Jan 30, 2008 12:25 AM, Gurvinder Pal Singh <[EMAIL PROTECTED]> wrote: > > Hi , you are right, as the snippet i

Re: Getting the exception while starting a application in tomcat

2008-01-30 Thread Gurvinder Pal Singh
Hi , you are right, as the snippet i have given is from the exception sown in the wicket-examples project. Also the quick start example u have mentioned is of wicket1.2 version and that too for jetty server. But i have also tried to do create the HelloWorld example from given examples in the websi

Re: Monitoring Wicket using JAMon

2008-01-30 Thread lars vonk
Hi, I came up with two possible candidate methods to put in JAMon monitoring. The: 1. ISessionStore.onBeginRequest and ISessionStore.onEndRequest 2. RequestCycle.onBeginRequest and RequestCycle.onEndRequest. For now I choose to override the ISessionStore because that one is called before and af

Re: It is there any Component not translate the HTML tag, and display the right format

2008-01-30 Thread Sébastien Piller
In fact: setEscapeModelString ;) Gerolf Seitz a écrit : .setEscapeOutputStrings(false) (or something like that) Gerolf On Jan 30, 2008 10:04 AM, laiqinyi <[EMAIL PROTECTED]> wrote: Hi All, now, I have integrated a wyswyg Editor with Wicket,and I save a lot of HTML tag into

Re: It is there any Component not translate the HTML tag, and display the right format

2008-01-30 Thread Gerolf Seitz
.setEscapeOutputStrings(false) (or something like that) Gerolf On Jan 30, 2008 10:04 AM, laiqinyi <[EMAIL PROTECTED]> wrote: > Hi All, > > now, I have integrated a wyswyg Editor with Wicket,and I save a lot of > HTML tag into DataBase. > The problem is, HTML tag could not show correct form, b

Re: Ajax Busy Indicator

2008-01-30 Thread Michael Sparer
> This seems like tweaking... nope, that's what CSS is for, you wouldn't want to change your markup just to put something as tiny as an ajaxindicator some pixels to the left would you? (just an example) Martin Makundi wrote: > >> You can use CSS to control the positon of the busy indicating i

It is there any Component not translate the HTML tag, and display the right format

2008-01-30 Thread laiqinyi
Hi All, now, I have integrated a wyswyg Editor with Wicket,and I save a lot of HTML tag into DataBase. The problem is, HTML tag could not show correct form, but display the ESC(transferred) tag for example: in the database there is : rr in the html source code there is:

rr

and It can

Re: Ajax Busy Indicator

2008-01-30 Thread Martin Makundi
> > This seems like tweaking... > nope, that's what CSS is for, you wouldn't want to change your markup just > to put something as tiny as an ajaxindicator some pixels to the left would > you? (just an example) What I do not want is the indicator to take up extra space from where it does not belon

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-30 Thread Johan Compagner
If 1 page instance can be accessed by multiply threads we suddenly have to have synchronize blocks all over the place in our wicket code (especially the response area, rendering) Also in the request phase where you can alter components and so on. Also needs to be synched. (add/remove of components

Re: Embedding in Jetty without web.xml

2008-01-30 Thread Peter Ertl
Dont change wicket, it's fine :-) Actually I got this working without any web.xml or WEB-INF/ and it's possible! The things is: When you use the wicket filter you also need to add the DefaultServlet (or any servlet that is mapped to your wicket filter path) it looks like that in my AppL

Re: Embedding in Jetty without web.xml

2008-01-30 Thread Peter Ertl
Also you should do this instead: Context context = new Context(server, "/", Context.SESSIONS); you write: Context context = new Context(server, "/");

DDC and page reload

2008-01-30 Thread Sébastien Piller
Hello, I have a little problem with drop down choices. I have one on my page. It stores some currencies. In the same page, I've got a Flash module, who needs the actual currency to work. I pass it using the usual "flashvars". But when I change a currency on the DDC (ie from USD to EUR), the

Re: DDC and page reload

2008-01-30 Thread Sébastien Piller
Yes, no problem, but it's really trivial... My Flash object is added here (I use the ShockWaveComponent, little modified, from the wiki): ShockWaveComponent swf = new ShockWaveComponent("swf", "ShirtDesignerV2.swf", "770", "480"); swf.setValue("quality", "high");

Re: DDC and page reload

2008-01-30 Thread Johan Compagner
how are you listening to the change of the DDC? If through ajax then you have to set the response page again to get a real refresh of everything (or just refresh th flash markup part) if through normal submit (onSelection) then the page is completely refreshed anyway maybe you cache at some place

Re: DDC and page reload

2008-01-30 Thread Edvin Syse
I have a little problem with drop down choices. I have one on my page. It stores some currencies. In the same page, I've got a Flash module, who needs the actual currency to work. I pass it using the usual "flashvars". But when I change a currency on the DDC (ie from USD to EUR), the actual p

Re: Getting the exception while starting a application in tomcat

2008-01-30 Thread Gurvinder Pal Singh
Is mvn package package compatible to tomcat...i mean will the war run on tomcat server? Thanks & Regards Gurvinder Pal Singh igor.vaynberg wrote: > > the link i pointed to generates wicket 1.3.0 quickstarts. and if you > dont want to use jetty then simply run mvn package and that will > gener

Scrollbar in popup window?

2008-01-30 Thread palun
How do I get vertical scrollbar in a popup window with (too) long content? Popup is created like so: add(new BookmarkablePageLink("instrLink", InstructionsPopupPage.class, params).setPopupSettings(popupSettings)); The purpose is to show a rather long information text in a separate window whene

Re: Scrollbar in popup window?

2008-01-30 Thread Nino Saturnino Martinez Vazquez Wael
create a scrollable div? palun wrote: How do I get vertical scrollbar in a popup window with (too) long content? Popup is created like so: add(new BookmarkablePageLink("instrLink", InstructionsPopupPage.class, params).setPopupSettings(popupSettings)); The purpose is to show a rather long inf

Re: DDC and page reload

2008-01-30 Thread Sébastien Piller
I found a patch (very ugly but works). On the onSelectionChange, I wrote this: if (MyAbstractPage.this instanceof MyPageWithTheRefreshIssue) { setResponsePage(new MyPageWithTheRefreshIssue()); } But I wonder: is this a normal behavior? I guessed I need not to refresh it manually, need I?

Re: Article: Introducing Apache Wicket

2008-01-30 Thread dozgurc
i came across a problem with this article's code. i will try to explain the use case. after you insert a few contacts, open another browser, you can see same screen on both browsers. after deleting a contact from a browser you are still seeing deleted contact. after that, click the deleted contact

Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

2008-01-30 Thread Ryan Sonnek
That's quite a shocker to me. if it works in the scriptaculous demo, i don't see why it wouldn't work in wicket. On Jan 29, 2008 9:29 PM, Lan Boon Ping <[EMAIL PROTECTED]> wrote: > > Say if you have trouble with it. I'll look into it then, two pair of > > eyes are better than one:) > > > > Hey th

Re: Getting the exception while starting a application in tomcat

2008-01-30 Thread Igor Vaynberg
erm...its a war... -igor On Jan 30, 2008 5:09 AM, Gurvinder Pal Singh <[EMAIL PROTECTED]> wrote: > > > Is mvn package package compatible to tomcat...i mean will the war run on > tomcat server? > > Thanks & Regards > Gurvinder Pal Singh > > > > igor.vaynberg wrote: > > > > the link i pointed to g

Re: DDC and page reload

2008-01-30 Thread Igor Vaynberg
swf.setValue("flashvars", "somevar=" + "somevalue"+ "¤cy=" + curr); ^ that should instead take an IModel so that it renders a fresh value on each new request instead of always rendering the value you passed in at page construction. in fact, it should take the same model instance as is use by the

Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

2008-01-30 Thread Nino Saturnino Martinez Vazquez Wael
could you send a quickstart to me, or point me to an url so I can debug? regards Nino Lan Boon Ping wrote: Say if you have trouble with it. I'll look into it then, two pair of eyes are better than one:) Hey thats what the mailing list are for:) I learn from this too:) Great! You are wel

Re: Scrollbar in popup window?

2008-01-30 Thread Leon Lee
Don't know if this is what you want... add(new BookmarkablePageLink("instrLink", InstructionsPopupPage.class, params).setPopupSettings(PopusSettings.SCROLLBARS)); palun wrote: > > How do I get vertical scrollbar in a popup window with (too) long content? > Popup is created like so: > > add

Re: Article: Introducing Apache Wicket

2008-01-30 Thread Johan Compagner
the loadable detachable model should have the pk of the contact itself thats behind the edit link On Jan 30, 2008 3:59 PM, dozgurc <[EMAIL PROTECTED]> wrote: > > i came across a problem with this article's code. i will try to explain > the > use case. after you insert a few contacts, open another

errors on the WicketStuff Dojo split container example

2008-01-30 Thread Wicketter
There are errors on this page which displays split container example. Also copying the source code, doesn't do the same thing as example running on the site. Here are the errors displayed: DEBUG: widget ID collision on ID: tab11 DEBUG: widget ID collision on ID: tab22 DEBUG: widget ID collision

Re: Article: Introducing Apache Wicket

2008-01-30 Thread Nick Heudecker
I think the link in the ListView uses the index of the object in the list, not the primary key. That's likely the problem. On Jan 30, 2008 9:37 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > the loadable detachable model should have the pk of the contact itself > thats > behind the edit link >

Fix typo on http://wicket.apache.org/community.html

2008-01-30 Thread Edvin Syse
Hi, I'm sorry for being a wordnazi, but could someone please change nabble to Nabble on the three entries where it is lowercase on: http://wicket.apache.org/community.html (In the mailing list section) It is correct for "Wicket Users" but lowercase for the rest of the lists. It's really bugg

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-30 Thread cemeterygate
arrrg, I've already changed the implementation by using auto refresh, which isn't that bad either, I can interupt the previous search request. but if i have saw ur post earlier, i wouldn't go long way to make those changes. Thanks anyway. Johan Compagner wrote: > > If 1 page instance can be a

Simple edit form and models

2008-01-30 Thread Constantin Y
Hi all, First of all I want to congratulate Wicket guys for their work. Until today I have developed applications based mainly on SWT/RCP and JSP/Servlets. Currently we are evaluating various frameworks in order to initiate a new project, which will expose many of our in-house developed system

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-30 Thread Igor Vaynberg
what you have now is better - doing a search in a different thread - because it doesnt bogged on servlet contains's threadpool. -igor On Jan 30, 2008 9:11 AM, cemeterygate <[EMAIL PROTECTED]> wrote: > > arrrg, I've already changed the implementation by using auto refresh, which > isn't that bad

Re: Simple edit form and models

2008-01-30 Thread Igor Vaynberg
just out of curiosity, why such a requirement instead of binding directly to a pojo? -igor On Jan 30, 2008 9:33 AM, Constantin Y <[EMAIL PROTECTED]> wrote: > > Hi all, > > First of all I want to congratulate Wicket guys for their work. > Until today I have developed applications based mainly on

Re: Fix typo on http://wicket.apache.org/community.html

2008-01-30 Thread Igor Vaynberg
done, waiting to be synced -igor On Jan 30, 2008 8:49 AM, Edvin Syse <[EMAIL PROTECTED]> wrote: > Hi, > > I'm sorry for being a wordnazi, but could someone please change nabble to > Nabble on the three entries where it is lowercase on: > > http://wicket.apache.org/community.html > > (In the mai

Re: Simple edit form and models

2008-01-30 Thread Edvin Syse
First of all I want to congratulate Wicket guys for their work. Until today I have developed applications based mainly on SWT/RCP and JSP/Servlets. Currently we are evaluating various frameworks in order to initiate a new project, which will expose many of our in-house developed system (SWT/RCP)

Re: Mounting strategies for shared components bundled in a jar ?

2008-01-30 Thread mfs
Thanks...does the job.. mfs wrote: > > Guys, > > How would i go about mounting the pages bundled in a jar that are being > re-used by different web apps. > > I don't want to mount them in every web-application that uses them, rather > would prefer keeping the mounting logic in the shared libr

Re: Monitoring Wicket using JAMon

2008-01-30 Thread Eelco Hillenius
> 1. ISessionStore.onBeginRequest and ISessionStore.onEndRequest > 2. RequestCycle.onBeginRequest and RequestCycle.onEndRequest. > > For now I choose to override the ISessionStore because that one is > called before and after the RequestCycle methods. I want to check with > you guys if this is the

Re: Monitoring Wicket using JAMon

2008-01-30 Thread Igor Vaynberg
because he wants to know what page instance was accessed? -igor On Jan 30, 2008 11:11 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > 1. ISessionStore.onBeginRequest and ISessionStore.onEndRequest > > 2. RequestCycle.onBeginRequest and RequestCycle.onEndRequest. > > > > For now I choose to ov

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-30 Thread Eelco Hillenius
On Jan 30, 2008 10:00 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > what you have now is better - doing a search in a different thread - > because it doesnt bogged on servlet contains's threadpool. The only thing to consider is that you might want to limit the number of threads you can spawn. Con

Re: Monitoring Wicket using JAMon

2008-01-30 Thread Eelco Hillenius
On Jan 30, 2008 11:14 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > because he wants to know what page instance was accessed? He wants to monitor performance of requests from what I read. Eelco - To unsubscribe, e-mail: [EMAIL

Re: Monitoring Wicket using JAMon

2008-01-30 Thread Igor Vaynberg
but per page... -igor On Jan 30, 2008 11:18 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 11:14 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > because he wants to know what page instance was accessed? > > He wants to monitor performance of requests from what I read. > > > Ee

Re: Scrollbar in popup window?

2008-01-30 Thread Andy Czerwonka
Is there a way to do it within a div right on a page? "palun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > How do I get vertical scrollbar in a popup window with (too) long content? > Popup is created like so: > > add(new BookmarkablePageLink("instrLink", InstructionsPopupPage.

Re: Monitoring Wicket using JAMon

2008-01-30 Thread Eelco Hillenius
On Jan 30, 2008 11:20 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > but per page... Why don't you just answer then. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-30 Thread cemeterygate
I agreed, able to interupt previous request and start a new is nice to have :) i am pulling per 1 second because some queries actually come back pretty quick. i hope this is not going to put stress on the server when there are excessive number of long requests. Thanks for answering my questions.

RE: AJAX: form components not being updated

2008-01-30 Thread Michael Mehrle
I called it on the form, which houses the model and it worked :-) Thanks a bunch Igor! Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 6:02 PM To: users@wicket.apache.org Subject: Re: AJAX: form components not being updated getMod

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-30 Thread cemeterygate
yea, i am using a thread pool. thanks Eelco Hillenius wrote: > > On Jan 30, 2008 10:00 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> what you have now is better - doing a search in a different thread - >> because it doesnt bogged on servlet contains's threadpool. > > The only thing to conside

Re: Scrollbar in popup window?

2008-01-30 Thread palun
That's exactly what I needed! Works fine now. (Should have spotted that one myself, sorry.) Thanks. /ulf Don't know if this is what you want... add(new BookmarkablePageLink("instrLink", InstructionsPopupPage.class, params).setPopupSettings(PopupSettings.SCROLLBARS)); -- View this message in

Exposing a web service from a Wicket app

2008-01-30 Thread Zach Cox
We're creating a web app using Wicket and would like to expose several simple features via a RESTful web service. So basically, several URLs would return XML or JSON formatted data instead of HTML. Is there an easy way to do this in Wicket to provide a very simple web service, or should we just l

Re: Exposing a web service from a Wicket app

2008-01-30 Thread Martijn Dashorst
It could, but that would be using a ferrari to do grocery shopping :-) I guess you could mount an XML document as a page (easy to achieve, wiki should have documents on this). I'm not 100% sure that json would be a good fit, as Wicket likes to manipulate (XML-like) markup, not text templates. Ma

Re: Exposing a web service from a Wicket app

2008-01-30 Thread Konstantin Ignatyev
http://xstream.codehaus.org/ takes care of it, why wicket should be used? Konstantin Ignatyev - Original Message From: Martijn Dashorst <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Wednesday, January 30, 2008 1:24:44 PM Subject: Re: Exposing a web service from a Wicket app

Re: Exposing a web service from a Wicket app

2008-01-30 Thread Ryan Sonnek
I know where you're coming from Zach. I went through something similar when creating RSS/Atom feeds with Wicket. You may want to look into the wicketstuff-rome project to see details on how I integrated these features into Wicket. It ended up being pretty clean using the Wicket Resource API's, a

Feedback Panel and Ajax Busy Indicator

2008-01-30 Thread Martin Makundi
Hi! I got the Ajax busy indicator working with the code below, but I have run into a new problem: the feedbackpanel does not display the feedbacks anymore. Does anyone know what I managed to do wrong eventually? And more importantly, how to fix the feedback panel? ** Martin 2008/1/30, Martin Mak

Re: Ajax Busy Indicator

2008-01-30 Thread Martin Makundi
Hi! Tnx Igor, I finally got it working after quite some wrestling.. I understood I must extend the AjaxButton? I shall play around with it some more in order to more fully understand it. However, in case someone else needs it too, my complete code and markup is available below for ajax busy indic

Re: Hello World Program is not working

2008-01-30 Thread Wilko Hische
Hi Gurvinder, "Caused by: java.lang.ClassNotFoundException: org.apache.wicket.examples.helloworld.HelloWorldApplication" I would suggest to play with http://wicket.apache.org/quickstart.html first Success, Wilko Gurvinder Pal Singh wrote: > > Hi, i created a project as mentioned in > htt

Re: Page Expired when going back to an ajax page

2008-01-30 Thread Andrew Williams
Bad form to reply to myself, but if anyone else had problems with this there is an undocumented protected method "onlyTargetActivePage()" which should be called from an overridden constructor. Best wishes, Andrew On 27 Jan 2008, at 15:01, Andrew Williams wrote: I have a peculiar problem th

Workaround for "AjaxEditableLabel yields java.lang.IllegalAccessError (WICKET-1239)"?

2008-01-30 Thread Edvin Syse
Hi, I really need the AjaxEditableLabel in my application, but because of https://issues.apache.org/jira/browse/WICKET-1239, it seems useless at the time. (Just tested with Linux/Java 1.6_04/Wicket 1.3.1). Does anyone know of a workaround in the meantime? java.lang.IllegalAccessError: tried t

How can I use onComponentTag for a PasswordTextField?

2008-01-30 Thread i ii
how can i use onComponentTag for a PasswordTextField? method is final? i need to add dynamic javascript to onfocus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How can I use onComponentTag for a PasswordTextField?

2008-01-30 Thread Gerolf Seitz
you could use an AttributeModifier/AttributeAppender gerolf On Jan 30, 2008 11:42 PM, i ii <[EMAIL PROTECTED]> wrote: > > how can i use onComponentTag for a PasswordTextField? method is final? > > i need to add dynamic javascript to onfocus > ---

Re: Ajax Busy Indicator

2008-01-30 Thread Igor Vaynberg
no, you dont need to extend an ajaxbutton, IAjaxIndicatorAware works on any component that has any kind of ajax behavior added to it -igor On Jan 30, 2008 1:34 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi! > > Tnx Igor, I finally got it working after quite some wrestling.. I > understood I

RE: How can I use onComponentTag for a PasswordTextField?

2008-01-30 Thread i ii
thank you for your fast reply. from what you said i found link.add(new AttributeAppender("onmouseover", new Model("foo();return false;"), ";")); what benefit is to use AttributeAppender versus onComponentTag? why two ways? > Date: Wed, 30 Jan 2008 23:4

Re: How can I use onComponentTag for a PasswordTextField?

2008-01-30 Thread Gerolf Seitz
On Jan 30, 2008 11:50 PM, i ii <[EMAIL PROTECTED]> wrote: > > thank you for your fast reply. from what you said i found > > link.add(new AttributeAppender("onmouseover", new Model("foo();return > false;"), ";")); > > what benefit is to use AttributeAppender versus onComponentTag? why two > ways? >

RE: How can I use onComponentTag for a PasswordTextField?

2008-01-30 Thread i ii
i get it now. i need to use onComponentTag most times because it is not as heavy, but if i cannot then i need AttributeAppender! thank you! > Date: Wed, 30 Jan 2008 23:55:49 +0100 > From: [EMAIL PROTECTED] > To: users@wicket.apache.org > Subject: Re: How

Re: How can I use onComponentTag for a PasswordTextField?

2008-01-30 Thread Igor Vaynberg
behaviors are meant to implement crosscutting component concerns. that is why they are their own entity. -igor On Jan 30, 2008 2:55 PM, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 11:50 PM, i ii <[EMAIL PROTECTED]> wrote: > > > > > thank you for your fast reply. from what you said

is there way to use CryptedUrlWebRequestCodingStrategy for single page mount?

2008-01-30 Thread i ii
is there way to use CryptedUrlWebRequestCodingStrategy for single page mount? something like mount(new HybridUrlCodingStrategy("/somepath", SomeWebPage.class)); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Custom components which accept multiple models

2008-01-30 Thread Sam Barnum
I'm writing an settings admin page for editing a bunch of Boolean settings. I'm using a custom component to edit the boolean values. This custom component needs access to two settings objects (masterSettings, customSettings) to determine if a custom setting is overridden by a master setti

Re: Custom components which accept multiple models

2008-01-30 Thread Igor Vaynberg
you can make a model that wraps both and returns result { boolean master, object value } then you bind your textfield with ("setting.value") and your checkbox/flag with "setting.master" -igor On Jan 30, 2008 4:49 PM, Sam Barnum <[EMAIL PROTECTED]> wrote: > I'm writing an settings admin page for

Sorting using a DataTable

2008-01-30 Thread Karen Schaper
Hello, I am using a SortableDataProvider with a DefaultDataTable. >From my understanding, it seems that for every column that I wish to sort on, I need to add code to the iterator method of the data provider. None of the columns were sorting and when I added some code in the iterator method (s

Why are new sessions created until wicket form

2008-01-30 Thread Damian Penney
Why are new sessions created until wicket finds a form? I have a Session subclass that has a field clicks. On page A I grab the session and show the number of clicks. Everytime I refresh the click count is 0, and the newSession method is called in WebApplication. add(new Label("clickCount",

Re: can auto fire the ajaxLink onClick function without click on the link?

2008-01-30 Thread kenixwong
thanks for reply , Matthijs i get it. but apply in the modal window instead of ajaxLink here cancelReportModal.add(new AbstractAjaxTimerBehavior(Duration.seconds(1)) { // pop out every second @Override protected void onTimer(AjaxRequestTarget target) {

Re: Feedback Panel and Ajax Busy Indicator

2008-01-30 Thread Timo Rantalaiho
On Wed, 30 Jan 2008, Martin Makundi wrote: > I got the Ajax busy indicator working with the code below, but I have > run into a new problem: the feedbackpanel does not display the > feedbacks anymore. Does anyone know what I managed to do wrong > eventually? And more importantly, how to fix the fee

Re: Workaround for "AjaxEditableLabel yields java.lang.IllegalAccessError (WICKET-1239)"?

2008-01-30 Thread Advanced Technology®
Check Per solution : http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14687720.html AT 2008/1/31, Edvin Syse <[EMAIL PROTECTED]>: > > Hi, > > I really need the AjaxEditableLabel in my application, but because of > https://issues.apache.org/jira/browse/WICKET-1239, it seems useless at >

Re: Ajax Busy Indicator

2008-01-30 Thread Martin Makundi
> no, you dont need to extend an ajaxbutton, IAjaxIndicatorAware works > on any component that has any kind of ajax behavior added to it This means? I tried using AjaxButton and adding an AjaxFormSubmitBehavior implements IAjaxIndicatorAware but that never received the submit event. I also tried a

Re: Feedback Panel and Ajax Busy Indicator

2008-01-30 Thread Martin Makundi
> and please rename arg0 to "target" :) It's a good idea to attach > Wicket sources to your IDE (e.g. mvn -DdownloadSources=true eclipse:eclipse) > because then this tends to happen automatically. I have been thinking of attaching the sources... I found some example of adding all sources of all pa

Re: Sorting using a DataTable

2008-01-30 Thread Igor Vaynberg
usually sorting is done in the database. if you get that list outside the database, then yes, you have to sort it using your own comparators. -igor On Jan 30, 2008 5:54 PM, Karen Schaper <[EMAIL PROTECTED]> wrote: > Hello, > > I am using a SortableDataProvider with a DefaultDataTable. > > From m

is there wicket had per-defined the Thread for the form component

2008-01-30 Thread kenixwong
hi, for the above case, for example... my page constructor: i add the component ( modal window, feedBackPanel, form ) . Once i load the page, why the modal window will only display when the page is finish loaded. Is that the wicket had default set the main thread for the form component? Thanks

Re: Why are new sessions created until wicket form

2008-01-30 Thread Igor Vaynberg
your page is stateless because it just has a label on it. stateless pages do not create a session. if a stateless page is hit and no session is yet created wicket will create a fake session so that getsession() still returns something meaningful - but this session object will not be stored into the

Re: is there wicket had per-defined the Thread for the form component

2008-01-30 Thread Igor Vaynberg
it doesnt have anything to do with server side threading, but with how browser processes html and javascript. -igor On Jan 30, 2008 9:16 PM, kenixwong <[EMAIL PROTECTED]> wrote: > > hi, > > for the above case, for example... my page constructor: i add the component > ( modal window, feedBackPane

Re: Ajax Busy Indicator

2008-01-30 Thread Igor Vaynberg
if ajaxbutton works for you thats great. i was simply trying to explain that iajaxindicatoraware is decoupled from ajaxbutton - it will work on any component to which you add an ajax behavior. -igor On Jan 30, 2008 9:04 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: > > no, you dont need to extend

Re: is there wicket had per-defined the Thread for the form component

2008-01-30 Thread Igor Vaynberg
the order in which you add components in java seldom matters, the true ordering is defined by markup. -igor On Jan 30, 2008 9:34 PM, kenixwong <[EMAIL PROTECTED]> wrote: > > thanks for reply in a short time, igor > > But here , i found the problem,... > > In my page constructor, i defined the c

Re: Why are new sessions created until wicket form

2008-01-30 Thread Damian Penney
Thanks so much Igor, the quick reply is much appreciated. Damian Igor Vaynberg wrote: your page is stateless because it just has a label on it. stateless pages do not create a session. if a stateless page is hit and no session is yet created wicket will create a fake session so that getsession

Re: is there wicket had per-defined the Thread for the form component

2008-01-30 Thread kenixwong
thanks for reply in a short time, igor But here , i found the problem,... In my page constructor, i defined the component modalWindow, feedbackPanel, a form in sequence. So, in common sense, it will call the modalWindow ( i wish to auto pop up once the page is load ) first follow by the other.

Re: Workaround for "AjaxEditableLabel yields java.lang.IllegalAccessError (WICKET-1239)"?

2008-01-30 Thread Edvin Syse
Advanced Technology® skrev: Check Per solution : http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14687720.html Thanks! Worked like a charm. For some reason this didn't make it into 1.3.1, though.. -- Edvin - To