Re: BookmarkablePageLink Parameter order

2008-04-10 Thread Johan Compagner
PageParam is a map so the order is currently not remembered
Please make a jira issue for this

On 4/10/08, Takeshi Matsuba [EMAIL PROTECTED] wrote:
 Hi all

 Can I control parameter order?
 I have been creating Blog software and using it.
 I noticed parameter order changed. (sorry I don't know what change is
 trigger)

 At Application class ,WebPage class is mounted.

 mountBookmarkablePage(/page, Hoo.class);

 At WebPage class, BookmarkablePageLink created.

 PageParameters param = new PageParameters();
 param.put(param1, string1);
 param.put(param2, string2);
 BookmarkablePageLink link = new BookmarkablePageLink(link, Hoo.class,
 param);

 I expect that URL like this.
 /page/param1/string1/param2/string2

 But actual like this.
 /page/param2/string2/param1/string1

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-10 Thread Erik van Oosten
Jeremy,

A workaround is to make the session timeout way lower and add some keep
alive javascript to each page. For example as described by Eelco
(http://chillenious.wordpress.com/2007/06/19/how-to-create-a-text-area-with-a-heart-beat-with-wicket/).

Regards,
 Erik.


Jeremy Thomerson wrote:
 Yes - quite large.  I'm hoping someone has an idea to overcome this.  There
 were definitely not 4500+ unique users on the site at the time.

 There were two copies of the same app deployed on that server at the time -
 one was a staging environment, not being indexed, which is probably where
 the extra ten wicket sessions came from.

 Any ideas?

 Jeremy


 On 4/9/08, Johan Compagner [EMAIL PROTECTED] wrote:
   
 4585 tomcat sessions?

 thats quite large if may say that..
 and even more 10 wicket sessions that tomcat sessions
 Do you have multiply apps deployed on that server?

 if a search engine doesnt send a cookie back then the urls should be
 encoded with jsessionid
 and we get the session from that..

 johan

 

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



fail to check HttpServletRequest.isSecure under tomcat

2008-04-10 Thread ywtsang

i have configured the tomcat (6.0.13) to use SSL

when i access my app under https and try to check the
HttpServletRequest.isSecure (the http servlet request is retrieved from
RequestCycle.get()), it always returns false
(i have already configured the tomcat connector to returns true for the
secure attribute)

i don't know if it relates to wicket, but want to see if i can get any hint
for this problem if somebody here is successful in using wicket+tomcat for
this case
-- 
View this message in context: 
http://www.nabble.com/fail-to-check-HttpServletRequest.isSecure-under-tomcat-tp16603545p16603545.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Stable 1.3.x ?

2008-04-10 Thread Wouter Huijnink

Hi committers,

We need a 1.3 jar in which the stack overflow issue has been fixed and 
that is as stable as 1.3 can be right now. As discussed at the wicket 
meetup, 1.3.4 isn't there yet,  so this requires a custom build from the 
1.3.x branch. Do we checkout the current state of 1.3.x, or would you 
suggest a specific version of the branche?


Regards,
Wouter

--
Wouter Huijnink
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stable 1.3.x ?

2008-04-10 Thread Johan Compagner
You can checkout the wicket1.3.x branch
Or wait a few hours so that we have bamboo completely configured
correctly so that you can get there 1.3 snapshots

On 4/10/08, Wouter Huijnink [EMAIL PROTECTED] wrote:
 Hi committers,

 We need a 1.3 jar in which the stack overflow issue has been fixed and
 that is as stable as 1.3 can be right now. As discussed at the wicket
 meetup, 1.3.4 isn't there yet,  so this requires a custom build from the
 1.3.x branch. Do we checkout the current state of 1.3.x, or would you
 suggest a specific version of the branche?

 Regards,
 Wouter

 --
 Wouter Huijnink
 Func. Internet Integration
 W http://www.func.nl
 T +31 20 423
 F +31 20 4223500


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Busy indicator in a Tree

2008-04-10 Thread Laurent N.

Hello,

I'm using an EditableTreeTable and I would like to have a busy indicator
when expanding a tree node. How should I do? I read some threads talking
about busy indicator but I couldn't find one which solve my problem.
Thanks for your attention.


-- 
View this message in context: 
http://www.nabble.com/Busy-indicator-in-a-Tree-tp16604249p16604249.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FileUploadField and Image

2008-04-10 Thread Fabien D.

Hi,

I would like to do a special behavior.

I have a input for FileUploadField, when the user choices an image in his
local disk, this file is automatically uploaded (in a temp folder of tomcat)
and rendered whitout click on submit...

How can i do this if it's possible?


Thank you in advance
-- 
View this message in context: 
http://www.nabble.com/FileUploadField-and-Image-tp16604942p16604942.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to get html source

2008-04-10 Thread freak182

Hello,
My problem is how to get the html source of the page with the constructor
having a parameter?...i see an example of getting the html source of the
page with the constructor having no parameter that i think is easy. 

Thanks a lot...Cheers!
-- 
View this message in context: 
http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Busy indicator in a Tree

2008-04-10 Thread Martijn Dashorst
override the link factory and return an IndicatingAjaxLink instead

On 4/10/08, Laurent N. [EMAIL PROTECTED] wrote:

  Hello,

  I'm using an EditableTreeTable and I would like to have a busy indicator
  when expanding a tree node. How should I do? I read some threads talking
  about busy indicator but I couldn't find one which solve my problem.
  Thanks for your attention.



  --
  View this message in context: 
 http://www.nabble.com/Busy-indicator-in-a-Tree-tp16604249p16604249.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hibernate with wicket

2008-04-10 Thread tbt

Hi

I'm using a static block to save resources so that hibernate does not have
to initialize a session each time a transaction needs to be done.



static SessionFactory sessionFactory;

static 
{
try 
{
Configuration hibernateConfig  = new Configuration();
URL cfg = 
HibernateSession.class.getResource(hibernate.cfg.xml); 
sessionFactory = 
hibernateConfig.configure(cfg).buildSessionFactory();
} 
catch (Exception e) 
{
e.printStackTrace();
}
}


public Session getHibernateSession()
{
return sessionFactory.openSession();
}

...

Is this method a correct way to integrate hibernate with wicket and also
saving resources at the same time. (If I create an instance of a
SessionFactory, the application runs very slowly)

Thanks
tbt
-- 
View this message in context: 
http://www.nabble.com/Hibernate-with-wicket-tp16607352p16607352.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hibernate with wicket

2008-04-10 Thread James Carman
There should be only one SessionFactory created during your
application's lifecycle (assuming you're using only one database).

On Thu, Apr 10, 2008 at 6:31 AM, tbt [EMAIL PROTECTED] wrote:

  Hi

  I'm using a static block to save resources so that hibernate does not have
  to initialize a session each time a transaction needs to be done.

  

 static SessionFactory sessionFactory;

 static
 {
 try
 {
 Configuration hibernateConfig  = new Configuration();
 URL cfg = 
 HibernateSession.class.getResource(hibernate.cfg.xml);
 sessionFactory = 
 hibernateConfig.configure(cfg).buildSessionFactory();
 }
 catch (Exception e)
 {
 e.printStackTrace();
 }
 }


 public Session getHibernateSession()
 {
 return sessionFactory.openSession();
 }

  ...

  Is this method a correct way to integrate hibernate with wicket and also
  saving resources at the same time. (If I create an instance of a
  SessionFactory, the application runs very slowly)

  Thanks
  tbt
  --
  View this message in context: 
 http://www.nabble.com/Hibernate-with-wicket-tp16607352p16607352.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to get html source

2008-04-10 Thread Maurice Marrink
What do you mean get the html source of a page?
Wicket already fetches the html source for your page if it is located
in the same package and has the same name as your page. You do not
need it.
The constructor is irrelevant for this process.

Maurice

On Thu, Apr 10, 2008 at 10:51 AM, freak182 [EMAIL PROTECTED] wrote:

  Hello,
  My problem is how to get the html source of the page with the constructor
  having a parameter?...i see an example of getting the html source of the
  page with the constructor having no parameter that i think is easy.

  Thanks a lot...Cheers!
  --
  View this message in context: 
 http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hibernate with wicket

2008-04-10 Thread adrienleroy

you can take a look at the databinder project : http://databinder.net/


tbt wrote:
 
 Hi
 
 I'm using a static block to save resources so that hibernate does not have
 to initialize a session each time a transaction needs to be done.
 
 
 
 static SessionFactory sessionFactory;
   
   static 
   {
   try 
   {
   Configuration hibernateConfig  = new Configuration();
   URL cfg = 
 HibernateSession.class.getResource(hibernate.cfg.xml); 
   sessionFactory = 
 hibernateConfig.configure(cfg).buildSessionFactory();
   } 
   catch (Exception e) 
   {
   e.printStackTrace();
   }
   }
 
 
 public Session getHibernateSession()
   {
   return sessionFactory.openSession();
   }
 
 ...
 
 Is this method a correct way to integrate hibernate with wicket and also
 saving resources at the same time. (If I create an instance of a
 SessionFactory, the application runs very slowly)
 
 Thanks
 tbt
 

-- 
View this message in context: 
http://www.nabble.com/Hibernate-with-wicket-tp16607352p16607760.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Busy indicator in a Tree

2008-04-10 Thread Laurent N.

I override the newLink method of the DefaultAbstractTree class to return
IndicatingAjaxLink and it works.
Thanks.
-- 
View this message in context: 
http://www.nabble.com/Busy-indicator-in-a-Tree-tp16604249p16608586.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FileUploadField and Image

2008-04-10 Thread Jeremy Levy
Use javascript to submit the form.

On Thu, Apr 10, 2008 at 4:38 AM, Fabien D. [EMAIL PROTECTED]
wrote:


 Hi,

 I would like to do a special behavior.

 I have a input for FileUploadField, when the user choices an image in his
 local disk, this file is automatically uploaded (in a temp folder of
 tomcat)
 and rendered whitout click on submit...

 How can i do this if it's possible?


 Thank you in advance
 --
 View this message in context:
 http://www.nabble.com/FileUploadField-and-Image-tp16604942p16604942.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Hibernate with wicket

2008-04-10 Thread tbt

Hi

Can anyone tell me the list of jar files that are needed to run databinder.
I am having trouble running the baseball example.

Thanks
tbt


adrienleroy wrote:
 
 you can take a look at the databinder project : http://databinder.net/
 
 
 tbt wrote:
 
 Hi
 
 I'm using a static block to save resources so that hibernate does not
 have to initialize a session each time a transaction needs to be done.
 
 
 
 static SessionFactory sessionFactory;
  
  static 
  {
  try 
  {
  Configuration hibernateConfig  = new Configuration();
  URL cfg = 
 HibernateSession.class.getResource(hibernate.cfg.xml); 
  sessionFactory = 
 hibernateConfig.configure(cfg).buildSessionFactory();
  } 
  catch (Exception e) 
  {
  e.printStackTrace();
  }
  }
 
 
 public Session getHibernateSession()
  {
  return sessionFactory.openSession();
  }
 
 ...
 
 Is this method a correct way to integrate hibernate with wicket and also
 saving resources at the same time. (If I create an instance of a
 SessionFactory, the application runs very slowly)
 
 Thanks
 tbt
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Hibernate-with-wicket-tp16607352p16608597.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hibernate with wicket

2008-04-10 Thread Thomas Kappler
Hi,

you should ask databinder-related questions in its forum at
http://databinder.net/forum/viewforum.php?f=1st=0sk=tsd=dstart=0.

As to your questions, are you not using maven?  If not, you could
still have a look at the Maven pom.xml file of the baseball project to
figure out the dependencies, but you have to follow the transitive
dependencies.

Thomas


On Thu, Apr 10, 2008 at 3:37 PM, tbt [EMAIL PROTECTED] wrote:

  Hi

  Can anyone tell me the list of jar files that are needed to run databinder.
  I am having trouble running the baseball example.

  Thanks
  tbt


  adrienleroy wrote:
  
   you can take a look at the databinder project : http://databinder.net/
  
  
   tbt wrote:
  
   Hi
  
   I'm using a static block to save resources so that hibernate does not
   have to initialize a session each time a transaction needs to be done.
  
   
  
   static SessionFactory sessionFactory;
  
static
{
try
{
Configuration hibernateConfig  = new Configuration();
URL cfg = 
 HibernateSession.class.getResource(hibernate.cfg.xml);
sessionFactory = 
 hibernateConfig.configure(cfg).buildSessionFactory();
}
catch (Exception e)
{
e.printStackTrace();
}
}
  
  
   public Session getHibernateSession()
{
return sessionFactory.openSession();
}
  
   
 ...
  
   Is this method a correct way to integrate hibernate with wicket and also
   saving resources at the same time. (If I create an instance of a
   SessionFactory, the application runs very slowly)
  
   Thanks
   tbt
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/Hibernate-with-wicket-tp16607352p16608597.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



wicket login problem

2008-04-10 Thread Neo Anderson
I follow the tutorial 
http://www.developer.com/java/web/article.php/10935_3673576_1 to learn how to 
use wicket. And I want to practise not to embed the Form inside another class. 
So I create a class called LoginForm.java and move the code to there (as 
follow).
public class LoginForm extends Form {
  public LoginForm(String id) {
super(id);
  }
  @Override
  public void onSubmit() {
Object o = get(packageName.to.Login);
System.out.println(object:+o.getClass().getSimpleName());
(Login (o)).getUserId();
(Login (o)).getPassword();
 
 }
}
However, after submit the form, I get the a NullPointerException error because 
the object o is null. How can I obtain the component of Login? Or how can I use 
the method of Login?

Thanks in advice,




  ___ 
Yahoo! For Good helps you make a difference  

http://uk.promotions.yahoo.com/forgood/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



System requirements for running wicket app in production

2008-04-10 Thread Oliver Lieven

Hi all,

are there any suggestions or experiences on the (minimum) system/hardware
requirements for running a Wicket based application on a productive system?
Would e.g. a Virtual Server as offered by most hosting providers be powerful
enough to run a Java/Tomcat/Wicket/database application?

I know this cannot be answered in general since it depends on the
application itself (size of app, programmer skills), number of concurrent
users, database, ... and as always: the more - the better. 

But maybe someone already running a Wicket app in production (e.g. from one
of the Sites using Wicket  -
http://cwiki.apache.org/WICKET/sites-using-wicket.html)) can share
information and experiences on this...  (sorry if I've overseen information
on this topic in the docs, Wiki or forum).

Thanks in advance,
Oliver


-- 
View this message in context: 
http://www.nabble.com/System-requirements-for-running-wicket-app-in-production-tp16608729p16608729.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket login problem

2008-04-10 Thread Ryan Gravener
Take a look at http://wicketstuff.org/wicket13/forminput/ and
http://cwiki.apache.org/WICKET/working-with-wicket-models.html

In your login form I would have private member variables userId and password

public class LoginForm extends Form {

private String userId;

private String password;

public LoginForm(String id) {
super(id);
setModel(new CompoundPropertyModel(this));
add(new TextField(userId));
add(new PasswordTextField(password));
}

public void onSubmit() {
System.out.println(userId);
}

//Make sure to add getters and setters
}



On 10/04/2008, Neo Anderson [EMAIL PROTECTED] wrote:
 I follow the tutorial
http://www.developer.com/java/web/article.php/10935_3673576_1 to learn how
to use wicket. And I want to practise not to embed the Form inside another
class. So I create a class called LoginForm.java and move the code to there
(as follow).
  public class LoginForm extends Form {
   public LoginForm(String id) {
 super(id);
   }
   @Override
   public void onSubmit() {
 Object o = get(packageName.to.Login);
 System.out.println(object:+o.getClass().getSimpleName());
 (Login (o)).getUserId();
 (Login (o)).getPassword();

   }
  }
  However, after submit the form, I get the a NullPointerException error
because the object o is null. How can I obtain the component of Login? Or
how can I use the method of Login?

  Thanks in advice,




   ___
  Yahoo! For Good helps you make a difference

  http://uk.promotions.yahoo.com/forgood/

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Ryan Gravener
http://ryangravener.com


Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-10 Thread Jeremy Thomerson
Thanks for the tip.  I came up with an idea last night that I would like to
get input on.  I created an HttpSessionListener that will track all created
sessions.  It has a thread that will run every few minutes, and if a session
does not belong to a signed-in user, it will invalidate it after only ten
minutes of inactivity.  If the session belongs to a signed-in user, it will
give them much longer to be inactive.

Here's the code: http://pastebin.com/m712c7ff0
In the group's opinion, will this work?  It seems like a hack to me, but I
have to do something.

Jeremy

On Thu, Apr 10, 2008 at 1:56 AM, Erik van Oosten [EMAIL PROTECTED]
wrote:

 Jeremy,

 A workaround is to make the session timeout way lower and add some keep
 alive javascript to each page. For example as described by Eelco
 (
 http://chillenious.wordpress.com/2007/06/19/how-to-create-a-text-area-with-a-heart-beat-with-wicket/
 ).

 Regards,
 Erik.


 Jeremy Thomerson wrote:
  Yes - quite large.  I'm hoping someone has an idea to overcome this.
  There
  were definitely not 4500+ unique users on the site at the time.
 
  There were two copies of the same app deployed on that server at the
 time -
  one was a staging environment, not being indexed, which is probably
 where
  the extra ten wicket sessions came from.
 
  Any ideas?
 
  Jeremy
 
 
  On 4/9/08, Johan Compagner [EMAIL PROTECTED] wrote:
 
  4585 tomcat sessions?
 
  thats quite large if may say that..
  and even more 10 wicket sessions that tomcat sessions
  Do you have multiply apps deployed on that server?
 
  if a search engine doesnt send a cookie back then the urls should be
  encoded with jsessionid
  and we get the session from that..
 
  johan
 
 

 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: wicket login problem

2008-04-10 Thread lars vonk
I don't think getters and setters are needed anymore it also support
field access.

On Thu, Apr 10, 2008 at 4:18 PM, Ryan Gravener [EMAIL PROTECTED]
wrote:

 Take a look at http://wicketstuff.org/wicket13/forminput/ and
 http://cwiki.apache.org/WICKET/working-with-wicket-models.html

 In your login form I would have private member variables userId and
 password

 public class LoginForm extends Form {

 private String userId;

 private String password;

 public LoginForm(String id) {
 super(id);
 setModel(new CompoundPropertyModel(this));
 add(new TextField(userId));
 add(new PasswordTextField(password));
 }

 public void onSubmit() {
 System.out.println(userId);
 }

 //Make sure to add getters and setters
 }



 On 10/04/2008, Neo Anderson [EMAIL PROTECTED] wrote:
  I follow the tutorial
 http://www.developer.com/java/web/article.php/10935_3673576_1 to learn how
 to use wicket. And I want to practise not to embed the Form inside another
 class. So I create a class called LoginForm.java and move the code to
 there
 (as follow).
   public class LoginForm extends Form {
public LoginForm(String id) {
  super(id);
}
@Override
public void onSubmit() {
  Object o = get(packageName.to.Login);
  System.out.println(object:+o.getClass().getSimpleName());
  (Login (o)).getUserId();
  (Login (o)).getPassword();
 
}
   }
   However, after submit the form, I get the a NullPointerException error
 because the object o is null. How can I obtain the component of Login? Or
 how can I use the method of Login?
 
   Thanks in advice,
 
 
 
 
___
   Yahoo! For Good helps you make a difference
 
   http://uk.promotions.yahoo.com/forgood/
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Ryan Gravener
 http://ryangravener.com



Re: System requirements for running wicket app in production

2008-04-10 Thread Jeremy Levy
All of our hardware is virtualized.  It's allowed us to scale very quickly
and easily.  As for specific requirements it really depends on the volume
you expect.

If your going to run Apache, Tomcat, and your DB on the same machine I'd try
to have at least 512mb on a low volume site.

You may want to also come up with a plan that will allow you to scale
easily, for example put physically separating your layers will make it
easier in a hurry to scale them up if necessary.

J

On Thu, Apr 10, 2008 at 9:48 AM, Oliver Lieven [EMAIL PROTECTED]
wrote:


 Hi all,

 are there any suggestions or experiences on the (minimum) system/hardware
 requirements for running a Wicket based application on a productive
 system?
 Would e.g. a Virtual Server as offered by most hosting providers be
 powerful
 enough to run a Java/Tomcat/Wicket/database application?

 I know this cannot be answered in general since it depends on the
 application itself (size of app, programmer skills), number of concurrent
 users, database, ... and as always: the more - the better.

 But maybe someone already running a Wicket app in production (e.g. from
 one
 of the Sites using Wicket  -
 http://cwiki.apache.org/WICKET/sites-using-wicket.html)) can share
 information and experiences on this...  (sorry if I've overseen
 information
 on this topic in the docs, Wiki or forum).

 Thanks in advance,
 Oliver


 --
 View this message in context:
 http://www.nabble.com/System-requirements-for-running-wicket-app-in-production-tp16608729p16608729.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




IBM Developerworks article comparing Wicket and Tapestry

2008-04-10 Thread cwilkes

http://www.ibm.com/developerworks/java/library/os-tapestrywicket/index.html?ca=drs-

If there's one take home message from it it is in the conclusion:

If you try to avoid using XML, or if you just like object-oriented
programming, Wicket could be your choice for day-to-day use. A richer
extensions library also gives a plus to Wicket.

-- 
View this message in context: 
http://www.nabble.com/IBM-Developerworks-article-comparing-Wicket-and-Tapestry-tp16609075p16609075.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Modal Window onSubmit prevent closing

2008-04-10 Thread Cristi Manole
Hello,

Is it possible to prevent the modal window from closing after regular
onSubmit?

My use case is that I have a modal window with a form where the user can
upload a picture. The submit is not Ajax because (i think) the form could
then not be multi-part. Being stuck with a regular onSubmit, i cannot use
.setDefaultFormProcessing(false)); (am I wrong?)

Whenever I press upload, it will ask me if I want to continue and if I press
yes, it will close my modal window. I want to stay on that page for as long
as the upload takes place.

Thanks,
Cristi Manole


Re: Hibernate with wicket

2008-04-10 Thread cwilkes


tbt wrote:
 
 Can anyone tell me the list of jar files that are needed to run
 databinder. I am having trouble running the baseball example.
 

Have you tried running mvn package?
-- 
View this message in context: 
http://www.nabble.com/Hibernate-with-wicket-tp16607352p16609086.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket as a template generator

2008-04-10 Thread Doug Leeper

I believe this is possible but want to be sure and be efficient about it.

Is it possible to create a Wicket Page and capture the generated HTML text
from with-in a Button.onSubmit()?  The page will not be displayed in the
current wicket app.  This page is only a 'template' to generate the HTML. 
The resultant HTML will not have any links back into a wicket based app.  It
will be served from another web server.

If so, what is the best way to do this?

TIA,

- Doug
-- 
View this message in context: 
http://www.nabble.com/Wicket-as-a-template-generator-tp16609133p16609133.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to pass an arbitrary javascript variable to onSubmit?

2008-04-10 Thread Vitaly Tsaplin
   Hi everyone,

   How to pass an arbitrary javascript variable to onSubmit?

   Vitaly

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Modal Window onSubmit prevent closing

2008-04-10 Thread Matej Knopp
You can use regular submit button only if you have a modal window with
page. If you have modal window with panel you are bound to using
ajaxbutton.

-Matej

On Thu, Apr 10, 2008 at 5:21 PM, Cristi Manole [EMAIL PROTECTED] wrote:
 Hello,

  Is it possible to prevent the modal window from closing after regular
  onSubmit?

  My use case is that I have a modal window with a form where the user can
  upload a picture. The submit is not Ajax because (i think) the form could
  then not be multi-part. Being stuck with a regular onSubmit, i cannot use
  .setDefaultFormProcessing(false)); (am I wrong?)

  Whenever I press upload, it will ask me if I want to continue and if I press
  yes, it will close my modal window. I want to stay on that page for as long
  as the upload takes place.

  Thanks,
  Cristi Manole




-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Modal Window onSubmit prevent closing

2008-04-10 Thread Cristi Manole
thank you for your quick response.

yes, i'm using it with panel.

there's no other way to achieve what i'm looking for?

Can I use ajax and keep the form multi-part? Can I get the file name without
the regular submit?

Tks,
Cristi Manole

On Thu, Apr 10, 2008 at 6:39 PM, Matej Knopp [EMAIL PROTECTED] wrote:

 You can use regular submit button only if you have a modal window with
 page. If you have modal window with panel you are bound to using
 ajaxbutton.

 -Matej

 On Thu, Apr 10, 2008 at 5:21 PM, Cristi Manole [EMAIL PROTECTED]
 wrote:
  Hello,
 
   Is it possible to prevent the modal window from closing after regular
   onSubmit?
 
   My use case is that I have a modal window with a form where the user
 can
   upload a picture. The submit is not Ajax because (i think) the form
 could
   then not be multi-part. Being stuck with a regular onSubmit, i cannot
 use
   .setDefaultFormProcessing(false)); (am I wrong?)
 
   Whenever I press upload, it will ask me if I want to continue and if I
 press
   yes, it will close my modal window. I want to stay on that page for as
 long
   as the upload takes place.
 
   Thanks,
   Cristi Manole
 



 --
 Resizable and reorderable grid components.
 http://www.inmethod.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: IBM Developerworks article comparing Wicket and Tapestry

2008-04-10 Thread Ryan Sonnek
very nice article.  well balanced and thoughtful.

The more I see the two compared I can't help but think, People are
*insane* if they choose tapestry over wicket.

On Thu, Apr 10, 2008 at 10:19 AM, cwilkes [EMAIL PROTECTED] wrote:

  
 http://www.ibm.com/developerworks/java/library/os-tapestrywicket/index.html?ca=drs-

  If there's one take home message from it it is in the conclusion:

  If you try to avoid using XML, or if you just like object-oriented
  programming, Wicket could be your choice for day-to-day use. A richer
  extensions library also gives a plus to Wicket.

  --
  View this message in context: 
 http://www.nabble.com/IBM-Developerworks-article-comparing-Wicket-and-Tapestry-tp16609075p16609075.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Facebook Wicket Integration

2008-04-10 Thread itai

Hi Lim, 

I ran into the exact same problem ...
Did you find a solution ??

Thanks, 
Itai.


TH Lim wrote:
 
 
 java.lang.NullPointerException
 at org.thlim.sample.wicket.Login.init(Login.java:23)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 ..
 
 I traced the code and found that the application didn't redirect as
 stipulated here,
 
 ...
 

-- 
View this message in context: 
http://www.nabble.com/Facebook-Wicket-Integration-tp16558748p16610330.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket as a template generator

2008-04-10 Thread Doug Leeper

I believe the following is the correct way (it works from my point of view). 
Are there any issues that I need to be aware of?  Is there a better way?

Thanks
- Doug

Note: this method is called in either a Link or Button:

public BaseTemplate extends WebPage {

public String generateHTML() {
StringResponse stringResponse = new StringResponse();
WebResponse originalResponse = (WebResponse) RequestCycle.get()
.getResponse();
try {
RequestCycle.get().setResponse(stringResponse);

this.render();
} finally {

RequestCycle.get().setResponse(originalResponse);
}
return stringResponse.toString();
}
}
-- 
View this message in context: 
http://www.nabble.com/Wicket-as-a-template-generator-tp16609133p16610499.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Autocomplete overriding events

2008-04-10 Thread Eric Velazquez

Hi.

I have a text field with an AjaxFormValidatingBehavior attached to it doing
some fancy validation, but then i realize i need that textfield to be an
AutocompleteTextField, but this autocomplete behavior overrides all the
event handlers including the onblur my fom validating behavior uses.
Currently the only way i can think of to workaround the problem was to
modify the wicket-autocomplete.js script to save the original event in the
beginning of the initialize function and manually execute the original event
at the end of the overriding onblur handler function. 
Is there any other cleaner solution i can use instead? cause i wish not to
have a custom modified version of wicket-extensions (by the way 1.3.2).

Cheers
-- 
View this message in context: 
http://www.nabble.com/Autocomplete-overriding-events-tp16610502p16610502.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket as a template generator

2008-04-10 Thread Jonathan Locke


you could generalize this by making a request cycle with a custom response
installed that does this.  if this is a totally separate application for
you, you could create an abstraction like TemplateGeneratingApplication
which does the fancy request cycle stuff behind the scenes.  in fact, this
seems like a nice wicket-stuff project someone out there might help you
with.

   jonathan


Doug Leeper wrote:
 
 I believe the following is the correct way (it works from my point of
 view).  Are there any issues that I need to be aware of?  Is there a
 better way?
 
 Thanks
 - Doug
 
 Note: this method is called in either a Link or Button:
 
 public BaseTemplate extends WebPage {
 
   public String generateHTML() {
   StringResponse stringResponse = new StringResponse();
   WebResponse originalResponse = (WebResponse) RequestCycle.get()
   .getResponse();
   try {
   RequestCycle.get().setResponse(stringResponse);
 
   this.render();
   } finally {
 
   RequestCycle.get().setResponse(originalResponse);
   }
   return stringResponse.toString();
   }
 }
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-as-a-template-generator-tp16609133p16610910.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setting Ajax throttle behavior on a modal's closed callback

2008-04-10 Thread Michael Mehrle
I'm getting some strange 'Channel busy - postponing' errors in my AJAX
in Safari. Read up on it and I think the solution might be to throttle
the AJAX call (especially since it works fine in Firefox).

 

The call I dug up is 'setThrottleDelay(...)' - but I only see that as
part of an AjaxBehavior. Is there a way to do this for a regular Ajax
button/window closed event?

 

Michael



WebRequest question

2008-04-10 Thread Martijn Lindhout
Hi all,

In de sample UploadApplication (1.3.3) I saw this:

protected WebRequest newWebRequest(HttpServletRequest servletRequest)
{
return new UploadWebRequest(servletRequest);
}

and I've seen this several other times for other request types. Putting this
code here makes EVERY request an UploadWebRequest.

My two questions:

1. is this necessary / bad?
2. what if I need different types of requests in my application?

Thanx,

-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


How to get wicket-SNAPSHOT?

2008-04-10 Thread Matthew Young
I want to use wicket-SNAPSHOT to give 1.4 a try.  But I get mvn error:

[INFO] snapshot org.apache.wicket:wicket:SNAPSHOT: checking for updates from
wicket-snapshots
Downloading:
http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.pom
Downloading:
http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.jar
[WARNING] An error occurred during dependency resolution.Failed to
retrieve org.apache.wicket:wicket-SNAPSHOT
Caused by: Unable to download the artifact from any repository


Here is my pom.xml

...
  repositories
repository
  idwicket-snapshots/id
  nameWicket snapshot repository/name
  urlhttp://wicketstuff.org/maven/repository//url
/repository
  /repositories



properties
wicket.versionSNAPSHOT/wicket.version
jetty.version6.1.7/jetty.version
/properties


What am I doing wrong?


Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-10 Thread Maarten Bosteels
Hi,


On Thu, Apr 10, 2008 at 6:40 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 httpsession already has a settimeout no? so once a user logs in you
 can set it to a longer period


We use that technique (not on a wicket app though) and it seems to work.

Something else to consider:  Do you want Google (and other bots) to crawl
your site ?
If not, you could install a robots.txt file.

http://www.google.com/support/webmasters/bin/answer.py?answer=83097

regards,
Maarten




 -igor


 On Thu, Apr 10, 2008 at 7:38 AM, Jeremy Thomerson
 [EMAIL PROTECTED] wrote:
  Thanks for the tip.  I came up with an idea last night that I would like
 to
   get input on.  I created an HttpSessionListener that will track all
 created
   sessions.  It has a thread that will run every few minutes, and if a
 session
   does not belong to a signed-in user, it will invalidate it after only
 ten
   minutes of inactivity.  If the session belongs to a signed-in user, it
 will
   give them much longer to be inactive.
 
   Here's the code: http://pastebin.com/m712c7ff0
   In the group's opinion, will this work?  It seems like a hack to me,
 but I
   have to do something.
 
   Jeremy
 
   On Thu, Apr 10, 2008 at 1:56 AM, Erik van Oosten [EMAIL PROTECTED]
   wrote:
 
 
 
Jeremy,
   
A workaround is to make the session timeout way lower and add some
 keep
alive javascript to each page. For example as described by Eelco
(
   
 http://chillenious.wordpress.com/2007/06/19/how-to-create-a-text-area-with-a-heart-beat-with-wicket/
).
   
Regards,
Erik.
   
   
Jeremy Thomerson wrote:
 Yes - quite large.  I'm hoping someone has an idea to overcome
 this.
 There
 were definitely not 4500+ unique users on the site at the time.

 There were two copies of the same app deployed on that server at
 the
time -
 one was a staging environment, not being indexed, which is probably
where
 the extra ten wicket sessions came from.

 Any ideas?

 Jeremy


 On 4/9/08, Johan Compagner [EMAIL PROTECTED] wrote:

 4585 tomcat sessions?

 thats quite large if may say that..
 and even more 10 wicket sessions that tomcat sessions
 Do you have multiply apps deployed on that server?

 if a search engine doesnt send a cookie back then the urls should
 be
 encoded with jsessionid
 and we get the session from that..

 johan


   
--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to get wicket-SNAPSHOT?

2008-04-10 Thread Ryan Gravener
wicket.version1.4-SNAPSHOT/wicket.version



On 10/04/2008, Matthew Young [EMAIL PROTECTED] wrote:

 I want to use wicket-SNAPSHOT to give 1.4 a try.  But I get mvn error:

 [INFO] snapshot org.apache.wicket:wicket:SNAPSHOT: checking for updates
 from
 wicket-snapshots
 Downloading:

 http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.pom
 Downloading:

 http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.jar
 [WARNING] An error occurred during dependency resolution.Failed to
 retrieve org.apache.wicket:wicket-SNAPSHOT
 Caused by: Unable to download the artifact from any repository


 Here is my pom.xml

 ...
   repositories
 repository
   idwicket-snapshots/id
   nameWicket snapshot repository/name
   urlhttp://wicketstuff.org/maven/repository//url
 /repository
   /repositories



 properties
 wicket.versionSNAPSHOT/wicket.version
 jetty.version6.1.7/jetty.version
 /properties


 What am I doing wrong?




-- 
Ryan Gravener
http://ryangravener.com


Re: WebRequest question

2008-04-10 Thread Igor Vaynberg
On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
  My two questions:

  1. is this necessary / bad?

no, it just adds some extra capability to the request

  2. what if I need different types of requests in my application?

i doubt you will. what usecases do you have? usecases for subclassing
request/response are few and far in between.

-igor



  Thanx,

  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-10 Thread Jeremy Thomerson
Thanks for the suggestion - I may just go that route instead of my own
listener.

As far as Google - yes!  We're a public community site (for hunting and
fishing in Texas), and almost all of our non-repeat traffic comes from
search engines, so we must be highly ranked.  We're #2 in Google for texas
hunting, which is huge since the only one above us is a Texas state
department - Texas Parks and Wildlife.

Thank you,
Jeremy

On Thu, Apr 10, 2008 at 2:50 PM, Maarten Bosteels [EMAIL PROTECTED]
wrote:

 Hi,


 On Thu, Apr 10, 2008 at 6:40 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  httpsession already has a settimeout no? so once a user logs in you
  can set it to a longer period


 We use that technique (not on a wicket app though) and it seems to work.

 Something else to consider:  Do you want Google (and other bots) to crawl
 your site ?
 If not, you could install a robots.txt file.

 http://www.google.com/support/webmasters/bin/answer.py?answer=83097

 regards,
 Maarten


 
 
  -igor
 
 
  On Thu, Apr 10, 2008 at 7:38 AM, Jeremy Thomerson
  [EMAIL PROTECTED] wrote:
   Thanks for the tip.  I came up with an idea last night that I would
 like
  to
get input on.  I created an HttpSessionListener that will track all
  created
sessions.  It has a thread that will run every few minutes, and if a
  session
does not belong to a signed-in user, it will invalidate it after only
  ten
minutes of inactivity.  If the session belongs to a signed-in user,
 it
  will
give them much longer to be inactive.
  
Here's the code: http://pastebin.com/m712c7ff0
In the group's opinion, will this work?  It seems like a hack to me,
  but I
have to do something.
  
Jeremy
  
On Thu, Apr 10, 2008 at 1:56 AM, Erik van Oosten 
 [EMAIL PROTECTED]
wrote:
  
  
  
 Jeremy,

 A workaround is to make the session timeout way lower and add some
  keep
 alive javascript to each page. For example as described by Eelco
 (

 
 http://chillenious.wordpress.com/2007/06/19/how-to-create-a-text-area-with-a-heart-beat-with-wicket/
 ).

 Regards,
 Erik.


 Jeremy Thomerson wrote:
  Yes - quite large.  I'm hoping someone has an idea to overcome
  this.
  There
  were definitely not 4500+ unique users on the site at the time.
 
  There were two copies of the same app deployed on that server at
  the
 time -
  one was a staging environment, not being indexed, which is
 probably
 where
  the extra ten wicket sessions came from.
 
  Any ideas?
 
  Jeremy
 
 
  On 4/9/08, Johan Compagner [EMAIL PROTECTED] wrote:
 
  4585 tomcat sessions?
 
  thats quite large if may say that..
  and even more 10 wicket sessions that tomcat sessions
  Do you have multiply apps deployed on that server?
 
  if a search engine doesnt send a cookie back then the urls
 should
  be
  encoded with jsessionid
  and we get the session from that..
 
  johan
 
 

 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: WebRequest question

2008-04-10 Thread Martijn Lindhout
If I remember well, Wasp/Swarm needs its own WebRequest subclass?

2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:

 On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
   My two questions:
 
   1. is this necessary / bad?


 no, it just adds some extra capability to the request


   2. what if I need different types of requests in my application?


 i doubt you will. what usecases do you have? usecases for subclassing
 request/response are few and far in between.

 -igor



 
   Thanx,
 
   --
   Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


form-specific feedback

2008-04-10 Thread Andrew Broderick
Hi,

I have two forms on the same page, that are two different classes. Each uses a 
FeedbackPanel. The problem is, if one of them is submitted, and error(blah) 
is called somewhere in the onSubmit(), they both display the message! How can I 
make each form only display its own messages?

Thanks

___

The  information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial  use  of  the individual or entity to which it is
addressed and may contain information that is  propri-
etary  and  confidential.  If you are not the intended
recipient of this message you are hereby notified that
any  review, dissemination, distribution or copying of
this message is strictly prohibited.  This  communica-
tion  is  for information purposes only and should not
be regarded as an offer to sell or as  a  solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be  secure  or  error-
free. P6070214


Re: form-specific feedback

2008-04-10 Thread Enrique Rodriguez
ComponentFeedbackPanel in org.apache.wicket.markup.html.panel.  Use
your Form instances in the constructor to filter messages.

Enrique


On Thu, Apr 10, 2008 at 1:26 PM, Andrew Broderick
[EMAIL PROTECTED] wrote:
 Hi,

 I have two forms on the same page, that are two different classes. Each uses 
 a FeedbackPanel. The problem is, if one of them is submitted, and 
 error(blah) is called somewhere in the onSubmit(), they both display the 
 message! How can I make each form only display its own messages?

 Thanks

 ___

 The  information in this email or in any file attached
 hereto is intended only for the personal and confiden-
 tial  use  of  the individual or entity to which it is
 addressed and may contain information that is  propri-
 etary  and  confidential.  If you are not the intended
 recipient of this message you are hereby notified that
 any  review, dissemination, distribution or copying of
 this message is strictly prohibited.  This  communica-
 tion  is  for information purposes only and should not
 be regarded as an offer to sell or as  a  solicitation
 of an offer to buy any financial product. Email trans-
 mission cannot be guaranteed to be  secure  or  error-
 free. P6070214


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: warning: [deprecation] AuthenticatedWebSession(AuthenticatedWebApplication,Request)

2008-04-10 Thread sindibade

Hi all,

I still encounter the same problem with wicket 1.3.3

Thanx,

Tarik




Mr Mean wrote:
 
 AuthenticatedWebApplication used the deprecated constructor, this
 should be fixed in wicket 1.3.3 see
 https://issues.apache.org/jira/browse/WICKET-1423
 
 Maurice
 
 On Sun, Apr 6, 2008 at 3:55 PM, rosen jiang [EMAIL PROTECTED]
 wrote:

  Hi all,

  I encounter the same problem, how to resolve it?

  thx!
  -rosen jiang




  Johnnie wrote:
  
   Hi,
  
   I'm using Wicket 1.3.2, had a piece of code that read like this:
  
   public MySession(final AuthenticatedWebApplication application,
   final Request   request) {
  
   super(application, request);
  
   }
  
   and was getting the following warning:
  
 warning: [deprecation]
  
 AuthenticatedWebSession(org.apache.wicket.authentication.AuthenticatedWebApplication,org.apache.wicket.Request)
   in org.apache.wicket.authentication.AuthenticatedWebSession has been
   deprecated
  
   so I tried to use the form of the constructor that takes only one
 argument
   - Request, like so:
  
   public ElectronicaSession(final AuthenticatedWebApplication
   application,
   final Request   request) {
  
   super(request);
  
   }
  
   and now I get:
  
   org.apache.wicket.WicketRuntimeException: Unable to instantiate web
   session class my.package.MySession
  
  
 org.apache.wicket.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:120)
 org.apache.wicket.Session.findOrCreate(Session.java:228)
 org.apache.wicket.Session.findOrCreate(Session.java:211)
 org.apache.wicket.Session.get(Session.java:250)

 org.apache.wicket.Application$1.onInstantiation(Application.java:276)
  
  
 org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:974)
 org.apache.wicket.Component.init(Component.java:866)

 org.apache.wicket.MarkupContainer.init(MarkupContainer.java:105)
 org.apache.wicket.Page.init(Page.java:236)
 org.apache.wicket.markup.html.WebPage.init(WebPage.java:184)
  
  
 org.apache.wicket.markup.html.pages.ExceptionErrorPage.init(ExceptionErrorPage.java:55)
  
  
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:163)
 org.apache.wicket.RequestCycle.step(RequestCycle.java:1280)
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
 org.apache.wicket.RequestCycle.request(RequestCycle.java:493)

 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
  
  
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
  
   How do I avoid both the warning and the error?
  
   Best regards,
  
   Johnny
  
  
  
  

  --
  View this message in context:
 http://www.nabble.com/warning%3A--deprecation--AuthenticatedWebSession%28AuthenticatedWebApplication%2CRequest%29-tp16329498p16524401.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/warning%3A--deprecation--AuthenticatedWebSession%28AuthenticatedWebApplication%2CRequest%29-tp16329498p16617649.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebRequest question

2008-04-10 Thread James Carman
I've never really cared for this whole idea of requiring subclassing
to get your work done.  Is there no way to make things more pluggable?
 Perhaps use the decorator design pattern?

On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
 If I remember well, Wasp/Swarm needs its own WebRequest subclass?

  2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:


 
   On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
   [EMAIL PROTECTED] wrote:
 My two questions:
   
 1. is this necessary / bad?
  
  
   no, it just adds some extra capability to the request
  
  
 2. what if I need different types of requests in my application?
  
  
   i doubt you will. what usecases do you have? usecases for subclassing
   request/response are few and far in between.
  
   -igor
  
  
  
   
 Thanx,
   
 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  


  --


 Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



authentication

2008-04-10 Thread Scott Swank
What do folk recommend for authentication?

1) In Wicket in Action there is a simple, custom authentication
implementation.
2) In Wicket Examples authentication is based on wicket-auth-roles.
3) Then there's WASP  SWARM

Is there any sort of comparison of wicket-auth-roles with SWARM that I
haven't yet found?

Thank you,
Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hibernate with wicket

2008-04-10 Thread Uwe Schäfer

Nino Saturnino Martinez Vazquez Wael schrieb:

interesting... Could be a possible thing for wicket persistence..


think so. however, have done something quite similar myself and dropped 
it for warp-persist. it is quite minimalistic though and not really 
feature complete (from my p.o.v.) but it can be soon with a little help ;)


however, it is more like guice-persistence than wicket-persistence, due 
to its tight binding to guice.


cu uwe

--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Matthew Young
Oh mine, some many generic warnings after moving to 1.4.  I got rid of them
by putting in type parameters but I'm not sure if I'm doing the right thing.
There is one warning I don't know how to fix:

WARNING: Type safety: the method add(Component) belongs to the raw type
MarkupContainer. Reference to generic type MarkupContainerT should be
parameterized.


What are the benefits of generifying Wicket? I only know one is type safe
model.  What else?



Here is a little test page, please take a look and see if I'm doing thing
correctly?

public class HomePage extends WebPage {

private static final long serialVersionUID = 1L;

private String hi =;
private int count;

public HomePage(final PageParameters parameters) {

// WARNING HERE and next line
add(new LabelHomePage(message, If you see this message wicket
is properly configured and running));
add(new FeedbackPanel(feedback));
FormHomePage form = new FormHomePage(form, new
CompoundPropertyModelHomePage(this)) {
private static final long serialVersionUID = 1L;
@Override public void onSubmit() {
++count;
}
};
add(form);// WARNING HERE
form.add(new TextFieldHomePage(hi).setRequired(true));
// WARNING HERE
add(new LabelHomePage(hihi, new PropertyModelHomePage(this,
hello)));
}

public String getHello() {
return hi + : you say hello  + count +  times.;
}
}


Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Matej Knopp
Problem is that WebPage is generic class but your instance doesn't
have the type specified. Since you page doesn't have a model object
the type is not really necessary, but the compiler doesn't know that.

You can try this:


public class HomePage extends WebPageObject {

This should get rid of the wanings when adding components.

-Matej

On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED] wrote:
 Oh mine, some many generic warnings after moving to 1.4.  I got rid of them
  by putting in type parameters but I'm not sure if I'm doing the right thing.
  There is one warning I don't know how to fix:

  WARNING: Type safety: the method add(Component) belongs to the raw type
  MarkupContainer. Reference to generic type MarkupContainerT should be
  parameterized.


  What are the benefits of generifying Wicket? I only know one is type safe
  model.  What else?



  Here is a little test page, please take a look and see if I'm doing thing
  correctly?

  public class HomePage extends WebPage {

 private static final long serialVersionUID = 1L;

 private String hi =;
 private int count;

 public HomePage(final PageParameters parameters) {

 // WARNING HERE and next line
 add(new LabelHomePage(message, If you see this message wicket
  is properly configured and running));
 add(new FeedbackPanel(feedback));
 FormHomePage form = new FormHomePage(form, new
  CompoundPropertyModelHomePage(this)) {
 private static final long serialVersionUID = 1L;
 @Override public void onSubmit() {
 ++count;
 }
 };
 add(form);// WARNING HERE
 form.add(new TextFieldHomePage(hi).setRequired(true));
 // WARNING HERE
 add(new LabelHomePage(hihi, new PropertyModelHomePage(this,
  hello)));
 }

 public String getHello() {
 return hi + : you say hello  + count +  times.;
 }
  }




-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Robby O'Connor
you COULD use the @SuppressWarnings({unchecked}) annotation. More
info: http://mindprod.com/jgloss/annotations.html#SUPPRESSWARNINGS
Matthew Young wrote:
 Oh mine, some many generic warnings after moving to 1.4.  I got rid of them
 by putting in type parameters but I'm not sure if I'm doing the right thing.
 There is one warning I don't know how to fix:
 
 WARNING: Type safety: the method add(Component) belongs to the raw type
 MarkupContainer. Reference to generic type MarkupContainerT should be
 parameterized.
 
 
 What are the benefits of generifying Wicket? I only know one is type safe
 model.  What else?
 
 
 
 Here is a little test page, please take a look and see if I'm doing thing
 correctly?
 
 public class HomePage extends WebPage {
 
 private static final long serialVersionUID = 1L;
 
 private String hi =;
 private int count;
 
 public HomePage(final PageParameters parameters) {
 
 // WARNING HERE and next line
 add(new LabelHomePage(message, If you see this message wicket
 is properly configured and running));
 add(new FeedbackPanel(feedback));
 FormHomePage form = new FormHomePage(form, new
 CompoundPropertyModelHomePage(this)) {
 private static final long serialVersionUID = 1L;
 @Override public void onSubmit() {
 ++count;
 }
 };
 add(form);// WARNING HERE
 form.add(new TextFieldHomePage(hi).setRequired(true));
 // WARNING HERE
 add(new LabelHomePage(hihi, new PropertyModelHomePage(this,
 hello)));
 }
 
 public String getHello() {
 return hi + : you say hello  + count +  times.;
 }
 }
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Matthew Young
 public class HomePage extends WebPageObject {

ERROR: The type WebPage is not generic; it cannot be parameterized with
arguments Object



you COULD use the @SuppressWarnings({unchecked})

I would rather not use @SupressWarnings if I can do the right thing.

On Thu, Apr 10, 2008 at 4:49 PM, Matej Knopp [EMAIL PROTECTED] wrote:

 Problem is that WebPage is generic class but your instance doesn't
 have the type specified. Since you page doesn't have a model object
 the type is not really necessary, but the compiler doesn't know that.

 You can try this:


 public class HomePage extends WebPageObject {

 This should get rid of the wanings when adding components.

 -Matej

 On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED] wrote:
  Oh mine, some many generic warnings after moving to 1.4.  I got rid of
 them
   by putting in type parameters but I'm not sure if I'm doing the right
 thing.
   There is one warning I don't know how to fix:
 
   WARNING: Type safety: the method add(Component) belongs to the raw type
   MarkupContainer. Reference to generic type MarkupContainerT should be
   parameterized.
 
 
   What are the benefits of generifying Wicket? I only know one is type
 safe
   model.  What else?
 
 
 
   Here is a little test page, please take a look and see if I'm doing
 thing
   correctly?
 
   public class HomePage extends WebPage {
 
  private static final long serialVersionUID = 1L;
 
  private String hi =;
  private int count;
 
  public HomePage(final PageParameters parameters) {
 
  // WARNING HERE and next line
  add(new LabelHomePage(message, If you see this message
 wicket
   is properly configured and running));
  add(new FeedbackPanel(feedback));
  FormHomePage form = new FormHomePage(form, new
   CompoundPropertyModelHomePage(this)) {
  private static final long serialVersionUID = 1L;
  @Override public void onSubmit() {
  ++count;
  }
  };
  add(form);// WARNING HERE
  form.add(new TextFieldHomePage(hi).setRequired(true));
  // WARNING HERE
  add(new LabelHomePage(hihi, new
 PropertyModelHomePage(this,
   hello)));
  }
 
  public String getHello() {
  return hi + : you say hello  + count +  times.;
  }
   }
 



 --
 Resizable and reorderable grid components.
 http://www.inmethod.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Jonathan Locke


yeah.  if Page/WebPage are not going to be generic, maybe they should extend
(Web)MarkupContainer? or something?


MYoung wrote:
 
 public class HomePage extends WebPage {
 
 ERROR: The type WebPage is not generic; it cannot be parameterized with
 arguments 
 
 
 
you COULD use the @SuppressWarnings({unchecked})
 
 I would rather not use @SupressWarnings if I can do the right thing.
 
 On Thu, Apr 10, 2008 at 4:49 PM, Matej Knopp [EMAIL PROTECTED]
 wrote:
 
 Problem is that WebPage is generic class but your instance doesn't
 have the type specified. Since you page doesn't have a model object
 the type is not really necessary, but the compiler doesn't know that.

 You can try this:


 public class HomePage extends WebPage {

 This should get rid of the wanings when adding components.

 -Matej

 On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED] wrote:
  Oh mine, some many generic warnings after moving to 1.4.  I got rid of
 them
   by putting in type parameters but I'm not sure if I'm doing the right
 thing.
   There is one warning I don't know how to fix:
 
   WARNING: Type safety: the method add(Component) belongs to the raw
 type
   MarkupContainer. Reference to generic type MarkupContainerT should
 be
   parameterized.
 
 
   What are the benefits of generifying Wicket? I only know one is type
 safe
   model.  What else?
 
 
 
   Here is a little test page, please take a look and see if I'm doing
 thing
   correctly?
 
   public class HomePage extends WebPage {
 
  private static final long serialVersionUID = 1L;
 
  private String hi =;
  private int count;
 
  public HomePage(final PageParameters parameters) {
 
  // WARNING HERE and next line
  add(new LabelHomePage(message, If you see this message
 wicket
   is properly configured and running));
  add(new FeedbackPanel(feedback));
  FormHomePage form = new FormHomePage(form, new
   CompoundPropertyModelHomePage(this)) {
  private static final long serialVersionUID = 1L;
  @Override public void onSubmit() {
  ++count;
  }
  };
  add(form);// WARNING HERE
  form.add(new TextFieldHomePage(hi).setRequired(true));
  // WARNING HERE
  add(new LabelHomePage(hihi, new
 PropertyModelHomePage(this,
   hello)));
  }
 
  public String getHello() {
  return hi + : you say hello  + count +  times.;
  }
   }
 



 --
 Resizable and reorderable grid components.
 http://www.inmethod.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16622850.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Igor Vaynberg
why wouldnt page be generic?

class edituserpage extends webpageuser {
  public edituserpage(imodeluser user) {...}}

-igor


On Thu, Apr 10, 2008 at 5:22 PM, Jonathan Locke
[EMAIL PROTECTED] wrote:


  yeah.  if Page/WebPage are not going to be generic, maybe they should extend
  (Web)MarkupContainer? or something?


  MYoung wrote:
  
   public class HomePage extends WebPage {

 
   ERROR: The type WebPage is not generic; it cannot be parameterized with
   arguments
  
  
  

 you COULD use the @SuppressWarnings({unchecked})
  
   I would rather not use @SupressWarnings if I can do the right thing.
  
   On Thu, Apr 10, 2008 at 4:49 PM, Matej Knopp [EMAIL PROTECTED]
   wrote:
  
   Problem is that WebPage is generic class but your instance doesn't
   have the type specified. Since you page doesn't have a model object
   the type is not really necessary, but the compiler doesn't know that.
  
   You can try this:
  
  
   public class HomePage extends WebPage {


 
   This should get rid of the wanings when adding components.
  
   -Matej
  
   On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED] wrote:
Oh mine, some many generic warnings after moving to 1.4.  I got rid of
   them
 by putting in type parameters but I'm not sure if I'm doing the right
   thing.
 There is one warning I don't know how to fix:
   
 WARNING: Type safety: the method add(Component) belongs to the raw
   type
 MarkupContainer. Reference to generic type MarkupContainerT should
   be
 parameterized.
   
   
 What are the benefits of generifying Wicket? I only know one is type
   safe
 model.  What else?
   
   
   
 Here is a little test page, please take a look and see if I'm doing
   thing
 correctly?
   
 public class HomePage extends WebPage {
   
private static final long serialVersionUID = 1L;
   
private String hi =;
private int count;
   
public HomePage(final PageParameters parameters) {
   
// WARNING HERE and next line
add(new LabelHomePage(message, If you see this message
   wicket
 is properly configured and running));
add(new FeedbackPanel(feedback));
FormHomePage form = new FormHomePage(form, new
 CompoundPropertyModelHomePage(this)) {
private static final long serialVersionUID = 1L;
@Override public void onSubmit() {
++count;
}
};
add(form);// WARNING HERE
form.add(new TextFieldHomePage(hi).setRequired(true));
// WARNING HERE
add(new LabelHomePage(hihi, new
   PropertyModelHomePage(this,
 hello)));
}
   
public String getHello() {
return hi + : you say hello  + count +  times.;
}
 }
   
  
  
  
   --
   Resizable and reorderable grid components.
   http://www.inmethod.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16622850.html
  Sent from the Wicket - User mailing list archive at Nabble.com.




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to get html source

2008-04-10 Thread freak182


What i mean is the html tags and all kind of stuff of the rendered page. not
the .html file...i want to retrieve that and save to DB.


Mr Mean wrote:
 
 What do you mean get the html source of a page?
 Wicket already fetches the html source for your page if it is located
 in the same package and has the same name as your page. You do not
 need it.
 The constructor is irrelevant for this process.
 
 Maurice
 
 On Thu, Apr 10, 2008 at 10:51 AM, freak182 [EMAIL PROTECTED] wrote:

  Hello,
  My problem is how to get the html source of the page with the
 constructor
  having a parameter?...i see an example of getting the html source of the
  page with the constructor having no parameter that i think is easy.

  Thanks a lot...Cheers!
  --
  View this message in context:
 http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-get-html-source-tp16605236p16623049.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



StringResourceModel with computed values/expression?

2008-04-10 Thread Ritz123

Hi,

How would I pass in mathematical formula which is dynamic? e.g. in the
resource bundle properties file I would like a label like 
mylist.navlabel=Displaying {0}-{1} of N items

DataTable doesnt give me 1 and/or X as property to I have to compute it like
(currentPage -1)* rowsPerPage to (currentPage -1)* rowsPerPage + rowsPerPage 

Thanks
-- 
View this message in context: 
http://www.nabble.com/StringResourceModel-with-computed-values-expression--tp16623050p16623050.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket + SDO

2008-04-10 Thread deepeshmathur

Hi,

Has any one tried using Service Data Object with Wicket?

Thanks and Regards
Deepesh
-- 
View this message in context: 
http://www.nabble.com/Wicket-%2B-SDO-tp16623270p16623270.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Jonathan Locke


i didn't say it shouldn't be.  i was just saying /if it was not going to be/
(i'm not working on 1.4 yet, so i don't know why it's not generic already)
it shouldn't create generics warnings.  in fact, i agree with you and people
should ideally just say MyPage extends WebPage? if their page has no
model.


igor.vaynberg wrote:
 
 why wouldnt page be generic?
 
 class edituserpage extends webpageuser {
   public edituserpage(imodeluser user) {...}}
 
 -igor
 
 
 On Thu, Apr 10, 2008 at 5:22 PM, Jonathan Locke
 [EMAIL PROTECTED] wrote:


  yeah.  if Page/WebPage are not going to be generic, maybe they should
 extend
  (Web)MarkupContainer? or something?


  MYoung wrote:
  
   public class HomePage extends WebPage {

 
   ERROR: The type WebPage is not generic; it cannot be parameterized
 with
   arguments
  
  
  

 you COULD use the @SuppressWarnings({unchecked})
  
   I would rather not use @SupressWarnings if I can do the right thing.
  
   On Thu, Apr 10, 2008 at 4:49 PM, Matej Knopp [EMAIL PROTECTED]
   wrote:
  
   Problem is that WebPage is generic class but your instance doesn't
   have the type specified. Since you page doesn't have a model object
   the type is not really necessary, but the compiler doesn't know that.
  
   You can try this:
  
  
   public class HomePage extends WebPage {


 
   This should get rid of the wanings when adding components.
  
   -Matej
  
   On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED]
 wrote:
Oh mine, some many generic warnings after moving to 1.4.  I got rid
 of
   them
 by putting in type parameters but I'm not sure if I'm doing the
 right
   thing.
 There is one warning I don't know how to fix:
   
 WARNING: Type safety: the method add(Component) belongs to the raw
   type
 MarkupContainer. Reference to generic type MarkupContainerT
 should
   be
 parameterized.
   
   
 What are the benefits of generifying Wicket? I only know one is
 type
   safe
 model.  What else?
   
   
   
 Here is a little test page, please take a look and see if I'm
 doing
   thing
 correctly?
   
 public class HomePage extends WebPage {
   
private static final long serialVersionUID = 1L;
   
private String hi =;
private int count;
   
public HomePage(final PageParameters parameters) {
   
// WARNING HERE and next line
add(new LabelHomePage(message, If you see this message
   wicket
 is properly configured and running));
add(new FeedbackPanel(feedback));
FormHomePage form = new FormHomePage(form, new
 CompoundPropertyModelHomePage(this)) {
private static final long serialVersionUID = 1L;
@Override public void onSubmit() {
++count;
}
};
add(form);// WARNING HERE
form.add(new TextFieldHomePage(hi).setRequired(true));
// WARNING HERE
add(new LabelHomePage(hihi, new
   PropertyModelHomePage(this,
 hello)));
}
   
public String getHello() {
return hi + : you say hello  + count +  times.;
}
 }
   
  
  
  
   --
   Resizable and reorderable grid components.
   http://www.inmethod.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  

  --
  View this message in context:
 http://www.nabble.com/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16622850.html
  Sent from the Wicket - User mailing list archive at Nabble.com.




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16623292.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Jonathan Locke


uh, i meant WebPage obviously


Jonathan Locke wrote:
 
 
 i didn't say it shouldn't be.  i was just saying /if it was not going to
 be/ (i'm not working on 1.4 yet, so i don't know why it's not generic
 already) it shouldn't create generics warnings.  in fact, i agree with you
 and people should ideally just say MyPage extends WebPage? if their page
 has no model.
 
 
 igor.vaynberg wrote:
 
 why wouldnt page be generic?
 
 class edituserpage extends webpageuser {
   public edituserpage(imodeluser user) {...}}
 
 -igor
 
 
 On Thu, Apr 10, 2008 at 5:22 PM, Jonathan Locke
 [EMAIL PROTECTED] wrote:


  yeah.  if Page/WebPage are not going to be generic, maybe they should
 extend
  (Web)MarkupContainer? or something?


  MYoung wrote:
  
   public class HomePage extends WebPage {

 
   ERROR: The type WebPage is not generic; it cannot be parameterized
 with
   arguments
  
  
  

 you COULD use the @SuppressWarnings({unchecked})
  
   I would rather not use @SupressWarnings if I can do the right thing.
  
   On Thu, Apr 10, 2008 at 4:49 PM, Matej Knopp [EMAIL PROTECTED]
   wrote:
  
   Problem is that WebPage is generic class but your instance doesn't
   have the type specified. Since you page doesn't have a model object
   the type is not really necessary, but the compiler doesn't know
 that.
  
   You can try this:
  
  
   public class HomePage extends WebPage {


 
   This should get rid of the wanings when adding components.
  
   -Matej
  
   On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED]
 wrote:
Oh mine, some many generic warnings after moving to 1.4.  I got
 rid of
   them
 by putting in type parameters but I'm not sure if I'm doing the
 right
   thing.
 There is one warning I don't know how to fix:
   
 WARNING: Type safety: the method add(Component) belongs to the
 raw
   type
 MarkupContainer. Reference to generic type MarkupContainerT
 should
   be
 parameterized.
   
   
 What are the benefits of generifying Wicket? I only know one is
 type
   safe
 model.  What else?
   
   
   
 Here is a little test page, please take a look and see if I'm
 doing
   thing
 correctly?
   
 public class HomePage extends WebPage {
   
private static final long serialVersionUID = 1L;
   
private String hi =;
private int count;
   
public HomePage(final PageParameters parameters) {
   
// WARNING HERE and next line
add(new LabelHomePage(message, If you see this
 message
   wicket
 is properly configured and running));
add(new FeedbackPanel(feedback));
FormHomePage form = new FormHomePage(form, new
 CompoundPropertyModelHomePage(this)) {
private static final long serialVersionUID = 1L;
@Override public void onSubmit() {
++count;
}
};
add(form);// WARNING HERE
form.add(new TextFieldHomePage(hi).setRequired(true));
// WARNING HERE
add(new LabelHomePage(hihi, new
   PropertyModelHomePage(this,
 hello)));
}
   
public String getHello() {
return hi + : you say hello  + count +  times.;
}
 }
   
  
  
  
   --
   Resizable and reorderable grid components.
   http://www.inmethod.com
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  

  --
  View this message in context:
 http://www.nabble.com/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16622850.html
  Sent from the Wicket - User mailing list archive at Nabble.com.




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16623297.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fragment question

2008-04-10 Thread Ritz123

Hi,

This may be actually a stupid question - am little confused about Fragments
use.

Lets say I was extending existing component e.g. DataTable and did not have
markup file of my derived component, (I think) in such a case, base class
markup file will be used. Assuming that is the case if I wanted to add a
fragment (since I would like to lets say add more than just 1 label) which
will be a good place to put the fragment? The reason why I use Fragment
instead of Panel is because for very small change, having a panel and a
separate markup would be a headache and I will have multiple such changes.

I dont quiet understand the use of markupProvider being the container
instance in Fragment constructor - why could it just have been the class
name? It would have been just easy to look up corresponding markup file even
if it was a class name. I am assuimg Fragments can reside in any markup
file.
-- 
View this message in context: 
http://www.nabble.com/Fragment-question-tp16623671p16623671.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Attaching stuff to pages

2008-04-10 Thread David Leangen

I know this type of question has been asked before, so if somebody can
point me to a previous thread or some doc, that would be cool.


I have a page like books mounted on /books. When the user sees the
page mounted at /books, she gets a list of all available books. Each
available book should be located at /books/bookIsbn.

If a user directly accesses the URL /books/bookIsbn, then either that
book information should be displayed, or a 404 should be returned (maybe
with a friendly message saying that such book doesn't exist).

Now, the only way to know which books are available is to browse the
database. This means that I can't actually mount a separate page for
each book. This processing needs to be done dynamically.


I suspect that I need to do all this logic in the books page itself, and
that I need to implement my own custom URL handler that works with the
books page. 

During a debugging session, I traced through
IRequestTargetUrlCodingStrategy, but didn't see anything that looked
like what I needed...


Could somebody point me in the right direction?


Thanks!
-dml-




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Attaching stuff to pages

2008-04-10 Thread Igor Vaynberg
mount a page using indexed url coding strategy then in the page check
if there is a parameter. if there is one add the details panel, if not
add the list panel

-igor




On Thu, Apr 10, 2008 at 7:39 PM, David Leangen [EMAIL PROTECTED] wrote:

  I know this type of question has been asked before, so if somebody can
  point me to a previous thread or some doc, that would be cool.


  I have a page like books mounted on /books. When the user sees the
  page mounted at /books, she gets a list of all available books. Each
  available book should be located at /books/bookIsbn.

  If a user directly accesses the URL /books/bookIsbn, then either that
  book information should be displayed, or a 404 should be returned (maybe
  with a friendly message saying that such book doesn't exist).

  Now, the only way to know which books are available is to browse the
  database. This means that I can't actually mount a separate page for
  each book. This processing needs to be done dynamically.


  I suspect that I need to do all this logic in the books page itself, and
  that I need to implement my own custom URL handler that works with the
  books page.

  During a debugging session, I traced through
  IRequestTargetUrlCodingStrategy, but didn't see anything that looked
  like what I needed...


  Could somebody point me in the right direction?


  Thanks!
  -dml-




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Attaching stuff to pages

2008-04-10 Thread David Leangen

Cool! 

Thank you for the ultra-rapido reply. :-)



On Thu, 2008-04-10 at 19:44 -0700, Igor Vaynberg wrote:
 mount a page using indexed url coding strategy then in the page check
 if there is a parameter. if there is one add the details panel, if not
 add the list panel
 
 -igor
 
 
 
 
 On Thu, Apr 10, 2008 at 7:39 PM, David Leangen [EMAIL PROTECTED] wrote:
 
   I know this type of question has been asked before, so if somebody can
   point me to a previous thread or some doc, that would be cool.
 
 
   I have a page like books mounted on /books. When the user sees the
   page mounted at /books, she gets a list of all available books. Each
   available book should be located at /books/bookIsbn.
 
   If a user directly accesses the URL /books/bookIsbn, then either that
   book information should be displayed, or a 404 should be returned (maybe
   with a friendly message saying that such book doesn't exist).
 
   Now, the only way to know which books are available is to browse the
   database. This means that I can't actually mount a separate page for
   each book. This processing needs to be done dynamically.
 
 
   I suspect that I need to do all this logic in the books page itself, and
   that I need to implement my own custom URL handler that works with the
   books page.
 
   During a debugging session, I traced through
   IRequestTargetUrlCodingStrategy, but didn't see anything that looked
   like what I needed...
 
 
   Could somebody point me in the right direction?
 
 
   Thanks!
   -dml-
 
 
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ajax error handling on server side exception

2008-04-10 Thread ywtsang

i can sucecssfuly use getFailureScript to act against the client-side
ajax error, i.e the server is down and ajax request is sent with failure

can we have similar facility for server-side exception upon ajax request?

e.g. for now, if the server throw exception during onevent of an ajax
request, the response will trigger a redirect to error page, we want to
re-use something similar to getFailureScript to handle the error at client
side

a suggestion that may work is to try-and-catch all exception happened during
onevent of ajax request, and send back a error-javascript to the
ajaxTarget(.appendJavascript); but we think that this is difficult and
troublesome to refactor all of our ajax code, and

-- 
View this message in context: 
http://www.nabble.com/ajax-error-handling-on-server-side-exception-tp16624390p16624390.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Attaching stuff to pages

2008-04-10 Thread David Leangen

I'm using MixedParamUrlCodingStrategy. Beautiful stuff!

Just one prob on line 154:

  String value = (String)parameters.get(parameterName);

This throws a ClassCastException, since parameters.get() returns
String[] and not String.


Doesn't this have to do with an api change in javax.servlet?


Should I submit a patch?


Cheers,
-dml-



On Fri, 2008-04-11 at 11:45 +0900, David Leangen wrote:
 Cool! 
 
 Thank you for the ultra-rapido reply. :-)
 
 
 
 On Thu, 2008-04-10 at 19:44 -0700, Igor Vaynberg wrote:
  mount a page using indexed url coding strategy then in the page check
  if there is a parameter. if there is one add the details panel, if not
  add the list panel
  
  -igor
  
  
  
  
  On Thu, Apr 10, 2008 at 7:39 PM, David Leangen [EMAIL PROTECTED] wrote:
  
I know this type of question has been asked before, so if somebody can
point me to a previous thread or some doc, that would be cool.
  
  
I have a page like books mounted on /books. When the user sees the
page mounted at /books, she gets a list of all available books. Each
available book should be located at /books/bookIsbn.
  
If a user directly accesses the URL /books/bookIsbn, then either that
book information should be displayed, or a 404 should be returned (maybe
with a friendly message saying that such book doesn't exist).
  
Now, the only way to know which books are available is to browse the
database. This means that I can't actually mount a separate page for
each book. This processing needs to be done dynamically.
  
  
I suspect that I need to do all this logic in the books page itself, and
that I need to implement my own custom URL handler that works with the
books page.
  
During a debugging session, I traced through
IRequestTargetUrlCodingStrategy, but didn't see anything that looked
like what I needed...
  
  
Could somebody point me in the right direction?
  
  
Thanks!
-dml-
  
  
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax error handling on server side exception

2008-04-10 Thread Igor Vaynberg
actually i believe this is how it worked original, but then users
wanted any kind of serverside error to go to the error page so we
changed it

-igor

On Thu, Apr 10, 2008 at 8:20 PM, ywtsang [EMAIL PROTECTED] wrote:

  i can sucecssfuly use getFailureScript to act against the client-side
  ajax error, i.e the server is down and ajax request is sent with failure

  can we have similar facility for server-side exception upon ajax request?

  e.g. for now, if the server throw exception during onevent of an ajax
  request, the response will trigger a redirect to error page, we want to
  re-use something similar to getFailureScript to handle the error at client
  side

  a suggestion that may work is to try-and-catch all exception happened during
  onevent of ajax request, and send back a error-javascript to the
  ajaxTarget(.appendJavascript); but we think that this is difficult and
  troublesome to refactor all of our ajax code, and

  --
  View this message in context: 
 http://www.nabble.com/ajax-error-handling-on-server-side-exception-tp16624390p16624390.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]