wicket urls - wicket wont display the get url and insted display page instance number

2014-06-16 Thread Yoav Stern
I am using wicket in my web application. Assuming I have pages a b c where I move from A to B using page parameters change something in page B model using ajax and B to C (without using page params). problem : The scenario is moving A->B->C while changing page b model and pressing the back button

wicket urls - wicket wont display the get url and insted display page instance number

2014-06-16 Thread Yoav Stern
I am using wicket in my web application. Assuming I have pages a b c where I move from A to B using page parameters change something in page B model using ajax and B to C (without using page params). problem : The scenario is moving A->B->C while changing page b model and pressing the back button

Re: wicket urls - wicket wont display the get url and insted display page instance number

2014-06-16 Thread Martin Grigorov
Hi, The description is not very clear. Could you please rephrase it ? Martin Grigorov Wicket Training and Consulting On Mon, Jun 16, 2014 at 9:10 AM, Yoav Stern wrote: > I am using wicket in my web application. Assuming I have pages a b c where > I move from A to B using page parameters chang

Re: javascript reference header item with async attribute

2014-06-16 Thread Martin Grigorov
Hi, I don't like the number of constructors we have in the different impls of CssHeaderItem and JavaScriptHeaderItem. Recently I needed to set markup id to a CssHeaderItem to be able to replace it with Ajax so I've added a new method [1] to CssHeaderItem: setId(String) [2] that uses Fluent API pat

Re: wicket urls - how to change "get" url to instance cached one

2014-06-16 Thread Yoav Stern
Scenario : When I 1.reach Page B using empty c'tor (B1) 2.change it using ajax (where as you have mentioned this page already has pageId where the one with the get url didnt !!!) 3.move to page C 4.return to page B (the same B1) I want the same behavior in all the application pages,what should I

Re: wicket urls - how to change "get" url to instance cached one

2014-06-16 Thread Martin Grigorov
On Mon, Jun 16, 2014 at 2:06 PM, Yoav Stern wrote: > Scenario : > When I > 1.reach Page B using empty c'tor (B1) > 2.change it using ajax (where as you have mentioned this page already has > pageId where the one with the get url didnt !!!) > I guess it would be easier if you use some short use c

Re: Custom RequestLogger

2014-06-16 Thread rexar
Hi Martin! Thank you for advice, but now I have another problem :( In my RequestLogger class I do next: /@Override protected void log(RequestData rd, SessionData sd) { Long requestDuration = rd.getTimeTaken(); IRequestHandler requesthandler = rd.getEventTarget(); i

Re: Custom RequestLogger

2014-06-16 Thread Martin Grigorov
Hi, On Mon, Jun 16, 2014 at 5:17 PM, rexar wrote: > Hi Martin! > > Thank you for advice, but now I have another problem :( > In my RequestLogger class I do next: > > /@Override > protected void log(RequestData rd, SessionData sd) > { > Long requestDuration = rd.getTimeTaken(); >

Re: Custom RequestLogger

2014-06-16 Thread rexar
Then I will not logging some pages. Instead I want to know WHY and WHEN some pages cannot be cast to ILoggableRequestHandler and how I can fix it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-RequestLogger-tp4665676p4666278.html Sent from the Users forum mail

Re: Custom RequestLogger

2014-06-16 Thread Martin Grigorov
If the request handler is not ILoggableRequestHandler then there is no data to log ... BufferedResponseRequestHandler is a special handler that just writes the buffered response (a String) to the web response after redirect. It doesn't do any processing Martin Grigorov Wicket Training and Consult

Re: How to get PageClass from BufferedResponseRequestHandler ? And how to "link" related requests?

2014-06-16 Thread Hendy Irawan
It seems ignoring BufferedResponseRequestHandler is harder than I thought because IResponseFilter is only called during BufferedResponseRequestHandler, not during the preceding IPageRequestHandler. What is the best way to achieve my goal? i.e. during the begin and end of IPageRequestHandler I need