Re: How to use Apache Commons FileUpload in Wicket ?

2009-09-03 Thread FaRHaN
How can i view PickWick Examples (with Code), from Pickwick-Wicket Stuff WIKI site? From: Fernando Wermus fernando.wer...@gmail.com To: users@wicket.apache.org Sent: Wednesday, September 2, 2009 6:44:14 PM Subject: Re: How to use Apache Commons FileUpload in

AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Eyal Golan
Hello, We have in our application the following code: /** * @see org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request, * org.apache.wicket.Response) */ @Override public RequestCycle newRequestCycle(final Request request, final Response

Re: Wicket and FileUpload on Google App Engine

2009-09-03 Thread Daniele Dellafiore
Great, seems interesting, I will give this a try. Thanks. On Sun, Aug 30, 2009 at 6:31 PM, uud ashr uuda...@gmail.com wrote: Hi all Just want to share. If you have problem with file upload on Google App Engine, I just done some experiment and it works. Use the attached files. I didn't

Re: UTF-8

2009-09-03 Thread Olivier Bourgeois
Allright, I fed the daemon ;) I created a new issue in https://issues.apache.org/jira/browse/WICKET-2451 and I found that WICKET-1443 is similar but already closed since 1 year. 2009/9/2 Eelco Hillenius eelco.hillen...@gmail.com: The result is in the attachment file (sorry but I don't have a

Getting the Ajax decorator of a link

2009-09-03 Thread Arie Fishler
Hi, We have been implementing the getAjaxCallDecorator for links that extends AjaxLink in order to manipulate the way the wicket-ajax is called on these links. I have a need to do something similar with a behavior and not sure how to implement. I have a behavior that is applied (added) to

Re: AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Pedro Santos
I thought to create a RuntimeException that will be thrown instead of the AbortWithWebErrorCodeException(...) and to analyze it in the onRuntimeException. don't you gona fall in to the same problem this way? Set error page in web.xml ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE web-app

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Pedro Santos
To one of the decorations script must to be appended the script responsible to call the behavior. You can get it invoking the AbstractDefaultAjaxBehavior.getCallbackScript() protected method. On Thu, Sep 3, 2009 at 7:59 AM, Arie Fishler arie@gmail.com wrote: Hi, We have been implementing

Re: How to use Apache Commons FileUpload in Wicket ?

2009-09-03 Thread FaRHaN
Sorry, i want to say how can i use this example to fulfill my uploading requirements ? As there is only one class (ReceiverServlet.java) for uploading in PickWick. I already knows its functionality but my question is that, Apache Commons FileUpload requires HttpServletRequest for parsing

Re: clean way to avoid DynamicWebResource to look for non existing file

2009-09-03 Thread Pedro Santos
Hi Daniele, just an idea: @Override protected byte[] getImageData() { String basePath = upload/images/; Object name = logoModel.getObject(); File file = new File(., basePath + name); LoggerFactory.getLogger(getClass()).info(serving file: + file);

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Arie Fishler
The behvavior is not AbstractDefaultAjaxBehavior just one extending AbstractBehavior. Can I get it somehow from the onComponentTag of the behavior? I actually need the value that is placed in the onClick event (which has the action for the link or button that has the behavior placed on) My

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Pedro Santos
value that is placed in the onClick event (which has the action for the link or button that has the behavior placed on) You has an parameter determining the action to be take, why don't you use polimorfism? My behavior just adds a function call before any other action and I want this function

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Arie Fishler
Wel...this is the solution I wanted to avoid since this behavior can be attached to buttons, links, ajax links...don't want to create onr for each. I can use the tag from the oncomponenttag and find out where it is supposed to go originallythis seems to be the option that will work On Thu,

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Pedro Santos
I agree with you, the best solution for an attachable behavior is composition. I just don't see it resolve that especial complexity: I want this function call to resume the wicket action. For example: the oncomponenttag is called on the page rendering, idependent of the user interactions with the

Re: AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Eyal Golan
Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Sep 3, 2009 at 2:04 PM, Pedro Santos pedros...@gmail.com wrote: don't you gona fall in to

StackOverflowError on cluster failover.

2009-09-03 Thread HarriSoft Ltd
Hi, Firstly, I'm using Tomcat 5.5 and Wicket 1.3.5 I've recently been tasked with running our current application in a clustered environment. Having got the cluster configured (sticky sessions and session replication) I figured the app should run without a problem and it does, mostly. I've

Re: How to use Apache Commons FileUpload in Wicket ?

2009-09-03 Thread Fernando Wermus
public class UploadRequestTarget implements IRequestTarget { public void detach(RequestCycle requestCycle) {} @SuppressWarnings({ static-access, unchecked }) public void respond(RequestCycle requestCycle) { HttpServletRequest

Re: using a panel inside dropdown

2009-09-03 Thread fachhoch
Is this possible or not , please tell me if there is any option to put a panel inside a dropdownchoice ? fachhoch wrote: Can I add a panel to a dropdown choice , I have to display lot of information inside drop down , I am wondering If I can do this ? -- View this message in context:

Re: using a panel inside dropdown

2009-09-03 Thread Michael Mosmann
Am Donnerstag, den 03.09.2009, 06:56 -0700 schrieb fachhoch: Is this possible or not , please tell me if there is any option to put a panel inside a dropdownchoice ? AFAIK you can not place any tag inside an select-Tag.. so you need some javascript-menu-stuff... .. don't know, if you can find

Re: using a panel inside dropdown

2009-09-03 Thread Michael O'Cleirigh
Hello, Look at SelectOptions and SelectOption in wicket-extensions they give more control over the structure of the HTML select/select that is ultimately rendered. SelectOption does extend WebMarkupContainer so it should be possible to add your panel to the option and have it included

Re: Article in german Javamagazin

2009-09-03 Thread Jonathan Locke
btw, is this a print magazine? Rüdiger_Schulz wrote: Hello everybody, the next issue of german Javamagazin (http://www.javamagazin.de/) has their title story about Wicket. It consists of two articles. One technical one, showing basic setup and principles of Wicket, and another about

Setting Datasource at Runtime

2009-09-03 Thread jpalmer1026
I'm using Wicket to develop an app and have stumbled upon a roadblock. I'd like the user to be able to select their desired datasource at runtime, as opposed to hardcoding the datasource in the persistence.xml file (we're using Spring and JPA). I feel like this should be reasonably simple to

Re: Setting Datasource at Runtime

2009-09-03 Thread Igor Vaynberg
not exactly a wicket question... -igor On Thu, Sep 3, 2009 at 9:30 AM, jpalmer1...@mchsi.com wrote: I'm using Wicket to develop an app and have stumbled upon a roadblock. I'd like the user to be able to select their desired datasource at runtime, as opposed to hardcoding the datasource in the

Re: Wicket cuts off posted data

2009-09-03 Thread Jeremy Thomerson
Can you use HttpFox (or similar) to confirm that it's a POST? I suspect it's a GET. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Sep 3, 2009 at 10:10 AM, Gatos ega...@gmail.com wrote: Hello, I have a very long text that was truncated after submitting the form. How is it

Re: Article in german Javamagazin

2009-09-03 Thread Jonathan Locke
if anyone from javamagazin is reading this list, would love to add a copy of this to my growing collection of wicket publications. RaBe wrote: yes, it is. http://it-republik.de/jaxenter/java-magazin-ausgaben/Wicket-000321.html could not find a online version of this article .. On

AjaxFallbackDefaultDataTable, navigation toolbar disappears

2009-09-03 Thread tubin gen
I am using AjaxFallbackDefaultDataTable ,My page has a search form and AjaxFallbackDefaultDataTable , so whenever search from is submitted I am adding the panel which contains AjaxFallbackDefaultDataTable to AjaxTarget , Initially when page loads I get the navigation toolbar everything is

Re: AjaxFallbackDefaultDataTable, navigation toolbar disappears

2009-09-03 Thread Igor Vaynberg
use wicket 1.4.1, fixed there. -igor On Thu, Sep 3, 2009 at 12:04 PM, tubin genfachh...@gmail.com wrote: I am using   AjaxFallbackDefaultDataTable ,My page has a search form and AjaxFallbackDefaultDataTable , so whenever search from is submitted I am adding the panel which contains  

Re: AjaxFallbackDefaultDataTable, navigation toolbar disappears

2009-09-03 Thread fachhoch
yes it fixed it , I found 1.4.1 for most of wicket I am using but did not find for org.wicketstuff.jquery ,please tell me where to find this igor.vaynberg wrote: use wicket 1.4.1, fixed there. -igor On Thu, Sep 3, 2009 at 12:04 PM, tubin genfachh...@gmail.com wrote: I am using  

ajax - navigate to new location

2009-09-03 Thread Douglas Ferguson
target.prependJavascript(window.location.href=google.com); Is there a better way of doing this?

Re: Wicket cuts off posted data

2009-09-03 Thread Adrian Merrall
Gatos, How is it possible to enlarge allowed posted data? No idea of your platform so it's difficult to be say exactly. However, assuming you are on tomcat then maxPostSize is what you want ( http://tomcat.apache.org/tomcat-5.5-doc/config/http.html). As mentioned by the other respondents,

german wicket book example code

2009-09-03 Thread Michael Mosmann
Hi, .. you can download (http://www.wicket-praxis.de/blog/download/) all code examples from my german wicket book (praxisbuch wicket). All you need is java and maven, so feel free to test it. Michael Mosmann - To unsubscribe,

WebMarkupContainer Ajax update problem

2009-09-03 Thread Altuğ B . Altıntaş
Hi ; In Panel I have a AjaxButton In that AjaxButton, I tried to update the background (Parent Pages's WebMarkupContainer). Here is the simplified code : AjaxButton vote = new AjaxButton(Vote) { @Override protected void onSubmit(AjaxRequestTarget

RE: WebMarkupContainer Ajax update problem

2009-09-03 Thread Russell Simpkins
Have you tried: content..add(new SimpleAttributeModifier(style, background-image=url(...))); I haven't done this, but you might also be able to do: content.add(new SimpleAttributeModifier(class, new-class-name)); Date: Fri, 4 Sep 2009 01:57:36 +0300 Subject: WebMarkupContainer Ajax update

RE: border error

2009-09-03 Thread Chris Colman
I'm having trouble with borders as well. This markup is within a page and I use a component resolver and in the debug I see requests for the 'primaryWrapper' (PrimaryWrapper is a class derived from Border. I then see the resolve request to resolve 'aboutUsPanel'. The panel is created and added to

RE: border error

2009-09-03 Thread Chris Colman
I wonder if this border crash could be fixed by: https://issues.apache.org/jira/browse/WICKET-1789 This issue was resovled around 2009/8/31 but the latest 1.4.1 build is dated 2009/8/16. Are there any nightly builds available for download anywhere or do we have to get a svn dump and build it

How to render part of component's markup and the very end of HTML document?

2009-09-03 Thread Petr Fejfar
Hi all, I'm trying to wrap some jQuery plugins as a wicket component but I met a problems with positions calculated by jQuery's script in some page layouts controlled by a mix of absolute and relative DIV's positions. Plugin's author recommends to render part of markup at the very end of markup