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 wrote: > So, no

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 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: getting client's TimeZone and performace

2012-04-26 Thread Martin Grigorov
Once per session infiniter 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 that occurs on eve

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: 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{ /** * */

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 meth

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 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 > component - both Aj

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 wrote: > Hi, > >  I'm developin

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 = RequestCyc

[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 TextFilteredPropertyColumn(new ResourceModel("contentlisttable.crd"), "crd", "crd") { @Ove

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 i

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 context:

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 wrote: > Hello Martin! > > I do not use it right now but I would lik

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 wrote: > File a ticket please. > > On Thu, Apr 26, 2012 at 2:17 PM, Bert wrote: >> Hi list, >> >> the JavaDoc for  MarkupContainer#visitChildren() states that >>  "@param claz

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 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 which in > i

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 Be

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 wrote: > 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. >

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 Lind wrote: Thanks for the quick responses... First of all the code sampl

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 wrote: > Ok, np. > Here is what I did: > > c > >       IColumn crdC

Re: FilterForm Date column formatting

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

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 wrote: > Hi, > > If I do it in this way, then all

Re: setResponsePage in ajax call

2012-04-26 Thread Martin Grigorov
On Thu, Apr 26, 2012 at 12:50 PM, Jürgen Lind 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, AjaxRequestTarget > target) { >

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 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 which in the fil

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 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: http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp458655

Re: setResponsePage in ajax call

2012-04-26 Thread Martin Grigorov
Hi Juergen, This scenario should work just fine. Wicket returns ./some/relative/url in the Ajax response and uses window.location=url to do the "redirect" Please try with 1.5.5 and create a ticket with a quickstart if it still fails for you. On Thu, Apr 26, 2012 at 12:05 PM, Jürgen Lind wrote: >

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 : >Hi, > >I have difficulties in using the setResponsePage in ajax call as Wicket >

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 submi

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 unsub

Re: FilterForm Date column formatting

2012-04-26 Thread Melinda Dweer
I think the problem is markup for cells is a . You need to create a 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 wrote: > Hi, > > Yes, sorry for that. > > ---