Re: AutoCompleteTextField problem

2007-12-05 Thread Dipu Seminlal
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]
 
 



Re: Get Value entered in CheckBoxMultipleChoice and TextFields

2007-11-29 Thread Dipu Seminlal
take a look at the CheckBoxMultipleChoicePage in the wicket examples,
that will give you the idea, i have not used it myself though.

regards
-dipu

On Nov 29, 2007 12:49 PM, tsuresh [EMAIL PROTECTED] wrote:


 Hello every body,
  I have got the problem again, I have a form to add new Role which has
 name, description and list of permissions. Role name and description are
 in
 text fields and permissions are as checkboxmultiplechoice, I am having
 difficult time in getting the values of the checked boxes. How do I get
 the
 list of checked values in onSubmit() method. I tried as in code shown
 below
 but it never returned any checked value
 . What should I do ? I studied the examples in wicket component ref and
 cwiki examples but could not succeed to solve it.

  public void roleAdd() {
List permList = new ArrayList();
Role role = new Role();
CompoundPropertyModel roleAddModel = new
 CompoundPropertyModel(role);
final Form form = new RoleAddForm(roleForm,roleAddModel);

add(form);
final TextField roleComp = new TextField(name);
final TextArea desComp = new TextArea(description);
try{
permList = p.list();
}catch(SQLException e){
String err = e.getMessage();
}
permComp = new CheckBoxMultipleChoice(permList,permList);
permComp.setModel(new Model());
form.add(roleComp);
form.add(desComp);
form.add(permComp);
}

class RoleAddForm extends Form{
public RoleAddForm(String id, IModel model){
super(id,model);
}
@Override
public void onSubmit() {
Role newRole = (Role)getModelObject();
Role r = new Role(); // Role to a be added
r.setName(newRole.getName());
r.setDescription(newRole.getDescription());
List perms;
perms = (List) model.getObject(permComp);
   
   
 }

 thanks


 --
 View this message in context:
 http://www.nabble.com/Get-Value-entered-in--CheckBoxMultipleChoice--and-TextFields-tf4896987.html#a14025061
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Populate form according to selected item in dropdownchoice

2007-11-27 Thread Dipu Seminlal
have a look at the attached files, thats based on your code snippet,
you will get the idea.

regards
dipu

On Nov 27, 2007 7:17 AM, tsuresh [EMAIL PROTECTED] wrote:

 Hi Dipu,
   Could you please tell me what to write in the method
 onSelecitionChanged(). It would be easier for me to understand if you
 provide the code example. I studied the link
 http://cwiki.apache.org/WICKET/dropdownchoice-examples.html but could not
 understand it.
 thanks


 Dipu Seminlal wrote:
 
  there are two ways to do it
 
  override the wantOnSelectionChangedNotifications of the user dropdown
  to return true and override onSelectionChanged to do what you want,
  but this will result in server round trips ( refer the java of
  DropDownChoice )
 
  or use an AjaxFormComponentUpdatingBehavior on the onChange event of
  the dropdown.
 
  regards
  Dipu
 
  On Nov 26, 2007 7:14 AM, tsuresh [EMAIL PROTECTED] wrote:
 
  Hello wicketeers,
  I have a form to edit the attributes of User. User has the attributes
  username, mail and role.I have a dropdownchoice filled with list of
  users.
  When I select the user his mail should be displayed in textfield and his
  role should be displayed in dropdownchoice. And i should be able to edit
  his
  mail and role. I have already made the form to fill the first drop down
  choice.I have made function view(username) in User class which helps in
  viewing attributes of the user(user selected in dropdown), But I have no
  idea to populate the remaining form components.How to do this? My code
  for
  form is as below:
 
  public UserEdit(){
 
  User user= new user();
  CompoundPropertyModel userEditModel = new
  CompoundPropertyModel(user);
  Form form = new userEditForm(user,userEditModel);
  add(form);
  add(new FeedbackPanel(feedback).setOutputMarkupId(true));
  DropDownChoice ddc = null;
  try{
  ddc = new DropDownChoice(username,user.list());
  }catch(SQLException e){
  String err = e.getMessage();
  }
 
  TextField mailComp = new TextField(mail);
  DropDownChoice roleDdc =null;
  try{
  roleDdc = new DropDownChoice(role.name,r.list());
  }catch(SQLException e){
  String err = e.getMessage();
  }
  form.add(ddc);
  form.add(mailComp);
  form.add(roleDdc);
  }
 
  class UserEditForm extends Form {
  public UserEditForm(String id,IModel model) {
  super(id,model);
  }
  --
  View this message in context:
  http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13944776
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13965803

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


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


/* TestPage.java
 * com.xmltravel.fab1.wicket.testcontrol
 * fab1gui1.3 
 * 
 * Created on 27 Nov 2007 by FULL NAME HERE (dipu should fix this)
 * 
 * Copyright: 
 * Multicom Products Ltd. 2007
 * Bristol, England.
 * 
 */
package com.xmltravel.fab1.wicket.testcontrol;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.IChoiceRenderer;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.IModel;

import com.xmltravel.fab1.wicket.page.BasePage;

public class TestPage extends BasePage 
{

	private static final long serialVersionUID = 1L;
	private CompoundPropertyModel userEditModel;
	private static ListString roles = new ArrayListString();
	static 
	{
		roles.add(Manger);
		roles.add(Admin);
		roles.add(Super User);
		roles.add(User);
	}
	
	private static ListUser users = new ArrayListUser();
	static 
	{
		 User user1= new User(user1,roles.get(0),[EMAIL PROTECTED]);
		 User user2= new User(user2,roles.get(1),[EMAIL PROTECTED]);
		 User user3= new User(user3,roles.get(2),[EMAIL PROTECTED]);
		 users.add(user1);
		 users.add(user2

Re: Populate form according to selected item in dropdownchoice

2007-11-26 Thread Dipu Seminlal
there are two ways to do it

override the wantOnSelectionChangedNotifications of the user dropdown
to return true and override onSelectionChanged to do what you want,
but this will result in server round trips ( refer the java of
DropDownChoice )

or use an AjaxFormComponentUpdatingBehavior on the onChange event of
the dropdown.

regards
Dipu

On Nov 26, 2007 7:14 AM, tsuresh [EMAIL PROTECTED] wrote:

 Hello wicketeers,
 I have a form to edit the attributes of User. User has the attributes
 username, mail and role.I have a dropdownchoice filled with list of users.
 When I select the user his mail should be displayed in textfield and his
 role should be displayed in dropdownchoice. And i should be able to edit his
 mail and role. I have already made the form to fill the first drop down
 choice.I have made function view(username) in User class which helps in
 viewing attributes of the user(user selected in dropdown), But I have no
 idea to populate the remaining form components.How to do this? My code for
 form is as below:

 public UserEdit(){

 User user= new user();
 CompoundPropertyModel userEditModel = new
 CompoundPropertyModel(user);
 Form form = new userEditForm(user,userEditModel);
 add(form);
 add(new FeedbackPanel(feedback).setOutputMarkupId(true));
 DropDownChoice ddc = null;
 try{
 ddc = new DropDownChoice(username,user.list());
 }catch(SQLException e){
 String err = e.getMessage();
 }

 TextField mailComp = new TextField(mail);
 DropDownChoice roleDdc =null;
 try{
 roleDdc = new DropDownChoice(role.name,r.list());
 }catch(SQLException e){
 String err = e.getMessage();
 }
 form.add(ddc);
 form.add(mailComp);
 form.add(roleDdc);
 }

 class UserEditForm extends Form {
 public UserEditForm(String id,IModel model) {
 super(id,model);
 }
 --
 View this message in context: 
 http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13944776
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Wicket Stuff JQuery + Wicket Ajax

2007-11-22 Thread Dipu Seminlal
Hi all,
Please ignore this mail, i found the reason why it was not working.
just calling
target.appendJavascript(dnd.getJSFunctionName4Start() + ();); will
do the trick.

I had an idea its about calling nd.getJSFunctionName4Start(), but i
tried it in a wrong way, instead of appending i tried using
AjaxCalldecorator.

Thanks
Dipu







On Nov 21, 2007 4:37 PM, Dipu Seminlal [EMAIL PROTECTED] wrote:
 Hi All,

 I am trying to use the Wicket Stuff JQuery - Drag and Drop feature,

 I constructed  simple list as in the example and everything works fine,

 Now i add a new item to the list, i add the new item on the click of
 an AjaxLink and redraw the list.

 But after that rendering the new list on the AjaxLink click, the
 Jquery drag drop feature fails to work,
 It works again if i do a page refresh.

 what should i be doing to make sure that the drab drop feature will
 continue to work even after redrawing the list with new items


 Regards
 Dipu


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



Re: Getting started

2007-11-22 Thread Dipu Seminlal
We don't do imports, we extends ! checkout markup inheritance

http://cwiki.apache.org/WICKET/markup-inheritance.html

regards
dipu

On Nov 22, 2007 2:48 PM, Gervais [EMAIL PROTECTED] wrote:
 Hy all,

 I'm new in the famous wicket world ! I need to start learning Wicket but
 i can't found docs that explain more than just doing a HelloWrold or a
 GuestBook.
 In fact i need to use Wicket with Spring but for that i first need to
 understand and play with wicket. So i have many questions.

 1° Is there a way for stupid frenchies that don't speak english like me
 to talk about Wicket ? (If not sorry for my poor english)


 2° How can i import other page. Like a %@ include
 file=includes/menubar.inc.jsp % or jsp:include
 page=includes/menubar.inc.jsp flush=true / tag ?

 3° In a big form ( with more than 20 fields ) that represnet more than
 one Pojo Bean how must i work ?


 Thanks



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



Re: Getting started

2007-11-22 Thread Dipu Seminlal
Is the content of your  page (paragraph, links, list etc ) static in
nature, then you can just write it directly in html,

If it is not static in nature where do you get it from and in what form

If you have an object that is initialised with the data to populate in
you StartupPage, you can have a constructor like the following

public StartupPage(YourStartupContentObject foo)
{
   add(new Label(message1, foo.getMessage1()));
  add(new Label(message2, foo.getMessage2()));

  add(new MultilineLabel(message2, foo.getparagraph()));
}

Or

public StartupPage()
{
   YourStartupContentObject foo = fetchTheContent();
   add(new Label(message1, foo.getMessage1()));
  add(new Label(message2, foo.getMessage2()));

  add(new MultilineLabel(message2, foo.getparagraph()));
}

Hope you get the Idea

regards
dipu

On Nov 22, 2007 3:23 PM, Gervais [EMAIL PROTECTED] wrote:
 Ok thanks.

 But y have another question. (i try to translate it corretcly).

 For beginning i have created an application named Startup with one
 page named StartupPage.
 Below is my StartupPage code :

 # Code start
 --
 public class StartupPage extends WebPage {

 private TestBean bean;

 public StartupPage() {

 bean=new TestBean();
 bean.setWelcome(Welcome text bla bla bla);

 add(new Label(test, new PropertyMdel(bean, welcome) ));

 }
 }
 # Code end
 --

 It works great but my page StartupPage.html must contains more than
 one welcome message.
 - Must i have one attribute (in my bean) per item to display ?
 - If i must have one attribute in my bean per item to display, it become
 a Model. If it become a model it must implements or extends a model.
 What model ?
 -- How can i correctly create a page that contains only paragraph,
 links and list ?




 Dipu Seminlal a écrit :

  We don't do imports, we extends ! checkout markup inheritance
 
  http://cwiki.apache.org/WICKET/markup-inheritance.html
 
  regards
  dipu
 
  On Nov 22, 2007 2:48 PM, Gervais [EMAIL PROTECTED] wrote:
 
  Hy all,
 
  I'm new in the famous wicket world ! I need to start learning Wicket but
  i can't found docs that explain more than just doing a HelloWrold or a
  GuestBook.
  In fact i need to use Wicket with Spring but for that i first need to
  understand and play with wicket. So i have many questions.
 
  1° Is there a way for stupid frenchies that don't speak english like me
  to talk about Wicket ? (If not sorry for my poor english)
 
 
  2° How can i import other page. Like a %@ include
  file=includes/menubar.inc.jsp % or jsp:include
  page=includes/menubar.inc.jsp flush=true / tag ?
 
  3° In a big form ( with more than 20 fields ) that represnet more than
  one Pojo Bean how must i work ?
 
 
  Thanks
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  __ NOD32 2678 (20071122) Information __
 
  This message was checked by NOD32 antivirus system.
  http://www.eset.com
 
 
 
 


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



Re: Getting started

2007-11-22 Thread Dipu Seminlal
Is it not possible to pass those objects itself to the page in the constructor.
Thats how i do it, may be i don't understand your problem correctly,
hopefully someone else here will be able to help you.

regards
dipu



On Nov 22, 2007 4:01 PM, Gervais [EMAIL PROTECTED] wrote:
 Ho, yes i imagine it like that.

 But in my case, and i suppose many other, i get information from many
 object/beans that contains values stored in database.

 In fact i surrely use two java.util.List (Annoucements and Notes) and
 other objects for paragraph and links but i don't now what kinds of
 objects. Must i create one class per non static item to be displayed ?

 Dipu Seminlal a écrit :

  Is the content of your  page (paragraph, links, list etc ) static in
  nature, then you can just write it directly in html,
 
  If it is not static in nature where do you get it from and in what form
 
  If you have an object that is initialised with the data to populate in
  you StartupPage, you can have a constructor like the following
 
  public StartupPage(YourStartupContentObject foo)
  {
 add(new Label(message1, foo.getMessage1()));
add(new Label(message2, foo.getMessage2()));
 
add(new MultilineLabel(message2, foo.getparagraph()));
  }
 
  Or
 
  public StartupPage()
  {
 YourStartupContentObject foo = fetchTheContent();
 add(new Label(message1, foo.getMessage1()));
add(new Label(message2, foo.getMessage2()));
 
add(new MultilineLabel(message2, foo.getparagraph()));
  }
 
  Hope you get the Idea
 
  regards
  dipu
 
  On Nov 22, 2007 3:23 PM, Gervais [EMAIL PROTECTED] wrote:
 
  Ok thanks.
 
  But y have another question. (i try to translate it corretcly).
 
  For beginning i have created an application named Startup with one
  page named StartupPage.
  Below is my StartupPage code :
 
  # Code start
  --
  public class StartupPage extends WebPage {
 
  private TestBean bean;
 
  public StartupPage() {
 
  bean=new TestBean();
  bean.setWelcome(Welcome text bla bla bla);
 
  add(new Label(test, new PropertyMdel(bean, welcome) ));
 
  }
  }
  # Code end
  --
 
  It works great but my page StartupPage.html must contains more than
  one welcome message.
  - Must i have one attribute (in my bean) per item to display ?
  - If i must have one attribute in my bean per item to display, it become
  a Model. If it become a model it must implements or extends a model.
  What model ?
  -- How can i correctly create a page that contains only paragraph,
  links and list ?
 
 
 
 
  Dipu Seminlal a écrit :
 
 
  We don't do imports, we extends ! checkout markup inheritance
 
  http://cwiki.apache.org/WICKET/markup-inheritance.html
 
  regards
  dipu
 
  On Nov 22, 2007 2:48 PM, Gervais [EMAIL PROTECTED] wrote:
 
 
  Hy all,
 
  I'm new in the famous wicket world ! I need to start learning Wicket but
  i can't found docs that explain more than just doing a HelloWrold or a
  GuestBook.
  In fact i need to use Wicket with Spring but for that i first need to
  understand and play with wicket. So i have many questions.
 
  1° Is there a way for stupid frenchies that don't speak english like me
  to talk about Wicket ? (If not sorry for my poor english)
 
 
  2° How can i import other page. Like a %@ include
  file=includes/menubar.inc.jsp % or jsp:include
  page=includes/menubar.inc.jsp flush=true / tag ?
 
  3° In a big form ( with more than 20 fields ) that represnet more than
  one Pojo Bean how must i work ?
 
 
  Thanks
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  __ NOD32 2678 (20071122) Information __
 
  This message was checked by NOD32 antivirus system.
  http://www.eset.com
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  __ NOD32 2678 (20071122) Information __
 
  This message was checked by NOD32 antivirus system.
  http://www.eset.com
 
 
 
 


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



Re: How can I switch page direction (LTR-RTL)?

2007-11-15 Thread Dipu Seminlal
Its a class that allows a tag attribute of a wicket component to be
modified on the fly with the value supplied.

We can do something like this, hope this makes sense
WebMarkupContainer myImage = new WebMarkupContainer(image);
String url 
=image.getThumbnailURL()==null?image.getURL():image.getThumbnailURL();

if(url == null || url.equals())
{
myImage.setVisible(false);
}
else
{
AttributeModifier am = new AttributeModifier(src, new Model(url));
myImage.add(am);
}

cheers
-dipu


On Nov 15, 2007 7:29 AM, nlif [EMAIL PROTECTED] wrote:

 Thanks. What is the attribute modifier?

 Naaman




 alshamsi wrote:
 
  In your html page you can use the set the dir attribute of the html tag
  to the direction you want
 
  html xmlns=http://www.w3.org/1999/xhtml;  dir=ltr
 
  I believe you can do so automatically using the new attribute modifier.
 
  Regards
  Alshamsi
 
 
  nlif wrote:
  Hi all,
 
  I would like to be able to set the page direction: right-to-left or
  left-to-right.
  This can be done via the browser's view - switch page direction
  menu-option,
  but I need to be able to set this dynamically (i.e. by the application),
  based on the locale.
  Is this supported in Wicket?
 
 
  Thanks,
  Naaman
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/How-can-I-switch-page-direction-%28LTR-RTL%29--tf4805391.html#a13762990
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -

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



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



Re: how to call a javascript function?

2007-11-15 Thread Dipu Seminlal
override the onComponentTag of the form object, hope this helps

protected void onComponentTag(final ComponentTag tag)
{
   super.onComponentTag(tag);   
tag.put(onSubmit,  return yourValidateFunction();
}

cheers
-dipu

On Nov 15, 2007 3:23 PM, raybristol [EMAIL PROTECTED] wrote:

 Hi, I have a form in a page, after user fill some data in and press 'Save' I
 want to call/or not to call a javascript function, in my code I was try to
 do like:

 Form form = new Form(form, new CompoundPropertyModel(this)){
 protected void onSubmit(){
 activity.setReference(reference);

 (new ActivityManager()).storeActivity(activity);
 //setResponsePage(new ActivityTypesMenu());
 }};

 TextField activityDateTF = new TextField(activityDate, new
 PropertyModel(this,reference));
 activityDateTF.setRequired(true);
 form.add(activityDateTF);
 Button saveBtn = new Button(save);
 saveBtn.add(
 new SimpleAttributeModifier(
 onclick, something();));


 form.add(saveBtn);

 add(form);

 However I don't think I am doing it right, one thing that javascript
 function not be called so I am asking help again here...

 Many thanks again.
 --
 View this message in context: 
 http://www.nabble.com/how-to-call-a-javascript-function--tf4813502.html#a13771231
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: required field in a form, help :)

2007-11-14 Thread Dipu Seminlal
setDefaultFormProcessing(false) on your cancel buttom

Regards
Dipu

On Nov 14, 2007 11:05 AM, raybristol [EMAIL PROTECTED] wrote:

 Hi, I have some inputs in a form, some are required field, they work fine
 when I press 'submit' button, however, I also include a cancel button, in
 which onclick event my code is like:

  add(new Button(cancel){
 public void onClick() {
 setResponsePage(new ActivityTypeList());
 }
 });


 But I think it's probably button 'cancel' has attribute type='submit' in
 html page, but I can't put reset, so I don't know what to do to avoid the
 validation when user press 'cancel' ?

 Many thanks,
 Ray
 --
 View this message in context: 
 http://www.nabble.com/required-field-in-a-form%2C-help-%3A%29-tf4804178.html#a13744215
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: working with JSP problem, thanks!

2007-11-14 Thread Dipu Seminlal
i think you should be doing this

servlet
servlet-nameAdminPagesApplication/servlet-name

servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
   init-param
param-nameapplicationClassName/param-name

param-valueapto.umbrella.wicketInterface.AdminPagesApplication/param-value
/init-param
/servlet

servlet
servlet-nameAdminPagesApplication2/servlet-name

servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
   init-param
param-nameapplicationClassName/param-name

param-valueapto.umbrella.wicketInterface.AdminPagesApplication2/param-value
/init-param
/servlet


 servlet-mapping
   servlet-nameAdminPagesApplication/servlet-name
   url-pattern/Admin/*/url-pattern
 /servlet-mapping

 servlet-mapping
servlet-nameAdminPagesApplication2/servlet-name
url-pattern/Admin2/*/url-pattern
 /servlet-mapping

-dipu

On Nov 14, 2007 12:23 PM, raybristol [EMAIL PROTECTED] wrote:

 Hi, my wicket pages need to be worked with some other jsp pages, and for some
 reason I need two startup place so in xml conf files I got:

   servlet
 servlet-nameAdminPagesApplication/servlet-name

 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
 init-param
   param-nameapplicationClassName/param-name

 param-valueapto.umbrella.wicketInterface.AdminPagesApplication/param-value
 /init-param
   /servlet


   servlet-mapping
 servlet-nameAdminPagesApplication/servlet-name
 url-pattern/Admin/*/url-pattern
   /servlet-mapping


 so I was try to put more something like:

   servlet
 servlet-nameAdminPagesApplication/servlet-name

 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
 init-param
   param-nameapplicationClassName/param-name

 param-valueapto.umbrella.wicketInterface.AdminPagesApplication/param-value

 param-valueapto.umbrella.wicketInterface.AdminPagesApplication2/param-value
 /init-param
   /servlet


   servlet-mapping
 servlet-nameAdminPagesApplication/servlet-name
 url-pattern/Admin/*/url-pattern
 servlet-nameAdminPagesApplication2/servlet-name
 url-pattern/Admin2/*/url-pattern
   /servlet-mapping

 But then it won't work, I think it probably something really simple to
 change, sorry to bother again for those newbie questions!

 Many thanks,
 Ray
 --
 View this message in context: 
 http://www.nabble.com/working-with-JSP-problem%2C-thanks%21-tf4804711.html#a13745657
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Problem deploying the app as portlet in Jetspeed

2007-11-14 Thread Dipu Seminlal
Hi Ate,

Thanks for the response,  this was exactly my problem as well, there
is nothing useful in the logs.

I can't find jetspeed.log in the logs folder, catalina.out doesn't
have anything in it and there is no stack trace in my projects log
either.

Do i need anything special to get things logged to  jetspeed.log and
catalina.out.

regards
dipu




On Nov 14, 2007 2:33 PM, Ate Douma [EMAIL PROTECTED] wrote:
 Hi Dipu,

 I do need the possible errors from jetspeed.log and maybe catalina.out to 
 help.
 Without that, I really don't know what's going wrong and what has an 
 initialization failure here.

 Ate



 Dipu Seminlal wrote:
  Hi all,
 
  I tried to deploy my application as portlet in jetspeed and it's
  complaining about Initialization failure
  I can't find anything useful in the logs
  I am using Jetspeed 2.1.2 and my app is build against the wicket trunk.
 
  I have given the following in my portlet.xml
 
  init-param
nameServletContextProvider/name
valueorg.apache.jetspeed.portlet.ServletContextProviderImpl/value
  /init-param
  init-param
namePortletResourceURLFactory/name

  valueorg.apache.jetspeed.portlet.PortletResourceURLFactoryImpl/value
  /init-param
 
  and the following in web.xml
 
  servlet
servlet-nameJetspeedContainer/servlet-name
display-nameJetspeed Container/display-name
descriptionMVC Servlet for Jetspeed Portlet 
  Applications/description

  servlet-classorg.apache.jetspeed.container.JetspeedContainerServlet/servlet-class
init-param
  param-namecontextName/param-name
  param-valueFAB/param-value
/init-param
load-on-startup100/load-on-startup
  /servlet
  servlet-mapping
servlet-nameJetspeedContainer/servlet-name
url-pattern/container/*/url-pattern
/servlet-mapping
 
  has anyone seen this before ?
 
  Regards
  Dipu
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: Problem deploying the app as portlet in Jetspeed

2007-11-14 Thread Dipu Seminlal
(PasswordCredentialValveImpl.java:150)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:170)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:138)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
at 
org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:179)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:132)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:66)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:126)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:146)
at 
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:227)
at 
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:242)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

On Nov 14, 2007 2:33 PM, Ate Douma [EMAIL PROTECTED] wrote:
 Hi Dipu,

 I do need the possible errors from jetspeed.log and maybe catalina.out to 
 help.
 Without that, I really don't know what's going wrong and what has an 
 initialization failure here.

 Ate



 Dipu Seminlal wrote:
  Hi all,
 
  I tried to deploy my application as portlet in jetspeed and it's
  complaining about Initialization failure
  I can't find anything useful in the logs
  I am using Jetspeed 2.1.2 and my app is build against the wicket trunk.
 
  I have given the following in my portlet.xml
 
  init-param
nameServletContextProvider/name
valueorg.apache.jetspeed.portlet.ServletContextProviderImpl/value
  /init-param
  init-param
namePortletResourceURLFactory/name

  valueorg.apache.jetspeed.portlet.PortletResourceURLFactoryImpl/value
  /init-param
 
  and the following in web.xml
 
  servlet
servlet-nameJetspeedContainer/servlet-name
display-nameJetspeed Container/display-name
descriptionMVC Servlet for Jetspeed Portlet 
  Applications/description

  servlet-classorg.apache.jetspeed.container.JetspeedContainerServlet/servlet-class
init-param
  param-namecontextName/param-name
  param-valueFAB/param-value
/init-param
load-on-startup100/load-on-startup
  /servlet
  servlet-mapping
servlet-nameJetspeedContainer/servlet-name
url-pattern/container/*/url-pattern

Re: Problem deploying the app as portlet in Jetspeed

2007-11-14 Thread Dipu Seminlal
sorry, my bad, found the reason why , i had a conflicting jar in the
class path. Initialization failure has gone now.
I am not there yet , i will ping with other problems. many thanks for
the patience.

cheers
dipu



On Nov 14, 2007 3:00 PM, Dipu Seminlal [EMAIL PROTECTED] wrote:
 sorry , i found where jetspeed.log is.
 Its throwing a ClassCastException


 javax.portlet.PortletException: Initialization failure
 at 
 org.apache.wicket.protocol.http.portlet.WicketPortlet.init(WicketPortlet.java:136)
 at 
 org.apache.jetspeed.factory.JetspeedPortletInstance.init(JetspeedPortletInstance.java:85)
 at 
 org.apache.jetspeed.factory.JetspeedPortletFactory.getPortletInstance(JetspeedPortletFactory.java:230)
 at 
 org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:208)
 at 
 org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:128)
 at 
 org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
 at 
 org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:121)
 at 
 org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJobImpl.java:242)
 at 
 org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:226)
 at 
 org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:147)
 at 
 org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:143)
 at 
 org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:78)
 at 
 org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:46)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.aggregator.HeaderAggregatorValve.invoke(HeaderAggregatorValve.java:53)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.decoration.DecorationValve.invoke(DecorationValve.java:130)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.resource.ResourceValveImpl.invoke(ResourceValveImpl.java:130)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:184)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:104)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:248)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:159)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:150)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:170)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:138)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
 at 
 org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:179)
 at 
 org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:132)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:66)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:126)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
 at 
 org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:146

Problem deploying the app as portlet in Jetspeed

2007-11-13 Thread Dipu Seminlal
Hi all,

I tried to deploy my application as portlet in jetspeed and it's
complaining about Initialization failure
I can't find anything useful in the logs
I am using Jetspeed 2.1.2 and my app is build against the wicket trunk.

I have given the following in my portlet.xml

init-param
nameServletContextProvider/name
valueorg.apache.jetspeed.portlet.ServletContextProviderImpl/value
/init-param
init-param
namePortletResourceURLFactory/name
valueorg.apache.jetspeed.portlet.PortletResourceURLFactoryImpl/value
/init-param

and the following in web.xml

servlet
servlet-nameJetspeedContainer/servlet-name
display-nameJetspeed Container/display-name
descriptionMVC Servlet for Jetspeed Portlet 
Applications/description

servlet-classorg.apache.jetspeed.container.JetspeedContainerServlet/servlet-class
init-param
  param-namecontextName/param-name
  param-valueFAB/param-value
/init-param
load-on-startup100/load-on-startup
  /servlet
  servlet-mapping
servlet-nameJetspeedContainer/servlet-name
url-pattern/container/*/url-pattern
  /servlet-mapping

has anyone seen this before ?

Regards
Dipu

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



IExceptionResponseStrategy gone from 1.3

2007-11-01 Thread Dipu Seminlal
Hi all,

I had a simple implementation of  IExceptionResponseStrategy which helped me
to  do this

protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new DefaultWebRequestCycleProcessor()
{
protected IExceptionResponseStrategy
newExceptionResponseStrategy()
{
return new MyExceptionStrategy();
}
};
}

and throw new RestartResponseException(new MyErrorPage(e,page)); from
MyExceptionStrategy and log the exception in the error page.

Now i am in the process of migrating my existing application which run on
1.2.6 to 1.3 and i see IExceptionResponseStrategy has gone missing.

I would like to pass on the exception to my error page and log it as i was
doing before.

What is the best way to do it ?

I can see that i can override public void respond(RuntimeException e,
RequestCycle requestCycle) and do it, is the right direction to take ?


Regards
Dipu


Re: Two forms on the same page

2007-11-01 Thread Dipu Seminlal
yes its  possible to have two forms in the same page.

if you could provide some more details, you are likely to get
more helpful response :)

Cheers
Dipu





On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:

 Hello,

 Simple question :) :

 Is it possible to have two forms on the same page, without having them
 imbricated?

 form wicket:id = form1
 ...
 /form
 form wicket:id = form2
 ...
 /form


 I'm asking because I get errors saying i did not add markup for form2 when
 it is indeed in html code...  (and added to the page)


 Tks a lot



Re: Synchronizing AutoCompleteTextField with a checkbox

2007-11-01 Thread Dipu Seminlal
hmmm, thats even better :)

On 11/1/07, WicketKeeper [EMAIL PROTECTED] wrote:


 I'm a dumdum.
 The answer is to use AjaxCheckBox (duhh)
 Cheers
 WK


 WicketKeeper wrote:
 
  Hi
 
  I have an autocomplete field object with the getChoices method
 overridden,
  which works just fine. Next to it I have a checkbox, which when checked
  alters the logic in getChoices so that the string is interpreted as a
  regular expression.
 
  This DOES work:
 
  tsf = new TableSelectionField(TableNameAutoCompleteTextField);
  subjcb = new CheckBox(SubjectsRegexpCheckBox)
  {
protected boolean wantOnSelectionChangedNotifications()
{
return true;
}
  };
 
  both components are added to form, so they implicitly get the
  CompoundPropertyModel.
 
  Right, that's wonderful - except now when I click the checkbox the
 entire
  page refreshes. When there's lots of stuff on the page this can be a
 heavy
  operation. So I took this bit out:
 
  subjcb = new CheckBox(SubjectsRegexpCheckBox)
  {
protected boolean wantOnSelectionChangedNotifications()
{
return true;
}
  };
 
  And now the autocomplete field does not work - well, not completely. If
 I
  click submit on the form (which gets that state of the checkbox and
 field)
  I get the expected results, even if the autocomplete field doesn't
  populate correctly.
 
  Is there any way I can get round this without forcing a refresh when i
  click on the checkbox?
 
  Cheers
  WK
 

 --
 View this message in context:
 http://www.nabble.com/Synchronizing-AutoCompleteTextField-with-a-checkbox-tf4730399.html#a13526222
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Synchronizing AutoCompleteTextField with a checkbox

2007-11-01 Thread Dipu Seminlal
try adding AjaxFormComponentUpdatingBehaviour to the the check box instead
of
setting wantOnSelectionChangedNotifications.

as far as i know wantOnSelectionChangedNotifications will refresh the page.

AjaxFormComponentUpdatingBehaviour will do an ajax call and won't refresh
the entire page.

Regards
Dipu


On 11/1/07, WicketKeeper [EMAIL PROTECTED] wrote:


 Hi

 I have an autocomplete field object with the getChoices method overridden,
 which works just fine. Next to it I have a checkbox, which when checked
 alters the logic in getChoices so that the string is interpreted as a
 regular expression.

 This DOES work:

 tsf = new TableSelectionField(TableNameAutoCompleteTextField);
 subjcb = new CheckBox(SubjectsRegexpCheckBox)
 {
 protected boolean wantOnSelectionChangedNotifications()
 {
 return true;
 }
 };

 both components are added to form, so they implicitly get the
 CompoundPropertyModel.

 Right, that's wonderful - except now when I click the checkbox the entire
 page refreshes. When there's lots of stuff on the page this can be a heavy
 operation. So I took this bit out:

 subjcb = new CheckBox(SubjectsRegexpCheckBox)
 {
 protected boolean wantOnSelectionChangedNotifications()
 {
 return true;
 }
 };

 And now the autocomplete field does not work - well, not completely. If I
 click submit on the form (which gets that state of the checkbox and field)
 I
 get the expected results, even if the autocomplete field doesn't populate
 correctly.

 Is there any way I can get round this without forcing a refresh when i
 click
 on the checkbox?

 Cheers
 WK
 --
 View this message in context:
 http://www.nabble.com/Synchronizing-AutoCompleteTextField-with-a-checkbox-tf4730399.html#a13526176
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: IExceptionResponseStrategy gone from 1.3

2007-11-01 Thread Dipu Seminlal
Hi Igor,

Many thanks for the reply, so will that be correct if i do the following in
my application class

/**
 * @see org.apache.wicket.Application#newRequestCycle(
org.apache.wicket.Request,
 *  org.apache.wicket.Response)
 */
public RequestCycle newRequestCycle(final Request request, final
Response response)
{
return new WebRequestCycle(this, (WebRequest)request,
(WebResponse)response)
{

@Override
public Page onRuntimeException(Page page, RuntimeException e)
{
// TODO Auto-generated method stub
return new ErrorPage(e,page);
}

};
}

or do you mean something else ??

Kind Regards
Dipu

On 11/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 override requestcycle.onruntimeexception()

 -igor


 On 11/1/07, Dipu Seminlal [EMAIL PROTECTED] wrote:
  Hi all,
 
  I had a simple implementation of  IExceptionResponseStrategy which
 helped me
  to  do this
 
  protected IRequestCycleProcessor newRequestCycleProcessor()
  {
  return new DefaultWebRequestCycleProcessor()
  {
  protected IExceptionResponseStrategy
  newExceptionResponseStrategy()
  {
  return new MyExceptionStrategy();
  }
  };
  }
 
  and throw new RestartResponseException(new MyErrorPage(e,page)); from
  MyExceptionStrategy and log the exception in the error page.
 
  Now i am in the process of migrating my existing application which run
 on
  1.2.6 to 1.3 and i see IExceptionResponseStrategy has gone missing.
 
  I would like to pass on the exception to my error page and log it as i
 was
  doing before.
 
  What is the best way to do it ?
 
  I can see that i can override public void respond(RuntimeException e,
  RequestCycle requestCycle) and do it, is the right direction to take ?
 
 
  Regards
  Dipu
 

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




Re: PagingNavigator with custom images

2007-10-26 Thread Dipu Seminlal
What i did was had a dummy extension of the Paging Navigator and Provided
Markup
for the extension and used it where ever needed.

So that you can modify the markup as you want it.

Regards
Dipu


On 10/26/07, Swaroop Belur [EMAIL PROTECTED] wrote:

 It looks like you will have to copy that markup(PagingNavigator.html) and
 replace the default ones
 by ur images.Right now they are directly embedded in markup as  (lt;)
 for
 eg.

 -swaroop

 On 10/26/07, BatiB80 [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  is it possible to use the PagingNavigator with own images to jump to the
  first/previous/next/last record. The defaultimplementation use '' or
 ''
  or '' or '' which looks not very nice.
 
  Many thanks for you help,
  Sebastian
  --
  View this message in context:
 
 http://www.nabble.com/PagingNavigator-with-custom-images-tf4695835.html#a13422772
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
I think you can make use of a modal window to do this

Regards
Dipu

On 10/25/07, Federico Fanton [EMAIL PROTECTED] wrote:

 Hi everyone!
 I have a form with a submit button, and I need to implement a sequence
 like this:
 - user presses the button
 - form submit
 - server-side validation of submitted data
 - popup with confirmation message (like javascript confirm() )
 - if user presses yes, call Java method X
 - if user presses no, call Java method Y

 Is this possible?
 Many thanks for your time!


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




Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
yes  a modal window,
i am not sure about how would you pop up a javascript confirm()  after doing
a server side validation.

there might be a way, but i don't know how

Dipu

On 10/25/07, Federico Fanton [EMAIL PROTECTED] wrote:

 On Thu, 25 Oct 2007 10:40:20 +0100
 Dipu Seminlal [EMAIL PROTECTED] wrote:

  I think you can make use of a modal window to do this

 You mean, a modal window instead of the javascript confirm() ?


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




getRealPath resolving differently on trunk

2007-10-24 Thread Dipu Seminlal
Hi all,

I am trying to migrate my application to the latest version of wicket,

I have something like this,  which works as expected  in wicket 1.2.6
WebMarkupContainer logo = new WebMarkupContainer(ogo);
AttributeModifier am = new AttributeModifier(src, new Model(
ServletContext.getRealPath(staticresources/images/logos/xx.gif)));
logo .add(am);
add(logo );

and the getRealPath resolves to
http://localhost:8080/myproj/staticresources/images/logos/xx..gif

But when i use the wicket trunk, real path returns the following and the
images are not getting displayed properly
c:\work\webapps\myproj\staticresources\images\logos\xx.gif


Does anyone have any ides why this is happening ?


Regards
Dipu


Re: getRealPath resolving differently on trunk

2007-10-24 Thread Dipu Seminlal
Please ignore this question, that was bad me at work ( very very stupid
question )

On 10/24/07, Dipu Seminlal [EMAIL PROTECTED] wrote:

 Hi all,

 I am trying to migrate my application to the latest version of wicket,

 I have something like this,  which works as expected  in wicket 1.2.6
 WebMarkupContainer logo = new WebMarkupContainer(ogo);
 AttributeModifier am = new AttributeModifier(src, new Model(
 ServletContext.getRealPath(staticresources/images/logos/xx.gif)));
 logo .add(am);
 add(logo );

 and the getRealPath resolves to
 http://localhost:8080/myproj/staticresources/images/logos/xx..gif

 But when i use the wicket trunk, real path returns the following and the
 images are not getting displayed properly
 c:\work\webapps\myproj\staticresources\images\logos\xx.gif


 Does anyone have any ides why this is happening ?


 Regards
 Dipu





Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Dipu Seminlal
you can specify it in your web.xml

On 10/23/07, raybristol [EMAIL PROTECTED] wrote:


 dummy question, how to set wicket in Deloyment mode? There is a
 Application#getConfigurationType() but I expect something like
 Application#setConfigurationType() which does not exist so I thing I must
 miss something here...

 Many thanks
 --
 View this message in context:
 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--tf4677449.html#a13364304
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: out of memory - wicket 1.2.6

2007-10-09 Thread Dipu Seminlal
we restart every time we redeploy.

Dipu

On 10/8/07, Jeremy Levy [EMAIL PROTECTED] wrote:

 Are you redeploying often with out restarting?

 Jeremy

 On 10/8/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
 wrote:
 
  At my former job, we had a memory leak not in our own application but a
  dependancy though.. Thats where jmeter and jprobe came into scope. It
  took me 12 hours of screen starin/running different scenarios to find
  out what it was, very boring but nice to see it wasnt my code.
 
  regards Nino
 
  Dipu Seminlal wrote:
   i would say very less ,i wouldn't rule it out though.
  
   On 10/8/07, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED]
   wrote:
  
   What are the chances of you having a memory leak in your code?
  
   regards Nino
  
   Dipu Seminlal wrote:
  
   yes it's in production mode
  
   Regards
   Dipu
  
   On 10/8/07, Nino Saturnino Martinez Vazquez Wael 
  
   [EMAIL PROTECTED]
  
   wrote:
  
  
   Hmm this is always tricky.. I supose that you deployed wicket in
   production mode?
  
   If not the only way forward are using a memory profiler, and a
   performance tester (because memory errors might not be obvious
 until
   youve gotten a lot of clicks).
  
   I'd suggest JProbe and JMeter...
  
   http://www.quest.com/jprobe/memory-home.aspx
   http://jakarta.apache.org/jmeter/
  
   regards Nino
  
   Dipu Seminlal wrote:
  
  
   Hi,
  
   One of our servers running wicket application  went down throwing
  out
  
   of
  
   memory error.
   This is the first time it has ever happened, can any one throw
 some
  
  
   light on
  
  
   the reason for the issue.
  
  
   2007-10-08 11:36:02:425 ERROR wicket.RequestCycle
   [TP-Processor63]
  -
  
  
   Method
  
  
   onFormSubmitted of interface
   wicket.markup.html.form.IFormSubmitListenertargeted at component
   [MarkupContainer [Component id = searchForm, page =
   com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
   0:searchLandingPanel:
  searchForm.HorizontalSearchNavPagePanel$InputForm
  
   ,
  
   isVisible = true, isVersioned = true]] threw an exception
   wicket.WicketRuntimeException: Method onFormSubmitted of interface
   wicket.markup.html.form.IFormSubmitListener targeted at component
   [MarkupContainer [Component id = searchForm, page =
   com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
   0:searchLandingPanel:
  searchForm.HorizontalSearchNavPagePanel$InputForm
  
   ,
  
   isVisible = true, isVersioned = true]] threw an exception
   at wicket.RequestListenerInterface.invoke(
  
  
   RequestListenerInterface.java
  
  
   :198)
   at
  
  
  
  
 
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
  
   (ListenerInterfaceRequestTarget.java:74)
   at
  
  
   wicket.request.compound.DefaultEventProcessorStrategy.processEvents
 (
  
  
   DefaultEventProcessorStrategy.java:65)
   at
  
  
  
  
 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
  
   (
  
  
   AbstractCompoundRequestCycleProcessor.java:57)
   at wicket.RequestCycle.doProcessEventsAndRespond(
  RequestCycle.java
  
  
   :896)
  
  
   at wicket.RequestCycle.processEventsAndRespond(
 RequestCycle.java
  
  
   :929)
  
  
   at wicket.RequestCycle.step(RequestCycle.java:1010)
   at wicket.RequestCycle.steps(RequestCycle.java:1084)
   at wicket.RequestCycle.request(RequestCycle.java:454)
   at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
  
   :219)
  
   at wicket.protocol.http.WicketServlet.doPost(
 WicketServlet.java
  
   :262)
  
   at javax.servlet.http.HttpServlet.service(HttpServlet.java
 :710)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java
 :803)
   at
  
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
  
   ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
   ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
   StandardWrapperValve.java:210)
   at org.apache.catalina.core.StandardContextValve.invoke(
   StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(
   StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
   ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(
   StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(
   CoyoteAdapter.java:151)
   at org.apache.jk.server.JkCoyoteHandler.invoke(
  
   JkCoyoteHandler.java
  
   :200)
  
  
   at org.apache.jk.common.HandlerRequest.invoke(
  HandlerRequest.java
  
  
   :283)
  
  
   at org.apache.jk.common.ChannelSocket.invoke(
 ChannelSocket.java
  
   :773)
  
   at org.apache.jk.common.ChannelSocket.processConnection(
   ChannelSocket.java:703

out of memory - wicket 1.2.6

2007-10-08 Thread Dipu Seminlal
Hi,

One of our servers running wicket application  went down throwing out of
memory error.
This is the first time it has ever happened, can any one throw some light on
the reason for the issue.


2007-10-08 11:36:02:425 ERROR wicket.RequestCycle  [TP-Processor63] - Method
onFormSubmitted of interface
wicket.markup.html.form.IFormSubmitListenertargeted at component
[MarkupContainer [Component id = searchForm, page =
com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm,
isVisible = true, isVersioned = true]] threw an exception
wicket.WicketRuntimeException: Method onFormSubmitted of interface
wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = searchForm, page =
com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm,
isVisible = true, isVersioned = true]] threw an exception
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
:198)
at
wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
(ListenerInterfaceRequestTarget.java:74)
at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:65)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(
AbstractCompoundRequestCycleProcessor.java:57)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:151)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
:187)
... 27 more
Caused by: java.lang.OutOfMemoryError: Java heap space


Regards
Dipu


Re: out of memory - wicket 1.2.6

2007-10-08 Thread Dipu Seminlal
i would say very less ,i wouldn't rule it out though.

On 10/8/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:

 What are the chances of you having a memory leak in your code?

 regards Nino

 Dipu Seminlal wrote:
  yes it's in production mode
 
  Regards
  Dipu
 
  On 10/8/07, Nino Saturnino Martinez Vazquez Wael 
 [EMAIL PROTECTED]
  wrote:
 
  Hmm this is always tricky.. I supose that you deployed wicket in
  production mode?
 
  If not the only way forward are using a memory profiler, and a
  performance tester (because memory errors might not be obvious until
  youve gotten a lot of clicks).
 
  I'd suggest JProbe and JMeter...
 
  http://www.quest.com/jprobe/memory-home.aspx
  http://jakarta.apache.org/jmeter/
 
  regards Nino
 
  Dipu Seminlal wrote:
 
  Hi,
 
  One of our servers running wicket application  went down throwing out
 of
  memory error.
  This is the first time it has ever happened, can any one throw some
 
  light on
 
  the reason for the issue.
 
 
  2007-10-08 11:36:02:425 ERROR wicket.RequestCycle  [TP-Processor63] -
 
  Method
 
  onFormSubmitted of interface
  wicket.markup.html.form.IFormSubmitListenertargeted at component
  [MarkupContainer [Component id = searchForm, page =
  com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
  0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm
 ,
  isVisible = true, isVersioned = true]] threw an exception
  wicket.WicketRuntimeException: Method onFormSubmitted of interface
  wicket.markup.html.form.IFormSubmitListener targeted at component
  [MarkupContainer [Component id = searchForm, page =
  com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
  0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm
 ,
  isVisible = true, isVersioned = true]] threw an exception
  at wicket.RequestListenerInterface.invoke(
 
  RequestListenerInterface.java
 
  :198)
  at
 
 
 
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
 
  (ListenerInterfaceRequestTarget.java:74)
  at
 
  wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
 
  DefaultEventProcessorStrategy.java:65)
  at
 
 
 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
  (
 
  AbstractCompoundRequestCycleProcessor.java:57)
  at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
 
  :896)
 
  at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
 
  :929)
 
  at wicket.RequestCycle.step(RequestCycle.java:1010)
  at wicket.RequestCycle.steps(RequestCycle.java:1084)
  at wicket.RequestCycle.request(RequestCycle.java:454)
  at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
 :219)
  at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java
 :262)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
  ApplicationFilterChain.java:269)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
  ApplicationFilterChain.java:188)
  at org.apache.catalina.core.StandardWrapperValve.invoke(
  StandardWrapperValve.java:210)
  at org.apache.catalina.core.StandardContextValve.invoke(
  StandardContextValve.java:174)
  at org.apache.catalina.core.StandardHostValve.invoke(
  StandardHostValve.java:127)
  at org.apache.catalina.valves.ErrorReportValve.invoke(
  ErrorReportValve.java:117)
  at org.apache.catalina.core.StandardEngineValve.invoke(
  StandardEngineValve.java:108)
  at org.apache.catalina.connector.CoyoteAdapter.service(
  CoyoteAdapter.java:151)
  at org.apache.jk.server.JkCoyoteHandler.invoke(
 JkCoyoteHandler.java
 
  :200)
 
  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
 
  :283)
 
  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
 :773)
  at org.apache.jk.common.ChannelSocket.processConnection(
  ChannelSocket.java:703)
  at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
  ChannelSocket.java:895)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
  ThreadPool.java:685)
  at java.lang.Thread.run(Thread.java:595)
  Caused by: java.lang.reflect.InvocationTargetException
  at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at wicket.RequestListenerInterface.invoke(
 
  RequestListenerInterface.java
 
  :187)
  ... 27 more
  Caused by: java.lang.OutOfMemoryError: Java heap space
 
 
  Regards
  Dipu
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

Re: New Wicket Portlets Demo available

2007-09-25 Thread Dipu Seminlal
Thats good news, thanks very much.

Cheers
Dipu

On 9/25/07, Ate Douma [EMAIL PROTECTED] wrote:

 I'm even more happy to announce that Wicket Portlet Support has now been
 merged into the trunk and already will be part of the upcoming 
 1.3.0-beta4release!

 In the next few days or hopefully latest end of next week, I'll add some
 documentation to the Wicket Wiki describing the portlet features,
 limitations, how to
 write portlet compliant Wicket applications and how to run them in a
 portal.

 For those already familiar with portlets and portals, check out the
 WICKET-647 and WICKET-658 issues which have some head start info.

 Regards,

 Ate Douma

 Ate Douma wrote:
  I'm really happy to announce that a new and quite feature complete
  Wicket Portlets Demo is now available for download at:
 
 
 
 http://people.apache.org/~ate/wicket/jetspeed-2.1.3-dev-wicket-demo-installer.jar
 
 
  I've worked hard the last few weeks to improve the Wicket portlet
  support branch and it can now run all Wicket Examples natively as
 portlet!
  See also IRA issue WICKET-658 at
  http://issues.apache.org/jira/browse/WICKET-658#action_12528082 where I
  have provided more information how to install and use this demo.
 
  Although there probably are still some minor issues here and there, the
  demo will show that portlet development using Wicket is now very much
  feasible.
 
  I'd like to invite anyone interested to try out the demo and see it in
  action for yourself, and of course please report any encountered
  issue/problems to the dev list.
 
  I've developed the portlet support based on the 1.3.0-beta3 release
  (with few minor bugfixes ported back from the trunk), so although the
  trunk development has progressed at it usual aggressive speed, updating
  the portlet-support to the latest Wicket trunk shouldn't be too much
  work (that is: right now!).
 
  As we would like to start using Wicket for a rewrite of the Jetspeed-2
  administration portlets *now*, it would be great if the portlet support
  can be incorporated into the trunk as soon as possible. Delaying this
  until after the 1.3.0 release would mean being out-of-sync with the main
  wicket trunk development all the time and a lot of work each time we
  want/need to bring it back in sync.
 
  Initially, back in May this year, my idea was waiting with merging the
  portlet support in the trunk to after the 1.3.0 release.
  But as 1.3.0 still isn't released yet and still in beta phase, it would
  be much better to merge now otherwise the portlet-support will be
  constantly out-of-sync with the main wicket trunk development, causing a
  lot of effort each time we want (or need) to bring it back in sync.
 
  For Jetspeed-2, we would very much like to start using Wicket for a
  rewrite of the Jetspeed-2 administration portlet *now*. Having towait
  until after the 1.3.0 release, or be dependent on unofficial builds from
  the portlet-support branch would be less ideal to say the least.
  Other parties, like my own company, already have started using the
  Wicket portlet-support branch, so having to delay the merge to trunk
  really wouldn't be fun.
 
  AFAICS though, the impact of merging the portlet-support to trunk won't
  be big.
  I had to make a few (internal) changes in the wicket core, but I don't
  think those will have functional side-effects.
 
  To make it easier for the other committers to decide if we can merge the
  portlet-support to trunk now, I will create a new JIRA issue for it.
  For the changes needed to the current Wicket trunk I'll create separate
  patches with explanations why and attach those to that issue.
  (note: most of these changes I already described in detail under
  subtasks of the WICKET-647 issue).
  We can then discuss these changes individually and if need be see if
  alternative solutions are possible.
  After those changes are reviewed and accepted, the portlet support then
  can be merged to the trunk.
 
  WDYT?
 
  Regards,
 
  Ate
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




Re: Portlet Support

2007-09-24 Thread Dipu Seminlal
Hi Ate,

Today i got some time to look at the wicket portlet demo (
jetspeed-2.1.3-dev-wicket-demo-installer.jar ), it looks very promising,
thanks very much for the great work.

I would like to see the portlet support integrated to the current trunk as
soon as possible.

Many thanks to the wicket team for the great work.

Cheers
Dipu



On 8/30/07, Ate Douma [EMAIL PROTECTED] wrote:

 Martijn Dashorst wrote:
  I think it is in a branch in our apache repo:
 
 
 http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3-portlet-support/
 Yes, and there is a corresponding JIRA issue with several subtasks which I
 use for tracking the current state (and some minimal documentation):

   https://issues.apache.org/jira/browse/WICKET-647

 If you are interested in testing that out, I've provided a downloadable
 Jetspeed-2 installer which the wicket-examples application deployed as
 portlet
 application here:

http://people.apache.org/~ate/wicket/

 Note though the above branch was created on July 14 from the trunk at that
 time (r547242), and the portlet-support (as currently checked in) isn't
 perfect or
 without some serious bugs yet.

 But, I've started working on a updated version of the portlet-support this
 week which is based on the latest 1.3.0-beta3 release and it is
 progressing rather well.
 I hope to commit this update tomorrow or else early next week the latest.
 For that, I plan to create a new branch,
 wicket-1.3.0-beta3-portlet-support, as merging back in all the trunk
 changes since the branch (reliably) turned out to
 be far too much work.

 So, I started from scratch again, applying my original changes by hand,
 bit by bit (man, being on a branch of a project which moves as quickly as
 Wicket is
 painful...).
 Which turned out to be not a bad idea after all: I cleaned up and improved
 several changes along the lines as well as refactored several new classes
 and methods
 names to better reflect their purpose. Luckily, as the new portlet-support
 (in contrast to the one from 1.2.x) is now using transparent bridging
 wicket to the
 portlet environment, those internal changes didn't have any effect on the
 usage.

 Anyway, you will all soon see that the portlet-support has progressed
 nicely, to the point I think it covers many to most standard use-cases
 (albeit there still
 are and always will be a few area's where portlet support is difficult or
 even formally impossible to provide).

 The nicest part I think is that it turned out to require very little
 changes to the wicket core, and AFAIK all of those are transparent, meaning
 these changes
 have zero effect for existing plain servlet based applications!

 In my opinion, it should be ready for trunk integration soon now (after
 proper review of course), we just need to find and agree upon the right time
 frame.

 Right now I'm working on getting popup/modal windows also working
 properly, and once that's finished I'll check the stuff in under the new
 branch.

 One last important fact I need to mention is that I've build some of the
 portlet-support features upon the anticipated new Portlet 2.0 API
 (JSR-286, of which
 I'm also an EG member). As JSR-286 isn't released yet (but very soon
 now...), and no (formal) implementations exists or are even allowed, I have
 defined some
 supporting interfaces,  specifically for header contributions and Portlet
 ResourceURLs.
 To be able to actually run wicket with the new portlet-support within a
 portal, you'll need portal specific implementations for these interfaces.
 As soon as JSR-286 is available as well as supporting portals, those
 interfaces can be retrofitted back upon JSR-286 APIs and you won't need such
 proprietary
 implementations anymore.

 For my own testing, and because I'm also a Jetspeed committer, I've
 already provided Jetspeed-2 specific support implementations.
 Since the latest Jetspeed-2.1.2 release, these are provided out-of-the-box
 with the portal itself.
 For more information about this, see:
 http://issues.apache.org/jira/browse/PB-65

 So, for now, you might be required to test and experiment using
 Jetspeed-2, although I think I already saw someone report it running on
 Liferay as well.

 Regards,

 Ate

 
  Martijn
 
  On 8/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  it has moved to wicket-stuff because none of the core committers have
 time
  to keep it up to date. i believe Ate was reworking it into something
 better,
  his work in progress is in wicket-stuff
 
  -igor
 
  On 8/30/07, Dipu Seminlal [EMAIL PROTECTED] wrote:
  Hi All,
 
  I checked out the wicket trunk and found that the Portlet package has
  disappeared from where it was.
  Has it been moved to somewhere else or did the Portlet support got
 removed
  totally ?
  What is the future plans for the Portlet support in wicket.
 
  Thanks
  Dipu
 
 
 


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

Re: New Wicket Portlets Demo available

2007-09-20 Thread Dipu Seminlal
Hi Ate,

I'm interested in the portlet support which you have implemented in wicket.

Any idea when it might be merged into the trunk?

Regards
Dipu


On 9/17/07, Ate Douma [EMAIL PROTECTED] wrote:

 I'm really happy to announce that a new and quite feature complete Wicket
 Portlets Demo is now available for download at:


 http://people.apache.org/~ate/wicket/jetspeed-2.1.3-dev-wicket-demo-installer.jar

 I've worked hard the last few weeks to improve the Wicket portlet support
 branch and it can now run all Wicket Examples natively as portlet!
 See also IRA issue WICKET-658 at
 http://issues.apache.org/jira/browse/WICKET-658#action_12528082 where I
 have provided more information how to install and use
 this demo.

 Although there probably are still some minor issues here and there, the
 demo will show that portlet development using Wicket is now very much
 feasible.

 I'd like to invite anyone interested to try out the demo and see it in
 action for yourself, and of course please report any encountered
 issue/problems to the
 dev list.

 I've developed the portlet support based on the 1.3.0-beta3 release (with
 few minor bugfixes ported back from the trunk), so although the trunk
 development has
 progressed at it usual aggressive speed, updating the portlet-support to
 the latest Wicket trunk shouldn't be too much work (that is: right now!).

 As we would like to start using Wicket for a rewrite of the Jetspeed-2
 administration portlets *now*, it would be great if the portlet support can
 be
 incorporated into the trunk as soon as possible. Delaying this until after
 the 1.3.0 release would mean being out-of-sync with the main wicket trunk
 development
 all the time and a lot of work each time we want/need to bring it back in
 sync.

 Initially, back in May this year, my idea was waiting with merging the
 portlet support in the trunk to after the 1.3.0 release.
 But as 1.3.0 still isn't released yet and still in beta phase, it would be
 much better to merge now otherwise the portlet-support will be constantly
 out-of-sync
 with the main wicket trunk development, causing a lot of effort each time
 we want (or need) to bring it back in sync.

 For Jetspeed-2, we would very much like to start using Wicket for a
 rewrite of the Jetspeed-2 administration portlet *now*. Having towait until
 after the 1.3.0
 release, or be dependent on unofficial builds from the portlet-support
 branch would be less ideal to say the least.
 Other parties, like my own company, already have started using the Wicket
 portlet-support branch, so having to delay the merge to trunk really
 wouldn't be fun.

 AFAICS though, the impact of merging the portlet-support to trunk won't be
 big.
 I had to make a few (internal) changes in the wicket core, but I don't
 think those will have functional side-effects.

 To make it easier for the other committers to decide if we can merge the
 portlet-support to trunk now, I will create a new JIRA issue for it.
 For the changes needed to the current Wicket trunk I'll create separate
 patches with explanations why and attach those to that issue.
 (note: most of these changes I already described in detail under subtasks
 of the WICKET-647 issue).
 We can then discuss these changes individually and if need be see if
 alternative solutions are possible.
 After those changes are reviewed and accepted, the portlet support then
 can be merged to the trunk.

 WDYT?

 Regards,

 Ate




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




Re: New Wicket Portlets Demo available

2007-09-20 Thread Dipu Seminlal
Thanks Gwyn


Regards
Dipu

On 9/20/07, Gwyn Evans [EMAIL PROTECTED] wrote:

 Probably fairly soon - we've been looking at the changes and
 discussing it on the dev list, to try  get an idea if it'll cause a
 significant delay with regards to the aim of getting a 1.3 release out
 ASAP.  Currently, however, I think the view is that it'll be likely to
 be in and we'll do a beta4, then see how it looks.

 I think I saw some comment about some rebuilding work of Ate's house -
 I don't know any more than that, but if he's quiet for a bit, that
 might explain it!

 In the meantime, you could get the baseline code from SVN
 (http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.0-beta3),
 apply the patch from the jira issue

 https://issues.apache.org/jira/secure/attachment/12366048/wicket-1.3.0-beta3-portlet-support.patch
 and build your own copy if you want to have a look prior to that.
 (Build with tests disabled mvn -Dmaven.test.skip=true install as the
 patch missed changing a particular test expectation)

 /Gwyn

 On Thursday, September 20, 2007, 10:20:23 AM, Dipu 
 [EMAIL PROTECTED] wrote:

  Hi Ate,

  I'm interested in the portlet support which you have implemented in
 wicket.

  Any idea when it might be merged into the trunk?

  Regards
  Dipu


  On 9/17/07, Ate Douma [EMAIL PROTECTED] wrote:
 
  I'm really happy to announce that a new and quite feature complete
 Wicket
  Portlets Demo is now available for download at:
 
 
 
 http://people.apache.org/~ate/wicket/jetspeed-2.1.3-dev-wicket-demo-installer.jar
 
  I've worked hard the last few weeks to improve the Wicket portlet
 support
  branch and it can now run all Wicket Examples natively as portlet!
  See also IRA issue WICKET-658 at
  http://issues.apache.org/jira/browse/WICKET-658#action_12528082 where I
  have provided more information how to install and use
  this demo.
 
  Although there probably are still some minor issues here and there, the
  demo will show that portlet development using Wicket is now very much
  feasible.
 
  I'd like to invite anyone interested to try out the demo and see it in
  action for yourself, and of course please report any encountered
  issue/problems to the
  dev list.
 
  I've developed the portlet support based on the 1.3.0-beta3 release
 (with
  few minor bugfixes ported back from the trunk), so although the trunk
  development has
  progressed at it usual aggressive speed, updating the portlet-support
 to
  the latest Wicket trunk shouldn't be too much work (that is: right
 now!).
 
  As we would like to start using Wicket for a rewrite of the Jetspeed-2
  administration portlets *now*, it would be great if the portlet support
 can
  be
  incorporated into the trunk as soon as possible. Delaying this until
 after
  the 1.3.0 release would mean being out-of-sync with the main wicket
 trunk
  development
  all the time and a lot of work each time we want/need to bring it back
 in
  sync.
 
  Initially, back in May this year, my idea was waiting with merging the
  portlet support in the trunk to after the 1.3.0 release.
  But as 1.3.0 still isn't released yet and still in beta phase, it would
 be
  much better to merge now otherwise the portlet-support will be
 constantly
  out-of-sync
  with the main wicket trunk development, causing a lot of effort each
 time
  we want (or need) to bring it back in sync.
 
  For Jetspeed-2, we would very much like to start using Wicket for a
  rewrite of the Jetspeed-2 administration portlet *now*. Having towait
 until
  after the 1.3.0
  release, or be dependent on unofficial builds from the portlet-support
  branch would be less ideal to say the least.
  Other parties, like my own company, already have started using the
 Wicket
  portlet-support branch, so having to delay the merge to trunk really
  wouldn't be fun.
 
  AFAICS though, the impact of merging the portlet-support to trunk won't
 be
  big.
  I had to make a few (internal) changes in the wicket core, but I don't
  think those will have functional side-effects.
 
  To make it easier for the other committers to decide if we can merge
 the
  portlet-support to trunk now, I will create a new JIRA issue for it.
  For the changes needed to the current Wicket trunk I'll create separate
  patches with explanations why and attach those to that issue.
  (note: most of these changes I already described in detail under
 subtasks
  of the WICKET-647 issue).
  We can then discuss these changes individually and if need be see if
  alternative solutions are possible.
  After those changes are reviewed and accepted, the portlet support then
  can be merged to the trunk.
 
  WDYT?
 
  Regards,
 
  Ate
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 /Gwyn


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

Re: Page expiration

2007-09-20 Thread Dipu Seminlal
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]




Re: applicationwide datePattern

2007-09-06 Thread Dipu Seminlal
try using session.setLocale()
thats how i do it.

Regards
Dipu

On 9/6/07, Korbinian Bachl [EMAIL PROTECTED] wrote:


 Hi,

 can anyone tell me how to change the default date pattern wicket should
 use in the whole app?

 I mean i can do:

 add(new DatePicker() {
  protected String getDatePattern() {
  return dd.MM.;
  }

 on each component manually, but that doesnt seem to be the right way.

 Regards,

 Korbinian


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




Re: Portlet Support

2007-08-31 Thread Dipu Seminlal
Hi All,

many thanks for pointing me to the right direction.

Regards
Dipu

On 8/30/07, Matej Knopp [EMAIL PROTECTED] wrote:

 Hi Ate,

 thanks for the examples. The progress is tremendous. Awesome.

 -Matej

 On 8/30/07, Ate Douma [EMAIL PROTECTED] wrote:
 
  Martijn Dashorst wrote:
   I think it is in a branch in our apache repo:
  
  
 
 http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3-portlet-support/
  Yes, and there is a corresponding JIRA issue with several subtasks which
 I
  use for tracking the current state (and some minimal documentation):
 
https://issues.apache.org/jira/browse/WICKET-647
 
  If you are interested in testing that out, I've provided a downloadable
  Jetspeed-2 installer which the wicket-examples application deployed as
  portlet
  application here:
 
 http://people.apache.org/~ate/wicket/
 
  Note though the above branch was created on July 14 from the trunk at
 that
  time (r547242), and the portlet-support (as currently checked in) isn't
  perfect or
  without some serious bugs yet.
 
  But, I've started working on a updated version of the portlet-support
 this
  week which is based on the latest 1.3.0-beta3 release and it is
  progressing rather well.
  I hope to commit this update tomorrow or else early next week the
 latest.
  For that, I plan to create a new branch,
  wicket-1.3.0-beta3-portlet-support, as merging back in all the trunk
  changes since the branch (reliably) turned out to
  be far too much work.
 
  So, I started from scratch again, applying my original changes by
 hand,
  bit by bit (man, being on a branch of a project which moves as quickly
 as
  Wicket is
  painful...).
  Which turned out to be not a bad idea after all: I cleaned up and
 improved
  several changes along the lines as well as refactored several new
 classes
  and methods
  names to better reflect their purpose. Luckily, as the new
 portlet-support
  (in contrast to the one from 1.2.x) is now using transparent bridging
  wicket to the
  portlet environment, those internal changes didn't have any effect on
 the
  usage.
 
  Anyway, you will all soon see that the portlet-support has progressed
  nicely, to the point I think it covers many to most standard use-cases
  (albeit there still
  are and always will be a few area's where portlet support is difficult
 or
  even formally impossible to provide).
 
  The nicest part I think is that it turned out to require very little
  changes to the wicket core, and AFAIK all of those are transparent,
 meaning
  these changes
  have zero effect for existing plain servlet based applications!
 
  In my opinion, it should be ready for trunk integration soon now (after
  proper review of course), we just need to find and agree upon the right
 time
  frame.
 
  Right now I'm working on getting popup/modal windows also working
  properly, and once that's finished I'll check the stuff in under the new
  branch.
 
  One last important fact I need to mention is that I've build some of the
  portlet-support features upon the anticipated new Portlet 2.0 API
  (JSR-286, of which
  I'm also an EG member). As JSR-286 isn't released yet (but very soon
  now...), and no (formal) implementations exists or are even allowed, I
 have
  defined some
  supporting interfaces,  specifically for header contributions and
 Portlet
  ResourceURLs.
  To be able to actually run wicket with the new portlet-support within a
  portal, you'll need portal specific implementations for these
 interfaces.
  As soon as JSR-286 is available as well as supporting portals, those
  interfaces can be retrofitted back upon JSR-286 APIs and you won't need
 such
  proprietary
  implementations anymore.
 
  For my own testing, and because I'm also a Jetspeed committer, I've
  already provided Jetspeed-2 specific support implementations.
  Since the latest Jetspeed-2.1.2 release, these are provided
 out-of-the-box
  with the portal itself.
  For more information about this, see:
  http://issues.apache.org/jira/browse/PB-65
 
  So, for now, you might be required to test and experiment using
  Jetspeed-2, although I think I already saw someone report it running on
  Liferay as well.
 
  Regards,
 
  Ate
 
  
   Martijn
  
   On 8/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   it has moved to wicket-stuff because none of the core committers have
  time
   to keep it up to date. i believe Ate was reworking it into something
  better,
   his work in progress is in wicket-stuff
  
   -igor
  
   On 8/30/07, Dipu Seminlal [EMAIL PROTECTED] wrote:
   Hi All,
  
   I checked out the wicket trunk and found that the Portlet package
 has
   disappeared from where it was.
   Has it been moved to somewhere else or did the Portlet support got
  removed
   totally ?
   What is the future plans for the Portlet support in wicket.
  
   Thanks
   Dipu
  
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional

Re: How to get the html combo value in wicket?

2007-08-16 Thread Dipu Seminlal
the selected value will get attached to the model, please take a look at
FormInputExample in Wicket Examples.

-dipu

On 8/16/07, Edi [EMAIL PROTECTED] wrote:


 My Question is how to get the html combo value using wicket methods?




 igor.vaynberg wrote:
 
  the final value is put into the model
 
  -igor
 
 
  On 8/15/07, Edi [EMAIL PROTECTED] wrote:
 
 
  any reply..
 
 
 
  Edi wrote:
  
  
   Hi,
  
   I have ordinary html combo,
  
   select name=comboTxt
   option value=oneOne/option
   option value=twoTwo/option
   /select
  
   How can I get the html combo value using wicket.
  
   if ordinary html text box input type=text name=txtbox means I
 can
   get getRequest().getParameter(txtbox);
  
   But In combo?
   Please let me know.
  
   Thanking You
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12175034
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12177702
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Reacting to DateField change

2007-08-09 Thread Dipu Seminlal
yes i am almost certain, we need to have the event in the markup.
if you add an onchange behaviour then you must add onchange in the markup.



On 8/9/07, Federico Fanton [EMAIL PROTECTED] wrote:

 On Thu, 9 Aug 2007 14:10:58 +0100
 Dipu Seminlal [EMAIL PROTECTED] wrote:

  Did you add onchange in the markup as well, you need to add it in the
 markup
  as well
  input wicket:id=yourDate id=yourDate type=text name=yourDate
  onchange=blah  /

 I'm sorry, do you mean that Wicket replaces the blah on the fly? I
 thought that behaviors don't need modification to the markup.. Or maybe it's
 needed just for DateFields?
 I'll try with your suggestion though, many thanks :)


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




Re: Reacting to DateField change

2007-08-09 Thread Dipu Seminlal
oh yes you need to set the outputMakupId to true, here you go

TextField dateField = new TextField(dateField);
 add(dateField);

 final TextField updatedField = new TextField(updatedField);
 updatedField.setOutputMarkupId(true);
 add(updatedField);

 AjaxFormComponentUpdatingBehavior behavior = new
AjaxFormComponentUpdatingBehavior(onchange)
 {

protected void onUpdate(AjaxRequestTarget target)
{
testModel.setUpdatedField(newValue); // set the new value
to the backing model repaint the component
target.addComponent(updatedField);

}

 };
 dateField.add(behavior);


input wicket:id=dateField type=text value= text onchange=blah/
input wicket:id=updatedField type=text value= text /

On 8/9/07, Dipu Seminlal [EMAIL PROTECTED] wrote:

 yes i am almost certain, we need to have the event in the markup.
 if you add an onchange behaviour then you must add onchange in the markup.



 On 8/9/07, Federico Fanton [EMAIL PROTECTED] wrote:
 
  On Thu, 9 Aug 2007 14:10:58 +0100
  Dipu Seminlal [EMAIL PROTECTED] wrote:
 
   Did you add onchange in the markup as well, you need to add it in the
  markup
   as well
   input wicket:id=yourDate id=yourDate type=text name=yourDate
   onchange=blah  /
 
  I'm sorry, do you mean that Wicket replaces the blah on the fly? I
  thought that behaviors don't need modification to the markup.. Or maybe it's
  needed just for DateFields?
  I'll try with your suggestion though, many thanks :)
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Reacting to DateField change

2007-08-09 Thread Dipu Seminlal
i just tried with the date picker on 1.2.6 and it works, don't know if
anything has changed drastically in 1.3

see the code below

DatePickerSettings datePickerSettings = new DatePickerSettings();
datePickerSettings.setIfFormat(%d/%m/%Y);
datePickerSettings.setStyle(datePickerSettings.newStyleAqua());





 TextField dateField = new TextField(dateField);
 add(dateField);
 add(new DatePicker (datePicker,dateField));

 final TextField updatedField = new TextField(updatedField);
 updatedField.setOutputMarkupId(true);
 add(updatedField);

 AjaxFormComponentUpdatingBehavior behavior = new
AjaxFormComponentUpdatingBehavior(onchange)
 {

private static final long serialVersionUID = 1L;

protected void onUpdate(AjaxRequestTarget target)
{
testModel.setUpdatedField(testModel.getDateField());
target.addComponent(updatedField);

}

 };
 dateField.add(behavior);


input wicket:id=dateField type=text value= text
onchange=blah/span wicket:id=datePicker/span
input wicket:id=updatedField type=text value= text /


On 8/9/07, Federico Fanton [EMAIL PROTECTED] wrote:

 On Thu, 9 Aug 2007 15:34:03 +0100
 Dipu Seminlal [EMAIL PROTECTED] wrote:

  oh yes you need to set the outputMakupId to true, here you go
 
  TextField dateField = new TextField(dateField);

 D'oh! I'm sorry, I fear I didn't explain myself properly :( The
 DateField I'm using is the date picker widget used by Wicket 1.3.. It's
 a FormComponentPanel made of a textfield and an icon which - when clicked -
 pops up a calendar.. So, I attached my behavior to the textfield and it
 works when I change the textfield directly, but I don't know how to
 intercept when _the calendar_ changes the textfield..


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




Re: Reacting to DateField change

2007-08-09 Thread Dipu Seminlal
i checked and i agree with Igor :)

On 8/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 On 8/9/07, Dipu Seminlal [EMAIL PROTECTED] wrote:
 
  yes i am almost certain, we need to have the event in the markup.
  if you add an onchange behaviour then you must add onchange in the
 markup.


 no, you do not

 -igor



 On 8/9/07, Federico Fanton [EMAIL PROTECTED] wrote:
  
   On Thu, 9 Aug 2007 14:10:58 +0100
   Dipu Seminlal [EMAIL PROTECTED] wrote:
  
Did you add onchange in the markup as well, you need to add it in
 the
   markup
as well
input wicket:id=yourDate id=yourDate type=text
 name=yourDate
onchange=blah  /
  
   I'm sorry, do you mean that Wicket replaces the blah on the fly? I
   thought that behaviors don't need modification to the markup.. Or
 maybe
  it's
   needed just for DateFields?
   I'll try with your suggestion though, many thanks :)
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 



loads of Internal error cloning object

2007-07-30 Thread Dipu Seminlal
Hi all,


I am seeing loads of Internal error cloning object error in the log files.

I am running on DEPLOYMENT mode and also  i have set
get().getDebugSettings().setSerializeSessionAttributes(false);
( which is not really required when i am on Deployment mode ) in the
application class.

I have an Iframe on different site pointing to my application like this
iframe id=framename name=framename marginwidth=0 marginheight=0
hspace=0 vspace=0 target=_top
src=
http://sagittarius:8080/fab1gui/search?wicket:bookmarkablePage=:com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage;

allowtransparency=true frameborder=0 height=210 scrolling=no
width=540/iframe

I tried to simulate this situation and noticed that when i do a submit on
the Iframe for the first time this error is thrown.

How can i get around this issue.

My client has configured a spider to do searches on the live site and i am
seeing loads and loads of Internal error cloning object exception.
And worst of all today there was an out of memory error, i am wondering if
the repeated occurrence of cloning excpetion has got anything to
do with the out of memory error.

Regards
Dipu


2007-07-30 12:25:45:437 ERROR wicket.markup.html.WebPage
[http-8080-Processor25] - Page [Page class =
com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, id = 1] couldn't
be cloned to move to another pagemap
wicket.WicketRuntimeException: Internal error cloning object
at wicket.util.lang.Objects.cloneObject(Objects.java:466)
at wicket.markup.html.WebPage.onNewBrowserWindow(WebPage.java:344)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
:187)
at
wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
(ListenerInterfaceRequestTarget.java:74)
at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:65)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(
AbstractCompoundRequestCycleProcessor.java:57)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.NotSerializableException:
org.apache.catalina.core.ApplicationContextFacade
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java
:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(
ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java
:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(
ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at