Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Ari Suutari
Hi, okay I'm kinda lost and I think i'm either doing somehting fundamentally wrong or missing something really stupid.. Me too. I tried to study the junit test that (re)renders a component, but cannot get it working with browser. What I tried was to create AjaxHandler to

[Wicket-user] DataTables generating invalid links

2005-12-16 Thread Iman Rahmatizadeh
I'm setting up a simple table, with some links in a column. When clicking on the links generated, I see an InternalErrorPage, and wicket logs something like :No component found for 8:fields:rows:2:cells:6:cell where my html has:table wicket:id=fields class=grid/tableas I play with the component

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Ari Suutari
Got it. Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, December 16, 2005 1:35 PM Subject: Re: [Wicket-user] How to render part of page (with ajax maybe) Try

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Ari Suutari
Ok, (Sorry for horrible formatting of this e-mail) I took code from AjaxHandler.java to my TestAjaxHandler, so it looks like this: import wicket.*; import wicket.protocol.http.*; import wicket.protocol.http.servlet.ServletWebRequest; import wicket.response.StringResponse; import

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Juergen Donnerstag
That that is true as well. You can not render a component inside a view, because these component by default get removed onEndRequest for optimization reason. I think you can avoid it by calling listView.setOptimized() Juergen On 12/16/05, Ari Suutari [EMAIL PROTECTED] wrote: Hi, I did

Re: [Wicket-user] Hibernate transactions

2005-12-16 Thread John Patterson
On Friday 16 Dec 2005 05:40, Maurice Marrink wrote: We use the dao pattern. any exceptions are handled by the different dao's. This would require duplicating error and transaction handling in every method. It also creates a new transaction for every data operation which does not allow for

Re: [Wicket-user] Hibernate transactions

2005-12-16 Thread John Patterson
On Friday 16 Dec 2005 02:47, Igor Vaynberg wrote: There is in fact an on error handler Application.onRuntimeException(). its called whenever there is a runtime exception. instead of trying to do try/catch in your filter you can use a request variable to indicate success/failure. set it to

[Wicket-user] ImmediateCheckBox' renderHeadInitContribution()

2005-12-16 Thread Marco van de Haar
ImmediateCheckbox (ImmediateUpdateHandler) uses renderheadInitContribution to make a Javascript contribution to the Page (immediateCheckBox()). However, the method's Javadoc says : Do a one time (per page) header contribution that is the same for all ajax variant implementations (e.g. Dojo,

[Wicket-user] Dynamic Wicket id

2005-12-16 Thread Dzenan Ridjanovic
Is there any way to embed a label as the text for the Wicket id? For example, something like input wicket:id = span wicket:id = 'propertyNameLabel'/span type = text size = 80 / --- This SF.net email is sponsored by: Splunk Inc. Do

Re: [Wicket-user] Dynamic Wicket id

2005-12-16 Thread Igor Vaynberg
why would you need to do something like that? what exactly are you trying to accomplish?-IgorOn 12/16/05, Dzenan Ridjanovic [EMAIL PROTECTED] wrote:Is there any way to embed a label as the text for the Wicket id? For example, something likeinput wicket:id = span wicket:id =

Re: [Wicket-user] DataTables generating invalid links

2005-12-16 Thread Iman Rahmatizadeh
just to clarify, wicket generates the table correctly, but clicking the links raises the problem. This is the generated html :tr class=odd wicket:id=rows td wicket:id=cells span wicket:id=cellsome message/span /tdtd wicket:id=cells span wicket:id=cellwicket:panel a href=""

Re: [Wicket-user] Hibernate transactions

2005-12-16 Thread Igor Vaynberg
the full name of the interface is: wicket.request.compound.IExceptionResponseStrategy. you can substitute your own implementation into the compound request cycle processor. if your implementation throws a runtime exception it will get to your filter because there are no try/catch blocks in wicket

Re: [Wicket-user] Dynamic wicket:id

2005-12-16 Thread Igor Vaynberg
there are other ways you can achive the property model behaviour then making the id of the component the name of the property. this is a convinient default, but sometimes it doesnt work like you just found out. i would pass the compound model you are using as the constructor to the panel so that

Re: [Wicket-user] Hibernate transactions

2005-12-16 Thread Igor Vaynberg
why not instead of using a filter subclass webrequestcycle and all the transaction logic into it. its all in one place and neat. i think there are ample hooks for the keypoints you need. -Igor On 12/16/05, John Patterson [EMAIL PROTECTED] wrote: On Friday 16 Dec 2005 18:35, Igor Vaynberg wrote: