wicketpath is not valid html

2010-04-27 Thread Emond Papegaaij
Hi,

For our project, we use the Wicket Stuff HTML Validator 
(http://github.com/dashorst/wicket-stuff-markup-validator), which informs us 
of invalid HTML upfront. However, with the switch from wicket 1.3 to 1.4, this 
validator is giving many errors on the wicketpath attribute. 

This attributed used to be named wicket:path, and was renamed to wicketpath as 
part of WICKET-1877, because selenium is having trouble using wicket:path. It 
was opted to make the name configurable, but decided that 'we don't need yet 
another configuration option'. Could this please be reconsidered? I like to 
keep the wicket:path attributes in the generated markup, because they can be 
very handy for debugging, but I have to disable them to keep the HTML 
validator happy.

Best regards,
Emond Papegaaij

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



Re: FileUploadField within RepeatingView

2010-04-27 Thread Giovanni Cuccu

Hi,
	please ignore my previous request. I'm investigating the issue and the 
cause seems related to a bug in my code. The bug is still here but this 
is another issue.

Regards,
Giovanni

Hi,
I'm trying to build a form with multiple file upload fields. Each 
upload field has a companion text field used for describing the file 
content.

I'm using a form with a RepeatingView:
here is a simple code snippet:
private FileUpload upload0;
private FileUpload upload1;


RepeatingView allegatiView = new RepeatingView(allegati);
add(allegatiView);
int i=0;
for(SegnalazioneAllegato segnalazioneAllegato: allegati) {
WebMarkupContainer allegatoContainer= new 
WebMarkupContainer(allegatiView.newChildId());

allegatiView.add(allegatoContainer);
allegatoContainer.add(new TextFieldString(descrizione,new 
PropertyModelString(segnalazioneAllegato,descrizioneAllegato)));
allegatoContainer.add(new FileUploadField(allegato,new 
PropertyModelFileUpload(this,upload+ i +)));

}
If I configure only one FileUploadField the fileupload succeds while if 
I use two FileUploadField instances I can't get the data because upload0 
and upload1 are both null.
I can't use MultiFileUploadField because each file must be submitted 
along with a description.

Is this a bug or am I missing something?
Is it possible to use multiple MultiFileUploadField instances witihin a 
form?

Thanks a lot,
Giovanni





--
Giovanni Cuccu
Responsabile area sviluppo - CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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



Re: Shadow text on input fields

2010-04-27 Thread Robert Kimotho
have you tried:-

input type=text name= size= value= your text...
onFocus=this.value='' onMouseOver=window.status=' your
txt...';return true onMouseOut=window.status='';return true

Kimotho,

On 4/26/10, Stefan Jozsa stefan_...@yahoo.com wrote:
 CSS:
 .inputHint {
   color: #66;
 }

 Java:
 add(new AttributeModifier(value, true, new AbstractReadOnlyModelString()
 {
   @Override
   public String getObject() {
   return yourHintText;
   }
 }));
 add(new AttributeModifier(class, true, new AbstractReadOnlyModelString()
 {
   @Override
   public String getObject() {
   return inputHint;
   }
 }));
 add(new AttributeModifier(onfocus, true, new
 AbstractReadOnlyModelString() {
   @Override
   public String getObject() {
   return removeInputHint(this,'inputHint');;
   }
 }));

 JS:
 removeInputHint = function(x, c) {
   x.setAttribute('value', '');
   jQuery(x).removeClass(c);
 }

 Stefan






 -
 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



[announce] Wicket Security 1.4-rc1 released

2010-04-27 Thread Martijn Dashorst
We have released Wicket Security 1.4-rc1. This release makes Wicket
Security (more) compatible with Wicket 1.4.

You can upgrade from 1.4-beta1 by updating the version in your poms to 1.4-rc1.

Individual files can be retrieved from here:

http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security

Martijn  Emond

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



Re: inmethod grid / Delete/add a row?

2010-04-27 Thread Swanthe Lindgren
That is a part of the inmethod grid I find very hard, as its based 
solely on a list of models. I haven't even found a way to know which row 
is selected, even less which row is next to the selected row, which can 
be very useful information when you wish to insert a row or select the 
row before/after the row you just removed.


//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:

Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
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



how to build two-state (edit/view) form and form components?

2010-04-27 Thread David Chang
I would like to have a form in which each component (such as input, textarea) 
has two states. Clicking on a form component's label or something else switches 
the component between edit (shown as usual input, textarea, etc) or view 
(normal html display) modes. Finally when a user is okay with everything, 
he/she can clicks the submit button to send the whole form to the server for 
further actions. 

Can anyone give me some pointers or tips for doing it in Wicket? 

Thanks and all the best!


  

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



Re: Shadow text on input fields

2010-04-27 Thread Stefan Jozsa
I'm using Wicket to develop
flexible, i18n-ed webapps where
HTML and JS are second class citizens.
At first your JS looks more compact,
but on long term is a dead end.

Stefan

--- On Tue, 4/27/10, Robert Kimotho kimot...@gmail.com wrote:

 From: Robert Kimotho kimot...@gmail.com
 Subject: Re: Shadow text on input fields
 To: users@wicket.apache.org
 Date: Tuesday, April 27, 2010, 11:19 AM
 have you tried:-
 
 input type=text name= size= value= your
 text...
 onFocus=this.value='' onMouseOver=window.status=' your
 txt...';return true onMouseOut=window.status='';return
 true
 
 Kimotho,
 
 On 4/26/10, Stefan Jozsa stefan_...@yahoo.com
 wrote:
  CSS:
  .inputHint {
      color: #66;
  }
 
  Java:
  add(new AttributeModifier(value, true, new
 AbstractReadOnlyModelString()
  {
      @Override
      public String getObject() {
          return
 yourHintText;
      }
  }));
  add(new AttributeModifier(class, true, new
 AbstractReadOnlyModelString()
  {
      @Override
      public String getObject() {
          return
 inputHint;
      }
  }));
  add(new AttributeModifier(onfocus, true, new
  AbstractReadOnlyModelString() {
      @Override
      public String getObject() {
          return
 removeInputHint(this,'inputHint');;
      }
  }));
 
  JS:
  removeInputHint = function(x, c) {
      x.setAttribute('value', '');
      jQuery(x).removeClass(c);
  }
 
  Stefan
 
 
 
 
 
 
 
 -
  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: how to build two-state (edit/view) form and form components?

2010-04-27 Thread Jeremy Thomerson
There's been some posts on the lists before about this.  You may find them
helpful.  The most basic form is that each field is a panel that shows
either one or the other (input or label typically).

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 27, 2010 at 7:43 AM, David Chang david_q_zh...@yahoo.comwrote:

 I would like to have a form in which each component (such as input,
 textarea) has two states. Clicking on a form component's label or something
 else switches the component between edit (shown as usual input, textarea,
 etc) or view (normal html display) modes. Finally when a user is okay with
 everything, he/she can clicks the submit button to send the whole form to
 the server for further actions.

 Can anyone give me some pointers or tips for doing it in Wicket?

 Thanks and all the best!




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




Re: SOAP WS client gets less results when run through wicket

2010-04-27 Thread Jeremy Thomerson
It would be almost impossible for someone on this list to give you an answer
to that question.  It is very unlikely that it actually has anything to do
with Wicket.  I'd start by watching your actual IP traffic between the
webapp and the web service to see if the requests are exactly the same /
look at the results / etc.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 26, 2010 at 8:13 AM, Omar Laurino hseldo...@gmail.com wrote:

 Hi,

 I am experiencing a quite weird problem with wicket.

 Notice that I'm working to a project which counts several thousands of
 lines
 of code, so unless I understand where should I look for the problem, I
 can't
 post any relevant code. However, I am pretty confident the problem is
 somehow wicket related, as I will show you.

 I've got some low level packages which implement the business logic my web
 application exposes to the user. The basic operation is to consume SOAP
 webservices and store results into a DB.

 I tested my low level classes and they work fine, but if I call these
 classes' methods through the wicket web application I get far less results
 (200 or 1000 out of almost 7000).

 In order to debug the application I wrote down a simple test method, listed
 below.

 If I run a test program invoking the method by itself, I get the full 7k
 resultset, while if i call the very same method from inside the wicket
 webapp, I get just 200 (or 1000) items.

 I really can't understand what is going wrong, so any help in any direction
 is greatly appreciated. Thank you.

 Here is the test method:

 --
RegistrySnapshotManager snapshotManager = new
 RegistrySnapshotManager();

RegistryInquiryJpaController inquiryController = new
 RegistryInquiryJpaController();

RegistryInquiry inquiry =
 inquiryController.findRegistryInquiry(130);

RegistrySnapshot snapshot = snapshotManager.newSnapshot(inquiry,
 Capability.CONE.getAdql()
+ or +
Capability.SIA.getAdql()
+ or +
Capability.SSA.getAdql());

System.out.println(snapshot.getSxapResourceList().size());
 ---

 The SOAP webservice operation call is nested inside my classes and third
 party classes too.
 However, here are some relevant method calls from these classes:

 The above snapshotManager.newSnapshot(inquiry, sql) method invokes a third
 party method which hides the SOAP request.

 The third party package has been tested by several people throughout the
 world.



RE: [announce] Wicket Security 1.4-rc1 released

2010-04-27 Thread Ben Swenka
This is excellent news - thanks!

Best Regards,
Ben

-Original Message-
From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com]
Sent: Tuesday, April 27, 2010 5:39 AM
To: users@wicket.apache.org
Subject: [announce] Wicket Security 1.4-rc1 released

We have released Wicket Security 1.4-rc1. This release makes Wicket
Security (more) compatible with Wicket 1.4.

You can upgrade from 1.4-beta1 by updating the version in your poms to
1.4-rc1.

Individual files can be retrieved from here:

http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security

Martijn  Emond

-
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



Forms across multiple panels

2010-04-27 Thread Steven Haines
Hi, 

The application I'm building is composed of several panels, each contained in 
its own div. The panels are logical groupings of data, handle different Ajax 
requests, and so forth.

My challenge is that when a user completes the process by entering data into 
all of the panels, I want to submit the form data from all of the panels into a 
single form submit. Or written a different way, I do not want to have to submit 
each panel individually, I want a single submission. 

What is the best way to do this?

Thanks
Steve


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



Re: SOAP WS client gets less results when run through wicket

2010-04-27 Thread Omar Laurino
Thank you for your answer.

I made lots of test all day long just to find that there was no
error/exception/anomaly whatsoever, just a different result to the same
call, so my hope was that I was unaware of some memory/filters/timeout
related limitations/settings in wicket, since the problem arose only when
the call was made by the webapplication. Actually, I almost never post to
mailing lists, since with careful googling and rtfm there's no need to...
but in this case I had to give it a try.

Anyway, at least I found the very single method call which gives different
results, and a way to bypass it, since it is a third party one and I can't
debug it myself. I still don't know what's going wrong, but I think you are
right, it doesn't seem to be a wicket issue in the end.

Sorry for my post, and thank you very much for the reply and the suggestion.

2010/4/27 Jeremy Thomerson jer...@wickettraining.com

 It would be almost impossible for someone on this list to give you an
 answer
 to that question.  It is very unlikely that it actually has anything to do
 with Wicket.  I'd start by watching your actual IP traffic between the
 webapp and the web service to see if the requests are exactly the same /
 look at the results / etc.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Mon, Apr 26, 2010 at 8:13 AM, Omar Laurino hseldo...@gmail.com wrote:

  Hi,
 
  I am experiencing a quite weird problem with wicket.
 
  Notice that I'm working to a project which counts several thousands of
  lines
  of code, so unless I understand where should I look for the problem, I
  can't
  post any relevant code. However, I am pretty confident the problem is
  somehow wicket related, as I will show you.
 
  I've got some low level packages which implement the business logic my
 web
  application exposes to the user. The basic operation is to consume SOAP
  webservices and store results into a DB.
 
  I tested my low level classes and they work fine, but if I call these
  classes' methods through the wicket web application I get far less
 results
  (200 or 1000 out of almost 7000).
 
  In order to debug the application I wrote down a simple test method,
 listed
  below.
 
  If I run a test program invoking the method by itself, I get the full 7k
  resultset, while if i call the very same method from inside the wicket
  webapp, I get just 200 (or 1000) items.
 
  I really can't understand what is going wrong, so any help in any
 direction
  is greatly appreciated. Thank you.
 
  Here is the test method:
 
  --
 RegistrySnapshotManager snapshotManager = new
  RegistrySnapshotManager();
 
 RegistryInquiryJpaController inquiryController = new
  RegistryInquiryJpaController();
 
 RegistryInquiry inquiry =
  inquiryController.findRegistryInquiry(130);
 
 RegistrySnapshot snapshot = snapshotManager.newSnapshot(inquiry,
  Capability.CONE.getAdql()
 + or +
 Capability.SIA.getAdql()
 + or +
 Capability.SSA.getAdql());
 
 System.out.println(snapshot.getSxapResourceList().size());
  ---
 
  The SOAP webservice operation call is nested inside my classes and third
  party classes too.
  However, here are some relevant method calls from these classes:
 
  The above snapshotManager.newSnapshot(inquiry, sql) method invokes a
 third
  party method which hides the SOAP request.
 
  The third party package has been tested by several people throughout the
  world.
 



Re: Forms across multiple panels

2010-04-27 Thread Martin Makundi
Panels are on same web-page?

**
Martin

2010/4/27 Steven Haines lyg...@yahoo.com:
 Hi,

 The application I'm building is composed of several panels, each contained in 
 its own div. The panels are logical groupings of data, handle different 
 Ajax requests, and so forth.

 My challenge is that when a user completes the process by entering data into 
 all of the panels, I want to submit the form data from all of the panels into 
 a single form submit. Or written a different way, I do not want to have to 
 submit each panel individually, I want a single submission.

 What is the best way to do this?

 Thanks
 Steve


 -
 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: Forms across multiple panels

2010-04-27 Thread Steven Haines
Sorry, yes, I have a MasterPage HTML and Java combination that hosts the 
divs, so something like this:

Java:
public class MasterPage extends WebPage ...

MyObject myobject = new MyObject();
add( new Panel1( panel1, myobject ) );
add( new Pane2( panel2, myobject ) );

...

HTML:
...
div wicket:id=panel1/div
div wicket:id=panel2/div
...

So conceivably I could create a form object on the MasterPage...




- Original Message 
From: Martin Makundi martin.maku...@koodaripalvelut.com
To: users@wicket.apache.org; Steven Haines lyg...@yahoo.com
Sent: Tue, April 27, 2010 10:08:06 AM
Subject: Re: Forms across multiple panels

Panels are on same web-page?

**
Martin

2010/4/27 Steven Haines lyg...@yahoo.com:
 Hi,

 The application I'm building is composed of several panels, each contained in 
 its own div. The panels are logical groupings of data, handle different 
 Ajax requests, and so forth.

 My challenge is that when a user completes the process by entering data into 
 all of the panels, I want to submit the form data from all of the panels into 
 a single form submit. Or written a different way, I do not want to have to 
 submit each panel individually, I want a single submission.

 What is the best way to do this?

 Thanks
 Steve


 -
 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: Forms across multiple panels

2010-04-27 Thread Martin Makundi
Hi!

Yes.. you could have:

form
   panel 1/
   panel 2/
   submit-button/
/form

**
Martin

2010/4/27 Steven Haines lyg...@yahoo.com:
 Sorry, yes, I have a MasterPage HTML and Java combination that hosts the 
 divs, so something like this:

 Java:
 public class MasterPage extends WebPage ...

 MyObject myobject = new MyObject();
 add( new Panel1( panel1, myobject ) );
 add( new Pane2( panel2, myobject ) );

 ...

 HTML:
 ...
 div wicket:id=panel1/div
 div wicket:id=panel2/div
 ...

 So conceivably I could create a form object on the MasterPage...




 - Original Message 
 From: Martin Makundi martin.maku...@koodaripalvelut.com
 To: users@wicket.apache.org; Steven Haines lyg...@yahoo.com
 Sent: Tue, April 27, 2010 10:08:06 AM
 Subject: Re: Forms across multiple panels

 Panels are on same web-page?

 **
 Martin

 2010/4/27 Steven Haines lyg...@yahoo.com:
 Hi,

 The application I'm building is composed of several panels, each contained 
 in its own div. The panels are logical groupings of data, handle different 
 Ajax requests, and so forth.

 My challenge is that when a user completes the process by entering data into 
 all of the panels, I want to submit the form data from all of the panels 
 into a single form submit. Or written a different way, I do not want to have 
 to submit each panel individually, I want a single submission.

 What is the best way to do this?

 Thanks
 Steve


 -
 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: GAE loses shared resources

2010-04-27 Thread jbrookover

Hi Igor,

Thanks for the hint, but I don't think that will work for me.  I did try to
pre-load the resources on application startup, but I was unable to find
which resources I'd registered.

GAE does not allow any manner of dumpKeys() from the cache.  The
only-preloading solution I can think of is to have a single cache entry that
maintains a list of cached resource keys and update that every time I store
to the cache.  The downside is that if that entry is lost, pointers to the
other entries are lost.  Also, it may have stale data if the resource keys
are lost.

See:
http://code.google.com/appengine/docs/java/memcache/usingjcache.html#Features_Not_Supported

My hope is to lazily load resources much like PackageResources are done.

Any other suggestions or is there something I'm missing?

Thanks!

Jake
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/GAE-loses-shared-resources-tp2065471p2067654.html
Sent from the Wicket - User 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



full JS page + include wicket components?

2010-04-27 Thread Istvan Soos
Hi,

I have a complex editor page I plan to implement in JavaScript (YUI
3). However, there are components implemented in Wicket and present on
other pages, that I'd like to reuse - if possible. For example I have
a combobox that first contains only 10 items, the last one will
populate 30 more, or it can switch to textfield + autocomplete also.
Is there an easy way to reuse the later component in my JavaScript
codes - e.g. to include on demand, use it and extract the final value?

Regards,
   Istvan

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



Re: SOAP WS client gets less results when run through wicket

2010-04-27 Thread Jeremy Thomerson
the only thing i can immediately think of would be if the call actually spun
off multiple threads and made multiple calls, and then assembled the results
of multiple calls into a single response.  that's why I suggest looking at
the IP traffic of making the call without Wicket versus with Wicket.  In the
servlet environment, you may have a problem if the thing is using multiple
threads to assemble results of multiple calls.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 27, 2010 at 9:08 AM, Omar Laurino hseldo...@gmail.com wrote:

 Thank you for your answer.

 I made lots of test all day long just to find that there was no
 error/exception/anomaly whatsoever, just a different result to the same
 call, so my hope was that I was unaware of some memory/filters/timeout
 related limitations/settings in wicket, since the problem arose only when
 the call was made by the webapplication. Actually, I almost never post to
 mailing lists, since with careful googling and rtfm there's no need to...
 but in this case I had to give it a try.

 Anyway, at least I found the very single method call which gives different
 results, and a way to bypass it, since it is a third party one and I can't
 debug it myself. I still don't know what's going wrong, but I think you are
 right, it doesn't seem to be a wicket issue in the end.

 Sorry for my post, and thank you very much for the reply and the
 suggestion.

 2010/4/27 Jeremy Thomerson jer...@wickettraining.com

  It would be almost impossible for someone on this list to give you an
  answer
  to that question.  It is very unlikely that it actually has anything to
 do
  with Wicket.  I'd start by watching your actual IP traffic between the
  webapp and the web service to see if the requests are exactly the same /
  look at the results / etc.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Mon, Apr 26, 2010 at 8:13 AM, Omar Laurino hseldo...@gmail.com
 wrote:
 
   Hi,
  
   I am experiencing a quite weird problem with wicket.
  
   Notice that I'm working to a project which counts several thousands of
   lines
   of code, so unless I understand where should I look for the problem, I
   can't
   post any relevant code. However, I am pretty confident the problem is
   somehow wicket related, as I will show you.
  
   I've got some low level packages which implement the business logic my
  web
   application exposes to the user. The basic operation is to consume SOAP
   webservices and store results into a DB.
  
   I tested my low level classes and they work fine, but if I call these
   classes' methods through the wicket web application I get far less
  results
   (200 or 1000 out of almost 7000).
  
   In order to debug the application I wrote down a simple test method,
  listed
   below.
  
   If I run a test program invoking the method by itself, I get the full
 7k
   resultset, while if i call the very same method from inside the wicket
   webapp, I get just 200 (or 1000) items.
  
   I really can't understand what is going wrong, so any help in any
  direction
   is greatly appreciated. Thank you.
  
   Here is the test method:
  
   --
  RegistrySnapshotManager snapshotManager = new
   RegistrySnapshotManager();
  
  RegistryInquiryJpaController inquiryController = new
   RegistryInquiryJpaController();
  
  RegistryInquiry inquiry =
   inquiryController.findRegistryInquiry(130);
  
  RegistrySnapshot snapshot = snapshotManager.newSnapshot(inquiry,
   Capability.CONE.getAdql()
  + or +
  Capability.SIA.getAdql()
  + or +
  Capability.SSA.getAdql());
  
  System.out.println(snapshot.getSxapResourceList().size());
   ---
  
   The SOAP webservice operation call is nested inside my classes and
 third
   party classes too.
   However, here are some relevant method calls from these classes:
  
   The above snapshotManager.newSnapshot(inquiry, sql) method invokes a
  third
   party method which hides the SOAP request.
  
   The third party package has been tested by several people throughout
 the
   world.
  
 



Re: SOAP WS client gets less results when run through wicket

2010-04-27 Thread Omar Laurino
It makes sense, I will check it out asap. Thank you very much again :)

2010/4/27 Jeremy Thomerson jer...@wickettraining.com

 the only thing i can immediately think of would be if the call actually
 spun
 off multiple threads and made multiple calls, and then assembled the
 results
 of multiple calls into a single response.  that's why I suggest looking at
 the IP traffic of making the call without Wicket versus with Wicket.  In
 the
 servlet environment, you may have a problem if the thing is using multiple
 threads to assemble results of multiple calls.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Apr 27, 2010 at 9:08 AM, Omar Laurino hseldo...@gmail.com wrote:

  Thank you for your answer.
 
  I made lots of test all day long just to find that there was no
  error/exception/anomaly whatsoever, just a different result to the same
  call, so my hope was that I was unaware of some memory/filters/timeout
  related limitations/settings in wicket, since the problem arose only when
  the call was made by the webapplication. Actually, I almost never post to
  mailing lists, since with careful googling and rtfm there's no need to...
  but in this case I had to give it a try.
 
  Anyway, at least I found the very single method call which gives
 different
  results, and a way to bypass it, since it is a third party one and I
 can't
  debug it myself. I still don't know what's going wrong, but I think you
 are
  right, it doesn't seem to be a wicket issue in the end.
 
  Sorry for my post, and thank you very much for the reply and the
  suggestion.
 
  2010/4/27 Jeremy Thomerson jer...@wickettraining.com
 
   It would be almost impossible for someone on this list to give you an
   answer
   to that question.  It is very unlikely that it actually has anything to
  do
   with Wicket.  I'd start by watching your actual IP traffic between the
   webapp and the web service to see if the requests are exactly the same
 /
   look at the results / etc.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Mon, Apr 26, 2010 at 8:13 AM, Omar Laurino hseldo...@gmail.com
  wrote:
  
Hi,
   
I am experiencing a quite weird problem with wicket.
   
Notice that I'm working to a project which counts several thousands
 of
lines
of code, so unless I understand where should I look for the problem,
 I
can't
post any relevant code. However, I am pretty confident the problem is
somehow wicket related, as I will show you.
   
I've got some low level packages which implement the business logic
 my
   web
application exposes to the user. The basic operation is to consume
 SOAP
webservices and store results into a DB.
   
I tested my low level classes and they work fine, but if I call these
classes' methods through the wicket web application I get far less
   results
(200 or 1000 out of almost 7000).
   
In order to debug the application I wrote down a simple test method,
   listed
below.
   
If I run a test program invoking the method by itself, I get the full
  7k
resultset, while if i call the very same method from inside the
 wicket
webapp, I get just 200 (or 1000) items.
   
I really can't understand what is going wrong, so any help in any
   direction
is greatly appreciated. Thank you.
   
Here is the test method:
   
--
   RegistrySnapshotManager snapshotManager = new
RegistrySnapshotManager();
   
   RegistryInquiryJpaController inquiryController = new
RegistryInquiryJpaController();
   
   RegistryInquiry inquiry =
inquiryController.findRegistryInquiry(130);
   
   RegistrySnapshot snapshot =
 snapshotManager.newSnapshot(inquiry,
Capability.CONE.getAdql()
   + or +
   Capability.SIA.getAdql()
   + or +
   Capability.SSA.getAdql());
   
   System.out.println(snapshot.getSxapResourceList().size());
---
   
The SOAP webservice operation call is nested inside my classes and
  third
party classes too.
However, here are some relevant method calls from these classes:
   
The above snapshotManager.newSnapshot(inquiry, sql) method invokes a
   third
party method which hides the SOAP request.
   
The third party package has been tested by several people throughout
  the
world.
   
  
 



Re: inmethod grid / Delete/add a row?

2010-04-27 Thread nino martinez wael
True... I am in the process of doing my own delete column, and expect
to have it working by tomorrow. I just need to be able to mark the
item dirty, somehow I either use the wrong model or the grid does not
pick it up. On either account it does not remove the delete row until
a manual refresh as is now.

regards Nino

2010/4/27 Swanthe Lindgren swanthe.lindg...@megasol.se:
 That is a part of the inmethod grid I find very hard, as its based solely on
 a list of models. I haven't even found a way to know which row is selected,
 even less which row is next to the selected row, which can be very useful
 information when you wish to insert a row or select the row before/after the
 row you just removed.

 //Swanthe

 On 2010-04-26 16:00, nino martinez wael wrote:

 Hi

 Are there any built in functionality to delete or add rows with
 inmethod grid? Or should I just roll my own?

 regards Nino

 -
 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



AjaxFallbackButton.onSubmit call order

2010-04-27 Thread Jacob DuBray

Hi guys,

I may have stumbled upon a problem while testing my site with JavaScript
disabled. I created a simple extension of WebPage with one form containing a
label, and an AjaxFallbackButton to verify the problem.

When JavaScript is enabled (and the form validates, obviously), the call
order is

Form.onSubmit()
AjaxFallbackButton.onSubmit(AjaxRequestTarget target, Form? form)

... and when JavaScript is disabled, the order is

AjaxFallbackButton.onSubmit(AjaxRequestTarget target, Form? form)
Form.onSubmit()

While researching this problem to see if anyone else encountered the same
thing, I found 

http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackButton-inconsistend-submit-order-td1845016.html

Is my much simpler scenario also a (known) bug?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackButton-onSubmit-call-order-tp2067805p2067805.html
Sent from the Wicket - User 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: wicketpath is not valid html

2010-04-27 Thread Igor Vaynberg
turn off the attribute before you run your validator.

-igor

On Tue, Apr 27, 2010 at 12:11 AM, Emond Papegaaij
emond.papega...@topicus.nl wrote:
 Hi,

 For our project, we use the Wicket Stuff HTML Validator
 (http://github.com/dashorst/wicket-stuff-markup-validator), which informs us
 of invalid HTML upfront. However, with the switch from wicket 1.3 to 1.4, this
 validator is giving many errors on the wicketpath attribute.

 This attributed used to be named wicket:path, and was renamed to wicketpath as
 part of WICKET-1877, because selenium is having trouble using wicket:path. It
 was opted to make the name configurable, but decided that 'we don't need yet
 another configuration option'. Could this please be reconsidered? I like to
 keep the wicket:path attributes in the generated markup, because they can be
 very handy for debugging, but I have to disable them to keep the HTML
 validator happy.

 Best regards,
 Emond Papegaaij

 -
 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: AjaxFallbackButton.onSubmit call order

2010-04-27 Thread Jeremy Thomerson
Yes, it's the same bug.  What version are you using?  It looks like we have
not yet addressed this issue.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 27, 2010 at 10:37 AM, Jacob DuBray
jacob.dub...@starkbros.comwrote:


 Hi guys,

 I may have stumbled upon a problem while testing my site with JavaScript
 disabled. I created a simple extension of WebPage with one form containing
 a
 label, and an AjaxFallbackButton to verify the problem.

 When JavaScript is enabled (and the form validates, obviously), the call
 order is

 Form.onSubmit()
 AjaxFallbackButton.onSubmit(AjaxRequestTarget target, Form? form)

 ... and when JavaScript is disabled, the order is

 AjaxFallbackButton.onSubmit(AjaxRequestTarget target, Form? form)
 Form.onSubmit()

 While researching this problem to see if anyone else encountered the same
 thing, I found


 http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackButton-inconsistend-submit-order-td1845016.html

 Is my much simpler scenario also a (known) bug?
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackButton-onSubmit-call-order-tp2067805p2067805.html
 Sent from the Wicket - User 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: YUI 3 anyone?

2010-04-27 Thread Jeremy Thomerson
Yes, it's experimental, and it is not 100% decided that YUI will be used.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Isn't this an experimental branch?

 Ernesto

 On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com wrote:
  I think wicket 1.5 will use YUI 3. You can look to svn:
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
 
 
  2010/4/26 Istvan Soos istvan.s...@gmail.com
 
  Hi,
 
  Is there a cool best-practice or even better an integration library to
  use YUI 3? I know the standard generic way, I'm interested
  specifically in YUI 3...
 
  Thanks,
Istvan
 
  -
  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: YUI 3 anyone?

2010-04-27 Thread Jeremy Thomerson
I actually was working on this two weeks ago for a client.  Hopefully in the
next week I will have a very minimal base project available for you to build
from.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 26, 2010 at 4:27 AM, Istvan Soos istvan.s...@gmail.com wrote:

 Hi,

 Is there a cool best-practice or even better an integration library to
 use YUI 3? I know the standard generic way, I'm interested
 specifically in YUI 3...

 Thanks,
   Istvan

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




Re: Forms across multiple panels

2010-04-27 Thread Steven Haines
Okay, I'm working on it, here is a followup question: how do I add a panel to a 
form?

Here's where I'm stuck. Here is my HTML with my panels embedded inside my form:

   form wicket:id=myForm id=myForm
div id=panelOne wicket:id=panelOnePanel One/div
div id=panelTwo wicket:id=panelTwoPanel Two/div
div id=panelThree wicket:id=panelThreePanel 
Three/div
div id=panelFour wicket:id=panelFourPanel Four/div
/form

But how do I build the object hierarchy? The following fails because obviously 
the hierarchy is wrong (the panels are children of the form), but the Form 
class does not have an add() method to accept Panels..

final MyForm myForm = new MyForm();
final FormMyForm form = new FormMyForm( myForm, new 
CompoundPropertyModelMyForm( myForm ) );
add( new PanelOne( panelOne ), form );
add( new PanelTwo( panelTwo ), form );
add( new PanelThree( panelThree ), form );
add( new PanelFour( panelFour ), form );
add( form );

Should I make all of the panels implement IFormValidator so that I can make 
them match the page hierarchy? Or do you have any other more elegant 
suggestions?

Thanks
Steve



- Original Message 
From: Martin Makundi martin.maku...@koodaripalvelut.com
To: users@wicket.apache.org; Steven Haines lyg...@yahoo.com
Sent: Tue, April 27, 2010 10:18:13 AM
Subject: Re: Forms across multiple panels

Hi!

Yes.. you could have:

form
   panel 1/
   panel 2/
   submit-button/
/form

**
Martin

2010/4/27 Steven Haines lyg...@yahoo.com:
 Sorry, yes, I have a MasterPage HTML and Java combination that hosts the 
 divs, so something like this:

 Java:
 public class MasterPage extends WebPage ...

 MyObject myobject = new MyObject();
 add( new Panel1( panel1, myobject ) );
 add( new Pane2( panel2, myobject ) );

 ...

 HTML:
 ...
 div wicket:id=panel1/div
 div wicket:id=panel2/div
 ...

 So conceivably I could create a form object on the MasterPage...




 - Original Message 
 From: Martin Makundi martin.maku...@koodaripalvelut.com
 To: users@wicket.apache.org; Steven Haines lyg...@yahoo.com
 Sent: Tue, April 27, 2010 10:08:06 AM
 Subject: Re: Forms across multiple panels

 Panels are on same web-page?

 **
 Martin

 2010/4/27 Steven Haines lyg...@yahoo.com:
 Hi,

 The application I'm building is composed of several panels, each contained 
 in its own div. The panels are logical groupings of data, handle different 
 Ajax requests, and so forth.

 My challenge is that when a user completes the process by entering data into 
 all of the panels, I want to submit the form data from all of the panels 
 into a single form submit. Or written a different way, I do not want to have 
 to submit each panel individually, I want a single submission.

 What is the best way to do this?

 Thanks
 Steve


 -
 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

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



Re: InheritableThreadLocal holder for Application class

2010-04-27 Thread Jeremy Thomerson
For those who may see this thread in the future, this was resolved:

https://issues.apache.org/jira/browse/WICKET-2846
https://issues.apache.org/jira/browse/WICKET-2846
http://svn.apache.org/viewvc?view=revisionrevision=938140

--
Jeremy Thomerson
http://www.wickettraining.com



On Thu, Apr 22, 2010 at 2:51 PM, Objelean Alex alex.objel...@gmail.comwrote:

 Hi!
 Is there any particular reason why Application class wouldn't be stored in
 InheritableThreadLocal instead of ThreadLocal? The problem is that I need
 to
 be able to access Application class from a thread created when a button is
 pressed. Using InheritableThreadLocal instead of ThreadLocal would solve
 this problem. What do you think?

 Alex



Re: Forms across multiple panels

2010-04-27 Thread Steven Haines
Scratch that, the Form has an add() method that accepts a Component and a Panel 
is a component, netbeans is just being weird...

Thanks




- Original Message 
From: Steven Haines lyg...@yahoo.com
To: users@wicket.apache.org
Sent: Tue, April 27, 2010 12:17:04 PM
Subject: Re: Forms across multiple panels

Okay, I'm working on it, here is a followup question: how do I add a panel to a 
form?

Here's where I'm stuck. Here is my HTML with my panels embedded inside my form:

   form wicket:id=myForm id=myForm
div id=panelOne wicket:id=panelOnePanel One/div
div id=panelTwo wicket:id=panelTwoPanel Two/div
div id=panelThree wicket:id=panelThreePanel 
Three/div
div id=panelFour wicket:id=panelFourPanel Four/div
/form

But how do I build the object hierarchy? The following fails because obviously 
the hierarchy is wrong (the panels are children of the form), but the Form 
class does not have an add() method to accept Panels..

final MyForm myForm = new MyForm();
final FormMyForm form = new FormMyForm( myForm, new 
CompoundPropertyModelMyForm( myForm ) );
add( new PanelOne( panelOne ), form );
add( new PanelTwo( panelTwo ), form );
add( new PanelThree( panelThree ), form );
add( new PanelFour( panelFour ), form );
add( form );

Should I make all of the panels implement IFormValidator so that I can make 
them match the page hierarchy? Or do you have any other more elegant 
suggestions?

Thanks
Steve



- Original Message 
From: Martin Makundi martin.maku...@koodaripalvelut.com
To: users@wicket.apache.org; Steven Haines lyg...@yahoo.com
Sent: Tue, April 27, 2010 10:18:13 AM
Subject: Re: Forms across multiple panels

Hi!

Yes.. you could have:

form
   panel 1/
   panel 2/
   submit-button/
/form

**
Martin

2010/4/27 Steven Haines lyg...@yahoo.com:
 Sorry, yes, I have a MasterPage HTML and Java combination that hosts the 
 divs, so something like this:

 Java:
 public class MasterPage extends WebPage ...

 MyObject myobject = new MyObject();
 add( new Panel1( panel1, myobject ) );
 add( new Pane2( panel2, myobject ) );

 ...

 HTML:
 ...
 div wicket:id=panel1/div
 div wicket:id=panel2/div
 ...

 So conceivably I could create a form object on the MasterPage...




 - Original Message 
 From: Martin Makundi martin.maku...@koodaripalvelut.com
 To: users@wicket.apache.org; Steven Haines lyg...@yahoo.com
 Sent: Tue, April 27, 2010 10:08:06 AM
 Subject: Re: Forms across multiple panels

 Panels are on same web-page?

 **
 Martin

 2010/4/27 Steven Haines lyg...@yahoo.com:
 Hi,

 The application I'm building is composed of several panels, each contained 
 in its own div. The panels are logical groupings of data, handle different 
 Ajax requests, and so forth.

 My challenge is that when a user completes the process by entering data into 
 all of the panels, I want to submit the form data from all of the panels 
 into a single form submit. Or written a different way, I do not want to have 
 to submit each panel individually, I want a single submission.

 What is the best way to do this?

 Thanks
 Steve


 -
 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

-
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: AjaxFallbackButton.onSubmit call order

2010-04-27 Thread Jacob DuBray

Thanks for the quick reply. I'm using 1.4.7
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackButton-onSubmit-call-order-tp2067805p2067907.html
Sent from the Wicket - User 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: AjaxFallbackButton.onSubmit call order

2010-04-27 Thread Jeremy Thomerson
I added 1.4.7 to the affected versions of
https://issues.apache.org/jira/browse/WICKET-1894 based on your report.
 You're welcome to dig in and create a patch and attach it to the JIRA.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 27, 2010 at 11:35 AM, Jacob DuBray
jacob.dub...@starkbros.comwrote:


 Thanks for the quick reply. I'm using 1.4.7
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackButton-onSubmit-call-order-tp2067805p2067907.html
 Sent from the Wicket - User 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




TabbedPanel: tab visibility

2010-04-27 Thread Metzger, Natalie J.
Hi all,

Maybe I'm blind, but is there a way to set the visibility of certain tabs in 
the TabbedPanel? I only found the method isVisible(), but no setVisible(). My 
goal is to have certain tabs only visible to users with corresponding 
permissions. So far I have to add/remove tabs depending on those permissions, 
and which is less than optimal.
And yes, I can change the visibility of the content of the tab, but this is not 
what I need.

Any ideas?

Thanks,
Natalie

P.S. I'm using Wicket 1.4.6


Re: TabbedPanel: tab visibility

2010-04-27 Thread Igor Vaynberg
can you not override isvisible() and do the check there?

-igor


On Tue, Apr 27, 2010 at 9:41 AM, Metzger, Natalie J. nmetz...@odu.edu wrote:
 Hi all,

 Maybe I'm blind, but is there a way to set the visibility of certain tabs in 
 the TabbedPanel? I only found the method isVisible(), but no setVisible(). My 
 goal is to have certain tabs only visible to users with corresponding 
 permissions. So far I have to add/remove tabs depending on those permissions, 
 and which is less than optimal.
 And yes, I can change the visibility of the content of the tab, but this is 
 not what I need.

 Any ideas?

 Thanks,
                Natalie

 P.S. I'm using Wicket 1.4.6


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



WicketTester and AjaxFormComponentUpdatingBehavior

2010-04-27 Thread Arnaud Garcia
Hello,

There was a previous thread, but it is not clear for me..., I have something
which is working, but I don't understand why :

http://apache-wicket.1842946.n4.nabble.com/WicketTester-No-Form-onSubmit-when-using-Ajax-DropDownChoice-Component-td1877797.html#a1877797

So, when you want to test a form wich contains a Component with an
AjaxFormComponentUpdatingBehavior, the submit method of the FormTester
doesn't work as expected.


To succeed I have to create and fill another FormTester without submitting
it.

here the code:

  private void fillForm(FormTester form) {
form.setValue(my:path:...:, test);
   
}

public void testADD() {
tester.startPage(APage.class);
FormTester form = tester.newFormTester(my:path:form);
fillForm(form);
tester.executeAjaxEvent(a:path, onblur);
form.select(another:path, 2);

FormTester jokerForm = tester.newFormTester(my:path:form); 
same form
fillForm(jokerForm);  === - If I don't fill this form it does not
work (Even if it will never be send, there is no jokerForm.submit() ??)
   - And I don't need to add
the jokerForm.select(another:path,2);

form.submit(); == JUST ONE FORM IS SUBMITTED

}
}

Any Idea ?


Arnaud


RE: TabbedPanel: tab visibility

2010-04-27 Thread Metzger, Natalie J.
Yes, I can, thanks!!!

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Tuesday, April 27, 2010 12:51 PM
To: users@wicket.apache.org
Subject: Re: TabbedPanel: tab visibility

can you not override isvisible() and do the check there?

-igor


On Tue, Apr 27, 2010 at 9:41 AM, Metzger, Natalie J. nmetz...@odu.edu wrote:
 Hi all,

 Maybe I'm blind, but is there a way to set the visibility of certain tabs in 
 the TabbedPanel? I only found the method isVisible(), but no setVisible(). My 
 goal is to have certain tabs only visible to users with corresponding 
 permissions. So far I have to add/remove tabs depending on those permissions, 
 and which is less than optimal.
 And yes, I can change the visibility of the content of the tab, but this is 
 not what I need.

 Any ideas?

 Thanks,
                Natalie

 P.S. I'm using Wicket 1.4.6


-
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: Asynchronous DataStore queries on GAE with Twig-persist and other DataStore related problems

2010-04-27 Thread Piotr Tarsa
OK. To simplify question - I want to have method prepareQuery(DataStore
dataStore) in my own IModel subinterface and before page rendering I would
want to execute that method for every model. Where should I do that? Is
there some place in RequestCycle where I could do that?

2010/4/26 Piotr Tarsa piotr.ta...@gmail.com

 Hello,

 I want to use Wicket with GAE and exploit all GAE features but some
 problems arise.

 1. I'm looking for a good solution for asynchronous simulteanous queries in
 Wicket. DataStore has a functionality of asynchronous queries so I would
 want to be able to fire various queries before rendering anything and then
 return the actual model objects when rendering particular component. I think
 of an Interface (or, better, abstract class) extending IModel with an
 additional method, name it prepareModel() which would run the asynchronous
 query, so getObjet would just wait for the query to finish and then return
 the result (this way total time spend of waiting for DataStore queries will
 be at most equal to slowest query). DataStore entities are organized into
 Entity Groups where there are ancestors and descendants. So sometimes to
 find an object I must first find the ancestor. So I would want to fire the
 prepareModel() for parent components first.

 2. DataStore doesn't support joins internally and it's queries are limited
 to 1000 results (this means that GQL COUNT will never return value higher
 than 1000 even if there's more that 1000 entities that mets the
 requirements). Instead DataStore provides cursors to retrieve more than 1000
 results and GAE devs recommends using separate sharded counters instead of
 GQL COUNT's (of course if the result would never exceed 1000 then we shall
 use normal GQL COUNT). Are there any components (repeaters) in Wicket that
 supports that approach?

 3. I think that Wicket should be able to store pages from PageMap
 independently. This way we could store pages in separate entities in
 datastore (DataStore doesn't have schemas, one can store entities of any
 form as every kind) so fewer bytes would be transmitted to and from
 DataStore (Http Sessions are kept in MemCache and DiskStore).

 4. How to inject an DataStore object in Models that will be testing
 friendly?



Re: Asynchronous DataStore queries on GAE with Twig-persist and other DataStore related problems

2010-04-27 Thread Igor Vaynberg
page.onbeforerender() might work.

-igor

On Tue, Apr 27, 2010 at 12:34 PM, Piotr Tarsa piotr.ta...@gmail.com wrote:
 OK. To simplify question - I want to have method prepareQuery(DataStore
 dataStore) in my own IModel subinterface and before page rendering I would
 want to execute that method for every model. Where should I do that? Is
 there some place in RequestCycle where I could do that?

 2010/4/26 Piotr Tarsa piotr.ta...@gmail.com

 Hello,

 I want to use Wicket with GAE and exploit all GAE features but some
 problems arise.

 1. I'm looking for a good solution for asynchronous simulteanous queries in
 Wicket. DataStore has a functionality of asynchronous queries so I would
 want to be able to fire various queries before rendering anything and then
 return the actual model objects when rendering particular component. I think
 of an Interface (or, better, abstract class) extending IModel with an
 additional method, name it prepareModel() which would run the asynchronous
 query, so getObjet would just wait for the query to finish and then return
 the result (this way total time spend of waiting for DataStore queries will
 be at most equal to slowest query). DataStore entities are organized into
 Entity Groups where there are ancestors and descendants. So sometimes to
 find an object I must first find the ancestor. So I would want to fire the
 prepareModel() for parent components first.

 2. DataStore doesn't support joins internally and it's queries are limited
 to 1000 results (this means that GQL COUNT will never return value higher
 than 1000 even if there's more that 1000 entities that mets the
 requirements). Instead DataStore provides cursors to retrieve more than 1000
 results and GAE devs recommends using separate sharded counters instead of
 GQL COUNT's (of course if the result would never exceed 1000 then we shall
 use normal GQL COUNT). Are there any components (repeaters) in Wicket that
 supports that approach?

 3. I think that Wicket should be able to store pages from PageMap
 independently. This way we could store pages in separate entities in
 datastore (DataStore doesn't have schemas, one can store entities of any
 form as every kind) so fewer bytes would be transmitted to and from
 DataStore (Http Sessions are kept in MemCache and DiskStore).

 4. How to inject an DataStore object in Models that will be testing
 friendly?



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



Re: Asynchronous DataStore queries on GAE with Twig-persist and other DataStore related problems

2010-04-27 Thread Joe Fawzy
Hi dear
Begining from GAE sdk 1.3.2 , there is query cursors and you can have more
than 1000 result

On Mon, Apr 26, 2010 at 11:43 PM, Piotr Tarsa piotr.ta...@gmail.com wrote:

 Hello,

 I want to use Wicket with GAE and exploit all GAE features but some
 problems
 arise.

 1. I'm looking for a good solution for asynchronous simulteanous queries in
 Wicket. DataStore has a functionality of asynchronous queries so I would
 want to be able to fire various queries before rendering anything and then
 return the actual model objects when rendering particular component. I
 think
 of an Interface (or, better, abstract class) extending IModel with an
 additional method, name it prepareModel() which would run the asynchronous
 query, so getObjet would just wait for the query to finish and then return
 the result (this way total time spend of waiting for DataStore queries will
 be at most equal to slowest query). DataStore entities are organized into
 Entity Groups where there are ancestors and descendants. So sometimes to
 find an object I must first find the ancestor. So I would want to fire the
 prepareModel() for parent components first.

 2. DataStore doesn't support joins internally and it's queries are limited
 to 1000 results (this means that GQL COUNT will never return value higher
 than 1000 even if there's more that 1000 entities that mets the
 requirements). Instead DataStore provides cursors to retrieve more than
 1000
 results and GAE devs recommends using separate sharded counters instead of
 GQL COUNT's (of course if the result would never exceed 1000 then we shall
 use normal GQL COUNT). Are there any components (repeaters) in Wicket that
 supports that approach?

 3. I think that Wicket should be able to store pages from PageMap
 independently. This way we could store pages in separate entities in
 datastore (DataStore doesn't have schemas, one can store entities of any
 form as every kind) so fewer bytes would be transmitted to and from
 DataStore (Http Sessions are kept in MemCache and DiskStore).

 4. How to inject an DataStore object in Models that will be testing
 friendly?



Re: Asynchronous DataStore queries on GAE with Twig-persist and other DataStore related problems

2010-04-27 Thread Piotr Tarsa
That would mean that I use only my extended WebPage...

Would that be executed on AJAX calls? I would want to execute prepareQuery
on all objects that will be updated through AJAX.

Joe:
Yes I know. I've written about cursors in my first post.

2010/4/27 Igor Vaynberg igor.vaynb...@gmail.com

 page.onbeforerender() might work.

 -igor

 On Tue, Apr 27, 2010 at 12:34 PM, Piotr Tarsa piotr.ta...@gmail.com
 wrote:
  OK. To simplify question - I want to have method prepareQuery(DataStore
  dataStore) in my own IModel subinterface and before page rendering I
 would
  want to execute that method for every model. Where should I do that? Is
  there some place in RequestCycle where I could do that?
 
  2010/4/26 Piotr Tarsa piotr.ta...@gmail.com
 
  Hello,
 
  I want to use Wicket with GAE and exploit all GAE features but some
  problems arise.
 
  1. I'm looking for a good solution for asynchronous simulteanous queries
 in
  Wicket. DataStore has a functionality of asynchronous queries so I would
  want to be able to fire various queries before rendering anything and
 then
  return the actual model objects when rendering particular component. I
 think
  of an Interface (or, better, abstract class) extending IModel with an
  additional method, name it prepareModel() which would run the
 asynchronous
  query, so getObjet would just wait for the query to finish and then
 return
  the result (this way total time spend of waiting for DataStore queries
 will
  be at most equal to slowest query). DataStore entities are organized
 into
  Entity Groups where there are ancestors and descendants. So sometimes to
  find an object I must first find the ancestor. So I would want to fire
 the
  prepareModel() for parent components first.
 
  2. DataStore doesn't support joins internally and it's queries are
 limited
  to 1000 results (this means that GQL COUNT will never return value
 higher
  than 1000 even if there's more that 1000 entities that mets the
  requirements). Instead DataStore provides cursors to retrieve more than
 1000
  results and GAE devs recommends using separate sharded counters instead
 of
  GQL COUNT's (of course if the result would never exceed 1000 then we
 shall
  use normal GQL COUNT). Are there any components (repeaters) in Wicket
 that
  supports that approach?
 
  3. I think that Wicket should be able to store pages from PageMap
  independently. This way we could store pages in separate entities in
  datastore (DataStore doesn't have schemas, one can store entities of any
  form as every kind) so fewer bytes would be transmitted to and from
  DataStore (Http Sessions are kept in MemCache and DiskStore).
 
  4. How to inject an DataStore object in Models that will be testing
  friendly?
 
 

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




Wicket survey?

2010-04-27 Thread Russell Morrisey
I received a personal e-mail from somebody's g-mail account, claiming to be 
from the Wroclaw University of Technology, soliciting my input for a Wicket 
user study. It mentions Wicket, and other tools like Spring and Hibernate in 
the e-mail.



Can anybody confirm that this survey is what it claims to be? (Keeping in mind 
that the Apache JIRA server was recently attacked and broken into)?



RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.comhttp://www.missionse.com/
304 West Route 38, Moorestown, NJ 08057



This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.


Re: Wicket survey?

2010-04-27 Thread Jeremy Thomerson
I can't confirm this particular survey, but have received similar requests
in the past.  Most are legitimate requests from college students for input
on various technologies for some paper they're writing.  Of course, the
burden of checking authenticity of each one lies with the recipient :)

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 27, 2010 at 4:53 PM, Russell Morrisey 
russell.morri...@missionse.com wrote:

 I received a personal e-mail from somebody's g-mail account, claiming to be
 from the Wroclaw University of Technology, soliciting my input for a
 Wicket user study. It mentions Wicket, and other tools like Spring and
 Hibernate in the e-mail.



 Can anybody confirm that this survey is what it claims to be? (Keeping in
 mind that the Apache JIRA server was recently attacked and broken into)?

 

 RUSSELL E. MORRISEY
 Programmer Analyst Professional
 Mission Solutions Engineering, LLC

 | russell.morri...@missionse.com | www.missionse.com
 http://www.missionse.com/
 304 West Route 38, Moorestown, NJ 08057


 
 This is a PRIVATE message. If you are not the intended recipient, please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to
 any order or other contract unless pursuant to explicit written agreement or
 government initiative expressly permitting the use of e-mail for such
 purpose.



Re: Wicket survey?

2010-04-27 Thread Nick Heudecker
I've also gotten similar requests in the past.

On Tue, Apr 27, 2010 at 3:03 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 I can't confirm this particular survey, but have received similar requests
 in the past.  Most are legitimate requests from college students for input
 on various technologies for some paper they're writing.  Of course, the
 burden of checking authenticity of each one lies with the recipient :)

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Apr 27, 2010 at 4:53 PM, Russell Morrisey 
 russell.morri...@missionse.com wrote:

  I received a personal e-mail from somebody's g-mail account, claiming to
 be
  from the Wroclaw University of Technology, soliciting my input for a
  Wicket user study. It mentions Wicket, and other tools like Spring and
  Hibernate in the e-mail.
 
 
 
  Can anybody confirm that this survey is what it claims to be? (Keeping in
  mind that the Apache JIRA server was recently attacked and broken into)?
 
  
 
  RUSSELL E. MORRISEY
  Programmer Analyst Professional
  Mission Solutions Engineering, LLC
 
  | russell.morri...@missionse.com | www.missionse.com
  http://www.missionse.com/
  304 West Route 38, Moorestown, NJ 08057
 
 
  
  This is a PRIVATE message. If you are not the intended recipient, please
  delete without copying and kindly advise us by e-mail of the mistake in
  delivery.
  NOTE: Regardless of content, this e-mail shall not operate to bind MSE to
  any order or other contract unless pursuant to explicit written agreement
 or
  government initiative expressly permitting the use of e-mail for such
  purpose.
 



Re: Wicket survey?

2010-04-27 Thread James Carman
I got this email too and was wondering the same thing.  If you find
out it's legit, let me/us know.

On Tue, Apr 27, 2010 at 5:53 PM, Russell Morrisey
russell.morri...@missionse.com wrote:
 I received a personal e-mail from somebody's g-mail account, claiming to be 
 from the Wroclaw University of Technology, soliciting my input for a Wicket 
 user study. It mentions Wicket, and other tools like Spring and Hibernate in 
 the e-mail.



 Can anybody confirm that this survey is what it claims to be? (Keeping in 
 mind that the Apache JIRA server was recently attacked and broken into)?

 

 RUSSELL E. MORRISEY
 Programmer Analyst Professional
 Mission Solutions Engineering, LLC

 | russell.morri...@missionse.com | 
 www.missionse.comhttp://www.missionse.com/
 304 West Route 38, Moorestown, NJ 08057


 
 This is a PRIVATE message. If you are not the intended recipient, please 
 delete without copying and kindly advise us by e-mail of the mistake in 
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
 order or other contract unless pursuant to explicit written agreement or 
 government initiative expressly permitting the use of e-mail for such purpose.


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



Re: Wicket and Guice / legup / warp persist?

2010-04-27 Thread Douglas Ferguson
The solution is using injection on the method?


D/


On Apr 26, 2010, at 4:30 AM, nino martinez wael wrote:

 I found out that If I injected in the constructor, when using inmethod
 grid hibernate would complain about a closed session. So solved it as
 the pastebin shows..
 
 2010/4/26 nino martinez wael nino.martinez.w...@gmail.com:
 I do it like this :
 
 http://pastebin.com/wcZ8XANh
 
 
 
 public class InjectorHolder {
 
private static Injector injector;
 
public InjectorHolder() {
}
@Inject
public static void setInjector(Injector injector) {
InjectorHolder.injector = injector;
}
 
public static Injector getInjector() {
return injector;
}
 
 
 }
 
 2010/4/25 Douglas Ferguson doug...@douglasferguson.us:
 Anybody have tips on the correct way to do this?
 
 On Apr 24, 2010, at 5:42 PM, Douglas Ferguson wrote:
 
 I'm curious about how this would work with serialization/deserialization.
 
 For instance, with a data provider where would you actually put this:
 
 InjectorHolder.getInjector().inject(this)
 
 To make sure it gets called at the appropriate times? Is it ok to put it 
 in the constructor of the data provider?
 
 Sounds like this won't be available until 1.4.8, any idea when that might 
 surface?
 
 D/
 
 On Apr 24, 2010, at 5:33 PM, Douglas Ferguson wrote:
 
 Interesting...
 
 I've been curious about how to properly use injection in data provider as 
 this does not subclass component.
 
 Any tips on how to get this to work?
 
 D/
 
 On Apr 24, 2010, at 12:32 PM, nino martinez wael wrote:
 
 BTW if anyone has trouble with this until 1.4.8 comes out then just
 write your own injectorholder class and in your guice module call
 requeststatic injection on that.. Works like a charm..
 
 2010/4/8 nino martinez wael nino.martinez.w...@gmail.com:
 Ahh typical :) And thanks for the update.
 
 2010/4/8 Martin Grigorov mcgreg...@e-card.bg:
 The ticket for this is 
 https://issues.apache.org/jira/browse/WICKET-2761
 The fix is applied to 1.4.x at 13/03 by Juergen.
 1.4.7 was released at 03/03.
 
 So, it will be included in next release - probably 1.4.8.
 
 On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
 Hi
 
 I revived my old wicket talk yesterday and since we are using guice at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the spring way
 (InjectorHolder.getInjector().inject(this);) I get this error:
 
 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = [3]
 
 Root cause:
 
 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)
 
 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a bug with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.
 
 
 
 regards Nino
 
 -
 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
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

Re: Wicket and Guice / legup / warp persist?

2010-04-27 Thread Douglas Ferguson
Does this work on the 1.4.6 version of wicket?

D/

On Apr 26, 2010, at 4:30 AM, nino martinez wael wrote:

 I found out that If I injected in the constructor, when using inmethod
 grid hibernate would complain about a closed session. So solved it as
 the pastebin shows..
 
 2010/4/26 nino martinez wael nino.martinez.w...@gmail.com:
 I do it like this :
 
 http://pastebin.com/wcZ8XANh
 
 
 
 public class InjectorHolder {
 
private static Injector injector;
 
public InjectorHolder() {
}
@Inject
public static void setInjector(Injector injector) {
InjectorHolder.injector = injector;
}
 
public static Injector getInjector() {
return injector;
}
 
 
 }
 
 2010/4/25 Douglas Ferguson doug...@douglasferguson.us:
 Anybody have tips on the correct way to do this?
 
 On Apr 24, 2010, at 5:42 PM, Douglas Ferguson wrote:
 
 I'm curious about how this would work with serialization/deserialization.
 
 For instance, with a data provider where would you actually put this:
 
 InjectorHolder.getInjector().inject(this)
 
 To make sure it gets called at the appropriate times? Is it ok to put it 
 in the constructor of the data provider?
 
 Sounds like this won't be available until 1.4.8, any idea when that might 
 surface?
 
 D/
 
 On Apr 24, 2010, at 5:33 PM, Douglas Ferguson wrote:
 
 Interesting...
 
 I've been curious about how to properly use injection in data provider as 
 this does not subclass component.
 
 Any tips on how to get this to work?
 
 D/
 
 On Apr 24, 2010, at 12:32 PM, nino martinez wael wrote:
 
 BTW if anyone has trouble with this until 1.4.8 comes out then just
 write your own injectorholder class and in your guice module call
 requeststatic injection on that.. Works like a charm..
 
 2010/4/8 nino martinez wael nino.martinez.w...@gmail.com:
 Ahh typical :) And thanks for the update.
 
 2010/4/8 Martin Grigorov mcgreg...@e-card.bg:
 The ticket for this is 
 https://issues.apache.org/jira/browse/WICKET-2761
 The fix is applied to 1.4.x at 13/03 by Juergen.
 1.4.7 was released at 03/03.
 
 So, it will be included in next release - probably 1.4.8.
 
 On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
 Hi
 
 I revived my old wicket talk yesterday and since we are using guice at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the spring way
 (InjectorHolder.getInjector().inject(this);) I get this error:
 
 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = [3]
 
 Root cause:
 
 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)
 
 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a bug with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.
 
 
 
 regards Nino
 
 -
 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
 
 
 
 -
 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: YUI 3 anyone?

2010-04-27 Thread Joe Fawzy
Hi
i hope the dev team to consider jQuery , it seams it is the standard now ,
used by all the big companies , even microsoft
and although YUI is great, Yahoo has its own problem these days and we
cannot consider the commited to the lib, they dropped support for many of
their products and abandond many projects in the last 2 years

this is my opinion only, u may make a vote or poll or something , or just
pick YUI
thanks
Joe
On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 Yes, it's experimental, and it is not 100% decided that YUI will be used.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

  Isn't this an experimental branch?
 
  Ernesto
 
  On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com
 wrote:
   I think wicket 1.5 will use YUI 3. You can look to svn:
  
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
  
  
   2010/4/26 Istvan Soos istvan.s...@gmail.com
  
   Hi,
  
   Is there a cool best-practice or even better an integration library to
   use YUI 3? I know the standard generic way, I'm interested
   specifically in YUI 3...
  
   Thanks,
 Istvan
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



RE: Wicket survey?

2010-04-27 Thread Russell Morrisey
The survey appears to have normal usability questions; however, the Submit 
answers button at the bottom of the page doesn't appear to do anything at all. 
I tried it first in FireFox, then in IE7.


RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057

-Original Message-
From: James Carman [mailto:jcar...@carmanconsulting.com]
Sent: Tuesday, April 27, 2010 6:36 PM
To: users@wicket.apache.org
Subject: Re: Wicket survey?

I got this email too and was wondering the same thing.  If you find
out it's legit, let me/us know.

On Tue, Apr 27, 2010 at 5:53 PM, Russell Morrisey
russell.morri...@missionse.com wrote:
 I received a personal e-mail from somebody's g-mail account, claiming to be 
 from the Wroclaw University of Technology, soliciting my input for a Wicket 
 user study. It mentions Wicket, and other tools like Spring and Hibernate in 
 the e-mail.



 Can anybody confirm that this survey is what it claims to be? (Keeping in 
 mind that the Apache JIRA server was recently attacked and broken into)?

 

 RUSSELL E. MORRISEY
 Programmer Analyst Professional
 Mission Solutions Engineering, LLC

 | russell.morri...@missionse.com | 
 www.missionse.comhttp://www.missionse.com/
 304 West Route 38, Moorestown, NJ 08057


 
 This is a PRIVATE message. If you are not the intended recipient, please 
 delete without copying and kindly advise us by e-mail of the mistake in 
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
 order or other contract unless pursuant to explicit written agreement or 
 government initiative expressly permitting the use of e-mail for such purpose.



This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

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



using selenium

2010-04-27 Thread Joe Fawzy
Hi all
i am building an application which use ajax heavily so i have to use
component.setOutputMarkupId(true)
this generate unique dom id for the components which changes every time i
load the same page
when using selenium , specially with its Firefox ide , it depends mainly on
the id attribute value and as this is dynamically generated by wicket ,it
cannot work smoothly

i can use xpath, but i then will lose some of the benefits of both selenium
and wicket,
selenium , i cannot use its code generation capability as it generate code
based on the the id
 of wicket(designer friendly markup) as i cannot freely change my markup,
otherwise it will break my tests

what is your experience

thanks in advance
Joe


Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-27 Thread Jimi

Hi,

I'm curious to know what security frameworks you guys are using.

The reason I'm asking is because I recently tried out Spring Security
together with a simple wicket web application, and was amazed on how easy it
was. I applied the steps mentioned in their Pet Clinic tutorial
(http://static.springsource.org/spring-security/site/petclinic-tutorial.html)
more or less exactly as they are, and I didn't have to write a single line
of code. All was done using configuration. And even when I replaced the hard
coded list of users (with their passwords and groups) with my custom
authentication provider (or actually custom UserDetailsService) I only had
two write two simple classes that implemented two very simple and logical
interfaces respectively, that used my pre existing hibernate configuration
and POJOs.

BUT... when I wanted to replace the auto generated login screen (which
worked great, but just didn't look very appealing) with a custom login page
I quickly ran into trouble. If the login was successful then all was fine.
But for the cases when the login failed for some reason (like incorrect
username/password or database being down) I was having problems accessing
the error cause. Because as far as I could tell this message (actually an
Exception subclass) was only available as a http session attribute. And it
seems that Wicket does everything to hide those from the user, discourages
the use of the getHttpServletRequest() and the session attributes of the
wicket session object only seems to include attributes with a specific
wicket-prefix (like wicket:wicket.myProject:) which of course caused my
precious Spring Security session attributes to be unavailable.

It was then I started thinking that Spring Security maybe isn't the best
security framework together with Wicket. So I started looking around for
other alternatives. Wicket-security/WASP/SWARM (still not sure what is what)
and wicket auth roles where the first two, and some time later I also
heard about wicket-shiro.

But all these three seemed to have one or more of the following down sides
that irritated me when I evaluated them:

1. Missing official site. [wicket auth roles] At least I can't find it.

2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
discussion labeled is wicket-auth-roles discontinued?. And the comments on
the Getting started with Swarm wiki page is from 2007 and 2008, plus that
they talk about Acegi (the old name for Spring Security) and the project has
dependencies to Wicket 1.3 and Spring 2.0.

3. Doesn't seem stable. [wicket-shiro] No maven repository (you have to
check out trunk and build yourself) and has three different SNAPSHOT
dependencies.

4. Seems to require a lot of different project specific java classes. [all
three]. 


The last point, number 4, is a really big down side if you ask me. Keep in
mind that I was able to integrate Spring Security almost completely in my
wicket web application with very little new java code needed. And that is a
good thing, because project specific code is of course much less tested and
tried compared to official stable code of reputable frameworks. Plus that I
don't have to reinvent the wheel, considering the simple authentication and
authorization demands of my project. The only thing stopping me was this
stupid error message in the unavailable http session attribute.

I actually started converting my project into a WASP/SWARM project, using
the example project from
http://out-println.blogspot.com/2009/02/wicket-swarm-spring-security-how-to.html,
but after creating class after class after class of in-my-eyes boilerplate
code I got the overwhelming feeling that I was making my project more and
more dirty. And, more importantly, I got the feeling that this shouldn't be
so complicated. Other people surely have done this before, and maybe there
is a good, stable and official framework/plugin/whatever that makes Spring
Security and Wicket integration into a breeze. Which it really was when I
followed the Pet Clinic tutorial (see URL above), since that used the auto
generated login form.

So, any input from you guys? What do you use to secure your wicket web
sites? Or maybe someone can explain how to best solve my Wicket+Spring
Security problem with the hidden http session attributes?

Also, I hope I didn't step on anybody's toes with my list of down sides.
Maybe I just haven't found the right web pages that document these
frameworks(?) and how easy it can be to use them. Tips more then welcome!

Regards
/Jimi Hullegård
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2068415.html
Sent from the Wicket - User 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



GAE serialization issues

2010-04-27 Thread Joe Fawzy
Hi everybody
i am developing an application on the GAE/J platform using wicket
as i read through this list ,it seems that it is not a recommended
combination due to some issues , specially the serialization issue
BUT i have to deploy on appengine, so what is there any recommendations?

OK, the real question is:
   does anyone used the custom PageStore implementation described in:
http://letsgetdugg.com/2010/02/07/clustering-wicket-for-fun-and-profit/
or in:
http://www.mail-archive.com/users@wicket.apache.org/msg46421.html

in production and  found that of real help?
if so which one is better?
what are the side effects of using each?
can i have an implementation that fallback to normal sessionStore?

Another question
as its related to seialization,  can using JBoss serialization lib make
difference in GAE case? as it is much faster
if so where are the hooks , or the interfaces to replace the default
serialization
BTW. i know it cannot be used in the core wicket due to its LGPL lic.

Thanks
Joe


Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-27 Thread Ben Tilford
You can use Spring security with wicket auth-roles, I works out pretty nice
compared to the alternatives.  iirc You need do your normal Spring
setup, extend AuthenticatedWicketApplication, and AuthenticatedSession
 which has an authenticate method you'll call your UserDetails bean from.

Outdated Link
https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-ExampleWicket1.3.5


On Tue, Apr 27, 2010 at 7:20 PM, Jimi jimi.hulleg...@mogul.com wrote:


 Hi,

 I'm curious to know what security frameworks you guys are using.

 The reason I'm asking is because I recently tried out Spring Security
 together with a simple wicket web application, and was amazed on how easy
 it
 was. I applied the steps mentioned in their Pet Clinic tutorial
 (
 http://static.springsource.org/spring-security/site/petclinic-tutorial.html
 )
 more or less exactly as they are, and I didn't have to write a single line
 of code. All was done using configuration. And even when I replaced the
 hard
 coded list of users (with their passwords and groups) with my custom
 authentication provider (or actually custom UserDetailsService) I only had
 two write two simple classes that implemented two very simple and logical
 interfaces respectively, that used my pre existing hibernate configuration
 and POJOs.

 BUT... when I wanted to replace the auto generated login screen (which
 worked great, but just didn't look very appealing) with a custom login page
 I quickly ran into trouble. If the login was successful then all was fine.
 But for the cases when the login failed for some reason (like incorrect
 username/password or database being down) I was having problems accessing
 the error cause. Because as far as I could tell this message (actually an
 Exception subclass) was only available as a http session attribute. And it
 seems that Wicket does everything to hide those from the user, discourages
 the use of the getHttpServletRequest() and the session attributes of the
 wicket session object only seems to include attributes with a specific
 wicket-prefix (like wicket:wicket.myProject:) which of course caused my
 precious Spring Security session attributes to be unavailable.

 It was then I started thinking that Spring Security maybe isn't the best
 security framework together with Wicket. So I started looking around for
 other alternatives. Wicket-security/WASP/SWARM (still not sure what is
 what)
 and wicket auth roles where the first two, and some time later I also
 heard about wicket-shiro.

 But all these three seemed to have one or more of the following down sides
 that irritated me when I evaluated them:

 1. Missing official site. [wicket auth roles] At least I can't find it.

 2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
 discussion labeled is wicket-auth-roles discontinued?. And the comments
 on
 the Getting started with Swarm wiki page is from 2007 and 2008, plus that
 they talk about Acegi (the old name for Spring Security) and the project
 has
 dependencies to Wicket 1.3 and Spring 2.0.

 3. Doesn't seem stable. [wicket-shiro] No maven repository (you have to
 check out trunk and build yourself) and has three different SNAPSHOT
 dependencies.

 4. Seems to require a lot of different project specific java classes. [all
 three].


 The last point, number 4, is a really big down side if you ask me. Keep in
 mind that I was able to integrate Spring Security almost completely in my
 wicket web application with very little new java code needed. And that is a
 good thing, because project specific code is of course much less tested and
 tried compared to official stable code of reputable frameworks. Plus that I
 don't have to reinvent the wheel, considering the simple authentication and
 authorization demands of my project. The only thing stopping me was this
 stupid error message in the unavailable http session attribute.

 I actually started converting my project into a WASP/SWARM project, using
 the example project from

 http://out-println.blogspot.com/2009/02/wicket-swarm-spring-security-how-to.html
 ,
 but after creating class after class after class of in-my-eyes boilerplate
 code I got the overwhelming feeling that I was making my project more and
 more dirty. And, more importantly, I got the feeling that this shouldn't be
 so complicated. Other people surely have done this before, and maybe there
 is a good, stable and official framework/plugin/whatever that makes Spring
 Security and Wicket integration into a breeze. Which it really was when I
 followed the Pet Clinic tutorial (see URL above), since that used the auto
 generated login form.

 So, any input from you guys? What do you use to secure your wicket web
 sites? Or maybe someone can explain how to best solve my Wicket+Spring
 Security problem with the hidden http session attributes?

 Also, I hope I didn't step on anybody's toes with my list of down sides.
 Maybe I just haven't found the right web 

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-27 Thread James Carman
I have a SpringSecurityWebApplication and SpringSecurityWebSession
class you can use if you want.

On Tue, Apr 27, 2010 at 7:49 PM, Ben Tilford bentilf...@gmail.com wrote:
 You can use Spring security with wicket auth-roles, I works out pretty nice
 compared to the alternatives.  iirc You need do your normal Spring
 setup, extend AuthenticatedWicketApplication, and AuthenticatedSession
  which has an authenticate method you'll call your UserDetails bean from.

 Outdated Link
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-ExampleWicket1.3.5


 On Tue, Apr 27, 2010 at 7:20 PM, Jimi jimi.hulleg...@mogul.com wrote:


 Hi,

 I'm curious to know what security frameworks you guys are using.

 The reason I'm asking is because I recently tried out Spring Security
 together with a simple wicket web application, and was amazed on how easy
 it
 was. I applied the steps mentioned in their Pet Clinic tutorial
 (
 http://static.springsource.org/spring-security/site/petclinic-tutorial.html
 )
 more or less exactly as they are, and I didn't have to write a single line
 of code. All was done using configuration. And even when I replaced the
 hard
 coded list of users (with their passwords and groups) with my custom
 authentication provider (or actually custom UserDetailsService) I only had
 two write two simple classes that implemented two very simple and logical
 interfaces respectively, that used my pre existing hibernate configuration
 and POJOs.

 BUT... when I wanted to replace the auto generated login screen (which
 worked great, but just didn't look very appealing) with a custom login page
 I quickly ran into trouble. If the login was successful then all was fine.
 But for the cases when the login failed for some reason (like incorrect
 username/password or database being down) I was having problems accessing
 the error cause. Because as far as I could tell this message (actually an
 Exception subclass) was only available as a http session attribute. And it
 seems that Wicket does everything to hide those from the user, discourages
 the use of the getHttpServletRequest() and the session attributes of the
 wicket session object only seems to include attributes with a specific
 wicket-prefix (like wicket:wicket.myProject:) which of course caused my
 precious Spring Security session attributes to be unavailable.

 It was then I started thinking that Spring Security maybe isn't the best
 security framework together with Wicket. So I started looking around for
 other alternatives. Wicket-security/WASP/SWARM (still not sure what is
 what)
 and wicket auth roles where the first two, and some time later I also
 heard about wicket-shiro.

 But all these three seemed to have one or more of the following down sides
 that irritated me when I evaluated them:

 1. Missing official site. [wicket auth roles] At least I can't find it.

 2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
 discussion labeled is wicket-auth-roles discontinued?. And the comments
 on
 the Getting started with Swarm wiki page is from 2007 and 2008, plus that
 they talk about Acegi (the old name for Spring Security) and the project
 has
 dependencies to Wicket 1.3 and Spring 2.0.

 3. Doesn't seem stable. [wicket-shiro] No maven repository (you have to
 check out trunk and build yourself) and has three different SNAPSHOT
 dependencies.

 4. Seems to require a lot of different project specific java classes. [all
 three].


 The last point, number 4, is a really big down side if you ask me. Keep in
 mind that I was able to integrate Spring Security almost completely in my
 wicket web application with very little new java code needed. And that is a
 good thing, because project specific code is of course much less tested and
 tried compared to official stable code of reputable frameworks. Plus that I
 don't have to reinvent the wheel, considering the simple authentication and
 authorization demands of my project. The only thing stopping me was this
 stupid error message in the unavailable http session attribute.

 I actually started converting my project into a WASP/SWARM project, using
 the example project from

 http://out-println.blogspot.com/2009/02/wicket-swarm-spring-security-how-to.html
 ,
 but after creating class after class after class of in-my-eyes boilerplate
 code I got the overwhelming feeling that I was making my project more and
 more dirty. And, more importantly, I got the feeling that this shouldn't be
 so complicated. Other people surely have done this before, and maybe there
 is a good, stable and official framework/plugin/whatever that makes Spring
 Security and Wicket integration into a breeze. Which it really was when I
 followed the Pet Clinic tutorial (see URL above), since that used the auto
 generated login form.

 So, any input from you guys? What do you use to secure your wicket web
 sites? Or maybe someone can explain how to best solve my 

RE: using selenium

2010-04-27 Thread Jeremy Thomerson
I think most are using wicket:path (which is output in dev mode)


Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Joe Fawzy joewic...@gmail.com
Sent: Tuesday, April 27, 2010 6:13 PM
To: users@wicket.apache.org
Subject: using selenium

Hi all
i am building an application which use ajax heavily so i have to use
component.setOutputMarkupId(true)
this generate unique dom id for the components which changes every time i
load the same page
when using selenium , specially with its Firefox ide , it depends mainly on
the id attribute value and as this is dynamically generated by wicket ,it
cannot work smoothly

i can use xpath, but i then will lose some of the benefits of both selenium
and wicket,
selenium , i cannot use its code generation capability as it generate code
based on the the id
 of wicket(designer friendly markup) as i cannot freely change my markup,
otherwise it will break my tests

what is your experience

thanks in advance
Joe


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



Re: wicketpath is not valid html

2010-04-27 Thread bht
Hi,

You can extend the DTD of the validator to accept the attribute.

!ATTLIST yourtag
  wicketpath  CDATA  #IMPLIED
  


Bernard


On Tue, 27 Apr 2010 09:11:37 +0200, you wrote:

Hi,

For our project, we use the Wicket Stuff HTML Validator 
(http://github.com/dashorst/wicket-stuff-markup-validator), which informs us 
of invalid HTML upfront. However, with the switch from wicket 1.3 to 1.4, this 
validator is giving many errors on the wicketpath attribute. 

This attributed used to be named wicket:path, and was renamed to wicketpath as 
part of WICKET-1877, because selenium is having trouble using wicket:path. It 
was opted to make the name configurable, but decided that 'we don't need yet 
another configuration option'. Could this please be reconsidered? I like to 
keep the wicket:path attributes in the generated markup, because they can be 
very handy for debugging, but I have to disable them to keep the HTML 
validator happy.

Best regards,
Emond Papegaaij

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

2010-04-27 Thread Joe Fawzy
Hi dear
what is wicket:path? do you mean the component id path,like:
page:panel1:form2:component4
or it is a library or what
any samples or pointers please
thanks
Joe

On Wed, Apr 28, 2010 at 1:53 AM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 I think most are using wicket:path (which is output in dev mode)


 Jeremy Thomerson
 http://www.wickettraining.com
 -- sent from a wireless device


 -Original Message-
 From: Joe Fawzy joewic...@gmail.com
 Sent: Tuesday, April 27, 2010 6:13 PM
 To: users@wicket.apache.org
 Subject: using selenium

 Hi all
 i am building an application which use ajax heavily so i have to use
 component.setOutputMarkupId(true)
 this generate unique dom id for the components which changes every time i
 load the same page
 when using selenium , specially with its Firefox ide , it depends mainly on
 the id attribute value and as this is dynamically generated by wicket ,it
 cannot work smoothly

 i can use xpath, but i then will lose some of the benefits of both selenium
 and wicket,
 selenium , i cannot use its code generation capability as it generate code
 based on the the id
  of wicket(designer friendly markup) as i cannot freely change my markup,
 otherwise it will break my tests

 what is your experience

 thanks in advance
 Joe


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




Re: using selenium

2010-04-27 Thread Jeremy Thomerson
yes - the id path

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 27, 2010 at 8:00 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi dear
 what is wicket:path? do you mean the component id path,like:
 page:panel1:form2:component4
 or it is a library or what
 any samples or pointers please
 thanks
 Joe

 On Wed, Apr 28, 2010 at 1:53 AM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:

  I think most are using wicket:path (which is output in dev mode)
 
 
  Jeremy Thomerson
  http://www.wickettraining.com
  -- sent from a wireless device
 
 
  -Original Message-
  From: Joe Fawzy joewic...@gmail.com
  Sent: Tuesday, April 27, 2010 6:13 PM
  To: users@wicket.apache.org
  Subject: using selenium
 
  Hi all
  i am building an application which use ajax heavily so i have to use
  component.setOutputMarkupId(true)
  this generate unique dom id for the components which changes every time i
  load the same page
  when using selenium , specially with its Firefox ide , it depends mainly
 on
  the id attribute value and as this is dynamically generated by wicket ,it
  cannot work smoothly
 
  i can use xpath, but i then will lose some of the benefits of both
 selenium
  and wicket,
  selenium , i cannot use its code generation capability as it generate
 code
  based on the the id
   of wicket(designer friendly markup) as i cannot freely change my markup,
  otherwise it will break my tests
 
  what is your experience
 
  thanks in advance
  Joe
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



RE: Wicket survey?

2010-04-27 Thread Karolina Rusin

Hello,

This survey is a part of my master thesis research and I am a student from
the Wroclaw University of Technology. I need as much responses as possible
so I decided to sent mails directly to people who I know talk about Wicket
:) I didn't mean to make you guys feel uncomfortable.

I would appreciate any help in this research. 

Best regards
Karolina Rusin

Russell answer to every question is required to submit the survey... and
which version of Firefox are you using? 


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-survey-tp2068318p2068633.html
Sent from the Wicket - User 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