RE: AutoCompleteTextField problem

2007-12-05 Thread Holda, Dariusz

Onblur is not the thing I want but I've tried it and it doesn't work. 

-Original Message-
From: Dipu Seminlal [mailto:[EMAIL PROTECTED] 
Sent: 05 December 2007 12:10
To: users@wicket.apache.org
Subject: Re: AutoCompleteTextField problem

can you try changing the event from onchange to onblur

On Dec 5, 2007 12:08 PM, dariusz.holda [EMAIL PROTECTED] wrote:


 Hi,
 I have AutoCompleteTextField with
 AjaxFormComponentUpdatingBehavior(onchange). When the value is
chosen
 from
 the auto complete it populates the model object of a drop down. Both
of
 the
 components are in a form. The problem is it is working only the first
 time.
 Then IE reports Error on Page: Object required. I've tried to debug
the
 error in FireFox but when I'm using Firefox it works fine with no
error.
 If
 I use DropDownChoice instead of AutoCompleteTextField it works with no
 errors as well.
 I'm using wicket-1.2.6 and wicket-extensions-1.2.6. Has anybody seen
 something like this? Is it a bug in 1.2.6 AutoCompleteTextField for
IE?
 Unfortunately I almost all of the clients are using IE and it has to
work
 with this browser.
 Here is the code snippet:
 acTextField.add(new AjaxFormComponentUpdatingBehavior(onchange){

private static final long
serialVersionUID
 = 1L;

@Override
public void onUpdate(AjaxRequestTarget
 target){
String name =
 acTextField.getModelObjectAsString();
dropDown.setModelObject(name);
target.addComponent(form);
}
});

 dropDown and acTextField are added to the form.

 --
 View this message in context:

http://www.nabble.com/AutoCompleteTextField-problem-tf4949236.html#a1417
0390
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




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



RE: AutoCompleteTextField problem

2007-12-05 Thread Holda, Dariusz

Yes it did work. And if I want to refresh the form? Do I have to enclose
all the form components in the web markup?

Dariusz 

-Original Message-
From: Dipu Seminlal [mailto:[EMAIL PROTECTED] 
Sent: 05 December 2007 14:28
To: users@wicket.apache.org
Subject: Re: AutoCompleteTextField problem

can you please try enclosing the dropdown in a webmarkupcontainer and
repaint the container instead of repainting the whole form. That will
work.

regards
dipu

On Dec 5, 2007 2:23 PM, Dipu Seminlal [EMAIL PROTECTED] wrote:

 agreed, onBlur doesn't seem to work, in my project had added onChange
and
 OnBlur to be on the safer side,
 but now noticed that onBlur is not getting fired




 On Dec 5, 2007 12:20 PM, Holda, Dariusz  [EMAIL PROTECTED]
wrote:

 
  Onblur is not the thing I want but I've tried it and it doesn't
work.
 
  -Original Message-
  From: Dipu Seminlal [mailto:[EMAIL PROTECTED]
  Sent: 05 December 2007 12:10
  To: users@wicket.apache.org
  Subject: Re: AutoCompleteTextField problem
 
  can you try changing the event from onchange to onblur
 
  On Dec 5, 2007 12:08 PM, dariusz.holda  [EMAIL PROTECTED]
  wrote:
 
  
   Hi,
   I have AutoCompleteTextField with
   AjaxFormComponentUpdatingBehavior(onchange). When the value is
  chosen
   from
   the auto complete it populates the model object of a drop down.
Both
  of
   the
   components are in a form. The problem is it is working only the
first
   time.
   Then IE reports Error on Page: Object required. I've tried to
debug
  the
   error in FireFox but when I'm using Firefox it works fine with no
  error.
   If
   I use DropDownChoice instead of AutoCompleteTextField it works
with no
   errors as well.
   I'm using wicket-1.2.6 and wicket-extensions-1.2.6. Has anybody
seen
   something like this? Is it a bug in 1.2.6 AutoCompleteTextField
for
  IE?
   Unfortunately I almost all of the clients are using IE and it has
to
  work
   with this browser.
   Here is the code snippet:
   acTextField.add(new AjaxFormComponentUpdatingBehavior(onchange){
  
  private static final long
  serialVersionUID
   = 1L;
  
  @Override
  public void
onUpdate(AjaxRequestTarget
   target){
  String name =
   acTextField.getModelObjectAsString();
  
dropDown.setModelObject(name);
   target.addComponent(form);
  }
  });
  
   dropDown and acTextField are added to the form.
  
   --
   View this message in context:
  
 
http://www.nabble.com/AutoCompleteTextField-problem-tf4949236.html#a1417
  0390
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
  - - - - - - - -
 
  This message is intended only for the personal and confidential use
of
  the designated recipient(s) named above.  If you are not the
intended
  recipient of this message you are hereby notified that any review,
  dissemination, distribution or copying of this message is strictly
  prohibited.  This communication is for information purposes only and
should
  not be regarded as an offer to sell or as a solicitation of an offer
to buy
  any financial product, an official confirmation of any transaction,
or as an
  official statement of Lehman Brothers.  Email transmission cannot be
  guaranteed to be secure or error-free.  Therefore, we do not
represent that
  this information is complete or accurate and it should not be relied
upon as
  such.  All information is subject to change without notice.
 
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice

Page expiration

2007-09-20 Thread Holda, Dariusz

Hi,
I've came across a strange behaviour. I'm running Wicket app on Jetty
server and most of the times it's working fine but from time to time I'm
getting Page expired message even if user is actively using the app.
Unfortunately it's not happening on the same events. Sometimes it's
after pressing 'Save' after choosing a date in DatePicker, sometimes
it's happening after clicking on a different tab after editing a
textfield. 
Anyone has an idea what may be the cause of this problem?
I'm using wicket-1.2.6 and each of the editable fields has an Ajax
behaviour.

Thx,
Dariusz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




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



RE: Page expiration

2007-09-20 Thread Holda, Dariusz

I don't have but from time to time I'm getting this error:
ERROR
Unable to render resource stream
jar:file:/vendor/Wicket_ext/1.2.6/wicket-extensions-1.2.6.jar!/wicket/ex
tensions/markup/html/datepicker/style/aqua/menuarrow.gifwicket.WicketRun
timeException: Unable to render resource stream
jar:file:/vendor/Wicket_ext/1.2.6/wicket-extensions-1.2.6.jar!/wicket/ex
tensions/markup/html/datepicker/style/aqua/menuarrow.gif 

Could this be the cause of the problem?

Thx,
Dariusz

-Original Message-
From: Dipu Seminlal [mailto:[EMAIL PROTECTED] 
Sent: 20 September 2007 13:03
To: users@wicket.apache.org
Subject: Re: Page expiration

Hi,

Can you please check if you have any img tags in your html with empty
src
attributes ?

Regards
Dipu

On 9/20/07, Holda, Dariusz [EMAIL PROTECTED] wrote:


 Hi,
 I've came across a strange behaviour. I'm running Wicket app on Jetty
 server and most of the times it's working fine but from time to time
I'm
 getting Page expired message even if user is actively using the app.
 Unfortunately it's not happening on the same events. Sometimes it's
 after pressing 'Save' after choosing a date in DatePicker, sometimes
 it's happening after clicking on a different tab after editing a
 textfield.
 Anyone has an idea what may be the cause of this problem?
 I'm using wicket-1.2.6 and each of the editable fields has an Ajax
 behaviour.

 Thx,
 Dariusz
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
 - - - - - - -

 This message is intended only for the personal and confidential use of
the
 designated recipient(s) named above.  If you are not the intended
recipient
 of this message you are hereby notified that any review,
dissemination,
 distribution or copying of this message is strictly prohibited.  This
 communication is for information purposes only and should not be
regarded as
 an offer to sell or as a solicitation of an offer to buy any financial
 product, an official confirmation of any transaction, or as an
official
 statement of Lehman Brothers.  Email transmission cannot be guaranteed
to be
 secure or error-free.  Therefore, we do not represent that this
information
 is complete or accurate and it should not be relied upon as such.  All
 information is subject to change without notice.




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


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




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



RE: DataView paging

2007-09-12 Thread Holda, Dariusz

Sorry for late response. I was dragged to another task.
Thanks for pointing  me to the svn repository, it helped a lot. Shame I
can't use Hibernate or Ibatis as you do in your project. 

Thanks again,
Dariusz 
 

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: 31 August 2007 16:50
To: users@wicket.apache.org
Subject: Re: DataView paging

you are holding on to the entire list in your data provider, this is
bad.
you should only load the pieces of your list you need.

further your loadabledetachablemodel is broken since you hold on to the
actual object itself. loadabel detachable models are meant to hold on to
the
id, and in load() load the object from the database based on that id

makes sense? see wicket-phonebook example in wicket-stuff svn.

-igor


On 8/31/07, Holda, Dariusz [EMAIL PROTECTED] wrote:


 Hi,
 I'm using my implementation of a DataView to display list of objects
 that are own by another object.
 I wrote my IDataProvider and LoadableDetachableModel so I can page
 through the list - the list is quite long it can even have 5000, 6000
 objects.
 I'm displaying 10 rows on each page.
 When I run application locally from my eclipse, everything is fine but
 when I run it on a server the delay during page changing is
significant
 e.g. 3 or more seconds.
 Could someone advise me on this issue?
 I'm attaching code snippets.

 class MyObjectDataProvider implements IDataProvider {

 private static final long serialVersionUID =
 -254289478999293765L;
 private ListMyObject myObjects;

 public MyObjectDataProvider(ListMyObject myObjects){
 this.myObjects = myObjects;
 }

 public IteratorMyObject iterator(int first, int count) {
 return new
ArrayListMyObject(myObjects.subList(first,
 first+count)).iterator();
 }

 public IModel model(Object arg0) {
 return new MyObjectModel((MyObject)arg0);
 }

 public int size() {
 return myObjects.size();
 }

 public void setMyObjects(
 ListMyObject myObjects) {
 this.myObjects = myObjects;
 }

 private final class MyObjectModel extends
 LoadableDetachableModel{

 private static final long serialVersionUID =
 8575601860619558208L;
 private MyObject psc;

 public MyObjectModel(MyObject psc){
 this.psc = psc;
 }

 @Override
 protected Object load() {
 return psc;
 }

 @Override
 public int hashCode(){
 return psc.hashCode();
 }

 @Override
 public boolean equals(Object o){
 if(this == o){
 return true;
 }
 if(o instanceof MyObjectModel){
 MyObjectModel that = (MyObjectModel)o;
 if(this.psc == null ? that.psc==null:
 this.psc.equals(that.psc)){
 return true;
 }
 }
 return false;
 }
 }
 }

 class MyObjectDataView extends DataView {

 private static final long serialVersionUID =
 -5679706549137629007L;


 /**
  * Constructor.
  *
  * @param name of this Component
  * @param myObjectModel model containing list of MyObject
 objects
  */
 public MyObjectDataView(String name, IDataProvider
 myObjectDataProvider) {
 super(name, myObjectDataProvider);
 }

 @Override
 protected void populateItem(Item item) {
 MyObject psc = (MyObject)item.getModelObject();
 TextField field1 = new TextField(field1,new
 PropertyModel(psc,field1));
 site.setEnabled(false);

 TextField field2 = new TextField(field2,new
 PropertyModel(psc,field2));
 currency.setEnabled(false);

 item.add(field1);
 item.add(field2);
 item.add(new TextField(field3,new
 PropertyModel(psc,field3;
 item.add(new TextField(field4,new
 PropertyModel(psc,field4;
 item.add(new TextField(field5,new
 PropertyModel(psc,field5;
 item.add(new CheckBox(field6,new
 PropertyModel(psc,field6;
 }
 }

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
 - - - - - - -

 This message is intended only for the personal and confidential use of
the
 designated recipient(s) named above.  If you are not the intended
recipient
 of this message you are hereby notified that any review,
dissemination,
 distribution or copying