stripping of wicket tags in html

2011-05-03 Thread madaan18
hey, When we add markup for some label.. we do as but what wicket does is it converts it into HTML like value I think it does this using write output function of class Component tag.. I just wanna know the complete flow it does to convert it into pure HTML.. Please help me for the same..

Re: stripping of wicket tags in html

2011-05-03 Thread Ernesto Reinaldo Barreiro
I can´t see neither what you add nor what you get:-) Regards, Ernesto On Tue, May 3, 2011 at 8:55 AM, madaan18 madaa...@gmail.com wrote: hey, When we add markup for some label.. we do as but what wicket does is it converts it into HTML like value I think it does this using write output

Re: stripping of wicket tags in html

2011-05-03 Thread madaan18
thanks Ernesto for reply.. I just wanna know how wicket handles the HTML files... HTML does not know about wicket id .. so it converts it to HTML .. how wicket does this??? please help.. Thanks in advance... -- View this message in context:

Re: stripping of wicket tags in html

2011-05-03 Thread Ernesto Reinaldo Barreiro
Maybe as a user you might be more interested in reading some tutorials and get a general idea on how to use the framework. E.g. 1-https://cwiki.apache.org/WICKET/newuserguide.html 2-https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html Not sure if this is what you want? Regards, Ernesto On

Serve Json in request and response

2011-05-03 Thread Wicket
Hi, When serving json I have built a WebService that responds with json and takes json as request. @WebMethod @WebResult( name = JsonResponse ) public String onJsonRequest( @WebParam( name = JsonRequest ) String jsonRequest ); I was wondering if I could handle this entirely in Wicket?

Re: Monitoring progress of business layer service in presentation layer

2011-05-03 Thread Mathias Nilsson
// Service public class Service implements IService{ public ListAnyObject getObjects(){ // return list from dao or whatever } } // wicket class public MyPage extends WebPage{ @SpringBean( name = service ) private IService service; public MyPage(){ // in some

override writeoutput

2011-05-03 Thread madaan18
hey, I want to override the function writeoutput in ComponentTag.class but it is final.. is there some way that i can override it.. ~~ thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/override-writeoutput-tp3492086p3492086.html Sent from the Users

Re: override writeoutput

2011-05-03 Thread Martin Grigorov
Even if you override it then someone will have to instantiate your class ... What's the problem ? On Tue, May 3, 2011 at 11:40 AM, madaan18 madaa...@gmail.com wrote: hey, I want to override the function writeoutput in ComponentTag.class but it is final.. is there some way that i can override

Re: override writeoutput

2011-05-03 Thread madaan18
this function actually strips the wicket tag.. and i want to add div also after stripping wicket tag.. so i need to override this function.. so how can i do this??? Please help.. -- Thanks in advance -- View this message in context:

Re: Serve Json in request and response

2011-05-03 Thread Maarten Billemont
On 03 May 2011, at 10:20, Wicket wrote: Hi, When serving json I have built a WebService that responds with json and takes json as request. @WebMethod @WebResult( name = JsonResponse ) public String onJsonRequest( @WebParam( name = JsonRequest ) String jsonRequest ); I was

Re: override writeoutput

2011-05-03 Thread Martin Grigorov
On Tue, May 3, 2011 at 12:17 PM, madaan18 madaa...@gmail.com wrote: this function actually strips the wicket tag.. and i want to add div also after stripping wicket tag.. getResourceSettings().setStripWicketTags(false) + use Behavior#afterRender() to write anything after a component so i

Re: Serve Json in request and response

2011-05-03 Thread Mathias Nilsson
Ok, And if I should use a servlet. Where do I go from there? I can use dopost and doget but how to handle Json request? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492203.html Sent from the Users forum mailing list

RE: Serve Json in request and response

2011-05-03 Thread Wilhelmsen Tor Iver
I can use dopost and doget but how to handle Json request? JSON is just data representation, there are some Java libraries out there to deal with JSON formatted data (e.g. Jettison at http://jettison.codehaus.org/ or JSON.simple at http://code.google.com/p/json-simple/ ). But if you want to

Re: Serve Json in request and response

2011-05-03 Thread jcgarciam
Just adding another json library (http://code.google.com/p/google-gson/) As all saids, wicket brings nothing to the mix. Use a servlet+json library to parse the request. On Tue, May 3, 2011 at 8:22 AM, Wilhelmsen Tor Iver [via Apache Wicket] ml-node+3492239-1708321586-65...@n4.nabble.com wrote:

Questions about Different Context Paths based on page inheritance

2011-05-03 Thread Eric Gulatee
All, We have developed an application which spans both authenticated and unauthenticated users. We have secured the authenticated part of the application using wicket auth roles. This would be good enough, however, we need to get SSO working between two different application servers their

form in a modal-window form.findSubmittingButton() return's null

2011-05-03 Thread fachhoch
form inside a modal window when submitted, return's null for form.findSubmittingButton() I have several buttons in this form and I call different validations based on submitbutton , so I need to find which button was clicked. -- View this message in context:

1.5 RC3 Ajax random timeouts

2011-05-03 Thread nino martinez wael
Hi I am experience random timeouts during ajax requests(I have a 2 s heartbeat going), no errors in logs or anything.. This it both with rc3 and rc2.. We had 10 browser windows opnened on the machine.. But are now trying with only one browser to see what happens during the night.. Has anybody

Ajax DataTable navigation links

2011-05-03 Thread Bertrand Guay-Paquet
Hello, I am using an AjaxFallbackDefaultDataTable and getting the AccessDeniedPage when clicking too fast on navigation links. This happens for example when the displayed page is the second to last and 2 clicks are quickly made on the forwardnavigation link before the Ajax response is

Re: Serve Json in request and response

2011-05-03 Thread robert.mcguinness
maybe this will help: http://code.google.com/p/wicket-rest/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492685.html Sent from the Users forum mailing list archive at Nabble.com.

Re: form in a modal-window form.findSubmittingButton() return's null

2011-05-03 Thread Martin Grigorov
modal window is wrapped in another form try with form.getRootForm().findSubmittingButton() maybe it will help ... On Tue, May 3, 2011 at 3:45 PM, fachhoch fachh...@gmail.com wrote: form inside a modal window when submitted, return's null  for form.findSubmittingButton() I have several buttons

Re: Monitoring progress of business layer service in presentation layer

2011-05-03 Thread Pedro Santos
I Mathias, you can add an AbstractAjaxTimerBehavior in the page plus an component presenting the service status. e.g. page{ add(new Label(id, new abstractreadyonlymodel(){ getobject(){ return service.getStatus(); } })); add(new AbstractAjaxTimerBehavior (){ onTimer(target){

Re: 1.5 RC3 Ajax random timeouts

2011-05-03 Thread nino martinez wael
BTW are running on tomcat 7 using the filterfix for non us characters.. 2011/5/3 nino martinez wael nino.martinez.w...@gmail.com: Hi I am experience random timeouts during ajax requests(I have a 2 s heartbeat going), no errors in logs or anything..  This it both with rc3 and rc2.. We had 10

Modal window update once opened

2011-05-03 Thread jeross
I am new to Wicket and am having difficulty figuring out how to update a modal window without closing it and reopening it. I've seen similar posts but have not found the answer as of yet. We are using Wicket 1.4.7. The scenario is that I have a ModalWindow component that is part of form. The

Re: 1.5 RC3 Ajax random timeouts

2011-05-03 Thread nino martinez wael
now testing here on our demo server using ff chrome and IE8.. One thing springs to mind, we tested on the customers server which has IE6 installed, i'll get ff installed tomorrow and retest the scenario.. 2011/5/3 nino martinez wael nino.martinez.w...@gmail.com: BTW are running on tomcat 7 using

Re: Modal window update once opened

2011-05-03 Thread Isammoc OFF
In onPostProcessTarget : timerTarget.add(modalWindow) You have to add components you are refreshing to the AjaxRequestTarget instance. Don't forget to set markupId to true for modalWindow modalWindow.setMarkupId(true); when you add it to the parent component. 2011/5/3 jeross

Re: Running Wicket under WebSphere

2011-05-03 Thread Bruno Borges
You must enable the *com.ibm.ws.webcontainer.invokefilterscompatibility*property. Check this webpage: http://greatwebguy.com/programming/java/urlrewritefilter-servlet-filter-problem-in-websphere-6105-and-greater/ Hope this helps. Cheers, *Bruno Borges* www.brunoborges.com.br +55 21 76727099

Initializing new thread in WicketApplication.init()

2011-05-03 Thread Henrique Boregio
Hi, I have a very simple thread that sleeps most of the time. Every hour, it goes to the database to check what new stuff has been added, and generates a summary of that. This thread is started in my WicketApplication.init() method. The problem is that the run() method of this thread, needs

Re: Initializing new thread in WicketApplication.init()

2011-05-03 Thread Martin Grigorov
While creating the thread pass the value of getServletContext().getContextPath() as constructor parameter. It wont change later during the app lifetime. On Tue, May 3, 2011 at 10:07 PM, Henrique Boregio hbore...@gmail.com wrote: Hi, I have a very simple thread that sleeps most of the time. Every

Re: Modal window update once opened

2011-05-03 Thread jeross
Thank you for your quick reply. I had the modalWindow.setOutputMarkupId(true) as well as on the message label on the modalWindow. I tried the timerTarget.addComponent(modalWindow) in the onPostProcessTarget. No luck. When I look at the rendered HTML, I see two different content area divs

Re: Initializing new thread in WicketApplication.init()

2011-05-03 Thread Henrique Boregio
Thanks Martin...had to do some refactoring but your solution worked great. On Tue, May 3, 2011 at 5:07 PM, Henrique Boregio hbore...@gmail.com wrote: Hi, I have a very simple thread that sleeps most of the time. Every hour, it goes to the database to check what new stuff has been added, and

Re: Initializing new thread in WicketApplication.init()

2011-05-03 Thread Clint Checketts
Also be sure to kill your thread in the application's onDestroy() otherwise old threads will hang around if you do redeploys, but don't bounce the JVM. You probably already thought of that. My scars are still fresh... -Clint On Tue, May 3, 2011 at 3:37 PM, Henrique Boregio hbore...@gmail.com

Re: Initializing new thread in WicketApplication.init()

2011-05-03 Thread Henrique Boregio
Actually..no, I hadn't thought about that. Read up on how to kill threads and just finished implementing it. Thanks! Also be sure to kill your thread in the application's onDestroy() otherwise old threads will hang around if you do redeploys, but don't bounce the JVM. You probably already