Re: FileUpload not working

2014-08-06 Thread Martin Grigorov
Hi,

What exactly doesn't work ?
You code is incomplete and it is hard to say what could be a problem.
Have you consulted with the file upload examples ?
https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.java#L136

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Aug 7, 2014 at 2:24 AM, mohallo  wrote:

> Hi ,
>   I am having an issue with the FileUpload component .
> What I am doing is capturing the content of a screen which looks like a xsl
> file and trying to upload this content to a file .
> I store the screen data in a byte array .
>
> Should this work .Thanks for your help .
>
> here is the main part of the code .
>
> uploadedFile is of type FileUpload
>
>
>
> AbstractResourceStreamWriter rstream = new AbstractResourceStreamWriter() {
>
> OutputStream outputStream = null;
>
> public void write(OutputStream output) throws IOException {
> try {
> outputStream = output;
>
> newFile = new File(fileNamePath);
>
> if (newFile.exists()) {
> newFile.delete();
> newFile.createNewFile();
> }
>
> outputStream = new
> FileOutputStream(newFile);
> outputStream.write(xlsOutput); //
> xlsOutput byte[]
>
> uploadedFile.writeTo(newFile);
>
> } catch (Exception ex) {
> logger.error("Unable to write to the file
> specified in the search path
> while trying to Export the File");
> StringWriter stringWriter = new
> StringWriter();
> ex.printStackTrace(new
> PrintWriter(stringWriter));
> logger.error(stringWriter.toString());
> }
> }
>
> @Override
> public void close() {
> try {
> outputStream.close();
> uploadedFile.closeStreams();
> } catch (IOException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> }
>
> };
>
>
> RequestCycle.get().scheduleRequestHandlerAfterCurrent(new
> ResourceStreamRequestHandler(rstream, null));
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/FileUpload-not-working-tp4666920.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
>
>


FileUpload not working

2014-08-06 Thread mohallo
Hi ,
  I am having an issue with the FileUpload component .
What I am doing is capturing the content of a screen which looks like a xsl
file and trying to upload this content to a file .
I store the screen data in a byte array .

Should this work .Thanks for your help .

here is the main part of the code .

uploadedFile is of type FileUpload



AbstractResourceStreamWriter rstream = new AbstractResourceStreamWriter() {

OutputStream outputStream = null;

public void write(OutputStream output) throws IOException {
try {
outputStream = output;

newFile = new File(fileNamePath);

if (newFile.exists()) {
newFile.delete();
newFile.createNewFile();
}

outputStream = new FileOutputStream(newFile);
outputStream.write(xlsOutput); // xlsOutput 
byte[]

uploadedFile.writeTo(newFile);

} catch (Exception ex) {
logger.error("Unable to write to the file 
specified in the search path
while trying to Export the File");
StringWriter stringWriter = new StringWriter();
ex.printStackTrace(new 
PrintWriter(stringWriter));
logger.error(stringWriter.toString());
}
}

@Override
public void close() {
try {
outputStream.close();
uploadedFile.closeStreams();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

};


RequestCycle.get().scheduleRequestHandlerAfterCurrent(new
ResourceStreamRequestHandler(rstream, null));

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FileUpload-not-working-tp4666920.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.findSubmittingButton throws exceptions

2014-08-06 Thread Martin Grigorov
Hi,

I am not sure but I guess it is like this to prevent calling onSubmit() on
it.
Form processing uses findSubmittingButton() to find the button and call its
#onSubmit() before calling form.onSubmit().

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Aug 6, 2014 at 4:13 PM, Jack Berg  wrote:

> Hi!
>
> Form.findSubmittingButton
>
> is documented as
>
> Gets the IFormSubmittingComponent which submitted this form.
> Returns:
> The component which submitted this form, or null if the processing was not
> triggered by a registered IFormSubmittingComponent
>
> But if the button is not visible or enabled, an exception is thrown. I did
> not expect that. Why is it implemented like that?
>
> I have a textfield which required attribute depends on the button that is
> pressed. So I have overridden isRequired and call findSubmittingButton form
> the new method.
> The page also has an onConfigure method where I hide that same Button if it
> has been pressed.
>
> So I always get a "Submit Button btn (path=f:btn) is not visible"
> exception.
> I have resorted to calling my own findSubmittingButton utility method. But
> I
> wonder why is such a check necessary.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Form-findSubmittingButton-throws-exceptions-tp4666910.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: Unit testing FormComponentPanel

2014-08-06 Thread lucast
Thank you, Martin.

I am able to successfully call 



but when I try to get hold of the object above in order to use it in
tester.executeAjaxEvent I get null value.

These are the calls I have used:


I'm terribly sorry but what would be the function I need to execute to get
hold of the object I need to pass to tester.executeAjaxEvent(), please?

Thanks, once more,
Lucas



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Unit-testing-FormComponentPanel-tp4666900p4666914.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: Can I process a POST with simple non-Json parameters using wicket-restannotations

2014-08-06 Thread Bruce Lombardi
Thanks for pointing me in the right direction, I will look at the links you
sent.
I don't care if I get a post of a get, but it I know it will be a post with
an order confirmation.

- Bruce

-Original Message-
From: Paul Bors [mailto:p...@bors.ws] 
Sent: Wednesday, August 06, 2014 12:38 AM
To: users@wicket.apache.org
Subject: Re: Can I process a POST with simple non-Json parameters using
wicket-restannotations

I think you might be looking for the query parameters of the
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/request
/Request.html class.

See Chapter 9 of the Wicket Guide:
http://wicket.apache.org/guide/guide/single.html#requestProcessing

You can get to the Request from any of the Components on your page. Thus you
can have a bookmarkable URL and in the constructor of that page you can grab
the request and extract the parameters from it.

Do you care if the request is POST or GET?
Wicket abstracts that out for you via the query parameters.

~ Thank you,
   Paul Bors

On Aug 5, 2014, at 5:07 PM, Bruce Lombardi  wrote:

> Hi,
> 
> 
> 
> I have successfully setup a restful service using Wicketstuff 
> wicket-restannotation that accepts Json parameters. But I need to 
> write something in Wicket that will accepts a post of an order 
> confirmation from another source that does not use Json. Is there a 
> simple way of doing that with wicket-restannotations? I only see how 
> to process Json. I know that Json standard for a restful service, so I 
> may have to do something else, like using @MountPath and pulling the
parameters out of the request.
> 
> 
> 
> Bruce
> 



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



Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Thank you so much.


On Wed, Aug 6, 2014 at 2:09 PM, Martin Grigorov 
wrote:

> See https://issues.apache.org/jira/browse/WICKET-5012
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
>
> On Wed, Aug 6, 2014 at 2:47 PM, Jayakrishnan R  wrote:
>
> > Hi Martin,
> >
> > Thank you for the suggestions. I will check that.
> >
> > I also have a question on securing such mounted resources when there is a
> > valid session. Is there a way to secure access to resources mounted like
> > this ?
> >
> > I want such images to be accessible only for valid users when signed on.
> >
> >
> >
> >
> > On Wed, Aug 6, 2014 at 12:07 PM, Martin Grigorov 
> > wrote:
> >
> > > Check the Dev tools Network tab.
> > > Sometimes there is a clue what triggered a request.
> > > You can disable the image resource reference (i.e. comment out the
> code)
> > > and  see whether the problem is still there.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > >
> > > On Wed, Aug 6, 2014 at 12:36 PM, Jayakrishnan R 
> > wrote:
> > >
> > > > Hi Martin,
> > > >
> > > > The URL I currently get ( by printing in the log)  is
> > > > *
> > > >
> > >
> >
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> > > > <
> > > >
> > >
> >
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> > > > >*
> > > >
> > > > But When I check in the browser console , I get the following.
> > > > Failed to load resource: the server responded with a status of 404
> (Not
> > > > Found)
> > > > * https://localhost:8181/testApp/wicket/bookmarkable/undefined
> > > > *
> > > >
> > > > How should I go about resolving it ?
> > > >
> > > >
> > > > On Wed, Aug 6, 2014 at 11:23 AM, Martin Grigorov <
> mgrigo...@apache.org
> > >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Check in the browser dev tools console which url exactly fails with
> > > error
> > > > > 500.
> > > > > BookmarkableMapper is used for urls like :
> > > > > /wicket/bookmarkable/com.example.MyPage
> > > > > Your image urls should be: /images/someName.jpg
> > > > >
> > > > > Martin Grigorov
> > > > > Wicket Training and Consulting
> > > > > https://twitter.com/mtgrigorov
> > > > >
> > > > >
> > > > > On Wed, Aug 6, 2014 at 12:17 PM, Jayakrishnan R  >
> > > > wrote:
> > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I am trying out the Mounting dynamic resources as explained in
>  the
> > > > > > following article.
> > > > > >
> > > > > > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> > > > > >
> > > > > > in the App.java , I have the following.
> > > > > >  mountResource("/images/${imgName}", new
> ImageResourceReference());
> > > > > >
> > > > > > The image resource class is exactly the same.
> > > > > >
> > > > > > I can see that a nice URL  is getting generated. But getting the
> > > > > following
> > > > > > exception on the page and the URL not working.
> > > > > >
> > > > > > WARN  WicketObjects : Could not resolve class [undefined]
> > > > > >  java.lang.ClassNotFoundException: undefined
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
> > > > > > at java.lang.Class.forName0(Native Method)
> > > > > > at java.lang.Class.forName(Class.java:247)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:107)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:138)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:269)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:141)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:184)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
> > > > > > at
>

Form.findSubmittingButton throws exceptions

2014-08-06 Thread Jack Berg
Hi!

Form.findSubmittingButton

is documented as

Gets the IFormSubmittingComponent which submitted this form.
Returns:
The component which submitted this form, or null if the processing was not
triggered by a registered IFormSubmittingComponent

But if the button is not visible or enabled, an exception is thrown. I did
not expect that. Why is it implemented like that?

I have a textfield which required attribute depends on the button that is
pressed. So I have overridden isRequired and call findSubmittingButton form
the new method.
The page also has an onConfigure method where I hide that same Button if it
has been pressed. 

So I always get a "Submit Button btn (path=f:btn) is not visible" exception.
I have resorted to calling my own findSubmittingButton utility method. But I
wonder why is such a check necessary.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-findSubmittingButton-throws-exceptions-tp4666910.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: Unit testing FormComponentPanel

2014-08-06 Thread Martin Grigorov
Hi,

FormTester#setValue() just sets parameters in the request.
So you can do something similar:

tester.getRequest().add/setParameter(formComponent.getInputName(),
"someValue");
// ... more params
tester.executeAjaxEvent(someComponent, "eventName")

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Aug 6, 2014 at 1:38 PM, lucast  wrote:

> Dear Forum,
> I am trying to unit test a FormComponentPanel. I would like to populate its
> fields and test some ajax behaviour as well.
>
> Is it possible to test a FormComponentPanel and its behaviour in isolation
> and not as part of a form?
>
> How can this be achieved? For testing a form, I call
>
>
> Is there a similar call I can use to test FormComponentPanel?
>
> Thanks in advance,
> Lucas
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Unit-testing-FormComponentPanel-tp4666900.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: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Martin Grigorov
See https://issues.apache.org/jira/browse/WICKET-5012

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Aug 6, 2014 at 2:47 PM, Jayakrishnan R  wrote:

> Hi Martin,
>
> Thank you for the suggestions. I will check that.
>
> I also have a question on securing such mounted resources when there is a
> valid session. Is there a way to secure access to resources mounted like
> this ?
>
> I want such images to be accessible only for valid users when signed on.
>
>
>
>
> On Wed, Aug 6, 2014 at 12:07 PM, Martin Grigorov 
> wrote:
>
> > Check the Dev tools Network tab.
> > Sometimes there is a clue what triggered a request.
> > You can disable the image resource reference (i.e. comment out the code)
> > and  see whether the problem is still there.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> >
> > On Wed, Aug 6, 2014 at 12:36 PM, Jayakrishnan R 
> wrote:
> >
> > > Hi Martin,
> > >
> > > The URL I currently get ( by printing in the log)  is
> > > *
> > >
> >
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> > > <
> > >
> >
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> > > >*
> > >
> > > But When I check in the browser console , I get the following.
> > > Failed to load resource: the server responded with a status of 404 (Not
> > > Found)
> > > * https://localhost:8181/testApp/wicket/bookmarkable/undefined
> > > *
> > >
> > > How should I go about resolving it ?
> > >
> > >
> > > On Wed, Aug 6, 2014 at 11:23 AM, Martin Grigorov  >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > Check in the browser dev tools console which url exactly fails with
> > error
> > > > 500.
> > > > BookmarkableMapper is used for urls like :
> > > > /wicket/bookmarkable/com.example.MyPage
> > > > Your image urls should be: /images/someName.jpg
> > > >
> > > > Martin Grigorov
> > > > Wicket Training and Consulting
> > > > https://twitter.com/mtgrigorov
> > > >
> > > >
> > > > On Wed, Aug 6, 2014 at 12:17 PM, Jayakrishnan R 
> > > wrote:
> > > >
> > > > > Hi All,
> > > > >
> > > > > I am trying out the Mounting dynamic resources as explained in  the
> > > > > following article.
> > > > >
> > > > > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> > > > >
> > > > > in the App.java , I have the following.
> > > > >  mountResource("/images/${imgName}", new ImageResourceReference());
> > > > >
> > > > > The image resource class is exactly the same.
> > > > >
> > > > > I can see that a nice URL  is getting generated. But getting the
> > > > following
> > > > > exception on the page and the URL not working.
> > > > >
> > > > > WARN  WicketObjects : Could not resolve class [undefined]
> > > > >  java.lang.ClassNotFoundException: undefined
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
> > > > > at java.lang.Class.forName0(Native Method)
> > > > > at java.lang.Class.forName(Class.java:247)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:107)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:138)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:269)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:141)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:184)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catal

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Hi Martin,

Thank you for the suggestions. I will check that.

I also have a question on securing such mounted resources when there is a
valid session. Is there a way to secure access to resources mounted like
this ?

I want such images to be accessible only for valid users when signed on.




On Wed, Aug 6, 2014 at 12:07 PM, Martin Grigorov 
wrote:

> Check the Dev tools Network tab.
> Sometimes there is a clue what triggered a request.
> You can disable the image resource reference (i.e. comment out the code)
> and  see whether the problem is still there.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
>
> On Wed, Aug 6, 2014 at 12:36 PM, Jayakrishnan R  wrote:
>
> > Hi Martin,
> >
> > The URL I currently get ( by printing in the log)  is
> > *
> >
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> > <
> >
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> > >*
> >
> > But When I check in the browser console , I get the following.
> > Failed to load resource: the server responded with a status of 404 (Not
> > Found)
> > * https://localhost:8181/testApp/wicket/bookmarkable/undefined
> > *
> >
> > How should I go about resolving it ?
> >
> >
> > On Wed, Aug 6, 2014 at 11:23 AM, Martin Grigorov 
> > wrote:
> >
> > > Hi,
> > >
> > > Check in the browser dev tools console which url exactly fails with
> error
> > > 500.
> > > BookmarkableMapper is used for urls like :
> > > /wicket/bookmarkable/com.example.MyPage
> > > Your image urls should be: /images/someName.jpg
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > >
> > > On Wed, Aug 6, 2014 at 12:17 PM, Jayakrishnan R 
> > wrote:
> > >
> > > > Hi All,
> > > >
> > > > I am trying out the Mounting dynamic resources as explained in  the
> > > > following article.
> > > >
> > > > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> > > >
> > > > in the App.java , I have the following.
> > > >  mountResource("/images/${imgName}", new ImageResourceReference());
> > > >
> > > > The image resource class is exactly the same.
> > > >
> > > > I can see that a nice URL  is getting generated. But getting the
> > > following
> > > > exception on the page and the URL not working.
> > > >
> > > > WARN  WicketObjects : Could not resolve class [undefined]
> > > >  java.lang.ClassNotFoundException: undefined
> > > > at
> > > >
> > > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
> > > > at
> > > >
> > > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:247)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:107)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:138)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:269)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:141)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:184)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardPipeline.doInvoke(

Unit testing FormComponentPanel

2014-08-06 Thread lucast
Dear Forum,
I am trying to unit test a FormComponentPanel. I would like to populate its
fields and test some ajax behaviour as well.

Is it possible to test a FormComponentPanel and its behaviour in isolation
and not as part of a form?

How can this be achieved? For testing a form, I call


Is there a similar call I can use to test FormComponentPanel?

Thanks in advance,
Lucas

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Unit-testing-FormComponentPanel-tp4666900.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: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Martin Grigorov
Check the Dev tools Network tab.
Sometimes there is a clue what triggered a request.
You can disable the image resource reference (i.e. comment out the code)
and  see whether the problem is still there.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Aug 6, 2014 at 12:36 PM, Jayakrishnan R  wrote:

> Hi Martin,
>
> The URL I currently get ( by printing in the log)  is
> *
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> <
> https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
> >*
>
> But When I check in the browser console , I get the following.
> Failed to load resource: the server responded with a status of 404 (Not
> Found)
> * https://localhost:8181/testApp/wicket/bookmarkable/undefined
> *
>
> How should I go about resolving it ?
>
>
> On Wed, Aug 6, 2014 at 11:23 AM, Martin Grigorov 
> wrote:
>
> > Hi,
> >
> > Check in the browser dev tools console which url exactly fails with error
> > 500.
> > BookmarkableMapper is used for urls like :
> > /wicket/bookmarkable/com.example.MyPage
> > Your image urls should be: /images/someName.jpg
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> >
> > On Wed, Aug 6, 2014 at 12:17 PM, Jayakrishnan R 
> wrote:
> >
> > > Hi All,
> > >
> > > I am trying out the Mounting dynamic resources as explained in  the
> > > following article.
> > >
> > > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> > >
> > > in the App.java , I have the following.
> > >  mountResource("/images/${imgName}", new ImageResourceReference());
> > >
> > > The image resource class is exactly the same.
> > >
> > > I can see that a nice URL  is getting generated. But getting the
> > following
> > > exception on the page and the URL not working.
> > >
> > > WARN  WicketObjects : Could not resolve class [undefined]
> > >  java.lang.ClassNotFoundException: undefined
> > > at
> > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
> > > at
> > >
> > >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:247)
> > > at
> > >
> > >
> >
> org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:107)
> > > at
> > >
> > >
> >
> org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
> > > at
> > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:138)
> > > at
> > >
> > >
> >
> org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
> > > at
> > >
> > >
> >
> org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:269)
> > > at
> > >
> > >
> >
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:141)
> > > at
> > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:184)
> > > at
> > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
> > > at
> > >
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
> > > at
> > >
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
> > > at
> > >
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> > > at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> > > at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> > > at
> > >
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> > > at
> > >
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> > > at
> > >
> > >
> >
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> > > at
> > >
> > >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
> > > at
> > >
> > >
> >
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
> > > at
> > >
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
> > > at
> > >
> > >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > > at
> 

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Hi Martin,

The URL I currently get ( by printing in the log)  is
*https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg
*

But When I check in the browser console , I get the following.
Failed to load resource: the server responded with a status of 404 (Not
Found)
* https://localhost:8181/testApp/wicket/bookmarkable/undefined
*

How should I go about resolving it ?


On Wed, Aug 6, 2014 at 11:23 AM, Martin Grigorov 
wrote:

> Hi,
>
> Check in the browser dev tools console which url exactly fails with error
> 500.
> BookmarkableMapper is used for urls like :
> /wicket/bookmarkable/com.example.MyPage
> Your image urls should be: /images/someName.jpg
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
>
> On Wed, Aug 6, 2014 at 12:17 PM, Jayakrishnan R  wrote:
>
> > Hi All,
> >
> > I am trying out the Mounting dynamic resources as explained in  the
> > following article.
> >
> > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> >
> > in the App.java , I have the following.
> >  mountResource("/images/${imgName}", new ImageResourceReference());
> >
> > The image resource class is exactly the same.
> >
> > I can see that a nice URL  is getting generated. But getting the
> following
> > exception on the page and the URL not working.
> >
> > WARN  WicketObjects : Could not resolve class [undefined]
> >  java.lang.ClassNotFoundException: undefined
> > at
> >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
> > at
> >
> >
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:247)
> > at
> >
> >
> org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:107)
> > at
> >
> >
> org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
> > at
> >
> >
> org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:138)
> > at
> >
> >
> org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
> > at
> >
> >
> org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:269)
> > at
> >
> >
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:141)
> > at
> >
> >
> org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:184)
> > at
> >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
> > at
> >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
> > at
> >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
> > at
> >
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> > at
> >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> > at
> >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> > at
> >
> >
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> > at
> >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
> > at
> >
> >
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
> > at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
> > at
> >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
> > at
> >
> >
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> > at
> > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
> > at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
> > at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
> > at
> >
> >
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> > at
> >
> >
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> > at
> >
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> > at
> >
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> > at
> > com.sun.grizzly.http.HttpProtocolChai

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Martin Grigorov
Hi,

Check in the browser dev tools console which url exactly fails with error
500.
BookmarkableMapper is used for urls like :
/wicket/bookmarkable/com.example.MyPage
Your image urls should be: /images/someName.jpg

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Aug 6, 2014 at 12:17 PM, Jayakrishnan R  wrote:

> Hi All,
>
> I am trying out the Mounting dynamic resources as explained in  the
> following article.
>
> http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
>
> in the App.java , I have the following.
>  mountResource("/images/${imgName}", new ImageResourceReference());
>
> The image resource class is exactly the same.
>
> I can see that a nice URL  is getting generated. But getting the following
> exception on the page and the URL not working.
>
> WARN  WicketObjects : Could not resolve class [undefined]
>  java.lang.ClassNotFoundException: undefined
> at
>
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
> at
>
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at
>
> org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:107)
> at
>
> org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
> at
>
> org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:138)
> at
>
> org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
> at
>
> org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:269)
> at
>
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:141)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:184)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
> at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
> at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
>
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
> at
>
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
> at
>
> com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
> at
>
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
> at
>
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> at
>
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
>
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
>
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
>
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
>
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:662)
>
>
>
>
> --
> Thanks & Regards
> JK
>


Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Hi All,

I am trying out the Mounting dynamic resources as explained in  the
following article.

http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/

in the App.java , I have the following.
 mountResource("/images/${imgName}", new ImageResourceReference());

The image resource class is exactly the same.

I can see that a nice URL  is getting generated. But getting the following
exception on the page and the URL not working.

WARN  WicketObjects : Could not resolve class [undefined]
 java.lang.ClassNotFoundException: undefined
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:107)
at
org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
at
org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:138)
at
org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
at
org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:269)
at
org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:141)
at
org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:184)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at
com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)




-- 
Thanks & Regards
JK


Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread brushmate
I have done a terrible mistake... I have been working on an old file that
actually was not invoked in the current version of the webapp. Everything is
working as expected. I am so sorry for wasting your time :-( Thank you very
much for trying to help me anyways. Once again sorry!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-is-not-working-tp4666877p4666892.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: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread Martin Grigorov
Do you override AjaxFormComponentUpdatingBehavior#renderHead() without
calling super.renderHead() ?
You pasted an excerpt of the panel, so I should ask .. :-)

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Aug 6, 2014 at 9:22 AM, brushmate  wrote:

> No I do not use any Decorator. I have another page where I am using an
> AjaxSelfUpdatingTimerBehavior which updates the contents of the page
> periodically. All components of this page are in the same project. The page
> is working and updates its contents every 2 seconds. Also the
>