[Wicket-user] populating the second form in the page

2006-05-04 Thread Aditya Patel
I have 2 forms in my wicket page. Only the first form is visible at the beginnning. The first form has a drop down and based on the selection of the drop down, there's a database call and then the second form needs to be populated based on the model returned by the database call. My problem is, in the main contructor, I am adding the second form with an empty model and am setting secondForm.isVisible(false) Now when the selection on the first form changes I try to I do secondForm.setVisible(true). This does not work since the form is already initialized and shows up with default values. I also tried re-initializing the secondForm and doing this does not even show the secondForm.  Is there a way of doing this without navigating to a different page when the selection changes.Thanks__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection
 around http://mail.yahoo.com 

[Wicket-user] Re: populating the second form in the page

2006-05-04 Thread Aditya

  secondForm.setModel(new CompoundPropertyModel(myModel));
secondForm.setVisible(true)
I can see the new loaded Model getting set in Component class but when it
iterates over the children for populating the values then the previous model
seems to be getting called.
I am using CompoundPropertyModel(myModel), is that fine ?

Thanks







---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: drop down

2006-05-02 Thread Aditya

 When I tried to set otherForm.isVisible(false), I get an error saying that
addForm is not present in the java page but its present in the markup.

WicketMessage: Unable to find component with id 'addForm' in [MarkupContainer
[Component id = _extend, page = com.AdminPage, path =
1:_body:_child:_extend:_child:_extend.MarkupInheritanceResolver$
TransparentWebMarkupContainer,
isVisible = true, isVersioned = true]]. This means that you declared
wicket:id=addForm in your markup, but that you either did not add the component
to your page at all, or that the hierarchy does not match.
[markup = file:/AdminPage.html, index = 38, current = 'form
wicket:id=addForm' (line 19, column 5)]




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: drop down

2006-05-02 Thread Aditya

Sorry, my bad. I forgot to add the form to the page. Thanks for the replies.

Igor Vaynberg igor.vaynberg at gmail.com writes:

 
 
 final Form otherform=otherform.setVisible(false);DropDownChoice ddc=new
DropDownChoice() {void wantOnSelectionChangedNotifications() { return true;
}   onSelectionChanged() {  boolean showOtherForm=...some condition;
   otherform.setVisible(showOtherForm);}}-Igor
 
 On 4/28/06, Adit email_to_aditya at yahoo.com
  wrote:
 The drop down is in the form and the rest of the page is in another form. That
 form should be hidden until a selection is made on the drop down
list.---Using Tomcat but
need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user
mailing list
 Wicket-user at
lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 






---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] drop down

2006-04-28 Thread Aditya Patel
I have a dropdown for my page and I want to display a form only if the drop down is selected. How can I do that with wicket?__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Wicket-user] Formatting DatePIcker

2006-04-18 Thread Aditya Patel
I am trying to format the DatePicker component using DatePickerSettings but the format is not being applied to the Date and instead the format String "MM/dd/" is getting displayed when I select a Date. Below is the code:private static final String DATE_FORMAT_STRING = "MM/dd/";DatePickerSettings settings = new DatePickerSettings(); settings.setIfFormat(DATE_FORMAT_STRING); RequiredTextField dateField1 = new RequiredTextField("startDate", Date.class); add(dateField1); add(new DatePicker("dateFieldPicker1", dateField1, settings));  
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

[Wicket-user] Question on adding CheckBox to DataTable

2006-04-13 Thread Aditya Patel
I am using datatable view with pagination and sorting to display a list. I am trying to add a checkbox to the datatable but I keep getting Runtime exception. Below is my code and I would greatly appreciate if someone can point out the problem:Event.htmlform wicket:id="form"  table  tr   table class="dataview" cellspacing="0" wicket:id="table"[table]/table  /tr  /tableEvent.java public EventIndexPage() {  add(new HeaderPanel("headerPanel"));IModel formModel = new CompoundPropertyModel(new EventDetachableModel(new
 Event()));  FeedbackPanel feedback = new FeedbackPanel("feedback");add(new NewListForm(feedback, formModel));  add(feedback);  add(new EventNavigationBorder("eventNavigationBorder"));  add(new EventNavigationPanel("eventNavigationPanel")); }  private class NewListForm extends Form {  public NewListForm(IFeedback feedback, IModel model) {   super("form", model);   final List columns = new ArrayList();   // AbstractColumn implements
 IColumn   columns.add(new AbstractColumn(new Model("Actions"))   {public void populateItem(Item cellItem, String componentId, IModel model){ cellItem.add(new ActionPanel(componentId, model, cellItem));}   });   columns.add(new PropertyColumn(new Model("Id"), "eventId", "eventId"));   columns.add(new PropertyColumn(new Model("Event Description"),
 "description", "description"));   columns.add(new PropertyColumn(new Model("Start Date"), "startDate", "startDate"));   columns.add(new PropertyColumn(new Model("End Date"), "endDate"));  add(new DefaultDataTable("table", columns, new EventSortableDataProvider(), 8));  });  } }  class ActionPanel extends Panel {  public ActionPanel(String id, final IModel model, final Item item)  {
   super(id, model);   add(new CheckBox("checkbox", item.getModel()));  } }}Event$ActionPanel.htmlwicket:paneltdinput type="checkbox" wicked:id="checkbox" //td/wicket:panelThanks__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com