How run Wicket Application

2011-02-16 Thread Mr Jehan
Dear all

I downloaded HelloWorld wicket application,
I run following commind

 C:\Users\admin\wicket-hello-world  *mvn install *

following is log of mvn

My tomcat installed at d:/tomcat/

which directory I copy from* C:\Users\admin\wicket-hello-world* to *
d:/tomcat/webapp* folder.

log--
[INFO] Scanning for projects...
[INFO]

[INFO] Building wicketHelloWorld
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[HelloWorld] in
[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0]
[INFO] Dependency[Dependency {groupId=org.apache.wicket, artifactId=wicket,
version=1.4-rc2, type=jar}] has changed (was Dependency
{groupId=org.apache.wicket, artifactId=wicket, version=1.4-rc2, type=jar}).
[INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12,
version=1.4.2, type=jar}] has changed (was Dependency {groupId=org.slf4j,
artifactId=slf4j-log4j12, version=1.4.2, type=jar}).
[INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
version=1.2.14, type=jar}] has changed (was Dependency {groupId=log4j,
artifactId=log4j, version=1.2.14, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp
resources[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\main\webapp]
[INFO] Webapp assembled in[208 msecs]
[INFO] Building war:
C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
[INFO] [install:install {execution: default-install}]
[INFO] Installing
C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
to
C:\Users\admin\.m2\repository\com\mkyong\HelloWorld\1.0\HelloWorld-1.0.war
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Feb 16 13:22:04 PKT 2011
[INFO] Final Memory: 10M/24M
[INFO]



Re: How run Wicket Application

2011-02-16 Thread Martin Makundi
Might be easier just to put it into eclipse and run Start.java, maybe.

**
Martin

2011/2/16 Mr Jehan jeeha...@gmail.com:
 Dear all

 I downloaded HelloWorld wicket application,
 I run following commind

  C:\Users\admin\wicket-hello-world  *mvn install *

 following is log of mvn

 My tomcat installed at d:/tomcat/

 which directory I copy from* C:\Users\admin\wicket-hello-world* to *
 d:/tomcat/webapp* folder.

 log--
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building wicketHelloWorld
 [INFO]    task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 1 resource
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources {execution: default-testResources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] skip non existing resourceDirectory
 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\test\resources
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] No sources to compile
 [INFO] [surefire:test {execution: default-test}]
 [INFO] No tests to run.
 [INFO] [war:war {execution: default-war}]
 [INFO] Packaging webapp
 [INFO] Assembling webapp[HelloWorld] in
 [C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0]
 [INFO] Dependency[Dependency {groupId=org.apache.wicket, artifactId=wicket,
 version=1.4-rc2, type=jar}] has changed (was Dependency
 {groupId=org.apache.wicket, artifactId=wicket, version=1.4-rc2, type=jar}).
 [INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12,
 version=1.4.2, type=jar}] has changed (was Dependency {groupId=org.slf4j,
 artifactId=slf4j-log4j12, version=1.4.2, type=jar}).
 [INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
 version=1.2.14, type=jar}] has changed (was Dependency {groupId=log4j,
 artifactId=log4j, version=1.2.14, type=jar}).
 [INFO] Processing war project
 [INFO] Copying webapp
 resources[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\main\webapp]
 [INFO] Webapp assembled in[208 msecs]
 [INFO] Building war:
 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
 [INFO] [install:install {execution: default-install}]
 [INFO] Installing
 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
 to
 C:\Users\admin\.m2\repository\com\mkyong\HelloWorld\1.0\HelloWorld-1.0.war
 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 5 seconds
 [INFO] Finished at: Wed Feb 16 13:22:04 PKT 2011
 [INFO] Final Memory: 10M/24M
 [INFO]
 


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



Re: How run Wicket Application

2011-02-16 Thread Mr Jehan
please any other solution
On Wed, Feb 16, 2011 at 1:39 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Might be easier just to put it into eclipse and run Start.java, maybe.

 **
 Martin

 2011/2/16 Mr Jehan jeeha...@gmail.com:
   Dear all
 
  I downloaded HelloWorld wicket application,
  I run following commind
 
   C:\Users\admin\wicket-hello-world  *mvn install *
 
  following is log of mvn
 
  My tomcat installed at d:/tomcat/
 
  which directory I copy from* C:\Users\admin\wicket-hello-world* to *
  d:/tomcat/webapp* folder.
 
 
 log--
  [INFO] Scanning for projects...
  [INFO]
  
  [INFO] Building wicketHelloWorld
  [INFO]task-segment: [install]
  [INFO]
  
  [INFO] [resources:resources {execution: default-resources}]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] Copying 1 resource
  [INFO] [compiler:compile {execution: default-compile}]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [resources:testResources {execution: default-testResources}]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory
  C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\test\resources
  [INFO] [compiler:testCompile {execution: default-testCompile}]
  [INFO] No sources to compile
  [INFO] [surefire:test {execution: default-test}]
  [INFO] No tests to run.
  [INFO] [war:war {execution: default-war}]
  [INFO] Packaging webapp
  [INFO] Assembling webapp[HelloWorld] in
 
 [C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0]
  [INFO] Dependency[Dependency {groupId=org.apache.wicket,
 artifactId=wicket,
  version=1.4-rc2, type=jar}] has changed (was Dependency
  {groupId=org.apache.wicket, artifactId=wicket, version=1.4-rc2,
 type=jar}).
  [INFO] Dependency[Dependency {groupId=org.slf4j,
 artifactId=slf4j-log4j12,
  version=1.4.2, type=jar}] has changed (was Dependency {groupId=org.slf4j,
  artifactId=slf4j-log4j12, version=1.4.2, type=jar}).
  [INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
  version=1.2.14, type=jar}] has changed (was Dependency {groupId=log4j,
  artifactId=log4j, version=1.2.14, type=jar}).
  [INFO] Processing war project
  [INFO] Copying webapp
 
 resources[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\main\webapp]
  [INFO] Webapp assembled in[208 msecs]
  [INFO] Building war:
 
 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
  [INFO] [install:install {execution: default-install}]
  [INFO] Installing
 
 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
  to
 
 C:\Users\admin\.m2\repository\com\mkyong\HelloWorld\1.0\HelloWorld-1.0.war
  [INFO]
  
  [INFO] BUILD SUCCESSFUL
  [INFO]
  
  [INFO] Total time: 5 seconds
  [INFO] Finished at: Wed Feb 16 13:22:04 PKT 2011
  [INFO] Final Memory: 10M/24M
  [INFO]
  
 

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




Re: How run Wicket Application

2011-02-16 Thread Ernesto Reinaldo Barreiro
mvn jetty:run?

On Wed, Feb 16, 2011 at 10:03 AM, Mr Jehan jeeha...@gmail.com wrote:
 please any other solution
 On Wed, Feb 16, 2011 at 1:39 PM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

 Might be easier just to put it into eclipse and run Start.java, maybe.

 **
 Martin

 2011/2/16 Mr Jehan jeeha...@gmail.com:
   Dear all
 
  I downloaded HelloWorld wicket application,
  I run following commind
 
   C:\Users\admin\wicket-hello-world  *mvn install *
 
  following is log of mvn
 
  My tomcat installed at d:/tomcat/
 
  which directory I copy from* C:\Users\admin\wicket-hello-world* to *
  d:/tomcat/webapp* folder.
 
 
 log--
  [INFO] Scanning for projects...
  [INFO]
  
  [INFO] Building wicketHelloWorld
  [INFO]    task-segment: [install]
  [INFO]
  
  [INFO] [resources:resources {execution: default-resources}]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] Copying 1 resource
  [INFO] [compiler:compile {execution: default-compile}]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [resources:testResources {execution: default-testResources}]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory
  C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\test\resources
  [INFO] [compiler:testCompile {execution: default-testCompile}]
  [INFO] No sources to compile
  [INFO] [surefire:test {execution: default-test}]
  [INFO] No tests to run.
  [INFO] [war:war {execution: default-war}]
  [INFO] Packaging webapp
  [INFO] Assembling webapp[HelloWorld] in
 
 [C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0]
  [INFO] Dependency[Dependency {groupId=org.apache.wicket,
 artifactId=wicket,
  version=1.4-rc2, type=jar}] has changed (was Dependency
  {groupId=org.apache.wicket, artifactId=wicket, version=1.4-rc2,
 type=jar}).
  [INFO] Dependency[Dependency {groupId=org.slf4j,
 artifactId=slf4j-log4j12,
  version=1.4.2, type=jar}] has changed (was Dependency {groupId=org.slf4j,
  artifactId=slf4j-log4j12, version=1.4.2, type=jar}).
  [INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
  version=1.2.14, type=jar}] has changed (was Dependency {groupId=log4j,
  artifactId=log4j, version=1.2.14, type=jar}).
  [INFO] Processing war project
  [INFO] Copying webapp
 
 resources[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\main\webapp]
  [INFO] Webapp assembled in[208 msecs]
  [INFO] Building war:
 
 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
  [INFO] [install:install {execution: default-install}]
  [INFO] Installing
 
 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war
  to
 
 C:\Users\admin\.m2\repository\com\mkyong\HelloWorld\1.0\HelloWorld-1.0.war
  [INFO]
  
  [INFO] BUILD SUCCESSFUL
  [INFO]
  
  [INFO] Total time: 5 seconds
  [INFO] Finished at: Wed Feb 16 13:22:04 PKT 2011
  [INFO] Final Memory: 10M/24M
  [INFO]
  
 

 -
 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: How run Wicket Application

2011-02-16 Thread Michal Letynski

Just open the tomcat manager and deploy this war file.

W dniu 2011-02-16 13:03, Mr Jehan pisze:

please any other solution
On Wed, Feb 16, 2011 at 1:39 PM, Martin Makundi
martin.maku...@koodaripalvelut.com  wrote:


Might be easier just to put it into eclipse and run Start.java, maybe.

**
Martin

2011/2/16 Mr Jehanjeeha...@gmail.com:
Dear all

I downloaded HelloWorld wicket application,
I run following commind

  C:\Users\admin\wicket-hello-world  *mvn install *

following is log of mvn

My tomcat installed at d:/tomcat/

which directory I copy from* C:\Users\admin\wicket-hello-world* to *
d:/tomcat/webapp* folder.



log--

[INFO] Scanning for projects...
[INFO]

[INFO] Building wicketHelloWorld
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[HelloWorld] in


[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0]

[INFO] Dependency[Dependency {groupId=org.apache.wicket,

artifactId=wicket,

version=1.4-rc2, type=jar}] has changed (was Dependency
{groupId=org.apache.wicket, artifactId=wicket, version=1.4-rc2,

type=jar}).

[INFO] Dependency[Dependency {groupId=org.slf4j,

artifactId=slf4j-log4j12,

version=1.4.2, type=jar}] has changed (was Dependency {groupId=org.slf4j,
artifactId=slf4j-log4j12, version=1.4.2, type=jar}).
[INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
version=1.2.14, type=jar}] has changed (was Dependency {groupId=log4j,
artifactId=log4j, version=1.2.14, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp


resources[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\main\webapp]

[INFO] Webapp assembled in[208 msecs]
[INFO] Building war:


C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war

[INFO] [install:install {execution: default-install}]
[INFO] Installing


C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war

to


C:\Users\admin\.m2\repository\com\mkyong\HelloWorld\1.0\HelloWorld-1.0.war

[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Feb 16 13:22:04 PKT 2011
[INFO] Final Memory: 10M/24M
[INFO]



-
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: How run Wicket Application

2011-02-16 Thread Mr Jehan
Problem while running tomcat manager

http://localhost:8080/manager/html




On Wed, Feb 16, 2011 at 2:07 PM, Michal Letynski m...@consol.ae wrote:

 Just open the tomcat manager and deploy this war file.

 W dniu 2011-02-16 13:03, Mr Jehan pisze:

 please any other solution
 On Wed, Feb 16, 2011 at 1:39 PM, Martin Makundi
 martin.maku...@koodaripalvelut.com  wrote:

 Might be easier just to put it into eclipse and run Start.java, maybe.

 **
 Martin

 2011/2/16 Mr Jehanjeeha...@gmail.com:
Dear all

 I downloaded HelloWorld wicket application,
 I run following commind

  C:\Users\admin\wicket-hello-world  *mvn install *

 following is log of mvn

 My tomcat installed at d:/tomcat/

 which directory I copy from* C:\Users\admin\wicket-hello-world* to *
 d:/tomcat/webapp* folder.



 log--

 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building wicketHelloWorld
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 1 resource
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources {execution: default-testResources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] skip non existing resourceDirectory

 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\test\resources
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] No sources to compile
 [INFO] [surefire:test {execution: default-test}]
 [INFO] No tests to run.
 [INFO] [war:war {execution: default-war}]
 [INFO] Packaging webapp
 [INFO] Assembling webapp[HelloWorld] in


 [C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0]

 [INFO] Dependency[Dependency {groupId=org.apache.wicket,

 artifactId=wicket,

 version=1.4-rc2, type=jar}] has changed (was Dependency
 {groupId=org.apache.wicket, artifactId=wicket, version=1.4-rc2,

 type=jar}).

 [INFO] Dependency[Dependency {groupId=org.slf4j,

 artifactId=slf4j-log4j12,

 version=1.4.2, type=jar}] has changed (was Dependency
 {groupId=org.slf4j,
 artifactId=slf4j-log4j12, version=1.4.2, type=jar}).
 [INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
 version=1.2.14, type=jar}] has changed (was Dependency {groupId=log4j,
 artifactId=log4j, version=1.2.14, type=jar}).
 [INFO] Processing war project
 [INFO] Copying webapp


 resources[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\main\webapp]

 [INFO] Webapp assembled in[208 msecs]
 [INFO] Building war:


 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war

 [INFO] [install:install {execution: default-install}]
 [INFO] Installing


 C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war

 to


 C:\Users\admin\.m2\repository\com\mkyong\HelloWorld\1.0\HelloWorld-1.0.war

 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 5 seconds
 [INFO] Finished at: Wed Feb 16 13:22:04 PKT 2011
 [INFO] Final Memory: 10M/24M
 [INFO]
 

 -
 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: how do I get the selected entity of a table

2011-02-16 Thread Hans Lesmeister 2


hrbaer wrote:
 
 
...
 protected void populateItem( ListItemEntity item ) {
 
 final Entity e = item.getModelObject();
 item.add( new Label( text, e.getName() ) ); e not null?
 item.add( new Link( Details_Link ) {
 
 @Override public void onClick() {
 label.setVisible( true );
 selectedEntity = e; // but e is null How
 is that possible if e not null before?
 selectedEntity = item.getModelObject();
 (though I doubt if this is good practice.
 I prefer to use Models where possible) 
 }

 });
 
 }
});
 
 }
 --- 
 


-
--nbsp;

Regards,

Hans


http://www.cantaa.de http://cantaa.de 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-do-I-get-the-selected-entity-of-a-table-tp3306749p3308481.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: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-16 Thread Johan Compagner
but if you have it down to 200K then 50 users it is nothing... thats
10MB on memory
If if both where 2X so 400K and 100 users thats still only 40MB in
memory Thats for a server nothing..



On Wed, Feb 16, 2011 at 02:10, Per p...@hamburg.de wrote:


 So I still haven't solved my memory issues, despite weeks of research and
 profiling. Reading in the other thread that a session size of 100K or less
 is achievable, I'll admit defeat now: I have not been able to shrink some of
 my pages(!) to less than 200K, not to mention the sessions. Despite LDMs,
 CompoundPropertyModels, and no, there are no domain objects in there, and no
 finals.

 What on earth am I doing wrong?

 My goal is to display a long list of, say, users. Each users should list a
 few labels (name, position, location, etc) and images to show who's an
 admin/poweruser. Each user has a profile picture. Each user who is also a
 manager should have image icons of their subordinates' profile pictures
 (e.g. a nested ListView) And I want 5 or 6 AJAX labels so I can quickly
 lock/unlock users, delete them, give and revoke certain rights.

 Despite lots of profiling each row is still 4K to 6K. This adds up for even
 just 50 users. Can this be reduced, at all? I mean, it seems that 56 Bytes
 is the minimum for a Label, 32 for a PropertyModel, 80 for a ListItem, and
 some 200 for an AjaxLink. 400 for an Image (or alternatively 272 for a label
 with 2 AttributeAppenders to also render an image), and unless the whole
 list disappears from the page's object graph, all those small numbers DO add
 up.

 My final hope was the RefreshingList, but no, it also keeps the list items
 stored in the page. What I really would like is a list that does not
 maintain all its items, but throws them away, just like a LDM throws away
 the domain object, and just reloads when needed. Okay, that would not work
 because I want some state in there, but you get my point.

 I really hope it's something totally obvious I missed.

 Cheers,
 Per
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3308014.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-16 Thread Per

Hi Johan and Igor,

well, on one hand I am using App Engine, and puts are limited to 1MB. 
Even with pagination and limitation of each page to 50 users (totalling 
200Kb in memory for the whole page), I had to limit the pagemap size 
severely to ensure I am always below 1M.  In Wicket 1.5 it's a lot 
easier to write an adaptive EvictionStrategy to control memory usage, so 
I can be more flexible and evict large pages more aggressively than 
smaller ones. Still, displaying say 500 users at once will still not be 
possible if each user-row can take as much as 5K.

But I am not complaining. I knew that App Engine has this limitation, 
and I make my own product specifications, so I can live with it. On the 
plus side, App Engine (due to its restrictions) scales really well, and 
I am not worried if some day thousands of users will use my app 
concurrently. But although a typical server may have many Gigs these 
days, you'd still be in trouble if thousands of users came slurping 40M 
each, that's why I do think that session size remains an important 
consideration. I would strongly recommend anyone not to leave 
optimisation till the very last, but plan ahead and spike some of the 
most complex screens first, since Wicket *is* different in that respect.

Sorry to hear I can't optimise easily, but thanks for the quick 
responses Johan and Igor! Your support on this forum is truly 
legendary!  Will try to figure out the autoAdd() soon :-)
Per


 but if you have it down to 200K then 50 users it is nothing... thats
 10MB on memory
 If if both where 2X so 400K and 100 users thats still only 40MB in
 memory Thats for a server nothing..



 On Wed, Feb 16, 2011 at 02:10, Per [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=0 wrote:

 
 
  So I still haven't solved my memory issues, despite weeks of 
 research and
  profiling. Reading in the other thread that a session size of 100K 
 or less
  is achievable, I'll admit defeat now: I have not been able to shrink 
 some of
  my pages(!) to less than 200K, not to mention the sessions. Despite 
 LDMs,
  CompoundPropertyModels, and no, there are no domain objects in 
 there, and no
  finals.
 
  What on earth am I doing wrong?
 
  My goal is to display a long list of, say, users. Each users should 
 list a
  few labels (name, position, location, etc) and images to show who's an
  admin/poweruser. Each user has a profile picture. Each user who is 
 also a
  manager should have image icons of their subordinates' profile pictures
  (e.g. a nested ListView) And I want 5 or 6 AJAX labels so I can quickly
  lock/unlock users, delete them, give and revoke certain rights.
 
  Despite lots of profiling each row is still 4K to 6K. This adds up 
 for even
  just 50 users. Can this be reduced, at all? I mean, it seems that 56 
 Bytes
  is the minimum for a Label, 32 for a PropertyModel, 80 for a 
 ListItem, and
  some 200 for an AjaxLink. 400 for an Image (or alternatively 272 for 
 a label
  with 2 AttributeAppenders to also render an image), and unless the 
 whole
  list disappears from the page's object graph, all those small 
 numbers DO add
  up.
 
  My final hope was the RefreshingList, but no, it also keeps the list 
 items
  stored in the page. What I really would like is a list that does not
  maintain all its items, but throws them away, just like a LDM throws 
 away
  the domain object, and just reloads when needed. Okay, that would 
 not work
  because I want some state in there, but you get my point.
 
  I really hope it's something totally obvious I missed.
 
  Cheers,
  Per
  --
  View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3308014.html
  
 http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3308014.html?by-user=t
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=1
  For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=2
 
 

 -
 To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=3
 For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=4



 
 If you reply to this email, your message will be added to the 
 discussion below:
 http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3308586.html
  

 To unsubscribe from Just 100K per session? That would be my dream come 
 true! (Anyone here who has 

Re: [Announce] Wicket Stuff Core 1.4.15 released

2011-02-16 Thread Pierre Goupil
Good afternoon,

I've been unable to clone every single of these GIT repositories. The
message is still the same one:

Cloning into wicketstuff-core-1.4.15...
fatal:
https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.15/info/refsnot
found: did you run git update-server-info on the server?

Please help!

Regards,

Pierre GOUPIL


On Thu, Jan 6, 2011 at 2:34 AM, Michael O'Cleirigh 
michael.ocleir...@rivulet.ca wrote:

 Hi Martin,

 I appreciate your thoughts on the wicketstuff/core branching.

 I can see how your approach would work with their not being a stable branch
 (and then no need to cherry-pick commits from the main development branch).

 I looked back at the history and not that many people ever used the stable
 branch so tagging releases against the main branches directly shouldn't have
 any negative impact.

 Actually I think it will be better this way because contributing developers
 don't need to do anything to get their recent updates included in the new
 release.

 I've deleted the core-1.4.15.x branch and I will try out this new approach
 either for the 1.4.15.1 point release of the 1.4.16 release which ever comes
 first.

 Mike


  Hi,

 seems quite complicated to me (one branch too much):

 I'd propose to keep the number of branches low, or even very low.
 Branches, at least to me, are the hotspots to commit code to, the code you'd
 like to live on in the upstream.
 As wicketstuff is sort of the tail of wicket, it should try to follow
 wickets branching and release behavior.
 In wicket I see two development hotspots represented in the wicket-1.4.x
 and trunk (aka. wicket-1.5.x) branch. These hotspots are quite distinct. If
 code is committed to one of them and the same functionality is needed in the
 other branch, most likely an automatic merge will not do. The branches
 differ in the api and a patch to be merged into the other branch will need
 to be merged by hand. Its quite obvious to any developer that code committed
 to the 1.4.x will not automatically find its way into the trunk.

 So, I'd say, if wicketstuff wants to be the reference point for stuff for
 wicket, it should only carry two branches.

 wicketstuff-core-1.4.x with the artifact/version
 wicketstuff-core-1.4-SNAPSHOT depending on wicket-1.4-SNAPSHOT

 and

 trunk with the artifact/version wicketstuff-core-1.5-SNAPSHOT depending on
 wicket-1.5-SNAPSHOT


 If a release is build it should first be decided on the wicket version
 this release depends on. Releases depending on wicket-1.4.[1..9] should be
 cut from the wicketstuff-core.1.4.x branch.
 The release tag name and the version name should follow wickets version
 naming. I. e. a release depending on wicket-1.4.15 should get a tag and
 version of wicketstuff-1.4.15.0
 If a second release depending on the same wicket version is needed it
 should be called wicketstuff-1.4.15.1

 So basically keep the number of branches code will be committed to low and
 keep the naming obvious for any developer, to make it easy to decide in
 which branch code needs to be committed to, to make it live in the upstream.

 mf


 Am 05.01.2011 um 03:47 schrieb Michael O'Cleirigh:

  Hello,

 Following the release of wicket 1.4.15 I've cut a matching release for
 wicketstuff-core.  This release was delayed due to the migration from
 sourceforge and subversion to github.

 The artifacts have been promoted and will be synced into the maven
 central repository within 1-2 hours.

 They can be retrieved like this:

 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdwicket-shiro/artifactId
 version1.4.15/version
 /dependency

 The release tag is here:
 https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.15

 The core-1.4.x branch now has a pom version of 1.4.16-SNAPSHOT (
 https://github.com/wicketstuff/core/tree/core-1.4.x).

 I've created a new stable branch core-1.4.15.x and it has a pom version
 of 1.4.15.1-SNAPSHOT (
 https://github.com/wicketstuff/core/tree/core-1.4.15.x).

 Release Notes - WicketStuff Core - Version 1.4.15:

 wicket-shiro:
- org.wicketstuff.shiro.component.LoginPanel$SignInForm now extends
 StatelessForm instead of Form
- org.wicketstuff.shiro.component.LoginPanel.onSignInSucceeded now
 redirects to homepage using
setResponsePage(getApplication().getHomePage())
instead of

  
 setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(getApplication().getHomePage()))


 The plan is to release a 1.4.15.1 point release within one month from
 today.If you commit code and/or want a release sooner let me know as one
 month is the worst case target.

 Regards,

 Mike




 -
 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 

Re: [Announce] Wicket Stuff Core 1.4.15 released

2011-02-16 Thread Michael O'Cleirigh

Hi Pierre,

I don't know where you got that url but it is wrong.

Just clone the core repository (everything you need is contained within 
it) and the create a local branch from the wicketstuff-core-1.4.15 
release tag:


git clone git://github.com/wicketstuff/core.git

cd core

git checkout -b 1.4.15-release wicketstuff-core-1.4.15

That will put you in the directory that was used for the 1.4.15 
release.  You can use this approach for all of the tags (git tag -l).


If you want the 1.4-SNAPSHOT version, its a little different:

$ git branch -r
  origin/HEAD - origin/master
  origin/core-1.4.x
  origin/master

git checkout -b core-1.4.x origin/core-1.4.x

Regards,

Mike

Good afternoon,

I've been unable to clone every single of these GIT repositories. The
message is still the same one:

Cloning into wicketstuff-core-1.4.15...
fatal:
https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.15/info/refsnot
found: did you run git update-server-info on the server?

Please help!

Regards,

Pierre GOUPIL


On Thu, Jan 6, 2011 at 2:34 AM, Michael O'Cleirigh
michael.ocleir...@rivulet.ca  wrote:


Hi Martin,

I appreciate your thoughts on the wicketstuff/core branching.

I can see how your approach would work with their not being a stable branch
(and then no need to cherry-pick commits from the main development branch).

I looked back at the history and not that many people ever used the stable
branch so tagging releases against the main branches directly shouldn't have
any negative impact.

Actually I think it will be better this way because contributing developers
don't need to do anything to get their recent updates included in the new
release.

I've deleted the core-1.4.15.x branch and I will try out this new approach
either for the 1.4.15.1 point release of the 1.4.16 release which ever comes
first.

Mike


  Hi,

seems quite complicated to me (one branch too much):

I'd propose to keep the number of branches low, or even very low.
Branches, at least to me, are the hotspots to commit code to, the code you'd
like to live on in the upstream.
As wicketstuff is sort of the tail of wicket, it should try to follow
wickets branching and release behavior.
In wicket I see two development hotspots represented in the wicket-1.4.x
and trunk (aka. wicket-1.5.x) branch. These hotspots are quite distinct. If
code is committed to one of them and the same functionality is needed in the
other branch, most likely an automatic merge will not do. The branches
differ in the api and a patch to be merged into the other branch will need
to be merged by hand. Its quite obvious to any developer that code committed
to the 1.4.x will not automatically find its way into the trunk.

So, I'd say, if wicketstuff wants to be the reference point for stuff for
wicket, it should only carry two branches.

wicketstuff-core-1.4.x with the artifact/version
wicketstuff-core-1.4-SNAPSHOT depending on wicket-1.4-SNAPSHOT

and

trunk with the artifact/version wicketstuff-core-1.5-SNAPSHOT depending on
wicket-1.5-SNAPSHOT


If a release is build it should first be decided on the wicket version
this release depends on. Releases depending on wicket-1.4.[1..9] should be
cut from the wicketstuff-core.1.4.x branch.
The release tag name and the version name should follow wickets version
naming. I. e. a release depending on wicket-1.4.15 should get a tag and
version of wicketstuff-1.4.15.0
If a second release depending on the same wicket version is needed it
should be called wicketstuff-1.4.15.1

So basically keep the number of branches code will be committed to low and
keep the naming obvious for any developer, to make it easy to decide in
which branch code needs to be committed to, to make it live in the upstream.

mf


Am 05.01.2011 um 03:47 schrieb Michael O'Cleirigh:

  Hello,

Following the release of wicket 1.4.15 I've cut a matching release for
wicketstuff-core.  This release was delayed due to the migration from
sourceforge and subversion to github.

The artifacts have been promoted and will be synced into the maven
central repository within 1-2 hours.

They can be retrieved like this:

dependency
groupIdorg.wicketstuff/groupId
artifactIdwicket-shiro/artifactId
version1.4.15/version
/dependency

The release tag is here:
https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.15

The core-1.4.x branch now has a pom version of 1.4.16-SNAPSHOT (
https://github.com/wicketstuff/core/tree/core-1.4.x).

I've created a new stable branch core-1.4.15.x and it has a pom version
of 1.4.15.1-SNAPSHOT (
https://github.com/wicketstuff/core/tree/core-1.4.15.x).

Release Notes - WicketStuff Core - Version 1.4.15:

wicket-shiro:
- org.wicketstuff.shiro.component.LoginPanel$SignInForm now extends
StatelessForm instead of Form
- org.wicketstuff.shiro.component.LoginPanel.onSignInSucceeded now
redirects to homepage using
setResponsePage(getApplication().getHomePage())
instead of

  

Link inside MootipPanel(wicket-minis)

2011-02-16 Thread vov

Hi All,

The question about wicket-minis.

How to append Link or AjaxLink inside MootipPanel?
When I try to insert this I get the result in my tooltip as
'IBehaviorListener:0:-1',function() { }.bind..'

I have not the problems with using BookmarkablePageLink or strict link
inside HTML, but Link and AjaxLink do not work.

Thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-inside-MootipPanel-wicket-minis-tp3308830p3308830.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: How run Wicket Application

2011-02-16 Thread James Carman
On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
 mvn jetty:run?


Yes, mvn install doesn't run anything.  It just puts the jars into
your local maven repository.  You need to run the jetty plugin.

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



How to read cookie from different domain?

2011-02-16 Thread Paolo
Hi, I need to read a cookie from a different domain (it is not mine).
I known the name ok cookie.

When I create (write) a cookie, it is possible to set the name of domain:
cookie.setDomain(.example.com);

But It does'nt work for foreign domain just because security reasons, infact I 
can not modify or create cookie for othen site, not own.

But I think it is possible to READ cookie from other site. Just the user set in 
own browser settings allow third party cookies.
How can do it in wicket?

I only know this instruction to read cookie, and in this I can not choose the 
domain to use:
Cookie[] cookies = ((WebRequest)getRequestCycle().getRequest()).getCookies();

This is my test application:

=
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
xmlns:wicket=http://wicket.apache.org/; xml:lang=en lang=en
head
titleWicket cookie test/title
/head
body
a wicket:id=create_cookieCreate Cookie/a
br /br /br /
 a wicket:id=read_cookieRead Cookie/a
/body
/html

==

package org.wicket.example;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.protocol.http.WebResponse;
import org.apache.wicket.protocol.http.WebRequest;

import javax.servlet.http.Cookie;


public class TestPage extends WebPage {
  /**
   * Constructor
   */
  public TestPage() {
  }

  @Override
  protected void onInitialize() {
  super.onInitialize();

  add(new LinkTestPage(create_cookie) {

private static final long serialVersionUID = 6762033052623200948L;

@Override
public void onClick() {
((WebResponse) getResponse()).addCookie(createCookie());
setResponsePage(TestPage.class);
}
});
  add(new LinkTestPage(read_cookie) {

private static final long serialVersionUID = 
6762033052623200948L;

@Override
public void onClick() {
Cookie[] cookies = 
((WebRequest)getRequestCycle().getRequest()).getCookies();
System.out.println(cookies[0].getName());
setResponsePage(TestPage.class);
}
});
  }
  
  /**
   * Creates test cookie
   * @return cookie
   */
  public Cookie createCookie() {
Cookie cookie = new Cookie(wicketTest, 1);
//  cookie.setDomain(.example.com);
cookie.setMaxAge(6000);
return cookie;
  }

}

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



RE: Strange behavior with onUpdate after errors

2011-02-16 Thread Brown, Berlin [GCG-PFS]
OK, After doing some research, I call modelChanging and modelChanged();

   
@Override
protected void onUpdate( final AjaxRequestTarget target ) {

 
CALL form.modelChanging();

 SelectionOptionBean myChildSelected =
(SelectionOptionBean)getFormComponent().getDefaultModelObject();
 final myBean myBeanLoc = form.getModelObject();
 
THIS CODE BELOW THE VALUES ARE SET !!!
  myBean selectedChild = getChildDataFromData();
  myBeanLoc.setFirstName(selectedChild.getFirstName());
  myBeanLoc.setLastName(selectedChild.getLastName());
  myBeanLoc.setMiddleName(selectedChild.getMiddleName());

CALL form.modelChanged();
 
 target.addComponent(ccc);}
} );
...

 

-Original Message-
From: Brown, Berlin [GCG-PFS]

Debugging Problem.  I am trying to debug an issue where I set
modelobject values for a form but the values do not appear in the text
fields onUpdate (AFTER ERROR) encountered.
 
Environment:
 
A. Wicket 1.4.13
B. Ajax Tabbed Panel
C. Modal Window
D. Child Modal Window has a form (compound property model) E. Form has
text components F. Form has a drop down box, on change the behavior set
model values.
F. Form has a abstract validator
 
Recreating the issue:
 
1. Click on link to bring up modal window 2. Click on drop down box,
ajax form behavior on change, sets values in text fields.
3. Click on drop down box, ajax form behavior on change, sets values in
text fields (this part works FINE!!)
 
4. Click the null value/default selection on drop drown box 5. Click
ajax save link 6. ERROR generated
 
7, go back to step 3 and click on the drop down box, now the values do
NOT UPDATE IN THE TEXT FIELDS (but they worked in step 3).
 
Basically, my ajax drop down worked fine WITHOUT THE error, but after a
validation error, the text field values do not appear in the form.
 
...
 
Debugging the issue.
 
It is strange that the model seems to have the value I want but in the
raw input does not.  
 
Here is me overriding behavior in the textfield:
 
MyTextField {
...
@Override
protected void onComponentTag(final ComponentTag tag)
{
System.out.println(-:textComponent:modelValue: +
getModelValue());
System.out.println(-:textComponent:rawInput: +
getRawInput());
System.out.println(-:textComponent:getValue: +
getValue());
 
// Default handling for component tag
super.onComponentTag(tag);
}
}
 
...Output:
 
SystemOut O :==222y:George
SystemOut O -:textComponent:modelValue:George
SystemOut O -:textComponent:rawInput:
SystemOut O -:textComponent:getValue:
 
Why is the model value NOT null but the raw input is?
 
...
 
Some more code:
 
...
 
final FormmyBean form = new FormmyBean(calloutForm,
compoundPropertyModelForForm);
 
...
 
final MyDropDownChoice childList = new MyDropDownChoice(childList,
dropDownModelChild, renderer);
  childListContainer.add(childList);
  childList.add( new AjaxFormComponentUpdatingBehavior(onchange) {
   
 
@Override
protected void onUpdate( final AjaxRequestTarget target ) {

BaseWicketSession.get().getFeedbackMessages().clear();
 BaseWicketSession.get().cleanupFeedbackMessages();
 SelectionOptionBean myChildSelected =
(SelectionOptionBean)getFormComponent().getDefaultModelObject();
 final myBean myBeanLoc = form.getModelObject();
 
THIS CODE BELOW THE VALUES ARE SET !!!
  myBean selectedChild = getChildDataFromData();
  myBeanLoc.setFirstName(selectedChild.getFirstName());
  myBeanLoc.setLastName(selectedChild.getLastName());
  myBeanLoc.setMiddleName(selectedChild.getMiddleName());
 
 target.addComponent(ccc);
 System.out.println(:==221x: + myBeanLoc);
 System.out.println(:==222y: + myBeanLoc.getFirstName() +
- + myBeanLoc.getLastName()); 
 System.out.println(!!);
}
} );
...
 
final AjaxSubmitLink saveLink = new AjaxSubmitLink(saveLink, form) {
@Override
public void onSubmit(final AjaxRequestTarget target, final
Form? form) {  
 
modalWindow.onSave(target, null);
target.addComponent(form);
}   
};
 
...
WITH THE ERROR, the HTML renders WITHOUT THE values.  But when I print
the model object values, it looks like they are there.
 
OUTPUT FROM THE HTML:
 
input type=text size=28 maxlength=20 class=field value=
name=lastName/


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



Re: Wicket ajax-enabled enclosures

2011-02-16 Thread Martin Makundi
Hi!

Any thoughts about getting this into next release? It is fully backed
with tests etc. so it should be easy to commit. We could provide
necessary wiki update also.

**
Martin

2011/2/6 Martin Makundi martin.maku...@koodaripalvelut.com:
 Hi Martin!

 We have provided a patch https://issues.apache.org/jira/browse/WICKET-3422

 Is it ok or do you have any further suggestions?

 **
 Martin

 2010/11/11 Jeremy Thomerson jer...@wickettraining.com:
 Hi!

 Provide a patch on JIRA and we'll review it.

 --
 Jeremy Thomerson
 http://wickettraining.com
 *Need a CMS for Wicket?  Use Brix! http://brixcms.org*



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



Re: Wicket ajax-enabled enclosures

2011-02-16 Thread Martin Grigorov
Hi,

On Wed, Feb 16, 2011 at 5:17 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Hi!

 Any thoughts about getting this into next release? It is fully backed
 with tests etc. so it should be easy to commit. We could provide
 necessary wiki update also.


I took a look at it but it is quite a big changelist ...
I think our expert in the area - Juergen - have to take a look before
committing it.

I also think such bigger new features should go in 1.5 only (disclaimer: I
don't use 1.4 these days)


 **
 Martin

 2011/2/6 Martin Makundi martin.maku...@koodaripalvelut.com:
  Hi Martin!
 
  We have provided a patch
 https://issues.apache.org/jira/browse/WICKET-3422
 
  Is it ok or do you have any further suggestions?
 
  **
  Martin
 
  2010/11/11 Jeremy Thomerson jer...@wickettraining.com:
  Hi!
 
  Provide a patch on JIRA and we'll review it.
 
  --
  Jeremy Thomerson
  http://wickettraining.com
  *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
 
 

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




Re: Wicket ajax-enabled enclosures

2011-02-16 Thread Martin Makundi
 I took a look at it but it is quite a big changelist ...
 I think our expert in the area - Juergen - have to take a look before
 committing it.

 I also think such bigger new features should go in 1.5 only (disclaimer: I
 don't use 1.4 these days)

It is not so big... but I am keen to hear Juergen's opinnion, however.

When will 1.5 be out of RC phase? I expect it to be another year until
we have ported to 1.5. Or maybe if we hire some summermonkeys to do
that for us ... anyways, I think 1.4 is quite viable still for
existing applications so I believe it is worth the effor specifically
for major improvements and bugfixes.

**
Martin


 2011/2/6 Martin Makundi martin.maku...@koodaripalvelut.com:
  Hi Martin!
 
  We have provided a patch
 https://issues.apache.org/jira/browse/WICKET-3422
 
  Is it ok or do you have any further suggestions?
 
  **
  Martin
 
  2010/11/11 Jeremy Thomerson jer...@wickettraining.com:
  Hi!
 
  Provide a patch on JIRA and we'll review it.
 
  --
  Jeremy Thomerson
  http://wickettraining.com
  *Need a CMS for Wicket?  Use Brix! http://brixcms.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: How to read cookie from different domain?

2011-02-16 Thread Randy S.
It is not possible to read a cookie from a different domain. That would be a
terrible security problem.

The browser will not send cookies that do not match your domain so no amount
of code tricks on the server handling this request will get you the cookie.

The third party cookies settings in browsers controls whether it is
possible to set cookies in requests for images and other assets for a page
that come from a domain that is different than the page's domain.
On Feb 16, 2011 7:58 AM, Paolo irresistible...@gmail.com wrote:
 Hi, I need to read a cookie from a different domain (it is not mine).
 I known the name ok cookie.

 When I create (write) a cookie, it is possible to set the name of domain:
 cookie.setDomain(.example.com);

 But It does'nt work for foreign domain just because security reasons,
infact I can not modify or create cookie for othen site, not own.

 But I think it is possible to READ cookie from other site. Just the user
set in own browser settings allow third party cookies.
 How can do it in wicket?

 I only know this instruction to read cookie, and in this I can not choose
the domain to use:
 Cookie[] cookies =
((WebRequest)getRequestCycle().getRequest()).getCookies();

 This is my test application:


=
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:wicket=http://wicket.apache.org/; xml:lang=en lang=en
 head
 titleWicket cookie test/title
 /head
 body
 a wicket:id=create_cookieCreate Cookie/a
 br /br /br /
 a wicket:id=read_cookieRead Cookie/a
 /body
 /html


==

 package org.wicket.example;

 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.link.Link;
 import org.apache.wicket.protocol.http.WebResponse;
 import org.apache.wicket.protocol.http.WebRequest;

 import javax.servlet.http.Cookie;


 public class TestPage extends WebPage {
 /**
 * Constructor
 */
 public TestPage() {
 }

 @Override
 protected void onInitialize() {
 super.onInitialize();

 add(new LinkTestPage(create_cookie) {

 private static final long serialVersionUID = 6762033052623200948L;

 @Override
 public void onClick() {
 ((WebResponse) getResponse()).addCookie(createCookie());
 setResponsePage(TestPage.class);
 }
 });
 add(new LinkTestPage(read_cookie) {

 private static final long serialVersionUID = 6762033052623200948L;

 @Override
 public void onClick() {
 Cookie[] cookies =
((WebRequest)getRequestCycle().getRequest()).getCookies();
 System.out.println(cookies[0].getName());
 setResponsePage(TestPage.class);
 }
 });
 }

 /**
 * Creates test cookie
 * @return cookie
 */
 public Cookie createCookie() {
 Cookie cookie = new Cookie(wicketTest, 1);
 // cookie.setDomain(.example.com);
 cookie.setMaxAge(6000);
 return cookie;
 }

 }

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



Re: Wicket ajax-enabled enclosures

2011-02-16 Thread Martin Grigorov
On Wed, Feb 16, 2011 at 5:29 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

  I took a look at it but it is quite a big changelist ...
  I think our expert in the area - Juergen - have to take a look before
  committing it.
 
  I also think such bigger new features should go in 1.5 only (disclaimer:
 I
  don't use 1.4 these days)

 It is not so big... but I am keen to hear Juergen's opinnion, however.

 When will 1.5 be out of RC phase?

As soon as we have enough confidence it is stable enough for the most users.
And this will happen as soon as you (the users start to upgrade and report
problems).


 I expect it to be another year until
 we have ported to 1.5. Or maybe if we hire some summermonkeys to do
 that for us ... anyways, I think 1.4 is quite viable still for
 existing applications so I believe it is worth the effor specifically
 for major improvements and bugfixes.


As you know we have limited resources and supporting more branches is hard
for us.
That's why I prefer to reduce the work on the older branch and keep our
focus and energy in the newer (and better).


 **
 Martin

 
  2011/2/6 Martin Makundi martin.maku...@koodaripalvelut.com:
   Hi Martin!
  
   We have provided a patch
  https://issues.apache.org/jira/browse/WICKET-3422
  
   Is it ok or do you have any further suggestions?
  
   **
   Martin
  
   2010/11/11 Jeremy Thomerson jer...@wickettraining.com:
   Hi!
  
   Provide a patch on JIRA and we'll review it.
  
   --
   Jeremy Thomerson
   http://wickettraining.com
   *Need a CMS for Wicket?  Use Brix! http://brixcms.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




Ajax like event for onLoad

2011-02-16 Thread Brown, Berlin [GCG-PFS]
I am using the Ajax Tabbed Panel class and I could possibly hijack the
onUpdate/onClick routines to suit my needs. 
 
But I was curious, is there an event/behavior  that I can call when a
panel loads or render.
 
Something along the lines of:
 
SomeAjaxPanel {
  onBeforeRender() {
this.add(AjaxBehavior(onload') {
  onEvent(target) {
 
  }
   }
  }
 
}


Re: Dynamic Select and SelectOptions

2011-02-16 Thread rawe

Hi,

good solution, but how does it work using a ListView ??

I tried:


Select select = new Select(selectId);
select.add(new ListView(selGrpId, list) {
OptGroup optGrp = null;

@Override
protected void populateItem(ListItem item) {

MyBean bean = (DachGroupSelectBoxBean) 
item.getModelObject();
if (grpSelBean.getType() == NONE)
item.add(new 
CustomSelectOption(option, bean.getName()));
else if (grpSelBean.getType() == PARENT)
item.add(optGrp = new 
OptGroup(optGroup, bean.getName()));
else if (grpSelBean.getType() == CHILD)
optGrp.add(new 
CustomSelectOption(grpOption, bean.getName()));
}
}

);

add(select);



Markup:

select wicket:id=selectId 
div wicket:id=selGrpId
option wicket:id=option/
optgroup wicket:id=optGroup
option wicket:id=grpOptionDummyText/option
/optgroup 
/div
/select 


Error message:

WicketMessage: Unable to find component with id 'optGroup' in
[MarkupContainer [Component id = 0]]. This means that you declared
wicket:id=optGroup in your markup, but that you either did not add the
component to your page at all, or that the hierarchy does not match.


What I'm doing wrong?

Some hints?

Thanks!

Ralph
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tp1872483p3309097.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: Ajax like event for onLoad

2011-02-16 Thread Martin Grigorov
AjaxEventBehavior

On Wed, Feb 16, 2011 at 5:41 PM, Brown, Berlin [GCG-PFS] 
berlin.br...@primerica.com wrote:

 I am using the Ajax Tabbed Panel class and I could possibly hijack the
 onUpdate/onClick routines to suit my needs.

 But I was curious, is there an event/behavior  that I can call when a
 panel loads or render.

 Something along the lines of:

 SomeAjaxPanel {
  onBeforeRender() {
this.add(AjaxBehavior(onload') {
  onEvent(target) {
 
  }
   }
  }

 }



Re: Wicket ajax-enabled enclosures

2011-02-16 Thread Martin Makundi
 As soon as we have enough confidence it is stable enough for the most users.
 And this will happen as soon as you (the users start to upgrade and report
 problems).
 As you know we have limited resources and supporting more branches is hard
 for us. That's why I prefer to reduce the work on the older branch and keep 
 our
 focus and energy in the newer (and better).

Well, the problem is same elsewhere. But it is a chicken-and-egg
problem. The more we spend time on working with 1.4 the less likely we
are to move onto 1.5 which is more fragile.

As soon as 1.4 works like a ferrari, we might have time to start
working with 1.5 in parallel - as you said, it will need to report
problems for quite some time in beginning. Because we cannot demote
the user experience/quality our customers perceive, we must keep
running 1.4 until 1.5 is solid and we have fully migrated.

So 1.5 is going to be a pet project for very long time for us. Only
when we make new products we can afford to start from scratch with 1.5
and deal with its shortcomings and fix it if possible as they came
along.

Maybe 1.5 and 1.4 commiter teams should be separated so that each can
focus completely on what they are doing without bias?

**
Martin




 I expect it to be another year until
 we have ported to 1.5. Or maybe if we hire some summermonkeys to do
 that for us ... anyways, I think 1.4 is quite viable still for
 existing applications so I believe it is worth the effor specifically
 for major improvements and bugfixes.




 **
 Martin

 
  2011/2/6 Martin Makundi martin.maku...@koodaripalvelut.com:
   Hi Martin!
  
   We have provided a patch
  https://issues.apache.org/jira/browse/WICKET-3422
  
   Is it ok or do you have any further suggestions?
  
   **
   Martin
  
   2010/11/11 Jeremy Thomerson jer...@wickettraining.com:
   Hi!
  
   Provide a patch on JIRA and we'll review it.
  
   --
   Jeremy Thomerson
   http://wickettraining.com
   *Need a CMS for Wicket?  Use Brix! http://brixcms.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




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



Using StringResourceModel with BreadCrumbPanel constructor

2011-02-16 Thread shetc

Hi All,

I am working a Wicket app that consists of one WebPage that displays a
number of different
BreadCrumbPanels. Each BreadCrumbPanel has a constructor where I call
StringResourceModel
to provide I18N strings for Labels, etc. This causes the well-known warning:

Tried to retrieve a localized string for a component that has not yet been
added to the page.

If I understand the BreadCrumbPanel usage, I instantiate BreadCrumbPanels as
a user
navigates through the app, which are activated within the host WebPage. The
warning is the
result of creating the BreadCrumbPanel instance prior to it being added to
the host WebPage.

What is the recommended approach to avoid the warning in this case?

Thanks,
Steve


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-StringResourceModel-with-BreadCrumbPanel-constructor-tp3309130p3309130.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: How run Wicket Application

2011-02-16 Thread Mr Jehan
You mean jetty plugin for Tomcat or maven
I want to download it from
http://maven.apache.org/maven-1.x/plugins/jetty/downloads.html
but all mirror links are down.

please help



On Wed, Feb 16, 2011 at 6:44 PM, James Carman ja...@carmanconsulting.comwrote:

 On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
 reier...@gmail.com wrote:
  mvn jetty:run?
 

 Yes, mvn install doesn't run anything.  It just puts the jars into
 your local maven repository.  You need to run the jetty plugin.

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




Re: How run Wicket Application

2011-02-16 Thread James Carman
If you're using a Quickstart-generated Wicket project, it's already
set up for you.  Just type mvn jetty:run.


On Wed, Feb 16, 2011 at 10:59 AM, Mr Jehan jeeha...@gmail.com wrote:
 You mean jetty plugin for Tomcat or maven
 I want to download it from
 http://maven.apache.org/maven-1.x/plugins/jetty/downloads.html
 but all mirror links are down.

 please help



 On Wed, Feb 16, 2011 at 6:44 PM, James Carman 
 ja...@carmanconsulting.comwrote:

 On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
 reier...@gmail.com wrote:
  mvn jetty:run?
 

 Yes, mvn install doesn't run anything.  It just puts the jars into
 your local maven repository.  You need to run the jetty plugin.

 -
 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: How run Wicket Application

2011-02-16 Thread Mr Jehan
I cant issue *mvn jetty:run* command because I have not installed jetty
plugin

I am trying to install jetty plugin using following command

mvn plugin:download   -Dmaven.repo.remote=
http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
-DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
(above command taken from
http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
)

but encountered by following error

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'plugin'.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Required goal not found: plugin:download in
org.apache.maven.plugins:maven-plugin-plugin:2.4.3
[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found:
plugin:download in org.apache.maven.plugins:maven-plugin-plugin:2.4.3
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
[INFO] Final Memory: 2M/15M
[INFO]

while when I run mvn jetty:run I facing following error

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
[INFO] Final Memory: 2M/15M
[INFO]


On Wed, Feb 16, 2011 at 9:02 PM, James Carman ja...@carmanconsulting.comwrote:

 If you're using a Quickstart-generated Wicket project, it's already
 set up for you.  Just type mvn jetty:run.


 On Wed, Feb 16, 2011 at 10:59 AM, Mr Jehan jeeha...@gmail.com wrote:
  You mean jetty plugin for Tomcat or maven
  I want to download it from
  http://maven.apache.org/maven-1.x/plugins/jetty/downloads.html
  but all mirror links are down.
 
  please help
 
 
 
  On Wed, Feb 16, 2011 at 6:44 PM, James Carman 
 ja...@carmanconsulting.comwrote:
 
  On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
  reier...@gmail.com wrote:
   mvn jetty:run?
  
 
  Yes, mvn install doesn't run anything.  It just puts the jars into
  your local maven repository.  You need to run the jetty plugin.
 
  -
  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: How run Wicket Application

2011-02-16 Thread Mr Jehan
I cant issue *mvn jetty:run* command because I have not installed jetty
plugin

I am trying to install jetty plugin using following command

mvn plugin:download   -Dmaven.repo.remote=
http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
-DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
(above command taken from
http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
)

but encountered by following error

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'plugin'.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Required goal not found: plugin:download in
org.apache.maven.plugins:maven-plugin-plugin:2.4.3
[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found:
plugin:download in org.apache.maven.plugins:maven-plugin-plugin:2.4.3
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
[INFO] Final Memory: 2M/15M
[INFO]

while when I run mvn jetty:run I facing following error

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
[INFO] Final Memory: 2M/15M
[INFO]


On Wed, Feb 16, 2011 at 9:02 PM, James Carman ja...@carmanconsulting.comwrote:

 If you're using a Quickstart-generated Wicket project, it's already
 set up for you.  Just type mvn jetty:run.


 On Wed, Feb 16, 2011 at 10:59 AM, Mr Jehan jeeha...@gmail.com wrote:
  You mean jetty plugin for Tomcat or maven
  I want to download it from
  http://maven.apache.org/maven-1.x/plugins/jetty/downloads.html
  but all mirror links are down.
 
  please help
 
 
 
  On Wed, Feb 16, 2011 at 6:44 PM, James Carman 
 ja...@carmanconsulting.comwrote:
 
  On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
  reier...@gmail.com wrote:
   mvn jetty:run?
  
 
  Yes, mvn install doesn't run anything.  It just puts the jars into
  your local maven repository.  You need to run the jetty plugin.
 
  -
  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: How run Wicket Application

2011-02-16 Thread James Carman
You don't have to install anything.  Maven will download it
automatically.  What does your pom.xml file look like?  Are you using
a quickstart-generated project?

On Wed, Feb 16, 2011 at 11:20 AM, Mr Jehan jeeha...@gmail.com wrote:
 I cant issue *mvn jetty:run* command because I have not installed jetty
 plugin

 I am trying to install jetty plugin using following command

 mvn plugin:download   -Dmaven.repo.remote=
 http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
 -DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
 (above command taken from
 http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
 )

 but encountered by following error

 + Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'plugin'.
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Required goal not found: plugin:download in
 org.apache.maven.plugins:maven-plugin-plugin:2.4.3
 [INFO]
 
 [INFO] Trace
 org.apache.maven.BuildFailureException: Required goal not found:
 plugin:download in org.apache.maven.plugins:maven-plugin-plugin:2.4.3
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
  at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 [INFO]
 
 [INFO] Total time:  1 second
 [INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
 [INFO] Final Memory: 2M/15M
 [INFO]
 
 while when I run mvn jetty:run I facing following error

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'jetty'.
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
 exist or no valid version could be found
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time:  1 second
 [INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
 [INFO] Final Memory: 2M/15M
 [INFO]
 

 On Wed, Feb 16, 2011 at 9:02 PM, James Carman 
 ja...@carmanconsulting.comwrote:

 If you're using a Quickstart-generated Wicket project, it's already
 set up for you.  Just type mvn jetty:run.


 On Wed, Feb 16, 2011 at 10:59 AM, Mr Jehan jeeha...@gmail.com wrote:
  You mean jetty plugin for Tomcat or maven
  I want to download it from
  http://maven.apache.org/maven-1.x/plugins/jetty/downloads.html
  but all mirror links are down.
 
  please help
 
 
 
  On Wed, Feb 16, 2011 at 6:44 PM, James Carman 
 ja...@carmanconsulting.comwrote:
 
  On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
  reier...@gmail.com wrote:
   mvn jetty:run?
  
 
  Yes, mvn install doesn't run anything.  It just puts the jars into
  your local maven repository.  You need to run the jetty plugin.
 
  -
  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: 

Re: Is wicket suited for my needs?

2011-02-16 Thread Suraj Chandran
Thanks a lot for all your input.

Thanks,
Suraj.

On Wed, Feb 16, 2011 at 5:18 AM, Eelco Hillenius
eelco.hillen...@gmail.comwrote:

  My aim would be to push requests towards statelessness as much as
 possible.
  Noticing this some guys have told me that maybe wicket is not for this.
  Considering that atleast 20% of the requests will be session based, do
 you
  suggest using wicket.

 You should also consider why you want to use Wicket in the first
 place. If your UI requirements aren't all that complicated, and you
 work with a very small team (say 2 people), Wicket may not buy you
 much compared to - say - just using JSPs, JAXRS and jQuery. If on the
 other hand, your development team is larger (say 3 or 4+ people), and/
 or you have to maintain a complex UI, where you probably want to reuse
 widgets, move them around at will etc, you can benefit considerably
 from using a component based framework like Wicket.

 I would agree with others here that 10K concurrent users shouldn't be
 a problem; small cluster or maybe even a single machine should cut it,
 though compared to not using a stateful framework, you'll have to deal
 with session replication or sticky sessions in a cluster, and probably
 (depending on well you implemented things of course!) less beefy
 hardware requirements.

 Eelco

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




Re: How run Wicket Application

2011-02-16 Thread Mr Jehan
The issue with me is installing jetty plugin , please read previous message


On Wed, Feb 16, 2011 at 9:22 PM, James Carman ja...@carmanconsulting.comwrote:

 You don't have to install anything.  Maven will download it
 automatically.  What does your pom.xml file look like?  Are you using
 a quickstart-generated project?

 On Wed, Feb 16, 2011 at 11:20 AM, Mr Jehan jeeha...@gmail.com wrote:
  I cant issue *mvn jetty:run* command because I have not installed jetty
  plugin
 
  I am trying to install jetty plugin using following command
 
  mvn plugin:download   -Dmaven.repo.remote=
 
 http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
  -DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
  (above command taken from
 
 http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
  )
 
  but encountered by following error
 
  + Error stacktraces are turned on.
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'plugin'.
  [INFO]
  
  [ERROR] BUILD FAILURE
  [INFO]
  
  [INFO] Required goal not found: plugin:download in
  org.apache.maven.plugins:maven-plugin-plugin:2.4.3
  [INFO]
  
  [INFO] Trace
  org.apache.maven.BuildFailureException: Required goal not found:
  plugin:download in org.apache.maven.plugins:maven-plugin-plugin:2.4.3
   at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
   at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
   at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
   at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  [INFO]
  
  [INFO] Total time:  1 second
  [INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
  [INFO] Final Memory: 2M/15M
  [INFO]
  
  while when I run mvn jetty:run I facing following error
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'jetty'.
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
  exist or no valid version could be found
  [INFO]
  
  [INFO] For more information, run Maven with the -e switch
  [INFO]
  
  [INFO] Total time:  1 second
  [INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
  [INFO] Final Memory: 2M/15M
  [INFO]
  
 
  On Wed, Feb 16, 2011 at 9:02 PM, James Carman 
 ja...@carmanconsulting.comwrote:
 
  If you're using a Quickstart-generated Wicket project, it's already
  set up for you.  Just type mvn jetty:run.
 
 
  On Wed, Feb 16, 2011 at 10:59 AM, Mr Jehan jeeha...@gmail.com wrote:
   You mean jetty plugin for Tomcat or maven
   I want to download it from
   http://maven.apache.org/maven-1.x/plugins/jetty/downloads.html
   but all mirror links are down.
  
   please help
  
  
  
   On Wed, Feb 16, 2011 at 6:44 PM, James Carman 
  ja...@carmanconsulting.comwrote:
  
   On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
   reier...@gmail.com wrote:
mvn jetty:run?
   
  
   Yes, mvn install doesn't run anything.  It just puts the jars into
   your local maven repository.  You need to run the jetty plugin.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  

Re: How run Wicket Application

2011-02-16 Thread James Carman
How about we go about this a different way?  Why don't you try
generating a Wicket Quickstart example application?  If that doesn't
run, then you've got other problems.  If it does run, then you need to
try to copy the sections from the pom.xml file that you need (namely
the plugins).

On Wed, Feb 16, 2011 at 11:41 AM, Mr Jehan jeeha...@gmail.com wrote:
 The issue with me is installing jetty plugin , please read previous message

 On Wed, Feb 16, 2011 at 9:22 PM, James Carman ja...@carmanconsulting.com
 wrote:

 You don't have to install anything.  Maven will download it
 automatically.  What does your pom.xml file look like?  Are you using
 a quickstart-generated project?

 On Wed, Feb 16, 2011 at 11:20 AM, Mr Jehan jeeha...@gmail.com wrote:
  I cant issue *mvn jetty:run* command because I have not installed jetty
  plugin
 
  I am trying to install jetty plugin using following command
 
  mvn plugin:download   -Dmaven.repo.remote=
 
  http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
  -DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
  (above command taken from
 
  http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
  )
 
  but encountered by following error
 
  + Error stacktraces are turned on.
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'plugin'.
  [INFO]
  
  [ERROR] BUILD FAILURE
  [INFO]
  
  [INFO] Required goal not found: plugin:download in
  org.apache.maven.plugins:maven-plugin-plugin:2.4.3
  [INFO]
  
  [INFO] Trace
  org.apache.maven.BuildFailureException: Required goal not found:
  plugin:download in org.apache.maven.plugins:maven-plugin-plugin:2.4.3
   at
 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
   at
 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
   at
 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
   at
  org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  [INFO]
  
  [INFO] Total time:  1 second
  [INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
  [INFO] Final Memory: 2M/15M
  [INFO]
  
  while when I run mvn jetty:run I facing following error
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'jetty'.
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
  exist or no valid version could be found
  [INFO]
  
  [INFO] For more information, run Maven with the -e switch
  [INFO]
  
  [INFO] Total time:  1 second
  [INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
  [INFO] Final Memory: 2M/15M
  [INFO]
  
 
  On Wed, Feb 16, 2011 at 9:02 PM, James Carman
  ja...@carmanconsulting.comwrote:
 
  If you're using a Quickstart-generated Wicket project, it's already
  set up for you.  Just type mvn jetty:run.
 
 
  On Wed, Feb 16, 2011 at 10:59 AM, Mr Jehan jeeha...@gmail.com wrote:
   You mean jetty plugin for Tomcat or maven
   I want to download it from
   http://maven.apache.org/maven-1.x/plugins/jetty/downloads.html
   but all mirror links are down.
  
   please help
  
  
  
   On Wed, Feb 16, 2011 at 6:44 PM, James Carman 
  ja...@carmanconsulting.comwrote:
  
   On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro
   reier...@gmail.com wrote:
mvn jetty:run?
   
  

Re: usage of JavascriptFilteredIntoFooterHeaderResponse

2011-02-16 Thread Zilvinas Vilutis
Sorry, that was not WiQuery, it was JQuery from Wicketstuff :)

Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com



On Tue, Feb 15, 2011 at 12:06 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 On Mon, Feb 14, 2011 at 12:11 AM, Zilvinas Vilutis cika...@gmail.comwrote:


 Hi Jeremy,

 Thanks for the implementation ( I've found that you're the author of most
 of
 the files :) ) - it will be really useful in the future.

 1st problem I ran into - no usage example in Javadocs :) However, mailing
 list helped!
 ... after that
 I've found that one of the core WiQuery classes renders javascript with
 response.renderString method (
 org.wicketstuff.jquery.JQueryBehavior.renderHead(IHeaderResponse) ):


 Hmm, yeah, renderString doesn't give us any metadata to work with to realize
 it's JS and therefore filter it.  It could be anything, or any combination
 of things.  I think you should ask the WiQuery guys to change their usage to
 use renderJavascript so that you can use this with it.


    @Override
    public void renderHead(IHeaderResponse response) {
        try {
            super.renderHead(response);
            if(getIncludeJQueryJS(response)) {
                    response.renderJavascriptReference(JQUERY_JS);
                    if
 (Application.DEVELOPMENT.equals(Application.get().getConfigurationType()))
 {
                        response.renderJavascriptReference(JQUERY_DEBUG_JS);
                    }
            }
            CharSequence script = getOnReadyScript();
            if ((script != null)  (script.length()  0)) {
                StringBuilder builder = new StringBuilder();
                builder.append(script
 type=\text/javascript\\n$(document).ready(function(){\n);
                builder.append(script);
                builder.append(\n});/script);
                response.renderString(builder.toString());
            }
        } catch (RuntimeException exc) {
            throw exc;
        } catch (Exception exc) {
            throw new RuntimeException(wrap:  + exc.getMessage(), exc);
        }
    }


 Which is not being filtered and gets into header - which causes the
 $('document') string to be not valid before jquery.js was loaded.

 Basic features looks good and definitely a good start!

 Probably I'll need more examples how to use
 AbstractResourceDependentResourceReference to create JS Reference
 dependencies and make sure the order is all right.


 Take a look at the examples and start a thread for questions if you have
 them.

 --
 Jeremy Thomerson
 http://wickettraining.com
 *Need a CMS for Wicket?  Use Brix! http://brixcms.org*


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



Re: How to read cookie from different domain?

2011-02-16 Thread Paolo
Alle mercoledì 16 febbraio 2011, Randy S. ha scritto:
 It is not possible to read a cookie from a different domain. That would be a
 terrible security problem.
 
 The browser will not send cookies that do not match your domain so no amount
 of code tricks on the server handling this request will get you the cookie.
 
 The third party cookies settings in browsers controls whether it is
 possible to set cookies in requests for images and other assets for a page
 that come from a domain that is different than the page's domain.

If I put the other page in a Iframe into my page, and I use Javascript or other 
client side technology, is it possible?

Thank you.

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



Re: Using StringResourceModel with BreadCrumbPanel constructor

2011-02-16 Thread robert.mcguinness

My breadcrumb panels are usually tied to some model object which provides the
titles.  For titles that are read from a localized file I use:


@Override
public String getTitle() {
return
Application.get().getResourceSettings().getLocalizer().getString(some.key.here,
(Component)null, (String) null);
}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-StringResourceModel-with-BreadCrumbPanel-constructor-tp3309130p3309252.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: How run Wicket Application

2011-02-16 Thread Mr Jehan
using Wicket Quickstart example application it is done

On Wed, Feb 16, 2011 at 9:44 PM, James Carman ja...@carmanconsulting.comwrote:

 How about we go about this a different way?  Why don't you try
 generating a Wicket Quickstart example application?  If that doesn't
 run, then you've got other problems.  If it does run, then you need to
 try to copy the sections from the pom.xml file that you need (namely
 the plugins).

 On Wed, Feb 16, 2011 at 11:41 AM, Mr Jehan jeeha...@gmail.com wrote:
  The issue with me is installing jetty plugin , please read previous
 message
 
  On Wed, Feb 16, 2011 at 9:22 PM, James Carman 
 ja...@carmanconsulting.com
  wrote:
 
  You don't have to install anything.  Maven will download it
  automatically.  What does your pom.xml file look like?  Are you using
  a quickstart-generated project?
 
  On Wed, Feb 16, 2011 at 11:20 AM, Mr Jehan jeeha...@gmail.com wrote:
   I cant issue *mvn jetty:run* command because I have not installed
 jetty
   plugin
  
   I am trying to install jetty plugin using following command
  
   mvn plugin:download   -Dmaven.repo.remote=
  
  
 http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
   -DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
   (above command taken from
  
  
 http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
   )
  
   but encountered by following error
  
   + Error stacktraces are turned on.
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'plugin'.
   [INFO]
  
 
   [ERROR] BUILD FAILURE
   [INFO]
  
 
   [INFO] Required goal not found: plugin:download in
   org.apache.maven.plugins:maven-plugin-plugin:2.4.3
   [INFO]
  
 
   [INFO] Trace
   org.apache.maven.BuildFailureException: Required goal not found:
   plugin:download in org.apache.maven.plugins:maven-plugin-plugin:2.4.3
at
  
  
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
at
  
  
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
at
  
  
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
  
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
  
  
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
  
  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
   org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
   [INFO]
  
 
   [INFO] Total time:  1 second
   [INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
   [INFO] Final Memory: 2M/15M
   [INFO]
  
 
   while when I run mvn jetty:run I facing following error
  
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'jetty'.
   [INFO]
  
 
   [ERROR] BUILD ERROR
   [INFO]
  
 
   [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does
 not
   exist or no valid version could be found
   [INFO]
  
 
   [INFO] For more information, run Maven with the -e switch
   [INFO]
  
 
   [INFO] Total time:  1 second
   [INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
   [INFO] Final Memory: 2M/15M
   [INFO]
  
 
  
   On Wed, Feb 16, 2011 at 9:02 PM, James Carman
   ja...@carmanconsulting.comwrote:
  
   If you're using a Quickstart-generated Wicket project, it's already
   set up for you.  Just type mvn jetty:run.
  
  
   On Wed, Feb 16, 2011 at 10:59 AM, Mr Jehan jeeha...@gmail.com
 wrote:
You mean jetty plugin for Tomcat or maven
I want to download it from

Re: How run Wicket Application

2011-02-16 Thread James Carman
Okay, so make a backup copy of your pom.xml file, copy the
quickstart's pom.xml to your directory, edit it to your liking (group,
artifact, name, version, etc.) and try it with your source code.

On Wed, Feb 16, 2011 at 12:01 PM, Mr Jehan jeeha...@gmail.com wrote:
 using Wicket Quickstart example application it is done

 On Wed, Feb 16, 2011 at 9:44 PM, James Carman 
 ja...@carmanconsulting.comwrote:

 How about we go about this a different way?  Why don't you try
 generating a Wicket Quickstart example application?  If that doesn't
 run, then you've got other problems.  If it does run, then you need to
 try to copy the sections from the pom.xml file that you need (namely
 the plugins).

 On Wed, Feb 16, 2011 at 11:41 AM, Mr Jehan jeeha...@gmail.com wrote:
  The issue with me is installing jetty plugin , please read previous
 message
 
  On Wed, Feb 16, 2011 at 9:22 PM, James Carman 
 ja...@carmanconsulting.com
  wrote:
 
  You don't have to install anything.  Maven will download it
  automatically.  What does your pom.xml file look like?  Are you using
  a quickstart-generated project?
 
  On Wed, Feb 16, 2011 at 11:20 AM, Mr Jehan jeeha...@gmail.com wrote:
   I cant issue *mvn jetty:run* command because I have not installed
 jetty
   plugin
  
   I am trying to install jetty plugin using following command
  
   mvn plugin:download   -Dmaven.repo.remote=
  
  
 http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
   -DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
   (above command taken from
  
  
 http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
   )
  
   but encountered by following error
  
   + Error stacktraces are turned on.
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'plugin'.
   [INFO]
  
 
   [ERROR] BUILD FAILURE
   [INFO]
  
 
   [INFO] Required goal not found: plugin:download in
   org.apache.maven.plugins:maven-plugin-plugin:2.4.3
   [INFO]
  
 
   [INFO] Trace
   org.apache.maven.BuildFailureException: Required goal not found:
   plugin:download in org.apache.maven.plugins:maven-plugin-plugin:2.4.3
    at
  
  
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
    at
  
  
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
    at
  
  
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at
  
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
  
  
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
  
  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at
   org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
   [INFO]
  
 
   [INFO] Total time:  1 second
   [INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
   [INFO] Final Memory: 2M/15M
   [INFO]
  
 
   while when I run mvn jetty:run I facing following error
  
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'jetty'.
   [INFO]
  
 
   [ERROR] BUILD ERROR
   [INFO]
  
 
   [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does
 not
   exist or no valid version could be found
   [INFO]
  
 
   [INFO] For more information, run Maven with the -e switch
   [INFO]
  
 
   [INFO] Total time:  1 second
   [INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
   [INFO] Final Memory: 2M/15M
   [INFO]
  
 
  
   On Wed, Feb 16, 2011 at 9:02 PM, James Carman
   ja...@carmanconsulting.comwrote:
  
   If you're using a Quickstart-generated Wicket project, 

Re: How run Wicket Application

2011-02-16 Thread Mr Jehan
ok sir

On Wed, Feb 16, 2011 at 10:05 PM, James Carman
ja...@carmanconsulting.comwrote:

 Okay, so make a backup copy of your pom.xml file, copy the
 quickstart's pom.xml to your directory, edit it to your liking (group,
 artifact, name, version, etc.) and try it with your source code.

 On Wed, Feb 16, 2011 at 12:01 PM, Mr Jehan jeeha...@gmail.com wrote:
  using Wicket Quickstart example application it is done
 
  On Wed, Feb 16, 2011 at 9:44 PM, James Carman 
 ja...@carmanconsulting.comwrote:
 
  How about we go about this a different way?  Why don't you try
  generating a Wicket Quickstart example application?  If that doesn't
  run, then you've got other problems.  If it does run, then you need to
  try to copy the sections from the pom.xml file that you need (namely
  the plugins).
 
  On Wed, Feb 16, 2011 at 11:41 AM, Mr Jehan jeeha...@gmail.com wrote:
   The issue with me is installing jetty plugin , please read previous
  message
  
   On Wed, Feb 16, 2011 at 9:22 PM, James Carman 
  ja...@carmanconsulting.com
   wrote:
  
   You don't have to install anything.  Maven will download it
   automatically.  What does your pom.xml file look like?  Are you using
   a quickstart-generated project?
  
   On Wed, Feb 16, 2011 at 11:20 AM, Mr Jehan jeeha...@gmail.com
 wrote:
I cant issue *mvn jetty:run* command because I have not installed
  jetty
plugin
   
I am trying to install jetty plugin using following command
   
mvn plugin:download   -Dmaven.repo.remote=
   
   
 
 http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
-DgroupId=maven   -DartifactId=maven-jetty-plugin   -Dversion=1.1
(above command taken from
   
   
 
 http://maven.apache.org/maven-1.x/plugins/jetty/announcements/announcement-1.1.txt
)
   
but encountered by following error
   
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'plugin'.
[INFO]
   
  
[ERROR] BUILD FAILURE
[INFO]
   
  
[INFO] Required goal not found: plugin:download in
org.apache.maven.plugins:maven-plugin-plugin:2.4.3
[INFO]
   
  
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found:
plugin:download in
 org.apache.maven.plugins:maven-plugin-plugin:2.4.3
 at
   
   
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1867)
 at
   
   
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
 at
   
   
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 at
   
  org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
   
   
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
   
   
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
   
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
   
  
[INFO] Total time:  1 second
[INFO] Finished at: Wed Feb 16 21:16:03 PKT 2011
[INFO] Final Memory: 2M/15M
[INFO]
   
  
while when I run mvn jetty:run I facing following error
   
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]
   
  
[ERROR] BUILD ERROR
[INFO]
   
  
[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin'
 does
  not
exist or no valid version could be found
[INFO]
   
  
[INFO] For more information, run Maven with the -e switch
[INFO]
   
  
[INFO] Total time:  1 second
[INFO] Finished at: Wed Feb 16 21:17:53 PKT 2011
[INFO] Final Memory: 2M/15M

How to pass parameters from one page to other

2011-02-16 Thread Mr Jehan
Dear all

How to pass parameters from one page to other page.


Re: How to pass parameters from one page to other

2011-02-16 Thread James Carman
PageParameters?

On Wed, Feb 16, 2011 at 12:12 PM, Mr Jehan jeeha...@gmail.com wrote:
 Dear all

 How to pass parameters from one page to other page.


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



Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread eugenebalt

Wicket seems to accumulate all error messages and display them at once.

But I have a case where, if Validator X doesn't pass, I should *NOT* go into
Validator Y. How do I break the chain?

Also, how do I know if a particular validator has completed successfully?
thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stop-at-Validator-X-in-case-of-error-do-not-run-Validator-Y-tp3309299p3309299.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: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread Igor Vaynberg
if X and Y are on the same component then Y will not run if X fails.

-igor

On Wed, Feb 16, 2011 at 9:20 AM, eugenebalt eugeneb...@yahoo.com wrote:

 Wicket seems to accumulate all error messages and display them at once.

 But I have a case where, if Validator X doesn't pass, I should *NOT* go into
 Validator Y. How do I break the chain?

 Also, how do I know if a particular validator has completed successfully?
 thanks
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Stop-at-Validator-X-in-case-of-error-do-not-run-Validator-Y-tp3309299p3309299.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread James Carman
If you're using a form validator, you need to override the
getDependentFormComponents() method so that it knows that it shouldn't
fire if those components fail.

On Wed, Feb 16, 2011 at 12:26 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 if X and Y are on the same component then Y will not run if X fails.

 -igor

 On Wed, Feb 16, 2011 at 9:20 AM, eugenebalt eugeneb...@yahoo.com wrote:

 Wicket seems to accumulate all error messages and display them at once.

 But I have a case where, if Validator X doesn't pass, I should *NOT* go into
 Validator Y. How do I break the chain?

 Also, how do I know if a particular validator has completed successfully?
 thanks
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Stop-at-Validator-X-in-case-of-error-do-not-run-Validator-Y-tp3309299p3309299.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



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



Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread eugenebalt

James Carman, correct, one validator is on a component and the other is
form-level. That's why they both occur, and I need to prevent the form-level
one from kicking in.

How do I need to override that method? Can it be empty, or what do I
specify?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stop-at-Validator-X-in-case-of-error-do-not-run-Validator-Y-tp3309299p3309473.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



JQueryBehavior rendering javascript with renderString() vs renderJavascript() method

2011-02-16 Thread Zilvinas Vilutis
I've found that one of the core JQuery classes renders javascript with
response.renderString method (
org.wicketstuff.jquery.JQueryBehavior.renderHead(IHeaderResponse) ):

@Override
public void renderHead(IHeaderResponse response) {
try {
super.renderHead(response);
if(getIncludeJQueryJS(response)) {
response.renderJavascriptReference(JQUERY_JS);
if
(Application.DEVELOPMENT.equals(Application.get().getConfigurationType()))
{
response.renderJavascriptReference(JQUERY_DEBUG_JS);
}
}
CharSequence script = getOnReadyScript();
if ((script != null)  (script.length()  0)) {
StringBuilder builder = new StringBuilder();
builder.append(script
type=\text/javascript\\n$(document).ready(function(){\n);
builder.append(script);
builder.append(\n});/script);
response.renderString(builder.toString());
}
} catch (RuntimeException exc) {
throw exc;
} catch (Exception exc) {
throw new RuntimeException(wrap:  + exc.getMessage(), exc);
}
}

This disables javascript filtering in JavascriptFilteredIntoFooterHeaderResponse


Can someone create an issue for org.wicketstuff.jquery guys to change
renderString to renderJavascript?


The author of this class is author David Bernard (dwayne) :)


Thank you!



Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com

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



Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread James Carman
You need to return a list of components that the form-level validator
depends on.  Here's one of mine:

public FormComponent?[] getDependentFormComponents()
{
  return new FormComponent[]{textArea1, textArea2};
}



On Wed, Feb 16, 2011 at 1:41 PM, eugenebalt eugeneb...@yahoo.com wrote:

 James Carman, correct, one validator is on a component and the other is
 form-level. That's why they both occur, and I need to prevent the form-level
 one from kicking in.

 How do I need to override that method? Can it be empty, or what do I
 specify?
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Stop-at-Validator-X-in-case-of-error-do-not-run-Validator-Y-tp3309299p3309473.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: Using StringResourceModel with BreadCrumbPanel constructor

2011-02-16 Thread shetc

Thanks Robert. The issue is really for the other components that I am adding
to a BreadCrumbPanel such
as labels.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-StringResourceModel-with-BreadCrumbPanel-constructor-tp3309130p3309522.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



Adding pages in clean URLs

2011-02-16 Thread Suraj Chandran
Hi

I have a class Main.class(bookmarkable) and its associated Main.html in
package com.xyz
What I want is Main.html be able to be accessed as
www.xyz.com/home/Main.html

I tried something like this:

  @Override
protected void init() {
super.init();
this.mount(/homes/,
PackageName.forPackage(Main.class.getPackage()));
this.addComponentInstantiationListener(new
SpringComponentInjector(this));
}

But it doesen't seem to work.
Am I doing things right?
Thanks,
Suraj.


Re: Adding pages in clean URLs

2011-02-16 Thread Suraj Chandran
I am sorry. Let me correct my question.
I am indeed able to do it for one class using :

 mountBookmarkablePage(/home, Main.class);


But what I want to do is to export the entire package under /home.

Thanks,
Suraj.

On Thu, Feb 17, 2011 at 12:45 AM, Suraj Chandran chandransu...@gmail.comwrote:

 Hi

 I have a class Main.class(bookmarkable) and its associated Main.html in
 package com.xyz
 What I want is Main.html be able to be accessed as
 www.xyz.com/home/Main.html

 I tried something like this:

   @Override
 protected void init() {
 super.init();
 this.mount(/homes/,
 PackageName.forPackage(Main.class.getPackage()));
 this.addComponentInstantiationListener(new
 SpringComponentInjector(this));
 }

 But it doesen't seem to work.
 Am I doing things right?
 Thanks,
 Suraj.



Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread eugenebalt

James, are {textArea1, textArea2} global variables? where are they defined?

I was thinking of creating and returning an array of
(FormComponent)form.get(fieldname),  but the method doesn't know about the
form, it's not passed in as a param the way it is in validate().
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stop-at-Validator-X-in-case-of-error-do-not-run-Validator-Y-tp3309299p3309558.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: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread James Carman
In my case, they are final local variables in my constructor.
Basically, you just need to be able to figure out a way to refer to
the components.  If this validator is reusable in different contexts,
you could perhaps pass the dependent components into the constructor
of the validator?

On Wed, Feb 16, 2011 at 2:20 PM, eugenebalt eugeneb...@yahoo.com wrote:

 James, are {textArea1, textArea2} global variables? where are they defined?

 I was thinking of creating and returning an array of
 (FormComponent)form.get(fieldname),  but the method doesn't know about the
 form, it's not passed in as a param the way it is in validate().
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Stop-at-Validator-X-in-case-of-error-do-not-run-Validator-Y-tp3309299p3309558.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: JQueryBehavior rendering javascript with renderString() vs renderJavascript() method

2011-02-16 Thread Igor Vaynberg
wicketstuff is hosted on github, you can make the issue yourself.

-igor

On Wed, Feb 16, 2011 at 10:58 AM, Zilvinas Vilutis cika...@gmail.com wrote:
 I've found that one of the core JQuery classes renders javascript with
 response.renderString method (
 org.wicketstuff.jquery.JQueryBehavior.renderHead(IHeaderResponse) ):

    @Override
    public void renderHead(IHeaderResponse response) {
        try {
            super.renderHead(response);
            if(getIncludeJQueryJS(response)) {
                    response.renderJavascriptReference(JQUERY_JS);
                    if
 (Application.DEVELOPMENT.equals(Application.get().getConfigurationType()))
 {
                        response.renderJavascriptReference(JQUERY_DEBUG_JS);
                    }
            }
            CharSequence script = getOnReadyScript();
            if ((script != null)  (script.length()  0)) {
                StringBuilder builder = new StringBuilder();
                builder.append(script
 type=\text/javascript\\n$(document).ready(function(){\n);
                builder.append(script);
                builder.append(\n});/script);
                response.renderString(builder.toString());
            }
        } catch (RuntimeException exc) {
            throw exc;
        } catch (Exception exc) {
            throw new RuntimeException(wrap:  + exc.getMessage(), exc);
        }
    }

 This disables javascript filtering in 
 JavascriptFilteredIntoFooterHeaderResponse


 Can someone create an issue for org.wicketstuff.jquery guys to change
 renderString to renderJavascript?


 The author of this class is author David Bernard (dwayne) :)


 Thank you!



 Žilvinas Vilutis

 Mobile:   (+370) 652 38353
 E-mail:   cika...@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: Adding pages in clean URLs

2011-02-16 Thread Igor Vaynberg
i believe it will be available without the .html so www.xyz.com/home/Main

-igor


On Wed, Feb 16, 2011 at 11:15 AM, Suraj Chandran
chandransu...@gmail.com wrote:
 Hi

 I have a class Main.class(bookmarkable) and its associated Main.html in
 package com.xyz
 What I want is Main.html be able to be accessed as
 www.xyz.com/home/Main.html

 I tried something like this:

  @Override
    protected void init() {
        super.init();
        this.mount(/homes/,
 PackageName.forPackage(Main.class.getPackage()));
        this.addComponentInstantiationListener(new
 SpringComponentInjector(this));
    }

 But it doesen't seem to work.
 Am I doing things right?
 Thanks,
 Suraj.


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



Upload/Download FormComponent

2011-02-16 Thread Antony Webster
Hi,


I'd like to wrap up some functionality in a nice reusable component but I'm not 
sure how to go about it.


I have a page which has a panel with 2 links : a file download and a 'delete' 
link. If a file, specified in my code, is present on my server, this panel 
permits me to either download it or remove it. On the other hand if the file 
isn't present, an input type=file component is shown permitting the user to 
upload a file. This file will either be renamed so that the 'download' panel 
can detect it or prefixed with some text which would achieve the same result. 
Now this is quite simple to do by switching visibilities etc.. but I need 4 of 
these components within my form. Thus the need to wrap this behaviour up in 
order to reduce the amount of redundant code but I'm not sure how to go about 
it.


I would be most grateful for any suggestions from the more seasoned Wicketeers 
amongst you!


Thanks,

auto-linking to (shared) resources in a parent-relative path

2011-02-16 Thread Daniel Neugebauer

Hi!

I'm desperately trying to get a few static image files auto-linked 
(using wicket:link in my markup) to a parent-relative path. It works 
fine while using .. but I can't figure out how to get the correct 
src-URLs using any of the workarounds I could find that should appease 
Wicket so it stops logging the warning:


---
Your path looks like: ../../images/system/icons/cancel.png
For security reasons moving up '../' is disabled by default. Please see
IResourceSettings.getParentFolderPlaceholder() and PackageResourceGuard 
for more details

---

I tried many ways to work around that problem but nothing succeeds in 
automatically linking the markup, I always end up with the unchanged 
URL. I would be glad if someone could show me what I do wrong or could 
even provide me with a small working example (all I could find were 
one-line examples that don't work for me).


Furthermore, I'm unsure what workaround I should use. The cleanest way 
would possibly be number 3 listed below. Anyway, all except number 2 
break links when viewing the templates without a running Wicket 
application. Also, I don't really get the difference that workaround 1 
makes from what I read. How does it help security if I'm just replacing 
.. by some arbitrary String like $up$?


The application is built using Wicket 1.4.15, Maven and Jetty. It has 
two different frontends which led to a package structure like:


com
  company
 project
wicket
   frontend1
  pages
   frontend2
  pages

Markup is stored directly in frontend1.pages and frontend2.pages. The 
image files have recently been moved from frontend2.pages to 
com.company.project.wicket so now I have to get two package levels 
higher. Markup is currently in src/main/java while images are in 
src/main/resources which shouldn't matter since they are copied to one 
directory on build/execution.


I would like to show what I tried so far without any luck, so please 
excuse me if this gets a bit longer:




Workaround 1: Setting the placeholder to $up$ in Application.init()

Code:
getResourceSettings().setParentFolderPlaceholder($up$);

Markup:
img src=$up$/$up$/images/system/icons/cancel.png alt=Cancel /

Result in a browser:
img src=$up$/$up$/images/system/icons/cancel.png alt=Cancel /



Workaround 2: Mounting a shared resource

I created an empty class CommonResources in com.company.project.wicket 
so the shared resource key returns 
com.company.project.wicket.CommonResources/images/system/icons/cancel.png


Code:
mountSharedResource(images/system/icons/cancel.png, new 
ResourceReference(CommonResources.class, 
images/system/icons/cancel.png).getSharedResourceKey());


Markup:
img src=images/system/icons/cancel.png alt=Cancel /

Result: (404)
img src=images/system/icons/cancel.png alt=Cancel /



Workaround 3: Trying to move the icons to a resource directory below the 
context path (WAR root level)


I called the folder resourcesearch because resources is already 
handled by Wicket.


Code: (either one of these two lines)
getResourceSettings().addResourceFolder(resourcesearch);
getResourceSettings().addResourceFolder(getServletContext().getRealPath(/resourcesearch));

Markup: (also tried without the root slash)
img src=/resourcesearch/images/system/icons/cancel.png alt=Cancel /

Result: (wrong path, it's actually deployed to /ProjectName-Version/)
img src=/resourcesearch/images/system/icons/cancel.png alt=Cancel /


Thanks,
Daniel

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



Re: Adding pages in clean URLs

2011-02-16 Thread Mike Mander
Is WebApplication.mount(final String path, final PackageName 
packageName) fitting?


Mike

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



CheckBox and Repeater

2011-02-16 Thread Alexander Monakhov
Hi, guys.

I've got repeater, each row of which is backed by model object. Each
row has check box, so I can select multiple rows and delete
appropriated model objects when 'delete' button pressed.
I have in mind two ways how to implement this. One is to parse raw
response and retrieve post parameters that indicates which rows were
selected. Another one is to have a list of check boxes outside of
repeater and fill this list with any call to populateItem() method.
When form is submitted, walk throw this list to find which rows were
selected, then get appropriated models from parent ListItem and remove
them.

Could you give my advice? Maybe you have another approach to implement this?

Best regards, Alexander.

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