I want to upload files through Commons FIleUpload API. As Commons FileUpload
API requires HttpServletRequest for uploading files (e.g. fileItemsList =
servletFileUpload.parseRequest(httpServletRequest)).
Parsing HttpServletRequest is the necessary step while uploading in Commons
FileUpload.
Maybe if you mention the specific reason(s) that you want to use Apache
Commons FileUpload API rather than Wicket's built-in forms and file upload
mechanisms, someone on the list will be able to provide you with more help.
It seems that the FileUpload API is intended to help you if you have to
I want to make it a separate API for file uploading. So that i can embed it in
any of the application regardless of the framework (wicket, JSF, struts etc.).
The only reason is that, we can use Apache Commons FileUpload API in any of the
framework.
Is there any workaround to do this ?
On Tue, Sep 8, 2009 at 12:33 PM, FaRHaN farhan.ba...@ymail.com wrote:
I want to make it a separate API for file uploading. So that i can embed it
in any of the application regardless of the framework (wicket, JSF, struts
etc.). The only reason is that, we can use Apache Commons FileUpload API
O my dear, i want to make a separate utility method that will take Request and
other necessary information as a parameter. just like that:
/** Utitlity Method for FileUploading /
public static void doUpload(HttpServletRequest request, FileItem fileItem){
if
Jeremy Thomerson wrote:
servlets are totally separate from Wicket - write a servlet and add it to
your web.xml. See any servlet example on the web (non-Wicket related) for
assistance.
I wouldn't say so, cf Igor sentence in this discussion :
I have dashboard, that have modal windows for adding comments and view
dashboard message.
How can I get this modal window for testing with wicket tester?
And how to check that modal window is opened?
Denis.
-
To unsubscribe,
Hi!
There is nothing special in testing modal windows. It is just a panel
with a panel inside. You can use tester.assertVisible...
THe only trick is if you have windowCloseCallbacks.. you need to
invoke those manually using tester.executeBehavior...
**
Martin
2009/9/8 Denis Kandrov
I'm really not sure and can't help on the parsing request problem,
although I'm not surprised that attempting to unpack a multipart request
twice would result in problems.
One thing you could try is understand the form processing life cycle of
Wicket - so instead of using onSubmit() (because the
Hello all,
We are currently trying to move from wicket 1.2.6 to 1.4.1 and so far
it's going well, except for one point.
In the constructor of one of our pages we use the
getBodyContainer().getBodyContainer() to add an AjaxEventBehavior for
the onload event, so we can redirect to the
I think right now the only way is to use MixedParamUrlCodingStrategy
Mount a page this way:
mount(new MixedParamUrlCodingStrategy(collection, CollectionPage.class, new
String[] { owner }));
so CollectionPage is mounted at: http://localhost:9090/collection/
now in CollectionPage.java you can
Hi. I need to sent something like an HTML newsletter and I am
wondering about a nice way to do this with wicket.
The problem is that I need to generated the rendered page without
sending it to the browser, but keep the page server side, get the
generated HTML as String and include it in a
search nabble for email wicket page - or something similar. you
should be able to find a thread that answers your question. There
have been quite a few about dumping a Wicket page to a stream or
string to email.
http://www.nabble.com/Generating-email-body-with-wicket-td14042459.html#a14042459
You could use setResponsePage(Foo.class, PageParameters)
Martijn
On Tue, Sep 8, 2009 at 12:18 PM, A. Zwaana.zw...@finan.nl wrote:
Hello all,
We are currently trying to move from wicket 1.2.6 to 1.4.1 and so far
it's going well, except for one point.
In the constructor of one of our
Or throw new RestartResponseException when you determine that you want
to render a different page instead of using ajax.
Martijn
On Tue, Sep 8, 2009 at 12:18 PM, A. Zwaana.zw...@finan.nl wrote:
Hello all,
We are currently trying to move from wicket 1.2.6 to 1.4.1 and so far
it's going
Apparently we need to be able to show a ModalWindow in some cases, which in
turn needs an AjaxRequestTarget, so I somehow need that Ajax event triggered
somewhere when the page is being rendered.
Wouldn't adding a wicket:id to the body element and then adding the
AjaxEventBehavior to it give
eg you can use IComponentResolver and create a factory panel that can
create a child based on the attributes of a tag, etc.
-igor
Well it worked well to a point. That point was when I tried to place two
panels of the same type but with different attributes on the same page.
The second panel
Hello Martin, thanks for the reply. Sorry about the last post. I have become
leary of posting code as the inhouse lawyers have admonished me for this
practice. I realized albeit Panels or WebPage Wicket won't render a different
class from another class without some type of event such as a link.
Thanks Igor! You pointed me in the right direction, as usual.
--
View this message in context:
http://www.nabble.com/Using-java.util.Date-class-with-CompoundPropertyModel-tp25338777p25346526.html
Sent from the Wicket - User mailing list archive at Nabble.com.
I think the comments on this article by Igor may give you some ideas (see
#14)
http://wicketinaction.com/2008/09/building-a-smart-entitymodel/
So having a single page, and swapping out multiple panels for each question
may be the solution. You can write logic for the previous and next
buttons
I think the wizard is the correct approach... You can try use
DynamicWizardModel on your wizard.
javadoc:
* Wizard model that is specialized on dynamic wizards. Unlike the default,
static
* {...@link WizardModel wizard model}, this model isn't very intelligent, but
rather delegates much
* of
Thanks Pedro and Peter,
I'll try the DynamicWizardModel, it seems as the right choice.
But a quick google search didn't provide any example, so i must try making
it work.
Hopefully it will...
Best Regards
Muro
On Tue, Sep 8, 2009 at 4:35 PM, Pedro Santos pedros...@gmail.com wrote:
I think
each panel has to have a different wicket:id and the id should not
exist in component hierarchy yet. component resolvers are only used if
wicket cannot match wicket id to an object in the component hierarchy.
-igor
On Tue, Sep 8, 2009 at 5:51 AM, Chris
Colmanchr...@stepaheadsoftware.com wrote:
See IHeaderResponse.renderOnDomReadyJavascript()
Martijn
On Tue, Sep 8, 2009 at 2:42 PM, A. Zwaana.zw...@finan.nl wrote:
Apparently we need to be able to show a ModalWindow in some cases, which in
turn needs an AjaxRequestTarget, so I somehow need that Ajax event triggered
somewhere when
I am looking for some indicator for any ajax requests , I dont want to add
the behaviour for every component with ajax behaviour , I want something
which detects for ajax request and starts the indicator blocking the page
for further user actions and vanishess after response is rendered is there
http://www.google.com/search?q=wicket+ajax+indicator
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Sep 8, 2009 at 10:13 AM, tubin gen fachh...@gmail.com wrote:
I am looking for some indicator for any ajax requests , I dont want to add
the behaviour for every component with ajax
I did this in pure Javascript for a recent project. You can insert
this code into your base page or whatnot. Its basically a hidden div
that you hide/show and you can style it however. You can see it in
action at http://www.pnc.net/. In my case its just a quick
'Loading...' text blurb in the top
I had some experience with what you need so i hope I could help you if you
need something.
I implemented the dynamic wizard and it was actually lots of fun :)
Eyal Golan
egola...@gmail.com
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
P Save a tree.
I've done this in both DynamicWizards as well as regular wizards and
can pass some code along if you need it.
My rule of thumb is If you can gather all of the content together for
your wizard use a regular wizard (eg: non-dependent configuration
directives), if future wizard steps can change
I also want to mask page along with loading indication is there anything
available ?
John Armstrong-3 wrote:
I did this in pure Javascript for a recent project. You can insert
this code into your base page or whatnot. Its basically a hidden div
that you hide/show and you can style it
try this js:
var mask = new Wicket.Window.Mask(false); mask.show();
the Mask is the use by ModalWindow:
http://www.wicket-library.com/wicket-examples/ajax/modal-window.2
On Tue, Sep 8, 2009 at 1:26 PM, fachhoch fachh...@gmail.com wrote:
I also want to mask page along with loading
Hi,
We have the following code:
static public ResourceLink getResourceLink(String id,byte[] data,final
String title,String contentType){
ResourceLink resourceLink = new ResourceLink(id, new
CustomResource(data,contentType,title)){
private static final long serialVersionUID
+1 for john
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
Hi,
I could use some input on how to solve a problem i have.
In my web-app i have some cases, and each cases have several questions.
And i want the user to flow between the pages in a wizard manner like the
example in:
http://www.wicket-library.com/wicket-examples/wizard/
The only problem i
can you tell me more about this script I am totally null with java script
should I add this var mask = new Wicket.Window.Mask(false); mask.show();
inside the showBusysign() function? and if I want to remove mask what
function should I call ?
Pedro Santos-6 wrote:
try this js:
var
Hi Jason,
Thanks for the tip and explanation. It makes sense, and calling
testInput.clearInput() fixed the issue.
Neil
On Fri, Sep 4, 2009 at 7:20 PM, Jason Lea ja...@kumachan.net.nz wrote:
When a field is submitted and there is a validation error, it doesn't
update the model and the field
T is the type parameter for the model object (
http://static.ddpoker.com/javadoc/wicket/1.4-m1/org/apache/wicket/model/IModel.html),
if you are creating an PropertyModel to retrieve and access an String
property, so String is the correct type parameter for the PropertyModel...
On Tue, Sep 8, 2009
The following dates for jWeekend's 2 day Apache Wicket training
courses, jw703 [1], are now scheduled and confirmed.
Course syllabus and student reviews can be found on our site.
London: [2]
Sep23-24(Wed-Thu), Oct8-9(Thu-Fri), Oct10-11(Sat-Sun),
Nov2-3(Mon-Tue), Nov7-8(Sat-Sun),
sorry, I realize now: just set the artifactIdgmap2/artifactId line
On Tue, Sep 8, 2009 at 5:53 PM, Pedro Santos pedros...@gmail.com wrote:
Hi, I'm trying to add dependency to my project from wicket stuff like:
dependency
groupIdorg.wicketstuff/groupId
I think you're going to want to use artifactIdgmap/artifactId.
gmap-parent is a pom-only distribution.
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Sep 8, 2009 at 3:53 PM, Pedro Santos pedros...@gmail.com wrote:
Hi, I'm trying to add dependency to my project from wicket stuff
also, make sure that you added the wicketstuff repo to your pom (as
described on the ws wiki somewhere)
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Sep 8, 2009 at 3:57 PM, Jeremy Thomerson
jer...@wickettraining.comwrote:
I think you're going to want to use
Hello Jeremy, thanks for the link. This works. Regards, David.
- Original Message -
From: Jeremy Thomerson jer...@wickettraining.com
To: users@wicket.apache.org
Sent: Monday, September 7, 2009 10:44:06 PM GMT -06:00 US/Canada Central
Subject: Re: The alternative to:
Chris Colman wrote:
I've thought of a very ugly way of doing it with the current version of
wicket but it relies on quite a lot of smoke and mirrors and hooking
into the component creation process. I'll give that a go for now.
We went a similar but still different way :) We use our own XML
There is a bug in wicket-ajax.js:268 (1.4.1) that breaks
IE+Flash/ExternalInterface:
// place all newly created elements before the old element
while(tempParent.childNodes.length 0) {
var tempElement = tempParent.childNodes[0];
Well, it's not exactly wrong. Looks like an IE quirk to me. But I
suppose we can just move the element anyway.
-Matej
On Tue, Sep 8, 2009 at 11:10 PM, Matej Knoppmatej.kn...@gmail.com wrote:
Hi,
can you create jira issue with problem description? The code indeed
looks wrong I can fix it once
Hi,
can you create jira issue with problem description? The code indeed
looks wrong I can fix it once the issue is created.
-Matej
On Tue, Sep 8, 2009 at 9:59 PM, Heikki
Uotinenheikki.uoti...@syncrontech.com wrote:
There is a bug in wicket-ajax.js:268 (1.4.1) that breaks
Hi uudashr, I gotta tell you've done terrific work! I tried it in my
wicket-GAE app and it worked :)
Comments/questions:
About wicket framework:
1- Is it possibly that the MultipartServletWebRequest can have this line:
DiskFileItemFactory factory = new DiskFileItemFactory();
...changed for...
On Wed, Sep 9, 2009 at 7:41 AM, Esteban Masoero emaso...@getsense.com.arwrote:
Hi uudashr, I gotta tell you've done terrific work! I tried it in my
wicket-GAE app and it worked :)
Comments/questions:
About wicket framework:
1- Is it possibly that the MultipartServletWebRequest can have
48 matches
Mail list logo