Re: Any news on 1.5 - mapping different error pages for specific errors

2012-04-26 Thread jensiator
I will try to contribute -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4588983.html Sent from the Users forum mailing list archive at Nabble.com.

Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi, Yes, sorry for that. --- Last cause: Component [cell] (path = [5:datatablecontainer:filterForm:datatable:body:rows:1:cells:3:cell]) must be applied to a tag of type [input], not: '' (line 0, column 0) Markup The problem is in

Re: FilterForm Date column formatting

2012-04-26 Thread Melinda Dweer
I think the problem is markup for cells is a span. You need to create a panel wicket:panel input wicket:id=dateField/ /wicket:panel .. Your date file code and add that panel to table cell. Regards, Melinda On Thu, Apr 26, 2012 at 8:48 AM, Sandor Feher

Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Ok, I will have try... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp4586557p4589073.html Sent from the Users forum mailing list archive at Nabble.com. - To

setResponsePage in ajax call

2012-04-26 Thread Jürgen Lind
Hi, I have difficulties in using the setResponsePage in ajax call as Wicket seems to direct the call to a relative URL. As a result, the request is made to the root context an that gives me a 404. The scenario is as follows: I have a login form and would like to provide user feedback on

Re: setResponsePage in ajax call

2012-04-26 Thread Jochen Mader
Please provide some code-samples to show us what you are doing. If it's related to an older issue it would be great if you could give more details (link to the issue). Am 26.04.12 11:05 schrieb Jürgen Lind unter juergen.l...@iteratec.de: Hi, I have difficulties in using the setResponsePage in

Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi, If I do it in this way, then all of my cells in that column will change to input textfield. But I only want to change the cell which in the filter form row. Regards, Sandor -- View this message in context:

Re: setResponsePage in ajax call

2012-04-26 Thread Jürgen Lind
Thanks for the quick responses... First of all the code sample: in my LoginPanel I have a method that is invoked if the user authentication succeeds: protected void onSuccess(AuthenticatedUser user, AjaxRequestTarget target) { EmobWebSession.get().setAuthenticatedUser(user);

Re: FilterForm Date column formatting

2012-04-26 Thread Melinda Dweer
Can't use a conditional statement? If filter add panel if not call super.populateItem? On Thu, Apr 26, 2012 at 11:36 AM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, If I do it in this way, then all of my cells in that column will change to input textfield. But I only want to change the cell

Re: setResponsePage in ajax call

2012-04-26 Thread Martin Grigorov
On Thu, Apr 26, 2012 at 12:50 PM, Jürgen Lind juergen.l...@iteratec.de wrote: Thanks for the quick responses... First of all the code sample: in my LoginPanel I have a method that is invoked if the user authentication succeeds:      protected void onSuccess(AuthenticatedUser user,

Re: FilterForm Date column formatting

2012-04-26 Thread Martin Grigorov
Sorry, I didn't understand that you want to do that for the filter field. Override org.apache.wicket.extensions.markup.html.repeater.data.table.filter.TextFilteredPropertyColumn#getFilter() instead. On Thu, Apr 26, 2012 at 12:36 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, If I do it in

Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Ok, np. Here is what I did: c IColumn crdCol=new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd, crd) { @Override public Component getFilter(String componentId, FilterForm? form) { DateConverter

Re: FilterForm Date column formatting

2012-04-26 Thread Martin Grigorov
As Melinda said earlier you need to use a Panel. The idea is that this way you can use more complex components for filtering, e.g. from-to dates, a Panel with two date fields. On Thu, Apr 26, 2012 at 1:26 PM, Sandor Feher sfe...@bluesystem.hu wrote: Ok, np. Here is what I did: c    

Re: setResponsePage in ajax call

2012-04-26 Thread Jürgen Lind
Hi Martin, thnaks for your reply and the explanation, I have now switched to the class-based variant and it works like it should. J. On 26.04.2012 12:05, Martin Grigorov wrote: On Thu, Apr 26, 2012 at 12:50 PM, Jürgen Lindjuergen.l...@iteratec.de wrote: Thanks for the quick responses...

Re: setResponsePage in ajax call

2012-04-26 Thread Martin Grigorov
It should work even with the Page variant. Please create a quickstart and attach it to a ticket. On Thu, Apr 26, 2012 at 1:58 PM, Jürgen Lind juergen.l...@iteratec.de wrote: Hi Martin, thnaks for your reply and the explanation, I have now switched to the class-based variant and it works like

discrepancy between JavaDoc and code in MarkupContainer#visitChildren()

2012-04-26 Thread Bert
Hi list, the JavaDoc for MarkupContainer#visitChildren() states that @param clazz The class of child to visit, or null to visit all children The parameter clazz is used to create a new ClassVisitFilter which in its visitObject() does not check for clazz == null, leading to a NPE. regards

Re: discrepancy between JavaDoc and code in MarkupContainer#visitChildren()

2012-04-26 Thread Martin Grigorov
File a ticket please. On Thu, Apr 26, 2012 at 2:17 PM, Bert taser...@gmail.com wrote: Hi list, the JavaDoc for  MarkupContainer#visitChildren() states that  @param clazz The class of child to visit, or null to visit all children The parameter clazz is used to create a new ClassVisitFilter

Re: discrepancy between JavaDoc and code in MarkupContainer#visitChildren()

2012-04-26 Thread Bert
Hi Martin, done. https://issues.apache.org/jira/browse/WICKET-4519 Bert On Thu, Apr 26, 2012 at 13:18, Martin Grigorov mgrigo...@apache.org wrote: File a ticket please. On Thu, Apr 26, 2012 at 2:17 PM, Bert taser...@gmail.com wrote: Hi list, the JavaDoc for  

Re: Wicket 1.5 - new browser window support detection

2012-04-26 Thread Martin Grigorov
Hi David, I just attached a demo app with a behavior to https://issues.apache.org/jira/browse/WICKET-4308 that implements the requested functionality. Please try it and give feedback. On Thu, Apr 26, 2012 at 8:30 AM, David Rain david_r...@kb.cz wrote: Hello Martin! I do not use it right now

Re: Wicket 1.5 - new browser window support detection

2012-04-26 Thread David Rain
Works great man! Honestly, I wanted to write somekind of javascript like yours but I thought that something like this must already be in Wicket to support multiple window instances (and I am sure that it was there in W 1.4). Nevertheless, thank you very much! David -- View this message in

Re: Wicket 1.5 - new browser window support detection

2012-04-26 Thread Martin Grigorov
Good! Wicket 1.4 implements this a bit differently and honestly I don't quite understand how it works exactly. My version requires Ajax behavior, this is OK for your case but may not be OK for other people... Let's see what the reporter of the ticket thinks about it and then we can discuss adding

[RESOLVED] Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi, Works fine now :). Melinda, Martin! Thank you for your help. I really appreciate that! Just for the archive. I add a panel overriding the getFilter method. - IColumn crdCol=new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd, crd) {

Wicket 6-beta1 - How to call a javascript function after component render?

2012-04-26 Thread Jordi Deu-Pons
Hi, I'm developing a component that needs to call a javascript function after it's rendered (throw and AJAX update or a normal request). I get it running like this: @Override protected void onBeforeRender() { super.onBeforeRender(); AjaxRequestTarget target =

Re: Wicket 6-beta1 - How to call a javascript function after component render?

2012-04-26 Thread Martin Grigorov
Hi, All you need is #renderHead() that does:  response.render(OnDomReadyHeaderItem.forScript(getInitJavaScript()) initJS will be delivered to the page after each re-render of the component - both Ajax and non-Ajax. On Thu, Apr 26, 2012 at 4:46 PM, Jordi Deu-Pons jo...@jordeu.net wrote: Hi,  

Re: Wicket 6-beta1 - How to call a javascript function after component render?

2012-04-26 Thread Jordi Deu-Pons
Perfect, it works. Thanks! On Thu, Apr 26, 2012 at 3:52 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, All you need is #renderHead() that does:   response.render(OnDomReadyHeaderItem.forScript(getInitJavaScript()) initJS will be delivered to the page after each re-render of the

Aggregating JavaScript

2012-04-26 Thread Ashoka Upadhya
I would like to aggregate all javascript and move to the bottom of the page. I looked into the resource aggregation example and also filtering header response. If I understand correctly header response filter methods are called only when the scripts are added explicitly through IHeaderResponse

Re: Wicket dropdownchoice onselectionchanged must override or implement a supertype method

2012-04-26 Thread kshitiz
Thanks all for the reply, You were right...I did the change and it worked. And also, SelectOption is not wicket one but a class created by me only: package WalknShine; import java.io.Serializable; public class SelectOption implements Serializable{ /** * */

getting client's TimeZone and performace

2012-04-26 Thread infiniter
when setting getRequestCycleSettings().setGatherExtendedBrowserInfo(true), it lets Wicket do a sneaky redirect to BrowserInfoPage (and back again) to get the extended browser info including the timezone from the client. I wanted to know if that occurs on every request or just once per session

Re: getting client's TimeZone and performace

2012-04-26 Thread Martin Grigorov
Once per session infiniter infini...@gmail.com wrote: when setting getRequestCycleSettings().setGatherExtendedBrowserInfo(true), it lets Wicket do a sneaky redirect to BrowserInfoPage (and back again) to get the extended browser info including the timezone from the client. I wanted to know if

Re: getting client's TimeZone and performace

2012-04-26 Thread infiniter
So, no risk of a poor user experience? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getting-client-s-TimeZone-and-performace-tp4590597p4591533.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Trying to use IAjaxCallDecorator after Modal Window close

2012-04-26 Thread quando
Hello, how do you solved the problem exactly? kind regards -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Trying-to-use-IAjaxCallDecorator-after-Modal-Window-close-tp4081142p4589548.html Sent from the Users forum mailing list archive at Nabble.com.

Re: getting client's TimeZone and performace

2012-04-26 Thread Dan Retzlaff
That depends on how much you value the landing experience. There will be an extra page rendering and redirect for each new session. I haven't noticed this pattern from any big online retailers, for example, but it may make sense for you. On Thu, Apr 26, 2012 at 6:56 PM, infiniter