Re: File retrieval vulnerabilities, bugs #1992, #1996

2009-05-22 Thread Martin Dietze
On Thu, May 21, 2009, Igor Vaynberg wrote: we should backport 1992, please open a jira issue to do that. I've already done this. I am currently investigating how I can block particular file types (the hint you gave in your second reply may be helpful here). Once I am confident that my backport

Re: conditional form validators (nested forms issue)

2009-05-22 Thread Leszek Gawron
No no .. This is exactly the opposite of what I want. I cannot setDefaultFormProcessing to false for Wizard buttons - some screens may need other settings. I need the nested form validators NOT to fire when pressing wizard navigation buttons. Juan Carlos Garcia M. wrote: Set

Re: how to cache the html output of a panel?

2009-05-22 Thread Martin Sachs
Hi, you can cache fragments of HTML (if it has no generated html-ids) with a Behaviour. Look at XlstBehaviour. We have done it that way. But the bottlenekk is always the Database, not the rendering of small components. By the way, with such snipplet-caching you can improve the performance max

user input lost on first form submission

2009-05-22 Thread Alfredo Aleandri
Hi all, I have a simple sign-in page with a form and two fields (username and password) public LoginPage() { super(); add(new SignInForm(signInForm)); } private class SignInForm extends FormVoid { private String username, password;

Forms and autoAdd

2009-05-22 Thread Joe Fawzy
hi allcan i use autoAdd() to add FormComponents to a form and expect the form to behave normally and all its lifecycle get executed normally, including model binding and error check i know taht components added via autoAdd() didn't serialized or persisted between requests , so how this affect form

Re: fragment markup resolution

2009-05-22 Thread James Carman
The fragments should be able to be found in the parent class' markup file. You don't need to duplicate the fragment definitions if you're using markup inheritance. On Fri, May 22, 2009 at 12:38 AM, Joe Fawzy joewic...@gmail.com wrote: hiactually i am making a framework over wicket in which i am

Re: Ajax appends to a Table

2009-05-22 Thread James Carman
You usually have to update the whole table via Ajax when doing modifications to it. On Fri, May 22, 2009 at 1:32 AM, Luther Baker lutherba...@gmail.com wrote: Hi, I have an 'Add Row' Ajax link and a Table. The table contains a list of todos. To 'add' a todo, I have created a single tr full

Re: fragment markup resolution

2009-05-22 Thread Joe Fawzy
hi dearthanks for ur reply actually i donot often use the wicket:child and wicket:extend as i prefer borders for common layout is this the only way to get the fragment markup in subclass thanks again Joe On Fri, May 22, 2009 at 1:57 PM, James Carman jcar...@carmanconsulting.comwrote: The

Re: Ajax appends to a Table

2009-05-22 Thread Joe Fawzy
hi dearwicket ajax support is designed and optimised for **updating** or replacing existing components not appending actually u will find appending table raw a buggy feature in IE i use a work around ,by adding several invisible rows then upon need i update them one by one Waiting for a better

Re: Portlets - Loosing state in wicket portlets

2009-05-22 Thread sauli_k
You could try setting layout.default.p_l_reset=false to portal-ext.properties and see if it helps keeping the state of the portlets. (http://www.liferay.com/web/guest/community/forums/-/message_boards/message/2190331#_19_message_2214544) Benjamin Ernst wrote: Hi, I am using two

How to keep fields between pages

2009-05-22 Thread Lorenzo Bolzani
Hi, I'm trying to keep a page state between requests. I know this should be a very simple thing, but it's puzzling me. I have a field, a List, in my page where some data from the user is accumulated. This data is generated from a monitoring system. The user starts the monitoring and the events

Re: How to keep fields between pages

2009-05-22 Thread Dipu
can't you store the List in the session when you move to other page's and get it from session when you get back. -dipu On Fri, May 22, 2009 at 12:46 PM, Lorenzo Bolzani l.bolz...@gmail.com wrote: Hi, I'm trying to keep a page state between requests. I know this should be a very simple thing,

Re: fragment markup resolution

2009-05-22 Thread James Carman
You could try something like this: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/component/editor/FormComponentEditorPanel.java On Fri, May 22, 2009 at 7:07 AM, Joe Fawzy joewic...@gmail.com wrote: hi dearthanks for ur reply actually i

Re: How to keep fields between pages

2009-05-22 Thread Lorenzo Bolzani
2009/5/22 Dipu dipu@googlemail.com: can't you store the List in the session when you move to other page's and get it from session when you get back. Yes, I can, but it doesn't look very wicket style, so I suspect I'm missing something about Wicket (PageMaps, RequestTarget, ecc.) and that

Re: File retrieval vulnerabilities, bugs #1992, #1996

2009-05-22 Thread Martin Dietze
On Thu, May 21, 2009, Igor Vaynberg wrote: we should backport 1992, please open a jira issue to do that. I just appended my backport to #1992, see [1]. I hope that's OK, I can still open a new jira if this is the preferred way to do this. Cheers, Martin [1]

Re: fragment markup resolution

2009-05-22 Thread Joe Fawzy
Hi Jamesthanks for sharing this i wanna ask , why there is not a unified effort for rapid application dev , why not combine wicket RAD , and wicket web beans and wicketopia thanks Joe On Fri, May 22, 2009 at 3:15 PM, James Carman jcar...@carmanconsulting.comwrote: You could try something like

Re: fragment markup resolution

2009-05-22 Thread James Carman
Because I'm stubborn and I want to do things my own way (and I like my name better)! ;) Actually, I would really like to come up with a nice, unified way of doing RAD with wicket. The thing about Wicketopia is that it takes a very domain-oriented approach to RAD (similar to the Tapestry-based

Re: IRequestTarget not serializable

2009-05-22 Thread Juan G. Arias
I have this link, that I create in different ways. It performs some logic, and then redirects to somewhere, depending on how was created. Here is the code: class SignOutLink extends Link { private IRequestTarget target; public SignOutLink(String id, Class redirectPage) { this(id, new

Re: IRequestTarget not serializable

2009-05-22 Thread Matej Knopp
Instead of storing requests targets you should store your own serialized callbacks that create request targets when executed. -Matej On Fri, May 22, 2009 at 3:34 PM, Juan G. Arias juangar...@gmail.com wrote: I have this link, that I create in different ways. It performs some logic, and then

Re: IRequestTarget not serializable

2009-05-22 Thread Joe Fawzy
hi dearu have to process the target during its lifecycle time and store that result into something serializable for future use so u have to make the decision during the first request where the request target is valid not the second joe On Fri, May 22, 2009 at 4:34 PM, Juan G. Arias

Re: IRequestTarget not serializable

2009-05-22 Thread James Carman
For me, I store a page reference. So, as Matej suggested, you could have two different type of callbacks. One, a PageReferenceCallback and another BookmarkablePageCallback? On Fri, May 22, 2009 at 9:46 AM, Joe Fawzy joewic...@gmail.com wrote: hi dearu have to process the target during its

Re: IRequestTarget not serializable

2009-05-22 Thread Juan G. Arias
Ooook, thanks a lot! On Fri, May 22, 2009 at 10:49 AM, James Carman jcar...@carmanconsulting.com wrote: For me, I store a page reference. So, as Matej suggested, you could have two different type of callbacks. One, a PageReferenceCallback and another BookmarkablePageCallback? On Fri, May

Getting the display string for the selected option in a DropDownChoice

2009-05-22 Thread Ryan LaHue
I am trying to write a generic behavior which needs to work for any DropDownChoice. I need to retrieve the selected option's display string. The problem is, much of the time I only store the ID (not the display), so using getModelObject() and running it through the

Re: user input lost on first form submission

2009-05-22 Thread Igor Vaynberg
sounds like the your security redirection is not keeping post params? -igor On Fri, May 22, 2009 at 3:46 AM, Alfredo Aleandri alfredo.alean...@logobject.ch wrote: Hi all, I have a simple sign-in page with a form and two fields (username and password)   public LoginPage() {       super();  

Re: Ajax appends to a Table

2009-05-22 Thread Igor Vaynberg
better approach is outlined in one of the articles on wicketinaction.com -igor On Fri, May 22, 2009 at 4:11 AM, Joe Fawzy joewic...@gmail.com wrote: hi dearwicket ajax support is designed and optimised for **updating** or replacing existing components not appending actually u will find

Re: user input lost on first form submission

2009-05-22 Thread alf.redo
igor.vaynberg wrote: sounds like the your security redirection is not keeping post params? Hi igor, the problem is that the first form submission AFTER the container redirection is not keeping post params... :confused: -- View this message in context:

Re: conditional form validators (nested forms issue)

2009-05-22 Thread mallet
Check out this: http://cwiki.apache.org/WICKET/conditional-validation.html We frequently override the isRequired method of individual fields on a form so that they are only required in the event that a specific button was clicked, or a specific class of button. For instance, you could tag your

Re: user input lost on first form submission

2009-05-22 Thread Igor Vaynberg
are you sure the container is not interfering between you pressing the submit button and wicket processing the form input? -igor On Fri, May 22, 2009 at 8:36 AM, alf.redo alfredo.alean...@logobject.ch wrote: igor.vaynberg wrote: sounds like the your security redirection is not keeping post

Re: user input lost on first form submission

2009-05-22 Thread alf.redo
igor.vaynberg wrote: are you sure the container is not interfering between you pressing the submit button and wicket processing the form input? Hi igor, thank you for your answer. The container redirect the user to a wicket page, the form in this page does not send user input on first

Re: How to validate unique constraint?

2009-05-22 Thread Clint Popetz
I cleaned up my hibernate-validator/wicket integration code, and put it along with an example in my public svn repository. I describe the integration and the example here: http://42lines.net/content/integrating-hibernate-validator-and-wicket If people care to leave feedback, please do. In

AjaxEditableLabel.onSubmit: model object not updated?

2009-05-22 Thread losdraka...@gmx.net
When running the code below, the object MyBusinessObject does not contain the value entered via an AjaxEditableLabel after submit. Any ideas on this? I've tried this using Wicket 1.3.6. MyWebPage.add( new RefreshingView(list_objects) { @Override protected void populateItem(Item item)

date format with datepicker

2009-05-22 Thread tubin gen
I have a date field add(new org.apache.wicket.extensions.markup.html.form.DateTextField(auditEndDate).add(new org.apache.wicket.extensions.yui.calendar.DatePicker())); this date picker puts the selected date in the format 1/1/01 can I configure this to format date as

Re: date format with datepicker

2009-05-22 Thread mallet
Look at this constructor in the javadocs: http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/extensions/markup/html/form/DateTextField.html DateTextField(java.lang.String id, IModel model, java.lang.String datePattern) the pattern is SimpleDateFormat, e.g. something like:

Re: How to keep fields between pages

2009-05-22 Thread Jeremy Thomerson
I would suggest that this would be the wicket way as well. This sounds like the data is session scoped - it belongs to the user. It doesn't really belong to a page. Just OO. -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 22, 2009 at 7:40 AM, Lorenzo Bolzani

Re: Wicket and 3rd party Javascript libraries

2009-05-22 Thread Sam Stainsby
On Thu, 21 May 2009 20:32:01 -0500, Vasu Srinivasan wrote: Apologize if this question sounds too generic... Are there restrictions in using 3rd party Javascript libraries when using Wicket? We have a separate design/javascript team and they love the idea of having just html to work with. But

Re: How to keep fields between pages

2009-05-22 Thread janneru
i wouldn't be happy to put such data into the session where it will lie around all the time; it doesnt belong to the user but to a usecase which consists of just some pages; a perfect application for conversation scope; when you use wicket with seam, seam can handle these conversation scopes for

showstoppers -- NoSuchMethodError (again and again)

2009-05-22 Thread Brill Pappin
Over the last week I've been running into no end of NoSuchMethod errors, particularly between the wicket 1.4-SNAPSHOT and the wicketstuff 1.4-SNAPSHOT. They both are snapshots, so this is expected now and then, however they don't seem to be being fixed. In all cases so far, the

Re: How to keep fields between pages

2009-05-22 Thread Igor Vaynberg
conversation scope in wicket is simply passing this data from page to page. eg setresponsepage(new step2page(data)); -igor On Fri, May 22, 2009 at 5:53 PM, janneru jan.ne...@googlemail.com wrote: i wouldn't be happy to put such data into the session where it will lie around all the time; it

Re: Wicket and 3rd party Javascript libraries

2009-05-22 Thread nino martinez wael
I've had no issues building javascript libraries.. One tricky area if any could be ajax... But that was more the javascript libraries than wicket. I've writte a couple of articles on the topic too.. http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/