AbstractAjaxTimerBehavior start

2009-04-17 Thread Vladimir Zavada

Hi,
is there a way to start AbstractAjaxTimerBehavior after onSubmit event 
of AjaxButton, which is on the same page?


Thx in advance.

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



Re: AbstractAjaxTimerBehavior start

2009-04-17 Thread Vladimir Zavada

Thanks for reply.
I am just newbie to wicket.
I tried this solution but it did not work. Probably its because 
AbstractAjaxTimerBehavior is not a component and I am not able to set 
setOutputMarkupId to true.


Vlado

Tom Wollert  wrote / napísal(a):

Hi there,

Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
after you receive the ajax call from the onSubmit event and then update the
component using the ajax request target? (untested, but I don't see a reason
why it wouldn't work. could imagine that this solution might not be as
elegant as hoped)

- Tom

  



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



Re: JOptionpane dialog windows

2009-04-13 Thread Vladimir Zavada
Yes, I was talking about javax.swing.JOptionPane. Could you explain it 
to more detail, why I can not use javax.swing.JOptionPane in my wicket 
app? I am using it right now and it works fine. Is it because, it 
depends of JRE of end user or is it something else?


Vlado


Martin Voigt  wrote / napísal(a):

I'm not sure if I understand this right, are you talking about
javax.swing.JOptionPane? While wicket shares some concepts with swing
and maybe the TreeModel classes, it has nothing to do with swing
except both are loosely based on the same principles, event driven
etc. So no, you cannot use swing components in a wicket application,
except you are talking about embedding an applet or something, which
would be a bad idea from my POV.

But maybe I misunderstood you.

bw,
Martin

2009/4/11 Vladimir Zavada zava...@gmail.com:
  

I have a question about using JOptionPane dialogs in my wicket application.
Is it safe to use them? Is it better to use javascript alert or JOptionPane
dialog?

thx for your opinion

-
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: JOptionpane dialog windows

2009-04-13 Thread Vladimir Zavada

I tested it on two computers and it really does not work.
I have a delete button with confirmation dialog 
javax.swing.JOptionPane.showConfirmDialog. So I started my application 
on laptop no1 where Glassfish v3 server is running and then I started it 
on laptop no2 where I clicked on the delete button and to my surprise 
the confirmation dialog did not show on laptop no2 where it should have 
showed but it showed on laptop no1. :)


So the verdict is do not use javax.swing.JOptionPane in your wicket 
applications. :)


Vlado

Martin Voigt  wrote / napísal(a):

I'm not sure if I understand this right, are you talking about
javax.swing.JOptionPane? While wicket shares some concepts with swing
and maybe the TreeModel classes, it has nothing to do with swing
except both are loosely based on the same principles, event driven
etc. So no, you cannot use swing components in a wicket application,
except you are talking about embedding an applet or something, which
would be a bad idea from my POV.

But maybe I misunderstood you.

bw,
Martin

2009/4/11 Vladimir Zavada zava...@gmail.com:
  

I have a question about using JOptionPane dialogs in my wicket application.
Is it safe to use them? Is it better to use javascript alert or JOptionPane
dialog?

thx for your opinion

-
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


  




Loading image or component

2009-04-11 Thread Vladimir Zavada

Hi,
I am doing som queries on database through ajaxFallBackLink and it can 
take some time. Due this time I need some component or some loading 
image to show that site is alive and it is working?


Thank you in advance

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



Re: Loading image or component

2009-04-11 Thread Vladimir Zavada
Thank you very much, I really appreciate your help.

2009/4/11 Martin Makundi martin.maku...@koodaripalvelut.com


 http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html

 2009/4/11 Vladimir Zavada zava...@gmail.com:
  Hi,
  I am doing som queries on database through ajaxFallBackLink and it can
 take
  some time. Due this time I need some component or some loading image to
 show
  that site is alive and it is working?
 
  Thank you in advance
 
  -
  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




JOptionpane dialog windows

2009-04-11 Thread Vladimir Zavada
I have a question about using JOptionPane dialogs in my wicket 
application. Is it safe to use them? Is it better to use javascript 
alert or JOptionPane dialog?


thx for your opinion

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



DropDownChoice custom key problem

2009-04-08 Thread Vladimir Zavada

Hi,
I have a problem with DropDownChoice. I am using DropDownChoice with 
ChoiceRenderer and I am getting this error:


No get method defined for class: class java.lang.String expression: key


Here is a code:

   DaysSelectOption[] options = new DaysSelectOption[] {new 
DaysSelectOption(, AND), new DaysSelectOption(|, OR)};

   ChoiceRenderer choiceRenderer = new ChoiceRenderer(value, key);
   showVal.add(new DropDownChoice(day_val, new 
PropertyModel(this, items), Arrays.asList(options), choiceRenderer));


where class DaysSelectOption is:
private class DaysSelectOption
   {
   private String key;

   public String getKey()
   {
   return key;
   }

   public void setKey(String key)
   {
   this.key = key;
   }

   public String getValue()
   {
   return value;
   }

   public void setValue(String value)
   {
   this.value = value;
   }
   private String value;
   public DaysSelectOption(String key, String value)
   {
   this.key = key;
   this.value = value;
   }

thx for asnwers



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



Re: DropDownChoice custom key problem

2009-04-08 Thread Vladimir Zavada
Great, thank you very much it works perfectly. I did not know that 
object returned by the model and the type of objects in the list *must* 
be the same.



Serkan Camurcuoglu  wrote / napísal(a):
why does it say java.lang.String instead of DaysSelectOption? On 
http://cwiki.apache.org/WICKET/dropdownchoice-examples.html it says:


You give a DDC a model and a list of possible values. The type of 
object returned by the model and the type of objects in the list 
*must* be the same. If your model returns an Integer, so you *must* 
pass a list of Integers, not IntegerSelectChoice or anything else.


If you want to display something different than the integer, you have 
to implement some custom code in ChoiceRenderer.getDisplayValue(). 
Don't get hung up on the idea that the value returned has to be a 
property of
the objects in your list. It can be anything, such as the 
getString(period_ + object.toString()), for example.




Vladimir Zavada wrote:

I have changed it to public and still the same error.

James Carman  wrote / napísal(a):

The class is private.

2009/4/8 Vladimir Zavada zava...@gmail.com:
 

Hi,
I have a problem with DropDownChoice. I am using DropDownChoice with
ChoiceRenderer and I am getting this error:

No get method defined for class: class java.lang.String expression: 
key



Here is a code:

  DaysSelectOption[] options = new DaysSelectOption[] {new
DaysSelectOption(, AND), new DaysSelectOption(|, OR)};
  ChoiceRenderer choiceRenderer = new ChoiceRenderer(value, 
key);
  showVal.add(new DropDownChoice(day_val, new 
PropertyModel(this,

items), Arrays.asList(options), choiceRenderer));

where class DaysSelectOption is:
private class DaysSelectOption
  {
  private String key;

  public String getKey()
  {
  return key;
  }

  public void setKey(String key)
  {
  this.key = key;
  }

  public String getValue()
  {
  return value;
  }

  public void setValue(String value)
  {
  this.value = value;
  }
  private String value;
  public DaysSelectOption(String key, String value)
  {
  this.key = key;
  this.value = value;
  }

thx for asnwers



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





he class is private.

-
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



AjaxLazyLoad using

2009-04-08 Thread Vladimir Zavada

Hi,
I am doing som queries on database through ajaxFallBackLink and it may 
take some time. Due this time I need some component or modal window or 
some loading image to show that site is alive and it is working?


thx

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