Re: Wicket-Hibernate Related LazyInitializationException

2010-12-07 Thread nivs
Hi Dan, I guess you were right with the thought process - nivs wrote: If you're still getting an LIE, there may be another association at play (a child of Phone?). I noticed that when I navigated, it was only when the PhoneType which was an entity (if not a collection on Phone) of

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-07 Thread nivs
Eelco Thanks again for your thoughts. Inline with this, I will look at optimizing it and intend to switch to using LDM's. Cheers Niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Hibernate-Related-LazyInitializationException-tp3068534p3076005.html Sent from

Re: Component wiring mess in 'HomePage'

2010-12-07 Thread Peter Karich
I always try to identify logical groups and delegate creation of those to separat private methods. And use Panels for reusability. Hans, the private method trick should do it although the HomePage is still lenghty. regarding the panels: I'm using a lot of them. But for instantiation I

Re: Component wiring mess in 'HomePage'

2010-12-07 Thread James Carman
On Tue, Dec 7, 2010 at 5:08 AM, Peter Karich peat...@yahoo.de wrote: Create components out of some of the groups of components that logically belong together? James, What do you mean here? Basically...use Panels. As for the propagation of the events, you could try using a more listenery

Register feedback messages

2010-12-07 Thread Stefan Droog
Hi, Just to be curious: Does someone know why the error method has another signature than the info/fatal/final methods? And why don't they except IModelString objects instead of String/Serializable? public final void error(final Serializable message) public final void fatal(final String

Re: Register feedback messages

2010-12-07 Thread Alexander Morozov
try { ... } catch (RuntimeException e) { error(e); } In FeedbackPanel you can preprocess any message. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Register-feedback-messages-tp3076561p3076662.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Component wiring mess in 'HomePage'

2010-12-07 Thread Peter Karich
Create components out of some of the groups of components that logically belong together? James, What do you mean here? Basically...use Panels. As for the propagation of the events, you could try using a more listenery approach, rather than doing the abstract onClick() method, especially

Re: nested form in FormComponentPanel validation issue

2010-12-07 Thread Joseph Pachod
On 12/05/2010 09:21 AM, Igor Vaynberg wrote: the problem is in DecoratedEdit classs, the tmp variable is not updated with converted input of the inner textfield, so composeConvertedInput() incorrectly returns null when it should return the converted input of the inner text component. hi

getStatelessHint()?

2010-12-07 Thread Douglas Ferguson
I'm seeing some exceptions in my production log with this message it could be that the component is inside a repeater make your component return false in getStatelessHint() What does this mean? - To unsubscribe, e-mail:

Re: DatePicker to pick a year

2010-12-07 Thread Anna Simbirtsev
Hi, I am using the wiQuery for the calendar now, but have some problems. 1) The page refreshes when I click in the field, then the datepicker appeares. 2) When I try to submit, it gives me an error: '1980-12-04' is not a valid Date. DatePickerDate datefield = new DatePickerDate(datefield,

File upload with inner form and modal window

2010-12-07 Thread Cédric Thiébault
Hi, I want to upload files with an Ajax form that is in a modal window (using a Panel, not a WebPage). The modal and its form are part of the main form: main-page.html form wicket:id=form div wicket:id=modal / input type=submit wicket:id=submit / /form upload-window.html form wicket:id=form

Re: File upload with inner form and modal window

2010-12-07 Thread François Meillet
just add form.setMultiPart(true); in your form François Le 7 déc. 2010 à 20:11, Cédric Thiébault a écrit : Hi, I want to upload files with an Ajax form that is in a modal window (using a Panel, not a WebPage). The modal and its form are part of the main form: main-page.html form

Re: File upload with inner form and modal window

2010-12-07 Thread Cédric Thiébault
I've done this in the modal window form... And I set it to false for the main form that is not used for uploading. The upload works well, it's when my modal is closed, the main form (not the one for the upload) throws an exception on submit. Here is the code that I've attached to the Jira issue:

Re: File upload with inner form and modal window

2010-12-07 Thread François Meillet
it has to be in the main form afaik François Le 7 déc. 2010 à 20:27, Cédric Thiébault a écrit : I've done this in the modal window form... And I set it to false for the main form that is not used for uploading. The upload works well, it's when my modal is closed, the main form (not the one

Re: File upload with inner form and modal window

2010-12-07 Thread Cédric Thiébault
It is... Here is the code... HomePage.html html xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; body div wicket:id=feedbackfeedback/div form wicket:id=form Input text: input type=text wicket:id=text size=40 / br / div

Re: File upload with inner form and modal window

2010-12-07 Thread François Meillet
final FormBean formBean = new FormBean(); ModelFormBean model = new ModelFormBean(formBean); FormFormBean form = new FormFormBean(form, model); form.setMultiPart(false); should be true add(form); François Le 7 déc. 2010 à 20:45, Cédric Thiébault a écrit : It is...

Re: File upload with inner form and modal window

2010-12-07 Thread Cédric Thiébault
You're right, it works :-) So if I understand, all request will be multipart just because one of theme needs to be multipart... Thanks for your help François! Cedric 2010/12/7 François Meillet fm...@meillet.com:   final FormBean formBean = new FormBean();   ModelFormBean model = new

Re: DatePicker to pick a year

2010-12-07 Thread julien roche AKA indiana_jules
Hi Anna, I think you have to set the right converter on your wicket textfield (with the override of the method getConverter and with the class PatternDateConvert). The dateFormat option works only on the client side with jQuery. Regards Julien Roche On Tue, Dec 7, 2010 at 7:56 PM, Anna

Re: DatePicker to pick a year

2010-12-07 Thread nivs
Hi If your getting the date format error from the Model side and it is expecting a timestamp , then you might get that issue. Are you using a TimeStamp field or pure date? If I wanted only to store date in the backend without timestamp details my model has to be decorated like

Re: Asynchronous File Uploads

2010-12-07 Thread exl
Hi. Ok, I'm trying to go down the path of what I believe is being suggested here. So this is what I have as the servlet so far: {code} public class HelloServlet extends HttpServlet { private static final long serialVersionUID = 1L; @Autowired private

Re: Asynchronous File Uploads

2010-12-07 Thread Jeremy Thomerson
On Tue, Dec 7, 2010 at 8:53 PM, exl eric@uwa.edu.au wrote: Hi. Ok, I'm trying to go down the path of what I believe is being suggested here. So this is what I have as the servlet so far: {code} public class HelloServlet extends HttpServlet { private static final long

Re: getStatelessHint()?

2010-12-07 Thread Pierre Goupil
Hello, According to the JavaDoc: getStatelessHint(): *Description copied from class: Componenthttp://static.ddpoker.com/javadoc/wicket/1.4-m1/org/apache/wicket/Component.html#getStatelessHint%28%29 * Returns whether the component can be stateless. Also the component behaviors must be stateless,

Re: Asynchronous File Uploads

2010-12-07 Thread exl
Thanks for the reply. Sure - I can understand that if the client submits the form directly to the separate servlet, then this would achieve the background processing thread on the server side. However, wouldn't this mean that the Wicket application loses control in that client browser window,

Re: Asynchronous File Uploads

2010-12-07 Thread Jeremy Thomerson
If you use Wicket to process a request, it is going to synchronize on the page map (up through 1.4.x). This means that any request that is bound to a page (like a form, which is stateful) will result in synchronization. The stateful forms in Wicket submit back to themselves, which means they

Re: Component wiring mess in 'HomePage'

2010-12-07 Thread Jeremy Thomerson
On Tue, Dec 7, 2010 at 4:08 AM, Peter Karich peat...@yahoo.de wrote: regarding the panels: I'm using a lot of them. But for instantiation I need to specify what to do onClick so I could reuse the panel in a different context somewhen later. I mean, when the panelA detects a click this is

Re: Component wiring mess in 'HomePage'

2010-12-07 Thread Pierre Goupil
Yes, that's a decorator pattern, which could a be good practice. You don't use inheritance since you've just got a Panel, not a Page. So feel free to go for that solution, I find it smart, too. On Wed, Dec 8, 2010 at 7:51 AM, Jeremy Thomerson jer...@wickettraining.comwrote: On Tue, Dec 7,