Re: How to change the properties file location in Wicket

2012-05-21 Thread Martin Grigorov
See org.apache.wicket.resource.loader.BundleStringResourceLoader

Or create your own impl of
org.apache.wicket.resource.loader.IStringResourceLoader and register
it with :
app.getStringResourceLoaders().add(yours)

On Sun, May 20, 2012 at 6:47 PM, oliver.stef ova...@gmail.com wrote:
 Hi Martin,

 Thank you for your help, but my problem is that i need to put my properties
 file in folder that is not next to the HTML and Java files.

 i need to change the look-up algorithm of wicket.

 Any body know how to do it?

 Thanks!

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4647014.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: TableComponentAsXlsHandler Problem

2012-05-21 Thread khanshan
@ Mr. Ziemelis thank you it works.
sorry for late reply, 
thanks for everyone!!


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TableComponentAsXlsHandler-Problem-tp4616754p4647807.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



wicket 6 setting response page with page object and session expired error

2012-05-21 Thread kamiseq
hej,
I have a strange error.

I have stateless page (A) with form on it. form contains email input.
inside form's onSelect handler I create page (B) and pass email to its
constructor.
  Application nextPage = new
Application(getModelObject().getEmail());// form model object
  setResponsePage(nextPage);

page B is also mounted so someone can access page by passing email as parameter.
  super(parameters);
  StringValue email = parameters.get(email);
  if (email.isEmpty())
throw new RuntimeException(ups no email);

page B displays users data if available.
page B creates LoadableDetachableModel and uses email as id, I also
pass Injected service object by giuce to the model
page B has link to go to page C
add(new LinkVoid(accept)
{
@Override
public void onClick() {
SignIn signInPage = new SignIn(model); // model is created on
the begging of the constructor
setResponsePage(signInPage);
}
});

pages B and C are state-full.
now when I go from page A and pass page B object and then call the
link which creates page C object then I get page expired message.
BUT if I go directly to page B using mounted url and then I click on
link I am redirected to page C without a problem.

maybe I miss something obvious here but I cannot explain it why this
is happening.
there is no errors in log from wicket, the SignIn (C) page is created
as expected.

thanks for any hint.

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__

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



Re: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Could you provide a quickstart that demonstrates this behavior?

   -Tom


On 21.05.2012 at 09:56 kamiseq wrote:

 hej,
 I have a strange error.
 
 I have stateless page (A) with form on it. form contains email input.
 inside form's onSelect handler I create page (B) and pass email to its
 constructor.
  Application nextPage = new
 Application(getModelObject().getEmail());// form model object
  setResponsePage(nextPage);
 
 page B is also mounted so someone can access page by passing email as 
 parameter.
  super(parameters);
  StringValue email = parameters.get(email);
  if (email.isEmpty())
throw new RuntimeException(ups no email);
 
 page B displays users data if available.
 page B creates LoadableDetachableModel and uses email as id, I also
 pass Injected service object by giuce to the model
 page B has link to go to page C
 add(new LinkVoid(accept)
 {
@Override
public void onClick() {
SignIn signInPage = new SignIn(model); // model is created on
 the begging of the constructor
setResponsePage(signInPage);
}
 });
 
 pages B and C are state-full.
 now when I go from page A and pass page B object and then call the
 link which creates page C object then I get page expired message.
 BUT if I go directly to page B using mounted url and then I click on
 link I am redirected to page C without a problem.
 
 maybe I miss something obvious here but I cannot explain it why this
 is happening.
 there is no errors in log from wicket, the SignIn (C) page is created
 as expected.
 
 thanks for any hint.
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.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: Full month calendar

2012-05-21 Thread Sandor Feher
A bonus question. How can I  localize fullcalendar ? (I mean day names and so
one..).

Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4647866.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: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread kamiseq
yes,
can I send it directly to you in case userlist rejects attachment?

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


On 21 May 2012 10:01, Thomas Götz t...@decoded.de wrote:
 Could you provide a quickstart that demonstrates this behavior?

   -Tom


 On 21.05.2012 at 09:56 kamiseq wrote:

 hej,
 I have a strange error.

 I have stateless page (A) with form on it. form contains email input.
 inside form's onSelect handler I create page (B) and pass email to its
 constructor.
  Application nextPage = new
 Application(getModelObject().getEmail());// form model object
  setResponsePage(nextPage);

 page B is also mounted so someone can access page by passing email as 
 parameter.
  super(parameters);
  StringValue email = parameters.get(email);
  if (email.isEmpty())
    throw new RuntimeException(ups no email);

 page B displays users data if available.
 page B creates LoadableDetachableModel and uses email as id, I also
 pass Injected service object by giuce to the model
 page B has link to go to page C
 add(new LinkVoid(accept)
 {
    @Override
    public void onClick() {
        SignIn signInPage = new SignIn(model); // model is created on
 the begging of the constructor
        setResponsePage(signInPage);
    }
 });

 pages B and C are state-full.
 now when I go from page A and pass page B object and then call the
 link which creates page C object then I get page expired message.
 BUT if I go directly to page B using mounted url and then I click on
 link I am redirected to page C without a problem.

 maybe I miss something obvious here but I cannot explain it why this
 is happening.
 there is no errors in log from wicket, the SignIn (C) page is created
 as expected.

 thanks for any hint.

 pozdrawiam
 Paweł Kamiński

 kami...@gmail.com
 pkaminski@gmail.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


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



Re: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Either this or upload it somewhere and post the link here.

   -Tom


On 21.05.2012 at 16:25 kamiseq wrote:

 yes,
 can I send it directly to you in case userlist rejects attachment?
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.com
 __


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



Re: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread kamiseq
ok,
yep right, give me some time so I try to recreate it from scratch

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


On 21 May 2012 16:48, Thomas Götz t...@decoded.de wrote:
 Either this or upload it somewhere and post the link here.

   -Tom


 On 21.05.2012 at 16:25 kamiseq wrote:

 yes,
 can I send it directly to you in case userlist rejects attachment?

 pozdrawiam
 Paweł Kamiński

 kami...@gmail.com
 pkaminski@gmail.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



AJAX-swappable bookmarkable unversioned tabs

2012-05-21 Thread Alec Swan
Hello,

We are starting a new project where we need to implement a simple menu
using Wicket 1.4.17. In my previous project I implemented tabbing
using ajax-swappable panels. I really liked the smooth tab transition
you get with this approach. The two things I disliked were versionable
pages and that tabs were not bookmarkable.

Is it possible to have the ajax-swappable bookmarkable tabs without
versioned pages?

Thanks,

Alec

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



How to redirect to a page from an AJAX request?

2012-05-21 Thread Alec Swan
Hello,

I use AjaxSubmitLink to submit a form that has captcha. I refresh
captcha by adding it to ajax request. However, when the user
successfully submits the form I want to redirect the user to a
different page. I tried setResponsePage and throw new
RestartResponseException in AjaxSubmitLink#onSubmit, but they seem to
have no effect.

How can I redirect the user to a page from an ajax request?

Thanks,

Alec

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



Re: How to redirect to a page from an AJAX request?

2012-05-21 Thread Melinda Dweer
IFAIK setResponsePage(Page.class) should work: at least I remember using it
successfully on an AJAX request cycle to redirect to a different page.

Regards,

Melinda

On Tue, May 22, 2012 at 2:41 AM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 I use AjaxSubmitLink to submit a form that has captcha. I refresh
 captcha by adding it to ajax request. However, when the user
 successfully submits the form I want to redirect the user to a
 different page. I tried setResponsePage and throw new
 RestartResponseException in AjaxSubmitLink#onSubmit, but they seem to
 have no effect.

 How can I redirect the user to a page from an ajax request?

 Thanks,

 Alec

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