Re: [Wicket-user] LoadableDetachableModel question

2006-07-07 Thread Vincent Jenks
I use info()

On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:




 Using a typical situation like:



 IModel myListModel = new LoadableDetachableModel() {

   protected Object load() {

 Object result = null;

 try {

result = someServiceOrDao.findSomeListOfObjects();

 } catch(Throwable t) {

 ???

 }

 return  result;

 }

 };



 How can I have the error message displayed in a FeedbackPanel for the page?
 Doing a page.error(t.getMessage()) call doesn't seem to be doing anything.



 Thanks!



 -Jerry
 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




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


Re: [Wicket-user] LoadableDetachableModel question

2006-07-07 Thread Eelco Hillenius
Feedback panel typically should display any messages. You added a
feedback panel to your page, and you are rendering the same page?

Personally, I wouldn't catch exceptions in my models though. If a
service fails and it is not designed to fail quietly, I would rather
display some error page. But that's up to you of course :)

Eelco



On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:




 Using a typical situation like:



 IModel myListModel = new LoadableDetachableModel() {

   protected Object load() {

 Object result = null;

 try {

result = someServiceOrDao.findSomeListOfObjects();

 } catch(Throwable t) {

 ???

 }

 return  result;

 }

 };



 How can I have the error message displayed in a FeedbackPanel for the page?
 Doing a page.error(t.getMessage()) call doesn't seem to be doing anything.



 Thanks!



 -Jerry
 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




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


Re: [Wicket-user] LoadableDetachableModel question

2006-07-07 Thread Jerry Smith
I've added the FeedbackPanel, but still no message. I know it's throwing
an error.  I'll try a test project and see if it still happens.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of Eelco Hillenius
 Sent: Friday, July 07, 2006 1:54 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] LoadableDetachableModel question
 
 Feedback panel typically should display any messages. You added a
 feedback panel to your page, and you are rendering the same page?
 
 Personally, I wouldn't catch exceptions in my models though. If a
 service fails and it is not designed to fail quietly, I would rather
 display some error page. But that's up to you of course :)
 
 Eelco
 
 
 
 On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:
 
 
 
 
  Using a typical situation like:
 
 
 
  IModel myListModel = new LoadableDetachableModel() {
 
protected Object load() {
 
  Object result = null;
 
  try {
 
 result = someServiceOrDao.findSomeListOfObjects();
 
  } catch(Throwable t) {
 
  ???
 
  }
 
  return  result;
 
  }
 
  };
 
 
 
  How can I have the error message displayed in a FeedbackPanel for
the
 page?
  Doing a page.error(t.getMessage()) call doesn't seem to be doing
 anything.
 
 
 
  Thanks!
 
 
 
  -Jerry
  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
 
 
 
 
 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

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


Re: [Wicket-user] LoadableDetachableModel question

2006-07-07 Thread Jerry Smith
Still the same thing, no message displayed:

TestPage.java
public class TestPage extends WebPage {
public TestPage() {
add(new FeedbackPanel(feedback));
add(new MyForm(myForm));
}
class MyForm extends Form {
MyForm(String id) {
super(id);
IModel m = new LoadableDetachableModel() {
protected Object load() {
List result = new ArrayList();
try {
throw new Exception(My error message);
} catch(Throwable t) {
t.printStackTrace();
findPage().error(t.getMessage());
}
return result;
}
}; 
add(new DropDownChoice(choice, m));
}
}
}

TestPage.html
html
head
title/title
/head
body
div wicket:id=feedback/div
form wicket:id=myForm
Some selection:
select wicket:id=choice/select
/form
/body
/html

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of Jerry Smith
 Sent: Friday, July 07, 2006 2:06 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] LoadableDetachableModel question
 
 I've added the FeedbackPanel, but still no message. I know it's
throwing
 an error.  I'll try a test project and see if it still happens.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:wicket-user-
  [EMAIL PROTECTED] On Behalf Of Eelco Hillenius
  Sent: Friday, July 07, 2006 1:54 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] LoadableDetachableModel question
 
  Feedback panel typically should display any messages. You added a
  feedback panel to your page, and you are rendering the same page?
 
  Personally, I wouldn't catch exceptions in my models though. If a
  service fails and it is not designed to fail quietly, I would rather
  display some error page. But that's up to you of course :)
 
  Eelco
 
 
 
  On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:
  
  
  
  
   Using a typical situation like:
  
  
  
   IModel myListModel = new LoadableDetachableModel() {
  
 protected Object load() {
  
   Object result = null;
  
   try {
  
  result = someServiceOrDao.findSomeListOfObjects();
  
   } catch(Throwable t) {
  
   ???
  
   }
  
   return  result;
  
   }
  
   };
  
  
  
   How can I have the error message displayed in a FeedbackPanel for
 the
  page?
   Doing a page.error(t.getMessage()) call doesn't seem to be doing
  anything.
  
  
  
   Thanks!
  
  
  
   -Jerry
   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
  
  
  
 
  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
 
 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

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


Re: [Wicket-user] LoadableDetachableModel question

2006-07-07 Thread Eelco Hillenius
I'm about to leave for the weekend. If you could attach this to a bug
report please, someone can take a look at why it doesn't work. Just
curious... did you try MyForm.this.error(blah) yet?

Eelco


On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:
 Still the same thing, no message displayed:

 TestPage.java
 public class TestPage extends WebPage {
 public TestPage() {
 add(new FeedbackPanel(feedback));
 add(new MyForm(myForm));
 }
 class MyForm extends Form {
 MyForm(String id) {
 super(id);
 IModel m = new LoadableDetachableModel() {
 protected Object load() {
 List result = new ArrayList();
 try {
 throw new Exception(My error message);
 } catch(Throwable t) {
 t.printStackTrace();
 findPage().error(t.getMessage());
 }
 return result;
 }
 };
 add(new DropDownChoice(choice, m));
 }
 }
 }

 TestPage.html
 html
 head
 title/title
 /head
 body
 div wicket:id=feedback/div
 form wicket:id=myForm
 Some selection:
 select wicket:id=choice/select
 /form
 /body
 /html

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:wicket-user-
  [EMAIL PROTECTED] On Behalf Of Jerry Smith
  Sent: Friday, July 07, 2006 2:06 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] LoadableDetachableModel question
 
  I've added the FeedbackPanel, but still no message. I know it's
 throwing
  an error.  I'll try a test project and see if it still happens.
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:wicket-user-
   [EMAIL PROTECTED] On Behalf Of Eelco Hillenius
   Sent: Friday, July 07, 2006 1:54 PM
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] LoadableDetachableModel question
  
   Feedback panel typically should display any messages. You added a
   feedback panel to your page, and you are rendering the same page?
  
   Personally, I wouldn't catch exceptions in my models though. If a
   service fails and it is not designed to fail quietly, I would rather
   display some error page. But that's up to you of course :)
  
   Eelco
  
  
  
   On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:
   
   
   
   
Using a typical situation like:
   
   
   
IModel myListModel = new LoadableDetachableModel() {
   
  protected Object load() {
   
Object result = null;
   
try {
   
   result = someServiceOrDao.findSomeListOfObjects();
   
} catch(Throwable t) {
   
???
   
}
   
return  result;
   
}
   
};
   
   
   
How can I have the error message displayed in a FeedbackPanel for
  the
   page?
Doing a page.error(t.getMessage()) call doesn't seem to be doing
   anything.
   
   
   
Thanks!
   
   
   
-Jerry
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
   
   
   
  
   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
 
  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

 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