Re: [Wicket-user] how to abort the xmlhttprequest

2007-01-28 Thread Prashant Khanal
Rather than firing new threads for each ajax operation, wouldn't it be nice that wicket itself handles each ajax operation in separate threads. Or there must be some mechanism to allow user to abort the request. Anyway i will stick to your idea for now. --- Johan Compagner [EMAIL PROTECTED]

[Wicket-user] problem in displaying the html formatted text with rendering

2007-01-28 Thread Prashant Khanal
hello all, I want to load html formatted text to the table cell with rendering of html markup. Suppose the html formatted text is stored in the database in this format: ul lione/li litwo/li /ul First linebr / second line My problem is i didnt find any way to load this text such that it is loaded

Re: [Wicket-user] Application layout question: File uploads

2007-01-28 Thread behlma
Thank you guys, much appreciated. Eelco Hillenius wrote: Yep. And maybe you could consider using a JCR (Java Content Repository) like http://jackrabbit.apache.org/ so that you abstract from where you put it. Eelco On 1/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i wouldnt put

Re: [Wicket-user] getObjectAsString always empty in 1.2.3

2007-01-28 Thread kurt heston
Three weeks ago I entered a Jira issue (198) for this problem. Did I enter it in the right place? I'm convinced I'm using the RequestCycle in an ill-prescribed way and it's causing the problem. However, I can't find any postings or other doco that say I should be doing it another way.

Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-28 Thread nilo.de.roock
( I certainly did not imply that everything needs tons of classes, but as you well know Java is a rather verbose language. I don't imply anything in e-mail. If I want to say something I write it explicitly. ) Back to Wicket / Groovy. I still have to find my way around here, I suppose, can you

[Wicket-user] cd app site is down

2007-01-28 Thread nilo.de.roock
don't know who maintains the site but it is down... http://www.wicket-library.com/wicket-contrib-examples/ javax.servlet.ServletException: Servlet.init() for servlet cdapp threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

[Wicket-user] in-progress indicator

2007-01-28 Thread Ivo van Dongen
Hi, We're adding some Ajax support to our pages and some of the components can take a long time to load. To the user it is not clear if anything is happening so we want to add a sign that a request is in progress, something like an animated gif. This should pop-up on each XMLhttpRequest and

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Carfield Yim
I personally think gmail presentation is simple and user friendly On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi, We're adding some Ajax support to our pages and some of the components can take a long time to load. To the user it is not clear if anything is happening so we want to

Re: [Wicket-user] external request response - best approach

2007-01-28 Thread Carfield Yim
Are you refer to something like verisign payflow pro API? For me I will just have a form and open an HTTP connection at onSubmit() method just like the example they've given. On 1/28/07, De Soca [EMAIL PROTECTED] wrote: Hello, I have a requirement to validate credit card via an external

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Ivo van Dongen
I agree, but what I meant to ask is how to go about this? I thought of using an AjaxCallDecorator, but that would mean that it must be added to each component that makes an ajax call. I was wondering if somebody had an easier idea. On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote: I personally

Re: [Wicket-user] external request response - best approach

2007-01-28 Thread De Soca
I realized that was probably the easiest option. Thanks. Carfield Yim-2 wrote: Are you refer to something like verisign payflow pro API? For me I will just have a form and open an HTTP connection at onSubmit() method just like the example they've given. On 1/28/07, De Soca [EMAIL

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Carfield Yim
Sorry I misunderstand your question, I don't know about that. May be you can see how wicket implement the AJAX DEBUG link? On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote: I agree, but what I meant to ask is how to go about this? I thought of using an AjaxCallDecorator, but that would mean

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Martijn Dashorst
We have an AjaxIndicatingLink (or something similarly named) component that displays an indicator next to the link. I believe it is in the extensions project. You can take that and use it directly or use it to add the desired functionality to your own components. Martijn On 1/28/07, Ivo van

[Wicket-user] Preserve value of TextField on Ajax action

2007-01-28 Thread Dominik Roblek
Hi all, I have a form with a TextField component and a DropDownChoice component. The DropDownChoice component has an AjaxFormComponentUpdatingBehavior(onchange) behavior added. What I would like to do is to change the color of the text in the TextField component whenever a DropDownChoice

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Ivo van Dongen
Thanks, works like a charm! I didn't find a tabbed panel variant that uses the indicating links by the way. I've added it below, perhaps someone finds it usefull. package org.webical.web.components.ajax.tabs; import java.util.List; import wicket.ajax.AjaxRequestTarget; import

Re: [Wicket-user] cd app site is down

2007-01-28 Thread Johan Compagner
can we easily also build the examples automatic and host them on wicket stuff server? johan On 1/28/07, nilo.de.roock [EMAIL PROTECTED] wrote: don't know who maintains the site but it is down... http://www.wicket-library.com/wicket-contrib-examples/ javax.servlet.ServletException:

Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-28 Thread nilo.de.roock
You were going to say Why does everything need tons of examples?, right? There are indeed some examples, they are at... path_to/wicket/contrib/examples/groovy/ Thanks! Juergen Donnerstag wrote: More wasnt need to integrate Groovy. Why does everything need tons of classes? I know for sure

Re: [Wicket-user] Preserve value of TextField on Ajax action

2007-01-28 Thread Martijn Dashorst
You don't send the data of the text field back to the server. So either you add a formcomponent updating behavior to the textfield, so that the user input is available at the server, or you don't update the textfield, but manipulate its style directly, see target.appendJavaScript() for that.

Re: [Wicket-user] problem in displaying the html formatted text with rendering

2007-01-28 Thread Martijn Dashorst
add(new Label(thing, stuffFromDatabase).setEscapeModelStrings(false)); This does pose a possible security risk with cross site scripting/spam if you allow javascript and such in your database. Martijn On 1/28/07, Prashant Khanal [EMAIL PROTECTED] wrote: hello all, I want to load html

Re: [Wicket-user] how to abort the xmlhttprequest

2007-01-28 Thread Johan Compagner
That would be pretty hard to do.. If we would spawn all ajax request to a thread. What are we then returning in the normal request thread? And what are we doing with the result of that second thread? Poll it ourself? Maybe we could make a special behavior/request that you can use that sets a

Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-28 Thread Eelco Hillenius
There are indeed some examples, they are at... path_to/wicket/contrib/examples/groovy/ Oh yeah. I thought it had a separate examples project, but the examples are actually in the same project

Re: [Wicket-user] wicket-bench and the html editor

2007-01-28 Thread Loren Rosen
I use the WTP html editor. Joni Freeman wrote: On Thu, 2007-01-25 at 18:17 -0800, Loren Rosen wrote: Yes, I can create a patch. It's a one-line change (well, two lines if you count changing the class imports). (The code in question assumes the editor is a CompilationUnitEditor when in

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Frank Bille
You are welcome to add it to the wiki :) Frank On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Thanks, works like a charm! I didn't find a tabbed panel variant that uses the indicating links by the way. I've added it below, perhaps someone finds it usefull. package

Re: [Wicket-user] cd app site is down

2007-01-28 Thread Juergen Donnerstag
It is not down for me. Juergen On 1/28/07, Johan Compagner [EMAIL PROTECTED] wrote: can we easily also build the examples automatic and host them on wicket stuff server? johan On 1/28/07, nilo.de.roock [EMAIL PROTECTED] wrote: don't know who maintains the site but it is down...

Re: [Wicket-user] [jira] Commented: (WICKET-198) getObjectAsString always empty in 1.2.3

2007-01-28 Thread kurt heston
That worked, Johan. Thanks for the tip. I missed that in the doco. Won't ever forget it now... Johan Compagner (JIRA) wrote: [ https://issues.apache.org/jira/browse/WICKET-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468123 ] Johan Compagner

[Wicket-user] How to let subclassed page contribute to body tag attributes?

2007-01-28 Thread dukejansen
Is there any way to allow inherited page markup to update or contribute to the body tag's attributes (other than onLoad and onUnload, which seems to be covered). Specifically, I'd like to have a single base page which is then subclassed to provide different page behaviors, and I want to be able

Re: [Wicket-user] How to set a markup ID of a HTML element to javascript

2007-01-28 Thread Carfield Yim
Thanks, just try it today, I have code like: dateField.setOutputMarkupId(true); final String javascript=Calendar.setup({ inputField : \+dateField.getMarkupId()+\, ifFormat : \%d-%b-%Y %H:%M\, button : \trigger\ });; However, the ID generated at input field is

Re: [Wicket-user] How to set a markup ID of a HTML element to javascript

2007-01-28 Thread Igor Vaynberg
in 1.x you cannot call getmarkupid() from the constructor, so you have to use an attribute modifier with imodel to retrieve the id during render time once all the components have been linked to their parents -igor On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote: Thanks, just try it today, I

Re: [Wicket-user] How to let subclassed page contribute to body tag attributes?

2007-01-28 Thread Eelco Hillenius
Haven't tried it myself, but looking at the code, calling (your web page).getBodyContainer().getBodyContainer() should get you the 'real' body container, to which you should be able to add AttributeModifiers. Eelco On 1/28/07, dukejansen [EMAIL PROTECTED] wrote: Is there any way to allow

Re: [Wicket-user] How to set a markup ID of a HTML element to javascript

2007-01-28 Thread Carfield Yim
Thanks, this work nice On 1/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: in 1.x you cannot call getmarkupid() from the constructor, so you have to use an attribute modifier with imodel to retrieve the id during render time once all the components have been linked to their parents -igor