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

Further after knowing i want to add a div container outside the span
tag..Please tell me how to do that

--
Thanks in advance

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491865.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

 Further after knowing i want to add a div container outside the span
 tag..Please tell me how to do that

 --
 Thanks in advance

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491865.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491901.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 Tue, May 3, 2011 at 9:24 AM, madaan18 madaa...@gmail.com wrote:
 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: 
 http://apache-wicket.1842946.n4.nabble.com/stripping-of-wicket-tags-in-html-tp3491865p3491901.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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? Have a 
WebPage that parsed the JsonRequets and returned JsonResponse.

I know how to return Json reponse from the page using application/json.

But how will I handle the request? The 
myhomepage.com/json?request={some json code} is not looking very good.


/ Mathias


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 component
ListAnyObject objs = service.getObjects();
for( AnyObject obj : objs ){
   // Update progressbar or whatever
}
  }
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Monitoring-progress-of-business-layer-service-in-presentation-layer-tp3490683p3491996.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 it..

 ~~
 thanks in advance

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/override-writeoutput-tp3492086p3492086.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/override-writeoutput-tp3492086p3492127.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 wondering if I could handle this entirely in Wicket? Have a WebPage 
 that parsed the JsonRequets and returned JsonResponse.
 I know how to return Json reponse from the page using application/json.
 
 But how will I handle the request? The myhomepage.com/json?request={some 
 json code} is not looking very good.

Sounds like you want a servlet instead.  Why do you want to do this in Wicket?  
Wicket gives you nothing that you could use for handling or generating JSON.  
Wicket is not the tool for the job.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 need to override this function.. so how can i do this???
 Please help..

 --
 Thanks in advance

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/override-writeoutput-tp3492086p3492127.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 use the Jersey libraries directly they of course deal with 
Java-JSON mapping out of the box. If you somehow need to share info between 
Wicket and the REST services you should be able to put that into the HTTP 
session which would be shared between them.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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:

  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 use the Jersey libraries directly they of course deal
 with Java-JSON mapping out of the box. If you somehow need to share info
 between Wicket and the REST services you should be able to put that into the
 HTTP session which would be shared between them.

 - Tor Iver

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3492239i=0by-user=t
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3492239i=1by-user=t



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492239.html
  To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492287.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 respective applications..

Both servers have been configured to accept SSO tokens, however in order to
do this, you need to protect the URLs.
This is achieved by using security contraints in the web.xml.  (There is
another mechanisms but this is the most standard/straightforward)

We'd like to be able to have different CONTEXT ROOT / CONTEXT PATH depending
on the page type.
This context path should remain even after
CryptedUrlWebRequestCodingStrategy is applied.
In addition, some of our pages are bookmarkable, other are not (Steps in a
wizard).

So what we'd like would be something like this:

ROOT/protected/
ROOT/unprotected/

or

ROOT/(Unprotected stuff here)
ROOT/protected/


Here are the options as I see them.

-2 Wicket Applications both with different context roots.

Pros:Easy
Cons:Unsure.
Depending on packaging, may be able to achieve session sharing.
Protected pages would point to unprotected pages in different
application.  Needs exploration to impact.


-Create a custom IRequestCodingStrategy which prepends a different
contextRoot depending on page class type
However, we are currently using CryptedUrlWebRequestCodingStrategy, so
would need to create a custom
CryptedUrlWebRequestCodingStrategy which 'keeps' our context root
unencrypted.


-I looked at using a custom
IRequestTargetUrlCodingStrategy/IMountableRequestTargetUrlCodingStrategy
Along the lines of MixedParamUrlCodingStrategy.

However, this would seemingly mean mounting the pages, which won't work
in all cases (Or so I believe)
since some of the pages shouldn't be bookmarkable

So, anyone have any experiences they would be willing to share?  Any
thoughts or suggestions?

Cheers,
Eric Gulatee


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: 
http://apache-wicket.1842946.n4.nabble.com/form-in-a-modal-window-form-findSubmittingButton-return-s-null-tp3492502p3492502.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 seen something similar?


regards Nino

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 received.


The first click is handled correctly: it updates the contents and 
disables the forward link.
The second click tries to access a now-disabled link and redirects to 
the AccessDeniedPage.


This does not happen with the DefaultDataTable (non-ajax) because all 
links are relative to the current page id.


Am I missing some configuration? Is this a problem common to all ajax 
links which disable themselves after a click?


Regards,
Bertrand

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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: 
 http://apache-wicket.1842946.n4.nabble.com/form-in-a-modal-window-form-findSubmittingButton-return-s-null-tp3492502p3492502.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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){
  target.add(label);
  if(service.ended()){this.sto();}
 }
});

On Tue, May 3, 2011 at 5:27 AM, Mathias Nilsson
wicket.program...@gmail.com wrote:

 // 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 component
    ListAnyObject objs = service.getObjects();
    for( AnyObject obj : objs ){
       // Update progressbar or whatever
    }
  }
 }

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Monitoring-progress-of-business-layer-service-in-presentation-layer-tp3490683p3491996.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




--
Pedro Henrique Oliveira dos Santos

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 browser windows opnened on the machine.. But
 are now trying with only one browser to see what happens during the
 night..

 Has anybody seen something similar?


 regards Nino


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
ModalWindow is acting as a progress dialog and displays the step and some
information in the title and a message field.  On the parent form that
contains the modal window, I have an AjaxSelfUpdatingTimerBehavior with a
simple state machine.  I want to keep the modal window open and change the
title and message text as things progress in the state machine.  I've tried
a number of things, but I cannot get the text or title to update on the
modal window.  The basic code that I have is:

/* HTML for ModalWindow */
wicket:panel

table width=100%
tr
td/td
/tr
/table
/wicket:panel

/* the modal window is already displayed when the timer fires the first time
*/
timerBehavior = new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(REFRESH_RATE))
{
private static final long serialVersionUID =
4618003750684232624L;

@Override
protected void
onPostProcessTarget(AjaxRequestTarget timerTarget)
{
if (state == DeviceProgressEnum.PREPARE)
{ 
/* lines deleted */
state = DeviceProgressEnum.PREPARE_WAIT;
modalWindow.setMessage(Please wait
while we prepare...);
modalWindow.setTitle(Step 1 of 3);
modalWindow.show(timerTarget);
   /* also tried: 
timerTarget.add(modalWindow);
}
/* lines deleted */
} 

How can I update a modal window once it has been opened? What am I doing
wrong?

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-window-update-once-opened-tp3493014p3493014.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 browser windows opnened on the machine.. But
 are now trying with only one browser to see what happens during the
 night..

 Has anybody seen something similar?


 regards Nino



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 jr...@greenenergycorp.com:
 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
 ModalWindow is acting as a progress dialog and displays the step and some
 information in the title and a message field.  On the parent form that
 contains the modal window, I have an AjaxSelfUpdatingTimerBehavior with a
 simple state machine.  I want to keep the modal window open and change the
 title and message text as things progress in the state machine.  I've tried
 a number of things, but I cannot get the text or title to update on the
 modal window.  The basic code that I have is:

 /* HTML for ModalWindow */
 wicket:panel

    table width=100%
        tr
            td/td
        /tr
    /table
 /wicket:panel

 /* the modal window is already displayed when the timer fires the first time
 */
                        timerBehavior = new
 AjaxSelfUpdatingTimerBehavior(Duration.seconds(REFRESH_RATE))
                        {
                            private static final long serialVersionUID =
 4618003750684232624L;

                            @Override
                            protected void
 onPostProcessTarget(AjaxRequestTarget timerTarget)
                            {
                                if (state == DeviceProgressEnum.PREPARE)
                                {
                                    /* lines deleted */
                                    state = DeviceProgressEnum.PREPARE_WAIT;
                                    modalWindow.setMessage(Please wait
 while we prepare...);
                                    modalWindow.setTitle(Step 1 of 3);
                                    modalWindow.show(timerTarget);
                                   /* also tried:
 timerTarget.add(modalWindow);
                                }
                                    /* lines deleted */
                        }

 How can I update a modal window once it has been opened? What am I doing
 wrong?

 Thanks!

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Modal-window-update-once-opened-tp3493014p3493014.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 access to
the following method
WebApplication.get().getServletContext().getContextPath() but when
it tries to access this method, the following error occurs:

org.apache.wicket.WicketRuntimeException: There is no application
attached to current thread Thread

Any suggestions? Many thanks!

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
 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 access to
 the following method
 WebApplication.get().getServletContext().getContextPath() but when
 it tries to access this method, the following error occurs:

 org.apache.wicket.WicketRuntimeException: There is no application
 attached to current thread Thread

 Any suggestions? Many thanks!

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
for the modal window and both have the same id.  One is rendered as part of
the parent form with display:none, and the other is rendered in a bunch of
divs for the modal window outside of the parent form.  The content of the
first div with the display:none is changed with the new message label.  The
content of the content div in the modal window, which is displayed, is not
changed.  Hmm.
   Is there something special about refreshing the content of the
modalWindow versus other components?
  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-window-update-once-opened-tp3493014p3493484.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 access to
 the following method
 WebApplication.get().getServletContext().getContextPath() but when
 it tries to access this method, the following error occurs:

 org.apache.wicket.WicketRuntimeException: There is no application
 attached to current thread Thread

 Any suggestions? Many thanks!


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

 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 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 access to
  the following method
  WebApplication.get().getServletContext().getContextPath() but when
  it tries to access this method, the following error occurs:
 
  org.apache.wicket.WicketRuntimeException: There is no application
  attached to current thread Thread
 
  Any suggestions? Many thanks!
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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 thought of that. My scars are still fresh...

-Clint

On Tue, May 3, 2011 at 3:37 PM, Henrique Boregio hbor...@gmail.com wrote:

Thanks Martin...had to do some refactoring but your solution worked great.

On Tue, May 3, 2011 at 5:07 PM, Henrique Boregio hbor...@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 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 access to
the following method
WebApplication.get().getServletContext().getContextPath() but when
it tries to access this method, the following error occurs:

org.apache.wicket.WicketRuntimeException: There is no application
attached to current thread Thread

Any suggestions? Many thanks!

-
To unsubscribe, e-mail: user...@wicket.apache.org
For additional commands, e-mail: user...@wicket.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org