Re: Update ListView using ajax

2009-09-07 Thread Michael Mosmann
Hmm,.. can you post your markup? this code does work with my own markup.. did you use div wicket:id=resultcontainer or did you use wicket:container wicket:id=resultcontainer .. do you see something in wicket-ajax-debug panel? any error-message? any ajax-response? ...and im pretty sure that i

RE: Flash/ExternalInterface does not work in IE if movie is fetched via Wicket/Ajax

2009-09-07 Thread Heikki Uotinen
There is a problem with IE/ExternalInterface if movie is added to DOM f.ex appendChild JavaScript functions are called but they do not return any value. This is clearly MS problem but could IE specific function in wicket-ajax.js be adjusted somehow ? Simple test case has var

Re: Update ListView using ajax

2009-09-07 Thread freak182
Hello, my markup: fieldset legendList of Files/legend table border=1 tr tdDate Uploaded/td

Re: Form FileUploadField maxSize does not work

2009-09-07 Thread nytrus
Yes the issue is that, the form being submitted is the outer (which has no maxsize set, so default is used). When I submit upload0, Form.handleMultiPart() is called on the outer form (form0). When I submit upload1, Form.handleMultiPart() is called on simpleUpload. I'm missing something or doing

Re: Update ListView using ajax

2009-09-07 Thread freak182
Hello, thank you for your. i already make it work. (need to adjust some markup thing :) ) thanks a lot. cheers. michael mosmann wrote: Hmm,.. can you post your markup? this code does work with my own markup.. did you use div wicket:id=resultcontainer or did you use wicket:container

Re: Article in german Javamagazin

2009-09-07 Thread Michael Plöd
Hi Jonathan, I was one of the guys writing the title story. I contacted the Java Magazin Team regarding a copy for you! Unfortunately we can't put the articles online for free since they were written for a commercial print magazine. Regards, Michael On Thu, Sep 3, 2009 at 8:13 PM, Jonathan

Form and PageParameters

2009-09-07 Thread Charles Moulliard
Hi, I have created a RequestPage html page containing a form (= search criteria) and a list (= Data View where the result set of data retrieved in a DB according to search criteria is displayed). When the user clicks on the search criteria button of this page, the request is redirected to the

Re: Form and PageParameters

2009-09-07 Thread Eyal Golan
Is it a must that you use PageParameters for RequestPage? Do you need an access to it also from a URL (after mounting it in your Application). I think that a nicer way is to add a constructor that accepts the values. Even better, I would have created a POJO model. Use a CompoundPropertyModel with

Re: Form and PageParameters

2009-09-07 Thread cmoulliard
Thx for the reply. You are right, it is not a must to use PageParameters but as this is my first Wicket project, I have started to work with simple things. In the meantime, I have had a look to the formInput example where a CompoundPropertyModel is used. I have adapted the Form to work with

Re: Form and PageParameters

2009-09-07 Thread Dipu
you can call YourForm.this.getModelObject() in your forms onSubmit or the buttons onSubmit method. that would return the model object bound to your CompoundPropertyModel and you model object would have all the updated values -dipu On Mon, Sep 7, 2009 at 11:58 AM,

Re: Form and PageParameters

2009-09-07 Thread Eyal Golan
back to my original question, do you actually need this page to have a constructor with PageParameters? hint - if you want a user to get it with nice URL, then yes. You can call one constructor to the other (sometimes tricky in situation like yours), or you can have an init() method that does

wicket and apache turbine

2009-09-07 Thread mischa
Hi, has anybody experience in inserting the wicket framework into apache turbine. And if so how did you insert wicket into the turbine web.xml or is there another way? If not is there a general way to insert the wicket framework into other frameworks. Any help is appreciated! thx,

AjaxButton onSubmit and Submit Form order...

2009-09-07 Thread Arnaud Garcia
Hi List, I want to add a custom anim gif while the page is rendering... To do this, I created an AjaxButton and a Form - In the AjaxButton submit method I setVisible my anim gif - In the form submit metho I call the setResponsePage If I remove the setResponsePage and I log something on the form

Column which orders by display value

2009-09-07 Thread Matthias Keller
Hi We have a DataTable with some sortable columns. Unfortunately, they often don't match a simple property but are assembled using multiple properties. Unfortunately, a column seems only sortable by a single property :-( Is there a possibility to sort a DataTable using the effectively

Re: AjaxButton onSubmit and Submit Form order...

2009-09-07 Thread Dipu
have a look at AjaxLazyLoadPanel, looks like thats what you are looking for -dipu On Mon, Sep 7, 2009 at 4:10 PM, Arnaud Garciaarn...@imagemed-87.com wrote: Hi List, I want to add a custom anim gif while the page is rendering... To do this, I created an AjaxButton and a Form - In the

Re: StackOverFlow (Start.java) Jetty

2009-09-07 Thread David Brown
Hello Martin, thanks for the reply. The AjaxFallbackLinkExtension is a private method created by Eclipse wizardry to unwind an anonymous class. I have since fixed this issue in that the WebPage link is displayed within the wicket:extend tags but now it removes the horizontal list of WebPage

Re: StackOverFlow (Start.java) Jetty

2009-09-07 Thread Martin Makundi
If you have any suggestions for how to replace just part of a WebPage (wicket:extend) with a whole new WebPage please advise. Regards, David. Why not use panels? Looks like what you need is panels. ** Martin - To unsubscribe,

Re: Form FileUploadField maxSize does not work

2009-09-07 Thread Igor Vaynberg
sounds like a bug, open a jira issue. -igor On Mon, Sep 7, 2009 at 1:10 AM, nytrusnytrus...@gmail.com wrote: Yes the issue is that, the form being submitted is the outer (which has no maxsize set, so default is used). When I submit upload0, Form.handleMultiPart() is called on the outer form

Re: Column which orders by display value

2009-09-07 Thread Igor Vaynberg
you can enter whatever expression/key you want into the sortable property of the column and then use that to sort however you want. the idea is that sort should be performed in the database, not in the ui. -igor On Mon, Sep 7, 2009 at 8:14 AM, Matthias Kellermatthias.kel...@ergon.ch wrote: Hi

Mount different page for second parameter

2009-09-07 Thread Vit Rozkovec
Hallo, which encoding strategy should one use if one would like to achieve this: http://somesite/somepath/user1/products -- mounted on ProductsPage.class http://somesite/somepath/user1/profile -- mounted on ProfilePage.class http://somesite/somepath/user2/products -- mounted on

Re: Mount different page for second parameter

2009-09-07 Thread Igor Vaynberg
you will have to roll your own, this is not supported in 1.4 but should be in 1.5 -igor On Mon, Sep 7, 2009 at 11:27 AM, Vit Rozkovecrozkovec...@email.cz wrote: Hallo, which encoding strategy should one use if one would like to achieve this: http://somesite/somepath/user1/products -- mounted

Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
I apologize in advance if there is a completely obvious solution to this that I have missed... Is it possible to pass in parameters to a panel via the markup? Eg., Let's say that there are number of different ways that a particular panel could be rendered and that these ways are largely

Re: Passing parameters from markup to panels

2009-09-07 Thread Jeremy Thomerson
Put simply, no. In Wicket, this is considered code. And code goes in Java files. Configure it in the YourPage.java file - where you have access to data sources, session attributes, the user, etc -- Jeremy Thomerson http://www.wickettraining.com On Mon, Sep 7, 2009 at 5:09 PM, Chris

Re: StackOverFlow (Start.java) Jetty

2009-09-07 Thread David Brown
Hello Martin, converting the WebPage to Panel foments no complaints until RunTime where all of the upstream markup is re-included in the downstream onClick() request. the usual complains are made: cannot find the component to the paired wicket markup. The component has already been fired by

RE: Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
When my web designer guy wants control over whether he wants to place either 10 songs or 50 songs into the 'top of the charts' panel I consider that to be something that should definitely not be something we have to make separate .java panel classes and markup to achieve. To have to get a

Re: Passing parameters from markup to panels

2009-09-07 Thread Jeremy Thomerson
It could be done. I'm pretty sure that if you used onComponentTag (can't remember exact name this second - and just walking out the door) - you could read any attribute from the tag. Then hold that number in your component and let your model that reads the songs read that number to determine how

Re: Passing parameters from markup to panels

2009-09-07 Thread Edward Zarecor
You don't need multiple versions of the panel, you simply need a constructor that takes an argument, the number of items you want to include. This doesn't fully fulfill your use case as your site-devs or portal-devs cannot pass that argument in. You could arrange that using iframes and passed

Re: Passing parameters from markup to panels

2009-09-07 Thread Matej Knopp
Slight problem here is that onComponentTag is called during render. You can't modify component hierarchy at that point. Only way around this is to find component's markup index in onBeforeRender and then get the tag from markup stream. But this will fail in many cases (borders, transparent

Re: Passing parameters from markup to panels

2009-09-07 Thread Igor Vaynberg
this is a matter of what is configurable externally and what is configurable internally in code. you want to reuse the markup as the external configuration medium by adding this information there, but it can just as easily live in an external property file or in a database table. the philosophy of

RE: Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
you say it is laughable to require knowledge of code to configure this. i agree, but i also think its laughable to require the knowledge of markup, why shouldnt a sysadmin be able to change this? so isnt a property file, or a jndi property, or a database table a better place to configure

Re: Passing parameters from markup to panels

2009-09-07 Thread David Leangen
Then why not just create a configuration panel so your designer can configure the number of items to display? On Sep 8, 2009, at 9:23 AM, Chris Colman wrote: you say it is laughable to require knowledge of code to configure this. i agree, but i also think its laughable to require the

RE: Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
Then why not just create a configuration panel so your designer can configure the number of items to display? Scenario: Let's say 8 different pages use the same SongChartPanel and each wants to list a different number of songs. Providing a configuration panel for the web designer to configure

Using java.util.Date class with CompoundPropertyModel

2009-09-07 Thread Steve Hiller
Hi All, I have created a very simple class that includes a property based on the java.util.Date class. This model is used with a simple WebPage and a Label component is used to present the date. For some reason, only the time part of the underlying Date object is being displayed. I'm using

Re: Passing parameters from markup to panels

2009-09-07 Thread Igor Vaynberg
right, and the next logical extension is controlling visibility, or maybe which panel variant to display. why should the developer be involved if the designer wants panel A vs panel B, thats silly. so next step is wicket:if and wicket:else based on some condition expressed through some type of EL.

Re: Using java.util.Date class with CompoundPropertyModel

2009-09-07 Thread Igor Vaynberg
i believe the default converter will format the date to time only, you can override getconverter() on the label and return your own, or install your own converter globally. -igor On Mon, Sep 7, 2009 at 6:48 PM, Steve Hillersh...@bellsouth.net wrote: Hi All, I have created a very simple class

RE: Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
officially we will not support this type of control because there are plenty of other alternatives which we find more appealing. that said, there are plenty of ways for you to accomplish what you want, we do not slam doors on ideas just because we dont agree with them. eg you can use

The alternative to: HeaderContributor.forCss

2009-09-07 Thread David Brown
Hello, something I have been ignoring for a long time is in the subject line. Though my IDE tells me it is deprecated I have not see a good alternative anywhere (wicketstuff, google, etc.). All of my CSS is in several files and directories under one directory named: style. What is a good

Re: The alternative to: HeaderContributor.forCss

2009-09-07 Thread Jeremy Thomerson
The replacement for the deprecated method is written in the JavaDocs. http://wicket.apache.org/docs/1.4/org/apache/wicket/behavior/HeaderContributor.html -- Jeremy Thomerson http://www.wickettraining.com On Mon, Sep 7, 2009 at 10:18 PM, David Brown dbr...@sexingtechnologies.comwrote: Hello,

Re: Passing parameters from markup to panels

2009-09-07 Thread Jeremy Thomerson
I seemed to remember writing a post about something similar to this here it is: http://www.nabble.com/Wicket-and-CoC-tt20706881.html#a20715349 It's pretty old, but probably still works. I was impressed at the time with how easy it was. -- Jeremy Thomerson http://www.wickettraining.com

RE: Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
I seemed to remember writing a post about something similar to this here it is: http://www.nabble.com/Wicket-and-CoC-tt20706881.html#a20715349 Good post. The IComponentResolver is already used heavily in our app to convert wicket:id values into panel class names but I was seeking a way

Re: StackOverFlow (Start.java) Jetty

2009-09-07 Thread Martin Makundi
Hi! I did not understand a single word of what you just said :( I have never had problems with panels.. would you mind posting some code so we can see what you are trying to accomplish and how? ** Martin 2009/9/8 David Brown dbr...@sexingtechnologies.com: Hello Martin, converting the WebPage

RE: Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
I'm doing some experimenting with ComponentTag.getAttributes() - it looks like the one!! Doh! It doesn't seem to work. No matter how many attributes I add to the tag and no matter whether I add the wicket: namespace to them or not I only ever see the single wicket:id attribute when I run this

Usage of Servlets in Wicket, How ?

2009-09-07 Thread FaRHaN
Hi, Is there any example in Wicket that uses Servlets (doGet() doPost()). I mean how can we configure Servlets in our wicket application and use doGet(request, response) doPost(request, response) methods. I know web.xml configuration for Servlets but how can we use doGet() doPost() methods.

RE: Passing parameters from markup to panels

2009-09-07 Thread Chris Colman
-Original Message- Doh! It doesn't seem to work. ... Whoops! Please ignore the above! It works like a charm when you place the parameters in the right place ;) - To unsubscribe, e-mail:

Re: Usage of Servlets in Wicket, How ?

2009-09-07 Thread Jeremy Thomerson
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. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Sep 7, 2009 at 11:54 PM, FaRHaN farhan.ba...@ymail.com wrote: Hi, Is

Property Models

2009-09-07 Thread Douglas Ferguson
If I have a have this: CompoundPropertyModel(Person) PropertyModel(Person, name); Would this be accurate? CompoundPropertyModelPerson PropertyModelString -assuming name is a string - To unsubscribe, e-mail:

Re: Passing parameters from markup to panels

2009-09-07 Thread Igor Vaynberg
thats pretty strange, create a unit test and we will fix it. -igor On Mon, Sep 7, 2009 at 9:00 PM, Chris Colmanchr...@stepaheadsoftware.com wrote: I seemed to remember writing a post about something similar to this here it is:

Re: Usage of Servlets in Wicket, How ?

2009-09-07 Thread FaRHaN
but how can we call it from our wicket web page ? From: Jeremy Thomerson jer...@wickettraining.com To: users@wicket.apache.org Sent: Tuesday, September 8, 2009 11:10:49 AM Subject: Re: Usage of Servlets in Wicket, How ? servlets are totally separate from

Re: Usage of Servlets in Wicket, How ?

2009-09-07 Thread Peter Thomas
Refer this: http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html If that doesn't help you should briefly explain what your requirement is. There may be a better way to achieve it within Wicket instead of hacking around with servlets. On Tue, Sep 8, 2009 at 10:57