Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
The class I put here was the full code: import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.datetime.markup.html.form.DateTextField; import

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.DateField; import

Re: Group Select with Beans

2012-04-13 Thread Martin Grigorov
A beanA = new A(); TextField aName = new TextField(name, new PropertyModel(beanA, name)); Select aId = new Select(id, new PropertyModel(beanA, b_id)); SelectOptions options = new SelectOptions(options, aListOfAllIdsInB, rendererIdToDisplay); aId.add(options); something like this should do it On

Re: Markup parsing and caching

2012-04-13 Thread Martin Grigorov
Hi, You can create the parser before creating the thread and pass it as parameter to the thread. On Thu, Apr 12, 2012 at 8:31 PM, Ashoka Upadhya aupad...@art.com wrote: In our case Markup for the component comes from CMS. We want to parse the markup and cache Markup object in memory. Parsing

Re: AjaxEditableLabel Missing setConvertEmptyInputStringToNull(...)?

2012-04-13 Thread Martin Grigorov
Hi, Create a ticket in Jira with a patch. On Thu, Apr 12, 2012 at 6:47 PM, Aaron J. Garcia agar...@rentec.com wrote: I am wondering if AjaxEditableLabel is intentionally missing a setConvertEmptyInputStringToNull(...) method?  I have a use case for it, and it seems like it would be

AbstractPageableView Example

2012-04-13 Thread besty
Hi all, I've been looking to implement a table which is also refreshed every request. RefreshingView doesn't quite do the job because I also need to paging support. I've finally found AbstractPageableView which is exactly what I need. However, I could not find any example of how to implement it.

Re: Same versioned link opens different pages on different machines

2012-04-13 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-4441 now I'm convinced that this additional check is needed there On Fri, Apr 13, 2012 at 12:00 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: in that case a bit of logic in the page that checks the product id in onconfigure() against one in the

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Francois Meillet
try this public TestForm(String form, final IModelDate dateModel) { super(form, dateModel); DateTextField dateTextField = new DateTextField(txtDate, dateModel, new StrictPatternDateConverter(dd/MM/, false)); DatePicker datePicker = new DatePicker();

Re: AbstractPageableView Example

2012-04-13 Thread Martin Grigorov
Hi, DataView, GridView, and several classes in org.apache.wicket.examples.repeater (wicket-examples) are implementations of AbstractPageableView. Use them as inspiration. On Fri, Apr 13, 2012 at 9:54 AM, besty best.supar...@gmail.com wrote: Hi all, I've been looking to implement a table which

Re: [Conception] question about mixed entities and model

2012-04-13 Thread myrz
Ok thanks it was my idea too but I didn't know if it was right to do this. Thank you very much -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conception-question-about-mixed-entities-and-model-tp4551789p4554139.html Sent from the Users forum mailing list archive at

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
This workaround works. But it seems DateField and DateTimeField are buggy in Wicket 1.5.5. So the only solution for now is to create my new components DateField and DateTimeField. -- View this message in context:

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Martin Grigorov
On Fri, Apr 13, 2012 at 11:26 AM, dpmihai dpmi...@yahoo.com wrote: This workaround works. But it seems DateField and DateTimeField are buggy in Wicket 1.5.5. Can you explain the bug ? So the only solution for now is to create my new components DateField and DateTimeField. -- View this

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
For a DateField and a DateTimeField in the onUpdate method for an AjaxFormComponentUpdatingBehavior , the model is never updated, it rests with the initial date selection. -- View this message in context:

Re: Page Expired with Google Analytics Tracking Code

2012-04-13 Thread Bas Gooren
Hi, What happens if you change that to: @Override public void renderHead(HeaderResponse response) { super.renderHead(response); String script = var _gaq = _gaq || ...; response.renderJavaScript(script, null); } ? (note that I added a call to super.renderHead()); Bas Op 11-4-2012 23:08,

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Martin Grigorov
Create a quickstart app and attach it to Jira. Thanks! On Fri, Apr 13, 2012 at 11:35 AM, dpmihai dpmi...@yahoo.com wrote: For a DateField and a DateTimeField in the onUpdate method for an AjaxFormComponentUpdatingBehavior , the model is never updated, it rests with the initial date selection.

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Martin Grigorov
Create a quickstart app and attach it to Jira. Thanks! On Fri, Apr 13, 2012 at 11:35 AM, dpmihai dpmi...@yahoo.com wrote: For a DateField and a DateTimeField in the onUpdate method for an AjaxFormComponentUpdatingBehavior , the model is never updated, it rests with the initial date selection.

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
Here is the link https://issues.apache.org/jira/browse/WICKET-4496 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554218.html Sent from the Users forum mailing list archive at Nabble.com.

focus locked in place

2012-04-13 Thread Tom Eugelink
I'm slowly getting some ground under my Wicket feet, but now I have a strange problem. I've got a form with two TextFields and a RefreshingView inside a MarkupContainer, building rows containing a DropDownChoice, TextField and a AjaxSubmitLink. The stripped version of the Java code looks like

Re: wicket 6.0

2012-04-13 Thread Martin Grigorov
Hi, beta1 has been released at March 26 and so far there were 3 tickets for it. 2 of them made small API improvements. So it is either rock solid or there are not that many users of it. I think it is stable enough for RC but we wanted to receive more feedback about the changes because we'd like

Re: Built with Wicket: showcases for Wicket applications

2012-04-13 Thread Arjun Dhar
Hey, great place. I went and added one of the sites we did (WRAP), however I forgot to put my companies name in the caption ..any way I can go edit it? :) thanks! - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than

Re: wicket 6.0

2012-04-13 Thread Tom Eugelink
On 2012-04-13 14:24, Martin Grigorov wrote: How many of you tried beta1 ? I started off with 6, but was afraid things like wiquery would conflict in the usage of jquery, so I returned to safety using 1.5.5. Should that be a problem? Otherwise I'll upgrade back to 6. Tom

Re: wicket 6.0

2012-04-13 Thread Martin Grigorov
Hi Tom On Fri, Apr 13, 2012 at 3:43 PM, Tom Eugelink t...@tbee.org wrote: On 2012-04-13 14:24, Martin Grigorov wrote: How many of you tried beta1 ? I started off with 6, but was afraid things like wiquery would conflict in the usage of jquery, so I returned to safety using 1.5.5. Should

Re: wicket 6.0

2012-04-13 Thread Francois Meillet
Hi, I use 6, everything is ok but I encounter a problem with DatePicker. No event when there is an update. https://issues.apache.org/jira/browse/WICKET-4496 François Le 13 avr. 2012 à 14:24, Martin Grigorov a écrit : Hi, beta1 has been released at March 26 and so far there were 3 tickets

Re: wicket 6.0

2012-04-13 Thread Martin Grigorov
On Fri, Apr 13, 2012 at 4:17 PM, Francois Meillet qq...@gmail.com wrote: Hi, I use 6, everything is ok but I encounter a problem with DatePicker. No event when there is an update. https://issues.apache.org/jira/browse/WICKET-4496 This is a problem in 1.5.x too so it is not 6.x

Re: component.isAuto - was: Wicket 1.5: The component(s) below failed to render (revisited)

2012-04-13 Thread Adrian Wiesmann
Hi Martin, hi list I guess I narrowed things down a bit. I was obviously looking at the wrong places. The problem is with the renderedComponents Set (and not with the isAuto flag as thought at first). In the Page class there is that check here: // If component never rendered if

Re: focus locked in place

2012-04-13 Thread Tom Eugelink
On 2012-04-13 11:58, Tom Eugelink wrote: The cursor can be placed in the date fields, but not in any of the textfield in the listview. To add some additional information; the cursor can be placed in the textfields by using the TAB key. A mouse click will always jump to the first field.

Access Denied Page

2012-04-13 Thread Satrix
Hello, I'm facing really strange behaviour and I can't find out what's causing this. Let me describe this scenario: 1. We have an external hosting and the wicket app is running out there. 2. There is a form to upload a file to FTP. 3. When I try to upload a file I get Access Denied Page. However

Manipulate a List into a Panel

2012-04-13 Thread myrz
Hi ! I want to know what was the best practice with Wicket when I want to manipulate a Panel which need a List of object. Today i can do what i'm supposed to do but I think it's so easy to be lost and apply anti-patterns with Wicket. A concrete example:

Re: Manipulate a List into a Panel

2012-04-13 Thread Sven Meier
For service or database calls you should use a LDM: final IModelListAdresse lesAdressesDeLaCommandeModel = new LoadableDetachableModelListAdresse() { @Override public ListAdresse load() { return adresseService.getLesAdressesDeLaCommande(); } }; #onConfigure() is now the

Re: Same versioned link opens different pages on different machines

2012-04-13 Thread Alec Swan
@Bertrand Thank you for clarifying that ALL urls in this discussion are mapped to the same page class. @Igor The core of Wicket value proposition is that it manages the state of your pages correctly. So, verifying that the state that Wicket manages is consistent with user inputs (product id 123