Re: Page Expired issue

2007-11-08 Thread Joshua Jackson
Sorry Igor,

But how do I do this in my WebApplication class?

Thanks

On 11/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 extend your webapp's session timeout?

 -igor




-- 
What you want today, may not exist tommorrow

Blog: http://joshuajava.wordpress.com/

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



Re: Page Expired issue

2007-11-08 Thread Igor Vaynberg
this is part of servlet config, youd do it in web.xml

-igor


On Nov 8, 2007 10:12 PM, Joshua Jackson [EMAIL PROTECTED] wrote:
 Sorry Igor,

 But how do I do this in my WebApplication class?

 Thanks

 On 11/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  extend your webapp's session timeout?
 
  -igor
 
 


 --

 What you want today, may not exist tommorrow

 Blog: http://joshuajava.wordpress.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: Page Expired issue

2007-11-08 Thread Joshua Jackson
OK Igor. Sorry, I though I write it in my WebApplication class :)

Thanks

On 11/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 this is part of servlet config, youd do it in web.xml

 -igor


-- 
What you want today, may not exist tommorrow

Blog: http://joshuajava.wordpress.com/

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



Enable and Disable using Ajax

2007-11-08 Thread Toscano

Hello,

I found some questions related to this topic, but I couldn't make it to
work. 
I have two dropdowns, countries and regions. The easy thing is that I load
the regions when the country has been selected, and I use
AjaxFormComponentUpdatingBehavior for this and works.
The thing is that we don't have Regions for all the countries, so in that
cases I want to disable the dropdown.

This is the code I have:


// countryWork is the first dropdown
countryWork.add(new AjaxFormComponentUpdatingBehavior(onchange)
{
protected void onUpdate(AjaxRequestTarget target)
{target.addComponent(regionWork);}
});

// and regionWork is the region

 IModel regionModelChoices = new AbstractReadOnlyModel()
{
public Object getObject(Component component)
{
   if (professionalInfo.getCountryWork()!=null)
 regions =
getRegionDaoInterface().getRegions(professionalInfo.getCountryWork().getCountryID());
  if (regions.size()==0)
   regionWork.setEnabled(false);
   else
   regionWork.setEnabled(true);
   return regions;
}
};

  regionWork  = new DropDownChoice(regionWork, new Model(),
regionModelChoices,
  new ChoiceRenderer(regionName, regionID));
  regionWork.setOutputMarkupId(true);

The dropdown changes, but with one refresh delay. For example, I have
regions for Canada but not for Spain. If I change to Canada, nothing
happens, but the next change in the country will enable the dropdown.

Any ideas?

Thank you very much for your time,
Oskar
-- 
View this message in context: 
http://www.nabble.com/Enable-and-Disable-using-Ajax-tf4776221.html#a13662524
Sent from the Wicket - User mailing list archive at Nabble.com.


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



<    1   2