Re: Hi

2009-02-15 Thread Willis Blackburn

Swapna,

You can set up the radio buttons to submit the form via ajax when the  
user clicks on.  See AjaxFormSubmitBehavior.


W


On Feb 15, 2009, at 8:13 PM, Swapna Rachamalla wrote:


Hi

Using Apache Wicket:

I have a form.In that form i have Radio button group like:

Country

  - USA
  - UK

I dont have any submit buttons for the form. I have added Only  
RadioButton

Group.

But i want to write some logic based on selection of Radio button  
selection.


do we have any method to override like onSubmit() for form if the  
the form

has a Submit button

Thanks
Swapna



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



Re: Hi

2009-02-15 Thread Swapna Rachamalla
Thank you

On Sun, Feb 15, 2009 at 6:48 PM, Willis Blackburn wbo...@panix.com wrote:

 Swapna,

 You can set up the radio buttons to submit the form via ajax when the user
 clicks on.  See AjaxFormSubmitBehavior.

 W



 On Feb 15, 2009, at 8:13 PM, Swapna Rachamalla wrote:

  Hi

 Using Apache Wicket:

 I have a form.In that form i have Radio button group like:

 Country

  - USA
  - UK

 I dont have any submit buttons for the form. I have added Only RadioButton
 Group.

 But i want to write some logic based on selection of Radio button
 selection.

 do we have any method to override like onSubmit() for form if the the form
 has a Submit button

 Thanks
 Swapna



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




Re: Hi!

2008-12-09 Thread Ernesto Reinaldo Barreiro
Hi Wadi,

Sorry, but I do not understand your question... What do you mean by
multiple wicket child is implemented?
Regards

Ernesto

On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED]wrote:

 Hi All! I would like to know if the multiple wicket child is implemented.

 Thanks in advance,

 Regards,

 Wadi




Re: Hi!

2008-12-09 Thread Johan Compagner
no thats on the todo for 1.5

On Tue, Dec 9, 2008 at 14:51, Wadi Jalil Maluf [EMAIL PROTECTED] wrote:

 Hi All! I would like to know if the multiple wicket child is implemented.

 Thanks in advance,

 Regards,

 Wadi




Re: Hi!

2008-12-09 Thread Ernesto Reinaldo Barreiro
do you mean?
wicket:panel
..
wicket:child1/
..

wicket:child2/

/wicket:panel



On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro 
[EMAIL PROTECTED] wrote:

 Hi Wadi,

 Sorry, but I do not understand your question... What do you mean by
 multiple wicket child is implemented?
 Regards

 Ernesto


 On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED]wrote:

 Hi All! I would like to know if the multiple wicket child is implemented.

 Thanks in advance,

 Regards,

 Wadi





Re: Hi!

2008-12-09 Thread Johan Compagner
yes something like that
more: wicket:child name=child1/ dsfadsfsadf wicket:child name=child2/

On Tue, Dec 9, 2008 at 15:07, Ernesto Reinaldo Barreiro
[EMAIL PROTECTED]wrote:

 do you mean?
 wicket:panel
 ..
 wicket:child1/
 ..

 wicket:child2/

 /wicket:panel



 On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro 
 [EMAIL PROTECTED] wrote:

  Hi Wadi,
 
  Sorry, but I do not understand your question... What do you mean by
  multiple wicket child is implemented?
  Regards
 
  Ernesto
 
 
  On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED]
 wrote:
 
  Hi All! I would like to know if the multiple wicket child is
 implemented.
 
  Thanks in advance,
 
  Regards,
 
  Wadi
 
 
 



Re: Hi!

2008-12-09 Thread Ernesto Reinaldo Barreiro
Thanks for the explanation!
Ernesto

On Tue, Dec 9, 2008 at 3:10 PM, Johan Compagner [EMAIL PROTECTED]wrote:

 yes something like that
 more: wicket:child name=child1/ dsfadsfsadf wicket:child
 name=child2/

 On Tue, Dec 9, 2008 at 15:07, Ernesto Reinaldo Barreiro
 [EMAIL PROTECTED]wrote:

  do you mean?
  wicket:panel
  ..
  wicket:child1/
  ..
 
  wicket:child2/
 
  /wicket:panel
 
 
 
  On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro 
  [EMAIL PROTECTED] wrote:
 
   Hi Wadi,
  
   Sorry, but I do not understand your question... What do you mean by
   multiple wicket child is implemented?
   Regards
  
   Ernesto
  
  
   On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED]
  wrote:
  
   Hi All! I would like to know if the multiple wicket child is
  implemented.
  
   Thanks in advance,
  
   Regards,
  
   Wadi
  
  
  
 



RE: Hi!

2008-12-09 Thread Wadi Jalil Maluf
Thanks!

-Mensaje original-
De: Johan Compagner [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 09 de diciembre de 2008 11:11
Para: users@wicket.apache.org
Asunto: Re: Hi!

yes something like that
more: wicket:child name=child1/ dsfadsfsadf wicket:child name=child2/

On Tue, Dec 9, 2008 at 15:07, Ernesto Reinaldo Barreiro
[EMAIL PROTECTED]wrote:

 do you mean?
 wicket:panel
 ..
 wicket:child1/
 ..

 wicket:child2/

 /wicket:panel



 On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro 
 [EMAIL PROTECTED] wrote:

  Hi Wadi,
 
  Sorry, but I do not understand your question... What do you mean by
  multiple wicket child is implemented?
  Regards
 
  Ernesto
 
 
  On Tue, Dec 9, 2008 at 2:51 PM, Wadi Jalil Maluf [EMAIL PROTECTED]
 wrote:
 
  Hi All! I would like to know if the multiple wicket child is
 implemented.
 
  Thanks in advance,
 
  Regards,
 
  Wadi
 
 
 




__ Information from ESET NOD32 Antivirus, version of virus signature
database 3674 (20081209) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3674 (20081209) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


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



Re: hi, i want to upload a image from wicket and store it into dabase, how can i display it?

2008-10-19 Thread James Carman
I don't know that I would cache the image data.  That will get stored
in the session.  Why use a DynamicImageResource if you're going to
cache (store it in a member variable) the image data anyway?  If the
data comes from the database, then look it up when the resource is
requested.

On Sun, Oct 19, 2008 at 4:42 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Search the forum:)

 http://markmail.org/message/hgkugvqm6x2hj3j5#query:wicket%20image%20webresource+page:1+mid:hgkugvqm6x2hj3j5+state:results


 You could also just inject the provider and serve it if not loaded, eg the
 method above + injection, I think thats the best option, as it should be
 cluster safe..

 or this:

 package zeuzgroup.application.utils;

 import java.awt.image.BufferedImage;

 import org.apache.wicket.markup.html.image.resource.DynamicImageResource;

 public class ImageResource extends DynamicImageResource {

   // has to save this. or get the image another way!
   private byte[] image;

   public ImageResource(byte[] image, String format) {
   this.image = image;
   setFormat(format);
   }

   public ImageResource(BufferedImage image) {
   this.image = toImageData(image);
   }

   @Override
   protected byte[] getImageData() {
   if (image != null) {
   return image;
   } else {
   return new byte[0];
   }

   }

   /**
* 1 day!
*/
   @Override
   protected int getCacheDuration() {
 return 3600*24;
   }

 }


 shrimpywu wrote:

 hi, i want to upload a image from wicket and store it into dabase, how can
 i
 display it?

 in hibernate, i define the type as  Blob to store the image,
 however, when i try to read it,
 get the input stream from blob

 it always complain that after serialzation, blog may not be asscessable.

 /
 item.add(new Image(imgItem, new Resource() {

@Override
public IResourceStream getResourceStream() {
return new AbstractResourceStream() {

public InputStream getInputStream() throws
 ResourceStreamNotFoundException {
   return
 blob.getBinaryInputStream();
 }

public void close() throws IOException {
// close input stream
}
};
}
}) );

 

 can anybody give me any suggestion,

 Thanks.


 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 -
 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: hi, i want to upload a image from wicket and store it into dabase, how can i display it?

2008-10-19 Thread Nino Saturnino Martinez Vazquez Wael



James Carman wrote:

I don't know that I would cache the image data.  That will get stored
in the session.  Why use a DynamicImageResource if you're going to
cache (store it in a member variable) the image data anyway?
Well, sure.. And it's not cluster safe.. There are pros and cons to 
it... As with everything..

  If the
data comes from the database, then look it up when the resource is
requested.
  
On Sun, Oct 19, 2008 at 4:42 AM, Nino Saturnino Martinez Vazquez Wael

[EMAIL PROTECTED] wrote:
  

Search the forum:)

http://markmail.org/message/hgkugvqm6x2hj3j5#query:wicket%20image%20webresource+page:1+mid:hgkugvqm6x2hj3j5+state:results


You could also just inject the provider and serve it if not loaded, eg the
method above + injection, I think thats the best option, as it should be
cluster safe..

or this:

package zeuzgroup.application.utils;

import java.awt.image.BufferedImage;

import org.apache.wicket.markup.html.image.resource.DynamicImageResource;

public class ImageResource extends DynamicImageResource {

  // has to save this. or get the image another way!
  private byte[] image;

  public ImageResource(byte[] image, String format) {
  this.image = image;
  setFormat(format);
  }

  public ImageResource(BufferedImage image) {
  this.image = toImageData(image);
  }

  @Override
  protected byte[] getImageData() {
  if (image != null) {
  return image;
  } else {
  return new byte[0];
  }

  }

  /**
   * 1 day!
   */
  @Override
  protected int getCacheDuration() {
return 3600*24;
  }

}


shrimpywu wrote:


hi, i want to upload a image from wicket and store it into dabase, how can
i
display it?

in hibernate, i define the type as  Blob to store the image,
however, when i try to read it,
get the input stream from blob

it always complain that after serialzation, blog may not be asscessable.

/
item.add(new Image(imgItem, new Resource() {

   @Override
   public IResourceStream getResourceStream() {
   return new AbstractResourceStream() {

   public InputStream getInputStream() throws
ResourceStreamNotFoundException {
  return
blob.getBinaryInputStream();
}

   public void close() throws IOException {
   // close input stream
   }
   };
   }
   }) );



can anybody give me any suggestion,

Thanks.

  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Hi, How to set one url(www.cnn.com..../abc.gif) to Image

2008-10-10 Thread wch2001

it works well, thanks you very much


wch2001 wrote:
 
 Dear all,
 
 I want to show Image based on one url like www.cnn.com/abc.gif, the
 string is in pictureLocation,
 i mean pictureLocation = www.cnn.com/abc.gif.
 
  how  can I do with Image.
 
 Image image = new Image(image);
 
  ResourceReference ref = new ResourceReference(pictureLocation); 
 image.setImageResource(new Resource() {
 
 @Override
 public IResourceStream getResourceStream() {
 
 throw new UnsupportedOperationException(Not supported
 yet.);
 }
 });
 
 thanks a lot,
 
 
  
 

-- 
View this message in context: 
http://www.nabble.com/Hi%2C-How-to-set-one-url%28www.cnn.com-abc.gif%29-to-Image-tp19914379p19915373.html
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: hi, how to offer download function in wicket if i have already get the InputStream for the file

2008-09-30 Thread Igor Vaynberg
see DownloadLink

-igor

On Mon, Sep 29, 2008 at 10:26 PM, shrimpywu [EMAIL PROTECTED] wrote:

 hi, how to offer download function in wicket if i have already get the
 InputStream for the file??

 i did some search, people say can use dynamicl web resource,

 but i didn`t see any sample for it?

 does anybody get some sampe for this?

 thanks.
 --
 View this message in context: 
 http://www.nabble.com/hi%2C-how-to-offer-download-function-in-wicket-if-i-have-already-get-the-InputStream-for-the-file-tp19736383p19736383.html
 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: hi, question about wicket maven project

2008-09-20 Thread James Carman
Try running mvn compile or mvn install in another window.

On Sat, Sep 20, 2008 at 1:19 AM, shrimpywu [EMAIL PROTECTED] wrote:

 hi, what do u mean by hot code replace??

 every time i run i app,
 i always do
 mvn clean jetty:run,

 but everytime after jetty was started, any html page i modified,
 it won`t show the change until i manually copy and replace the html
 page from src folder to target folder,
 and my project, i do using the wicket quick start to generate my project,
 and i have also try to use the start.java to start my app, it seems
 the same as i run jetty:run, it didn`t show any difference?
 i still have to manully copy and replace the html file.






 martin-g wrote:

 The easiest approach is to use Wicket's quickstart and start Start.java
 in debug mode in your favorite IDE. With hot code replace and
 DEVELOPMENT mode you will have all your changes in .java and resources
 files reloaded automatically.

 Other options are:
 1. use Jetty's Maven plugin (mvn jetty:run)
 2. use Wicket's ReloadingWicketFilter


 On Wed, 2008-09-17 at 03:01 -0700, shrimpywu wrote:
 i have just noticed that there is a command  mvn war:inplace
 which i saw from the appfuse demo
 http://static.appfuse.org/movies/2.0/helloworld.mov

 when we do modify on the code, jetty will pick it up,

 i have tried, but will no luck,
 does anybody know how to do that?



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




 --
 View this message in context: 
 http://www.nabble.com/hi%2C-question-about-wicket-maven-project-tp19528847p19582777.html
 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: hi, question about wicket maven project

2008-09-19 Thread shrimpywu

hi, what do u mean by hot code replace??

every time i run i app,
i always do
mvn clean jetty:run,

but everytime after jetty was started, any html page i modified,
it won`t show the change until i manually copy and replace the html
page from src folder to target folder,
and my project, i do using the wicket quick start to generate my project,
and i have also try to use the start.java to start my app, it seems
the same as i run jetty:run, it didn`t show any difference?
i still have to manully copy and replace the html file.






martin-g wrote:
 
 The easiest approach is to use Wicket's quickstart and start Start.java
 in debug mode in your favorite IDE. With hot code replace and
 DEVELOPMENT mode you will have all your changes in .java and resources
 files reloaded automatically.
 
 Other options are:
 1. use Jetty's Maven plugin (mvn jetty:run)
 2. use Wicket's ReloadingWicketFilter
 
 
 On Wed, 2008-09-17 at 03:01 -0700, shrimpywu wrote:
 i have just noticed that there is a command  mvn war:inplace
 which i saw from the appfuse demo
 http://static.appfuse.org/movies/2.0/helloworld.mov
 
 when we do modify on the code, jetty will pick it up,
 
 i have tried, but will no luck,
 does anybody know how to do that?
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/hi%2C-question-about-wicket-maven-project-tp19528847p19582777.html
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: hi, question about wicket maven project

2008-09-17 Thread Martin Grigorov
The easiest approach is to use Wicket's quickstart and start Start.java
in debug mode in your favorite IDE. With hot code replace and
DEVELOPMENT mode you will have all your changes in .java and resources
files reloaded automatically.

Other options are:
1. use Jetty's Maven plugin (mvn jetty:run)
2. use Wicket's ReloadingWicketFilter


On Wed, 2008-09-17 at 03:01 -0700, shrimpywu wrote:
 i have just noticed that there is a command  mvn war:inplace
 which i saw from the appfuse demo
 http://static.appfuse.org/movies/2.0/helloworld.mov
 
 when we do modify on the code, jetty will pick it up,
 
 i have tried, but will no luck,
 does anybody know how to do that?
 


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



Re: Hi, had anyone tried to read the source code?

2008-08-29 Thread 张伟
Hi,
  I also want to get some suggestion.


2008/8/29, shrimpywu [EMAIL PROTECTED]:


 Hi, had anyone tried to read the source code?

 i am very interesting with play around with wicket,
 so i really want to know how wicket do things

 but one thing i am stuck with is that, i check out the src code from svn, i
 don`t know how to start or where to start to read the code.

 can any body give me some hint how to have a clear mind of the project, and
 how to read the code?
 --
 View this message in context:
 http://www.nabble.com/Hi%2C-had-anyone-tried-to-read-the-source-code--tp19211288p19211288.html
 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: Hi, had anyone tried to read the source code?

2008-08-29 Thread Johan Compagner
And place breakpoints in your code and let the debugger break and
follow/backtrack in into wicket code

On 8/29/08, James Perry [EMAIL PROTECTED] wrote:
 Firstly view the source code in a Java IDE like IntelliJ IDEA,
 Eclipse, NetBeans, etc so you can quickly navigate around the code.

 IMHO, the best starting point is to look at the WicketFilter and the
 WebRequestCycleProcessor to understand how it respectively intercepts
 and processes Wicket requests.

 Cheers,
 James.

 On Fri, Aug 29, 2008 at 7:55 AM, 张伟 [EMAIL PROTECTED] wrote:
 Hi,
  I also want to get some suggestion.


 2008/8/29, shrimpywu [EMAIL PROTECTED]:


 Hi, had anyone tried to read the source code?

 i am very interesting with play around with wicket,
 so i really want to know how wicket do things

 but one thing i am stuck with is that, i check out the src code from svn,
 i
 don`t know how to start or where to start to read the code.

 can any body give me some hint how to have a clear mind of the project,
 and
 how to read the code?
 --
 View this message in context:
 http://www.nabble.com/Hi%2C-had-anyone-tried-to-read-the-source-code--tp19211288p19211288.html
 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: hi, how to find the path for the page in wicket

2008-08-12 Thread James Carman
You need to mount the page.  This should give you some good examples:

http://cwiki.apache.org/WICKET/url-coding-strategies.html




On Tue, Aug 12, 2008 at 6:17 AM, shrimpywu [EMAIL PROTECTED] wrote:

 i have tried to use wicket for some days,
 and got a question.

 if i am doing a website, has three page,
 index.htm, blog.html and guestbook.html
 so we will have three class
 index.class, blog.class and guestbook.class

 in the java code, when we want to direct from index page to blog page, we
 can do setRespone(blog.class) something like that

 but when the user try to provide the link of his blog to his friend,
 how to know the link direct to the page blog.html
 --
 View this message in context: 
 http://www.nabble.com/hi%2C-how-to-find-the-path-for-the-page-in-wicket-tp18941425p18941425.html
 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: hi, how to find the path for the page in wicket

2008-08-12 Thread Uwe Schäfer

shrimpywu schrieb:


but when the user try to provide the link of his blog to his friend,
how to know the link direct to the page blog.html


search for BookmarkablePageLink and mounting of pages.



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



Re: hi, is it that the wicketstuff website broken??

2008-05-30 Thread Nino Saturnino Martinez Vazquez Wael

yes its down, theres also something about this on the dev list...

shrimpywu wrote:

hi, is it that the wicketstuff website broken??

i can not get into it.
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: hi all, how to get things from abnormal wicketstuff-rome respone??

2008-05-29 Thread Ryan Sonnek
As I posted on my blog, you have complete access to the ROME SyndEntry which
should contain all the information from the RSS feed you're consuming.  you
should have no issues inspecting the feed for the data you want.  If you're
unable to extract the information, you'll need to talk with the ROME
developers since this has nothing really to do with wicket.

On Thu, May 29, 2008 at 3:48 AM, shrimpywu [EMAIL PROTECTED] wrote:


 suppose we have something like below..
 how can i fetch the summary part ???

 can we use xpath in rome??

 ResultSet xsi:schemaLocation=urn:yahoo:yn
 http://api.search.yahoo.com/NewsSearchService/V1/NewsSearchResponse.xsd;
 totalResultsAvailable=1720 totalResultsReturned=2
 firstResultPosition=1

 Result
 TitleJudge Approves Adoption by Madonna/Title

 Summary
 Madonna?s adoption of David Banda, below, a Malawian boy she met in an
 orphanage in 2006, was approved by a judge in Malawi on Wednesday, The
 Associated Press reported.
 /Summary

 Url
 http://www.nytimes.com/2008/05/29/arts/29arts-JUDGEAPPROVE_BRF.html
 /Url

 ClickUrl
 http://www.nytimes.com/2008/05/29/arts/29arts-JUDGEAPPROVE_BRF.html
 /ClickUrl
 NewsSourceNew York Times/NewsSource
 NewsSourceUrlhttp://www.nytimes.com//NewsSourceUrl
 Languageen/Language
 PublishDate1212038515/PublishDate
 ModificationDate1212038516/ModificationDate
 /Result
 /ResultSet
 --
 View this message in context:
 http://www.nabble.com/hi-all%2C-how-to-get-things-from-abnormal-wicketstuff-rome-respone---tp17530285p17530285.html
 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: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Martijn Lindhout
Where do you want to use REST for in your app? I use some REST url's in mij
application using the IndexedParamUrlCodingStrategy (of course REST is far
more than URL's only...).

Sample URL's are:

/activate/some very long encoded key  - Activates a profile after initial
signup
/profile/scott - shows Scott's profile
/reset/scott - Resets Scott's password


2008/5/27 Brill Pappin [EMAIL PROTECTED]:

 chuckle

 There's that word I keep hearing... should :)
 Actually I keep saying it too, and give myself a slap.

 IMO, REST is great for services, but it's pretty strict in terms of what is
 RESTful.
 I think something *like* wicket could work in a RESTful way, but Wicket
 does
 not and I doubt ever will (if it ever does, it won't be wicket code your
 using today).

 - Brill Pappin

 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 26, 2008 12:02 PM
 To: users@wicket.apache.org
 Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
 wicket?

 But REST is how http/internet should work!

 On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  rest is for services, wicket is for ui. why does anything need to be
  integrated?
 
  -igor
 
  On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED] wrote:
  
   hi everyone, does anyone know how can we use RESTFUL in wicket?
  
   now the RestFul framework is quite popular..
   doest anyone know how can we put it into wicket??
  
   do we need to integrate some other framework with wicket? or wicket
  already
   support that?
   --
   View this message in context:
  http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
  ESTFUL-in-wicket--tp17473242p17473242.html
   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]
 
 


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




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Peter Ertl
I just uploaded a patch a few days ago to support indexed resource  
urls. Hopefully the wicket devs will apply it to the codebase.


I guess it would be a good base for RESTful resources without explicit  
session state.


It's like Martijn describes, but for shared resources.

Cheers
Peter


Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:

Where do you want to use REST for in your app? I use some REST url's  
in mij
application using the IndexedParamUrlCodingStrategy (of course REST  
is far

more than URL's only...).

Sample URL's are:

/activate/some very long encoded key  - Activates a profile after  
initial

signup
/profile/scott - shows Scott's profile
/reset/scott - Resets Scott's password


2008/5/27 Brill Pappin [EMAIL PROTECTED]:


chuckle

There's that word I keep hearing... should :)
Actually I keep saying it too, and give myself a slap.

IMO, REST is great for services, but it's pretty strict in terms of  
what is

RESTful.
I think something *like* wicket could work in a RESTful way, but  
Wicket

does
not and I doubt ever will (if it ever does, it won't be wicket code  
your

using today).

- Brill Pappin

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Monday, May 26, 2008 12:02 PM
To: users@wicket.apache.org
Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
wicket?

But REST is how http/internet should work!

On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg [EMAIL PROTECTED] 


wrote:


rest is for services, wicket is for ui. why does anything need to be
integrated?

-igor

On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED] wrote:


hi everyone, does anyone know how can we use RESTFUL in wicket?

now the RestFul framework is quite popular..
doest anyone know how can we put it into wicket??

do we need to integrate some other framework with wicket? or wicket

already

support that?
--
View this message in context:

http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
ESTFUL-in-wicket--tp17473242p17473242.html

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]





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





--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29



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



Re: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Peter Ertl

Damn it, forgot to mention the jira issue:

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

I don't think there already something in wicket like this...

Am 29.05.2008 um 17:01 schrieb Peter Ertl:

I just uploaded a patch a few days ago to support indexed resource  
urls. Hopefully the wicket devs will apply it to the codebase.


I guess it would be a good base for RESTful resources without  
explicit session state.


It's like Martijn describes, but for shared resources.

Cheers
Peter


Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:

Where do you want to use REST for in your app? I use some REST  
url's in mij
application using the IndexedParamUrlCodingStrategy (of course REST  
is far

more than URL's only...).

Sample URL's are:

/activate/some very long encoded key  - Activates a profile after  
initial

signup
/profile/scott - shows Scott's profile
/reset/scott - Resets Scott's password


2008/5/27 Brill Pappin [EMAIL PROTECTED]:


chuckle

There's that word I keep hearing... should :)
Actually I keep saying it too, and give myself a slap.

IMO, REST is great for services, but it's pretty strict in terms  
of what is

RESTful.
I think something *like* wicket could work in a RESTful way, but  
Wicket

does
not and I doubt ever will (if it ever does, it won't be wicket  
code your

using today).

- Brill Pappin

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Monday, May 26, 2008 12:02 PM
To: users@wicket.apache.org
Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
wicket?

But REST is how http/internet should work!

On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg [EMAIL PROTECTED] 


wrote:

rest is for services, wicket is for ui. why does anything need to  
be

integrated?

-igor

On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED]  
wrote:


hi everyone, does anyone know how can we use RESTFUL in wicket?

now the RestFul framework is quite popular..
doest anyone know how can we put it into wicket??

do we need to integrate some other framework with wicket? or  
wicket

already

support that?
--
View this message in context:

http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
ESTFUL-in-wicket--tp17473242p17473242.html

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]





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





--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29



-
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: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Johan Compagner
we already can mount shared resources
and you can give them parameters so that you dont have to have session but
can create the same resource depending on the params

johan


On Thu, May 29, 2008 at 5:01 PM, Peter Ertl [EMAIL PROTECTED] wrote:

 I just uploaded a patch a few days ago to support indexed resource urls.
 Hopefully the wicket devs will apply it to the codebase.

 I guess it would be a good base for RESTful resources without explicit
 session state.

 It's like Martijn describes, but for shared resources.

 Cheers
 Peter


 Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:


  Where do you want to use REST for in your app? I use some REST url's in
 mij
 application using the IndexedParamUrlCodingStrategy (of course REST is far
 more than URL's only...).

 Sample URL's are:

 /activate/some very long encoded key  - Activates a profile after
 initial
 signup
 /profile/scott - shows Scott's profile
 /reset/scott - Resets Scott's password


 2008/5/27 Brill Pappin [EMAIL PROTECTED]:

  chuckle

 There's that word I keep hearing... should :)
 Actually I keep saying it too, and give myself a slap.

 IMO, REST is great for services, but it's pretty strict in terms of what
 is
 RESTful.
 I think something *like* wicket could work in a RESTful way, but Wicket
 does
 not and I doubt ever will (if it ever does, it won't be wicket code your
 using today).

 - Brill Pappin

 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 26, 2008 12:02 PM
 To: users@wicket.apache.org
 Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
 wicket?

 But REST is how http/internet should work!

 On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  rest is for services, wicket is for ui. why does anything need to be
 integrated?

 -igor

 On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED] wrote:


 hi everyone, does anyone know how can we use RESTFUL in wicket?

 now the RestFul framework is quite popular..
 doest anyone know how can we put it into wicket??

 do we need to integrate some other framework with wicket? or wicket

 already

 support that?
 --
 View this message in context:

 http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
 ESTFUL-in-wicket--tp17473242p17473242.html

 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]




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




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29



 -

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




Re: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Peter Ertl

Yeah, I know...

the patch I committed is about having indexed urls

like /blog/2008/06/13/hello.html with /blog being the resource  
mount path


so /2008/06/13/hello.html are the actual parameters

having /blog?year=2008month=06day=13item=hello.html doesn't look  
so nice and is not so much of REST *imho*





Am 29.05.2008 um 17:05 schrieb Johan Compagner:


we already can mount shared resources
and you can give them parameters so that you dont have to have  
session but

can create the same resource depending on the params

johan


On Thu, May 29, 2008 at 5:01 PM, Peter Ertl [EMAIL PROTECTED]  
wrote:


I just uploaded a patch a few days ago to support indexed resource  
urls.

Hopefully the wicket devs will apply it to the codebase.

I guess it would be a good base for RESTful resources without  
explicit

session state.

It's like Martijn describes, but for shared resources.

Cheers
Peter


Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:


Where do you want to use REST for in your app? I use some REST  
url's in

mij
application using the IndexedParamUrlCodingStrategy (of course  
REST is far

more than URL's only...).

Sample URL's are:

/activate/some very long encoded key  - Activates a profile after
initial
signup
/profile/scott - shows Scott's profile
/reset/scott - Resets Scott's password


2008/5/27 Brill Pappin [EMAIL PROTECTED]:

chuckle


There's that word I keep hearing... should :)
Actually I keep saying it too, and give myself a slap.

IMO, REST is great for services, but it's pretty strict in terms  
of what

is
RESTful.
I think something *like* wicket could work in a RESTful way, but  
Wicket

does
not and I doubt ever will (if it ever does, it won't be wicket  
code your

using today).

- Brill Pappin

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Monday, May 26, 2008 12:02 PM
To: users@wicket.apache.org
Subject: Re: hi everyone, does anyone know how can we use RESTFUL  
in

wicket?

But REST is how http/internet should work!

On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg [EMAIL PROTECTED] 


wrote:

rest is for services, wicket is for ui. why does anything need to  
be

integrated?

-igor

On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED]  
wrote:




hi everyone, does anyone know how can we use RESTFUL in wicket?

now the RestFul framework is quite popular..
doest anyone know how can we put it into wicket??

do we need to integrate some other framework with wicket? or  
wicket



already


support that?
--
View this message in context:


http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
ESTFUL-in-wicket--tp17473242p17473242.html


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]





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





--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29




-

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: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Martijn Lindhout
nice thing!

2008/5/29 Peter Ertl [EMAIL PROTECTED]:

 Yeah, I know...

 the patch I committed is about having indexed urls

 like /blog/2008/06/13/hello.html with /blog being the resource mount
 path

 so /2008/06/13/hello.html are the actual parameters

 having /blog?year=2008month=06day=13item=hello.html doesn't look so
 nice and is not so much of REST *imho*




 Am 29.05.2008 um 17:05 schrieb Johan Compagner:


  we already can mount shared resources
 and you can give them parameters so that you dont have to have session but
 can create the same resource depending on the params

 johan


 On Thu, May 29, 2008 at 5:01 PM, Peter Ertl [EMAIL PROTECTED] wrote:

  I just uploaded a patch a few days ago to support indexed resource urls.
 Hopefully the wicket devs will apply it to the codebase.

 I guess it would be a good base for RESTful resources without explicit
 session state.

 It's like Martijn describes, but for shared resources.

 Cheers
 Peter


 Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:


 Where do you want to use REST for in your app? I use some REST url's in

 mij
 application using the IndexedParamUrlCodingStrategy (of course REST is
 far
 more than URL's only...).

 Sample URL's are:

 /activate/some very long encoded key  - Activates a profile after
 initial
 signup
 /profile/scott - shows Scott's profile
 /reset/scott - Resets Scott's password


 2008/5/27 Brill Pappin [EMAIL PROTECTED]:

 chuckle


 There's that word I keep hearing... should :)
 Actually I keep saying it too, and give myself a slap.

 IMO, REST is great for services, but it's pretty strict in terms of
 what
 is
 RESTful.
 I think something *like* wicket could work in a RESTful way, but Wicket
 does
 not and I doubt ever will (if it ever does, it won't be wicket code
 your
 using today).

 - Brill Pappin

 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 26, 2008 12:02 PM
 To: users@wicket.apache.org
 Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
 wicket?

 But REST is how http/internet should work!

 On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg 
 [EMAIL PROTECTED]
 wrote:

 rest is for services, wicket is for ui. why does anything need to be

 integrated?

 -igor

 On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED] wrote:


 hi everyone, does anyone know how can we use RESTFUL in wicket?

 now the RestFul framework is quite popular..
 doest anyone know how can we put it into wicket??

 do we need to integrate some other framework with wicket? or wicket

  already

  support that?
 --
 View this message in context:


 http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
 ESTFUL-in-wicket--tp17473242p17473242.html

  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]




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




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29



 -

 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]




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Igor Vaynberg
glad you liked it martijn, check your jira issues :P

-igor

On Thu, May 29, 2008 at 11:07 AM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
 nice thing!

 2008/5/29 Peter Ertl [EMAIL PROTECTED]:

 Yeah, I know...

 the patch I committed is about having indexed urls

 like /blog/2008/06/13/hello.html with /blog being the resource mount
 path

 so /2008/06/13/hello.html are the actual parameters

 having /blog?year=2008month=06day=13item=hello.html doesn't look so
 nice and is not so much of REST *imho*




 Am 29.05.2008 um 17:05 schrieb Johan Compagner:


  we already can mount shared resources
 and you can give them parameters so that you dont have to have session but
 can create the same resource depending on the params

 johan


 On Thu, May 29, 2008 at 5:01 PM, Peter Ertl [EMAIL PROTECTED] wrote:

  I just uploaded a patch a few days ago to support indexed resource urls.
 Hopefully the wicket devs will apply it to the codebase.

 I guess it would be a good base for RESTful resources without explicit
 session state.

 It's like Martijn describes, but for shared resources.

 Cheers
 Peter


 Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:


 Where do you want to use REST for in your app? I use some REST url's in

 mij
 application using the IndexedParamUrlCodingStrategy (of course REST is
 far
 more than URL's only...).

 Sample URL's are:

 /activate/some very long encoded key  - Activates a profile after
 initial
 signup
 /profile/scott - shows Scott's profile
 /reset/scott - Resets Scott's password


 2008/5/27 Brill Pappin [EMAIL PROTECTED]:

 chuckle


 There's that word I keep hearing... should :)
 Actually I keep saying it too, and give myself a slap.

 IMO, REST is great for services, but it's pretty strict in terms of
 what
 is
 RESTful.
 I think something *like* wicket could work in a RESTful way, but Wicket
 does
 not and I doubt ever will (if it ever does, it won't be wicket code
 your
 using today).

 - Brill Pappin

 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 26, 2008 12:02 PM
 To: users@wicket.apache.org
 Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
 wicket?

 But REST is how http/internet should work!

 On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg 
 [EMAIL PROTECTED]
 wrote:

 rest is for services, wicket is for ui. why does anything need to be

 integrated?

 -igor

 On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED] wrote:


 hi everyone, does anyone know how can we use RESTFUL in wicket?

 now the RestFul framework is quite popular..
 doest anyone know how can we put it into wicket??

 do we need to integrate some other framework with wicket? or wicket

  already

  support that?
 --
 View this message in context:


 http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
 ESTFUL-in-wicket--tp17473242p17473242.html

  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]




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




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29



 -

 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]




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29


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



Re: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Martijn Dashorst
Different Martijn!

/me curses 70s popularity of naming kids Martijn

On Thu, May 29, 2008 at 8:13 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 glad you liked it martijn, check your jira issues :P

 -igor

 On Thu, May 29, 2008 at 11:07 AM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
 nice thing!

 2008/5/29 Peter Ertl [EMAIL PROTECTED]:

 Yeah, I know...

 the patch I committed is about having indexed urls

 like /blog/2008/06/13/hello.html with /blog being the resource mount
 path

 so /2008/06/13/hello.html are the actual parameters

 having /blog?year=2008month=06day=13item=hello.html doesn't look so
 nice and is not so much of REST *imho*




 Am 29.05.2008 um 17:05 schrieb Johan Compagner:


  we already can mount shared resources
 and you can give them parameters so that you dont have to have session but
 can create the same resource depending on the params

 johan


 On Thu, May 29, 2008 at 5:01 PM, Peter Ertl [EMAIL PROTECTED] wrote:

  I just uploaded a patch a few days ago to support indexed resource urls.
 Hopefully the wicket devs will apply it to the codebase.

 I guess it would be a good base for RESTful resources without explicit
 session state.

 It's like Martijn describes, but for shared resources.

 Cheers
 Peter


 Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:


 Where do you want to use REST for in your app? I use some REST url's in

 mij
 application using the IndexedParamUrlCodingStrategy (of course REST is
 far
 more than URL's only...).

 Sample URL's are:

 /activate/some very long encoded key  - Activates a profile after
 initial
 signup
 /profile/scott - shows Scott's profile
 /reset/scott - Resets Scott's password


 2008/5/27 Brill Pappin [EMAIL PROTECTED]:

 chuckle


 There's that word I keep hearing... should :)
 Actually I keep saying it too, and give myself a slap.

 IMO, REST is great for services, but it's pretty strict in terms of
 what
 is
 RESTful.
 I think something *like* wicket could work in a RESTful way, but Wicket
 does
 not and I doubt ever will (if it ever does, it won't be wicket code
 your
 using today).

 - Brill Pappin

 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 26, 2008 12:02 PM
 To: users@wicket.apache.org
 Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
 wicket?

 But REST is how http/internet should work!

 On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg 
 [EMAIL PROTECTED]
 wrote:

 rest is for services, wicket is for ui. why does anything need to be

 integrated?

 -igor

 On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED] wrote:


 hi everyone, does anyone know how can we use RESTFUL in wicket?

 now the RestFul framework is quite popular..
 doest anyone know how can we put it into wicket??

 do we need to integrate some other framework with wicket? or wicket

  already

  support that?
 --
 View this message in context:


 http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
 ESTFUL-in-wicket--tp17473242p17473242.html

  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]




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




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29



 -

 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]




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29


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





-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



Re: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Igor Vaynberg
what? different martijns! there is only one on the wicket team...

-igor

On Thu, May 29, 2008 at 11:25 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 Different Martijn!

 /me curses 70s popularity of naming kids Martijn

 On Thu, May 29, 2008 at 8:13 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 glad you liked it martijn, check your jira issues :P

 -igor

 On Thu, May 29, 2008 at 11:07 AM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
 nice thing!

 2008/5/29 Peter Ertl [EMAIL PROTECTED]:

 Yeah, I know...

 the patch I committed is about having indexed urls

 like /blog/2008/06/13/hello.html with /blog being the resource mount
 path

 so /2008/06/13/hello.html are the actual parameters

 having /blog?year=2008month=06day=13item=hello.html doesn't look so
 nice and is not so much of REST *imho*




 Am 29.05.2008 um 17:05 schrieb Johan Compagner:


  we already can mount shared resources
 and you can give them parameters so that you dont have to have session but
 can create the same resource depending on the params

 johan


 On Thu, May 29, 2008 at 5:01 PM, Peter Ertl [EMAIL PROTECTED] wrote:

  I just uploaded a patch a few days ago to support indexed resource urls.
 Hopefully the wicket devs will apply it to the codebase.

 I guess it would be a good base for RESTful resources without explicit
 session state.

 It's like Martijn describes, but for shared resources.

 Cheers
 Peter


 Am 29.05.2008 um 16:24 schrieb Martijn Lindhout:


 Where do you want to use REST for in your app? I use some REST url's in

 mij
 application using the IndexedParamUrlCodingStrategy (of course REST is
 far
 more than URL's only...).

 Sample URL's are:

 /activate/some very long encoded key  - Activates a profile after
 initial
 signup
 /profile/scott - shows Scott's profile
 /reset/scott - Resets Scott's password


 2008/5/27 Brill Pappin [EMAIL PROTECTED]:

 chuckle


 There's that word I keep hearing... should :)
 Actually I keep saying it too, and give myself a slap.

 IMO, REST is great for services, but it's pretty strict in terms of
 what
 is
 RESTful.
 I think something *like* wicket could work in a RESTful way, but Wicket
 does
 not and I doubt ever will (if it ever does, it won't be wicket code
 your
 using today).

 - Brill Pappin

 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 26, 2008 12:02 PM
 To: users@wicket.apache.org
 Subject: Re: hi everyone, does anyone know how can we use RESTFUL in
 wicket?

 But REST is how http/internet should work!

 On Mon, May 26, 2008 at 5:59 PM, Igor Vaynberg 
 [EMAIL PROTECTED]
 wrote:

 rest is for services, wicket is for ui. why does anything need to be

 integrated?

 -igor

 On Mon, May 26, 2008 at 7:47 AM, shrimpywu [EMAIL PROTECTED] wrote:


 hi everyone, does anyone know how can we use RESTFUL in wicket?

 now the RestFul framework is quite popular..
 doest anyone know how can we put it into wicket??

 do we need to integrate some other framework with wicket? or wicket

  already

  support that?
 --
 View this message in context:


 http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-R
 ESTFUL-in-wicket--tp17473242p17473242.html

  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]




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




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29



 -

 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]




 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29


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





 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

 -
 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: hi all, question about invoke some other service in wicket

2008-05-28 Thread shrimpywu

the sample is greate..it works fine...
-- 
View this message in context: 
http://www.nabble.com/hi-all%2C-question-about-invoke-some-other-service-in-wicket-tp17503718p17506079.html
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: hi all, question about invoke some other service in wicket

2008-05-27 Thread Gabriel Bucher

have you had a look at the wicketstuff flickr example integration?
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-flickr/

example is based on wicket 1.2 but it could be an inspiration.


shrimpywu wrote:

hmm..i don`t know here is the right place to post this question or not
because currently i am using wicket to build a website
what i want to do is, in my web site i have to do some ajax call to get some
photo from flickr

and flickr privde the API that
if we browse url like this
http://api.flickr.com/services/rest/?method=flickr.photos.searchapi_key=1bccc830541642b8424b45be8b4589f2text=somekeyworkforphotoprivacy_filter=1machine_tag_mode=any

it will return a list of resource that can point to the photo

but what should i do, so that in my wicket code,
i can send this request out, and get the xml format respone,
so that i can get the image location

Thanks 


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



Re: hi all, question about invoke some other service in wicket

2008-05-27 Thread Gabriel Bucher

have you had a look at the wicketstuff flickr example integration?
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-flickr/

example is based on wicket 1.2 but it could be an inspiration.

shrimpywu wrote:

hmm..i don`t know here is the right place to post this question or not
because currently i am using wicket to build a website
what i want to do is, in my web site i have to do some ajax call to get some
photo from flickr

and flickr privde the API that
if we browse url like this
http://api.flickr.com/services/rest/?method=flickr.photos.searchapi_key=1bccc830541642b8424b45be8b4589f2text=somekeyworkforphotoprivacy_filter=1machine_tag_mode=any

it will return a list of resource that can point to the photo

but what should i do, so that in my wicket code,
i can send this request out, and get the xml format respone,
so that i can get the image location

Thanks 


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



Re: hi, does anybody know, in wicket, how to make componete can be drap and drop

2008-05-14 Thread Martijn Dashorst
See scriptaculous integration on wicket-stuff. It has drag'n drop
capabilities, though I haven't used it myself. Probably
wicketstuff-yui, wicketstuff-jquery and wicketstuff-dojo have the same
capabilities.

Martijn

On 5/14/08, shrimpywu [EMAIL PROTECTED] wrote:

  hi, does anybody know, in wicket, how to make componete can be drap and drop

  just like the ajax debug windows


  --
  View this message in context: 
 http://www.nabble.com/hi%2C-does-anybody-know%2C-in-wicket%2C-how-to-make-componete-can-be-drap-and-drop-tp17230831p17230831.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
I am not sure which headers would be necesary.

I usually set the set attachment as I said but ONLY FOR FIREFOX. And it
WORKS FINE.

But it is not my intention. My intention is to open the pdf inside the new
created tab in the same browser.

Safari still not working.

f(t)

On Jan 23, 2008 6:29 PM, Johan Compagner [EMAIL PROTECTED] wrote:

 Do not call respond() your self, set the requesttarget as the response
 rt in the request cycle.

 Dont know if that works but most of the time you need a name to
 download it correctly. Are alle the content headers set ok?

 On 1/23/08, Francisco Diaz Trepat - gmail
 [EMAIL PROTECTED] wrote:
  Hi it does the same behavior.
 
  Opens the new Tab and displays an emtpy broken content with the title in
 the
  tab being (application/pdf Object). This is unless I put the file name.
 So I
  have the following code now (Testing it):
 
 
public void onSubmit() {
  Resource cResource = new LcCalculationPDFWebResource();
  //cResource.onResourceRequested();
  ResourceStreamRequestTarget cTarget = new
  ResourceStreamRequestTarget(cResource.getResourceStream());
 
  if (!((WebClientInfo)
 
 getSession().getClientInfo()).getProperties().isBrowserInternetExplorer()) {
 cTarget.setFileName(Argo.pdf);
  }
 
  cTarget.respond(getRequestCycle());
 
}
 
 
  Safari still crashes.
 
  The onSubmit is still the one in the MyForm.
 
  f(t)
 
 
  On Jan 23, 2008 5:37 PM, Francisco Diaz Trepat - gmail 
  [EMAIL PROTECTED] wrote:
 
   Hi Johan, thanks.
  
   We are actually doing the target _blank.
  
   I'm gonna check resourestreamrequesttarget out to see.
  
   I have a small work arround for Firefox only (remember it works fine
 on
   IE, and does not on Safari  Firefox)
  
   which is setting the header Content-Disposition with the
   setAttachment(String fileName) method.
  
   I'll let you know about the resourestreamrequesttarget.
  
   f(t)
  
 On Jan 23, 2008 5:22 PM, Johan Compagner [EMAIL PROTECTED]
 wrote:
  
First of all dont do directly onresourcerequest in the on submit but
use the resourestreamrequesttarget or something like that.
   
If you want tro keep the current html you could submit to a new
 target
window?
I guess you could also play with http headers so that the browser
knows what it get and should do
   
On 1/23/08, Francisco Diaz Trepat - gmail
 [EMAIL PROTECTED] wrote:
 Hi all, I am having some problems dealing with PDFs.

 1) I have DynamicWebResource (MyPdfDynamicWebResource) that
 overrides
the
 getResourceState() method as follows.


   protected ResourceState getResourceState() {
  return new ResourceState() {
 protected byte[] myPDF;

 public String getContentType() {
return application/pdf;
 }

 public Time lastModifiedTime() {
return Time.now();
 }

 public byte[] getData() {
return basicGetData();
 }

 protected synchronized byte[] basicGetData() {
if (myPDF== null) {
   myPDF = generatePDF();
}
return myPDF;
 }

 public int getLength() {
   return basicGetData().length;
 }

  };
   }

 2) I have a MyForm extension (simple) that has the following
onSubmit()
 code:

  public void onSubmit() {
 Resource cResource = new MyPdfDynamicWebResource();
 cResource.onResourceRequested();
   }

 3) Saddly )*This works perfect on IE 7, but does not work on
 Firefox
and
 Safari.*

 My goals:

 1) Open the PDF file in a new window for the purpose of NOT losing
 the
User
 input data on the form and the page that the user was on.

 2) The opening of the PDF inside the browser is kind of optional.


 Hopefully you'll be able to help me,

 cheers,

 f(t)

   
--
Sent from Gmail for mobile | mobile.google.com
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 

 --
  Sent from Gmail for mobile | mobile.google.com

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




Re: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
MMmmm Could it be possible an expiration before the launch of the adobe
reader plugin for the firefox tab?

I'll try it out.

thanks,
f(t)

On Jan 24, 2008 4:54 AM, severian [EMAIL PROTECTED] wrote:


 Something like this may work for your DynamicWebResource:

 @Override
protected void setHeaders(WebResponse response) {
super.setHeaders(response);
String name = getFileName();
if (name != null) {
response.setHeader(Content-Disposition,
 String.format(attachment; filename=\%s\, name));
}

// Cache for 60 secs to give client app (e.g. word or excel or
 acrobat) time to open file.
response.setDateHeader(Expires, System.currentTimeMillis() + (60
 *
 1000));
response.setHeader(Cache-Control, max-age= + 60);
}
 --
 View this message in context:
 http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
 Sent from the Wicket - User mailing list archive at 
 Nabble.comhttp://nabble.com/
 .


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




Re: Hi, PDF Question

2008-01-24 Thread Johan Maasing
In my experience (outside wicket) the content type matters to FF and
Opera, IE mainly looks at the file ending. So make sure you set that
to application/pdf or some similiar. Also, the content-dispostion can
be set to inline instead of attachement
(http://www.ietf.org/rfc/rfc1806.txt) which sometimes leads the
browser down the path of opening the PDF in the browser window.
However, I have noticied that you can never predict what will happen,
new versions of acrobat plug-in and browsers can change the behaviour.

2008/1/24, Francisco Diaz Trepat - gmail [EMAIL PROTECTED]:
 MMmmm Could it be possible an expiration before the launch of the adobe
 reader plugin for the firefox tab?

 I'll try it out.

 thanks,
 f(t)

 On Jan 24, 2008 4:54 AM, severian [EMAIL PROTECTED] wrote:

 
  Something like this may work for your DynamicWebResource:
 
  @Override
 protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 String name = getFileName();
 if (name != null) {
 response.setHeader(Content-Disposition,
  String.format(attachment; filename=\%s\, name));
 }
 
 // Cache for 60 secs to give client app (e.g. word or excel or
  acrobat) time to open file.
 response.setDateHeader(Expires, System.currentTimeMillis() + (60
  *
  1000));
 response.setHeader(Cache-Control, max-age= + 60);
 }
  --
  View this message in context:
  http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
  Sent from the Wicket - User mailing list archive at 
  Nabble.comhttp://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: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
Johan, thanks, I'll tryit out and will give a feedback.

f(t)

On Jan 24, 2008 11:08 AM, Johan Maasing [EMAIL PROTECTED] wrote:

 In my experience (outside wicket) the content type matters to FF and
 Opera, IE mainly looks at the file ending. So make sure you set that
 to application/pdf or some similiar. Also, the content-dispostion can
 be set to inline instead of attachement
 (http://www.ietf.org/rfc/rfc1806.txt) which sometimes leads the
 browser down the path of opening the PDF in the browser window.
 However, I have noticied that you can never predict what will happen,
 new versions of acrobat plug-in and browsers can change the behaviour.

 2008/1/24, Francisco Diaz Trepat - gmail [EMAIL PROTECTED]:
  MMmmm Could it be possible an expiration before the launch of the
 adobe
  reader plugin for the firefox tab?
 
  I'll try it out.
 
  thanks,
  f(t)
 
  On Jan 24, 2008 4:54 AM, severian [EMAIL PROTECTED] wrote:
 
  
   Something like this may work for your DynamicWebResource:
  
   @Override
  protected void setHeaders(WebResponse response) {
  super.setHeaders(response);
  String name = getFileName();
  if (name != null) {
  response.setHeader(Content-Disposition,
   String.format(attachment; filename=\%s\, name));
  }
  
  // Cache for 60 secs to give client app (e.g. word or excel or
   acrobat) time to open file.
  response.setDateHeader(Expires, System.currentTimeMillis() +
 (60
   *
   1000));
  response.setHeader(Cache-Control, max-age= + 60);
  }
   --
   View this message in context:
   http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
   Sent from the Wicket - User mailing list archive at 
   Nabble.comhttp://nabble.com/
 http://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: Hi, PDF Question

2008-01-24 Thread Francisco Diaz Trepat - gmail
I have updated the Safari to the 3.0.4 version and now it works also.

The only one that doesn't work is FireFox so I have the
*attachment*Content-Disposition workarround so that it will download
the file and open
it latter with Adobe Acrobat Reader.

f(t)

On Jan 24, 2008 11:11 AM, Francisco Diaz Trepat - gmail 
[EMAIL PROTECTED] wrote:

 Johan, thanks, I'll tryit out and will give a feedback.

 f(t)

   On Jan 24, 2008 11:08 AM, Johan Maasing [EMAIL PROTECTED] wrote:

  In my experience (outside wicket) the content type matters to FF and
  Opera, IE mainly looks at the file ending. So make sure you set that
  to application/pdf or some similiar. Also, the content-dispostion can
  be set to inline instead of attachement
  (http://www.ietf.org/rfc/rfc1806.txt ) which sometimes leads the
  browser down the path of opening the PDF in the browser window.
  However, I have noticied that you can never predict what will happen,
  new versions of acrobat plug-in and browsers can change the behaviour.
 
  2008/1/24, Francisco Diaz Trepat - gmail [EMAIL PROTECTED]
  :
   MMmmm Could it be possible an expiration before the launch of the
  adobe
   reader plugin for the firefox tab?
  
   I'll try it out.
  
   thanks,
   f(t)
  
   On Jan 24, 2008 4:54 AM, severian [EMAIL PROTECTED] wrote:
  
   
Something like this may work for your DynamicWebResource:
   
@Override
   protected void setHeaders(WebResponse response) {
   super.setHeaders(response);
   String name = getFileName();
   if (name != null) {
   response.setHeader(Content-Disposition,
String.format(attachment; filename=\%s\, name));
   }
   
   // Cache for 60 secs to give client app ( e.g. word or excel
  or
acrobat) time to open file.
   response.setDateHeader(Expires, System.currentTimeMillis()
  + (60
*
1000));
   response.setHeader (Cache-Control, max-age= + 60);
   }
--
View this message in context:
http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
Sent from the Wicket - User mailing list archive at 
Nabble.comhttp://nabble.com/
   http://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: Hi, PDF Question

2008-01-23 Thread Johan Compagner
First of all dont do directly onresourcerequest in the on submit but
use the resourestreamrequesttarget or something like that.

If you want tro keep the current html you could submit to a new target window?
I guess you could also play with http headers so that the browser
knows what it get and should do

On 1/23/08, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
 Hi all, I am having some problems dealing with PDFs.

 1) I have DynamicWebResource (MyPdfDynamicWebResource) that overrides the
 getResourceState() method as follows.


   protected ResourceState getResourceState() {
  return new ResourceState() {
 protected byte[] myPDF;

 public String getContentType() {
return application/pdf;
 }

 public Time lastModifiedTime() {
return Time.now();
 }

 public byte[] getData() {
return basicGetData();
 }

 protected synchronized byte[] basicGetData() {
if (myPDF== null) {
   myPDF = generatePDF();
}
return myPDF;
 }

 public int getLength() {
   return basicGetData().length;
 }

  };
   }

 2) I have a MyForm extension (simple) that has the following onSubmit()
 code:

  public void onSubmit() {
 Resource cResource = new MyPdfDynamicWebResource();
 cResource.onResourceRequested();
   }

 3) Saddly )*This works perfect on IE 7, but does not work on Firefox and
 Safari.*

 My goals:

 1) Open the PDF file in a new window for the purpose of NOT losing the User
 input data on the form and the page that the user was on.

 2) The opening of the PDF inside the browser is kind of optional.


 Hopefully you'll be able to help me,

 cheers,

 f(t)


-- 
Sent from Gmail for mobile | mobile.google.com

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



Re: Hi, PDF Question

2008-01-23 Thread Francisco Diaz Trepat - gmail
Hi Johan, thanks.

We are actually doing the target _blank.

I'm gonna check resourestreamrequesttarget out to see.

I have a small work arround for Firefox only (remember it works fine on IE,
and does not on Safari  Firefox)

which is setting the header Content-Disposition with the
setAttachment(String fileName) method.

I'll let you know about the resourestreamrequesttarget.

f(t)

On Jan 23, 2008 5:22 PM, Johan Compagner [EMAIL PROTECTED] wrote:

 First of all dont do directly onresourcerequest in the on submit but
 use the resourestreamrequesttarget or something like that.

 If you want tro keep the current html you could submit to a new target
 window?
 I guess you could also play with http headers so that the browser
 knows what it get and should do

 On 1/23/08, Francisco Diaz Trepat - gmail
  [EMAIL PROTECTED] wrote:
  Hi all, I am having some problems dealing with PDFs.
 
  1) I have DynamicWebResource (MyPdfDynamicWebResource) that overrides
 the
  getResourceState() method as follows.
 
 
protected ResourceState getResourceState() {
   return new ResourceState() {
  protected byte[] myPDF;
 
  public String getContentType() {
 return application/pdf;
  }
 
  public Time lastModifiedTime() {
 return Time.now();
  }
 
  public byte[] getData() {
 return basicGetData();
  }
 
  protected synchronized byte[] basicGetData() {
 if (myPDF== null) {
myPDF = generatePDF();
 }
 return myPDF;
  }
 
  public int getLength() {
return basicGetData().length;
  }
 
   };
}
 
  2) I have a MyForm extension (simple) that has the following onSubmit()
  code:
 
   public void onSubmit() {
  Resource cResource = new MyPdfDynamicWebResource();
  cResource.onResourceRequested();
}
 
  3) Saddly )*This works perfect on IE 7, but does not work on Firefox and
  Safari.*
 
  My goals:
 
  1) Open the PDF file in a new window for the purpose of NOT losing the
 User
  input data on the form and the page that the user was on.
 
  2) The opening of the PDF inside the browser is kind of optional.
 
 
  Hopefully you'll be able to help me,
 
  cheers,
 
  f(t)
 

 --
 Sent from Gmail for mobile | mobile.google.com

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




Re: Hi, PDF Question

2008-01-23 Thread Francisco Diaz Trepat - gmail
Hi it does the same behavior.

Opens the new Tab and displays an emtpy broken content with the title in the
tab being (application/pdf Object). This is unless I put the file name. So I
have the following code now (Testing it):


  public void onSubmit() {
Resource cResource = new LcCalculationPDFWebResource();
//cResource.onResourceRequested();
ResourceStreamRequestTarget cTarget = new
ResourceStreamRequestTarget(cResource.getResourceStream());

if (!((WebClientInfo)
getSession().getClientInfo()).getProperties().isBrowserInternetExplorer()) {
   cTarget.setFileName(Argo.pdf);
}

cTarget.respond(getRequestCycle());

  }


Safari still crashes.

The onSubmit is still the one in the MyForm.

f(t)


On Jan 23, 2008 5:37 PM, Francisco Diaz Trepat - gmail 
[EMAIL PROTECTED] wrote:

 Hi Johan, thanks.

 We are actually doing the target _blank.

 I'm gonna check resourestreamrequesttarget out to see.

 I have a small work arround for Firefox only (remember it works fine on
 IE, and does not on Safari  Firefox)

 which is setting the header Content-Disposition with the
 setAttachment(String fileName) method.

 I'll let you know about the resourestreamrequesttarget.

 f(t)

   On Jan 23, 2008 5:22 PM, Johan Compagner [EMAIL PROTECTED] wrote:

  First of all dont do directly onresourcerequest in the on submit but
  use the resourestreamrequesttarget or something like that.
 
  If you want tro keep the current html you could submit to a new target
  window?
  I guess you could also play with http headers so that the browser
  knows what it get and should do
 
  On 1/23/08, Francisco Diaz Trepat - gmail
   [EMAIL PROTECTED] wrote:
   Hi all, I am having some problems dealing with PDFs.
  
   1) I have DynamicWebResource (MyPdfDynamicWebResource) that overrides
  the
   getResourceState() method as follows.
  
  
 protected ResourceState getResourceState() {
return new ResourceState() {
   protected byte[] myPDF;
  
   public String getContentType() {
  return application/pdf;
   }
  
   public Time lastModifiedTime() {
  return Time.now();
   }
  
   public byte[] getData() {
  return basicGetData();
   }
  
   protected synchronized byte[] basicGetData() {
  if (myPDF== null) {
 myPDF = generatePDF();
  }
  return myPDF;
   }
  
   public int getLength() {
 return basicGetData().length;
   }
  
};
 }
  
   2) I have a MyForm extension (simple) that has the following
  onSubmit()
   code:
  
public void onSubmit() {
   Resource cResource = new MyPdfDynamicWebResource();
   cResource.onResourceRequested();
 }
  
   3) Saddly )*This works perfect on IE 7, but does not work on Firefox
  and
   Safari.*
  
   My goals:
  
   1) Open the PDF file in a new window for the purpose of NOT losing the
  User
   input data on the form and the page that the user was on.
  
   2) The opening of the PDF inside the browser is kind of optional.
  
  
   Hopefully you'll be able to help me,
  
   cheers,
  
   f(t)
  
 
  --
  Sent from Gmail for mobile | mobile.google.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Hi, PDF Question

2008-01-23 Thread Johan Compagner
Do not call respond() your self, set the requesttarget as the response
rt in the request cycle.

Dont know if that works but most of the time you need a name to
download it correctly. Are alle the content headers set ok?

On 1/23/08, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
 Hi it does the same behavior.

 Opens the new Tab and displays an emtpy broken content with the title in the
 tab being (application/pdf Object). This is unless I put the file name. So I
 have the following code now (Testing it):


   public void onSubmit() {
 Resource cResource = new LcCalculationPDFWebResource();
 //cResource.onResourceRequested();
 ResourceStreamRequestTarget cTarget = new
 ResourceStreamRequestTarget(cResource.getResourceStream());

 if (!((WebClientInfo)
 getSession().getClientInfo()).getProperties().isBrowserInternetExplorer()) {
cTarget.setFileName(Argo.pdf);
 }

 cTarget.respond(getRequestCycle());

   }


 Safari still crashes.

 The onSubmit is still the one in the MyForm.

 f(t)


 On Jan 23, 2008 5:37 PM, Francisco Diaz Trepat - gmail 
 [EMAIL PROTECTED] wrote:

  Hi Johan, thanks.
 
  We are actually doing the target _blank.
 
  I'm gonna check resourestreamrequesttarget out to see.
 
  I have a small work arround for Firefox only (remember it works fine on
  IE, and does not on Safari  Firefox)
 
  which is setting the header Content-Disposition with the
  setAttachment(String fileName) method.
 
  I'll let you know about the resourestreamrequesttarget.
 
  f(t)
 
On Jan 23, 2008 5:22 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 
   First of all dont do directly onresourcerequest in the on submit but
   use the resourestreamrequesttarget or something like that.
  
   If you want tro keep the current html you could submit to a new target
   window?
   I guess you could also play with http headers so that the browser
   knows what it get and should do
  
   On 1/23/08, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
Hi all, I am having some problems dealing with PDFs.
   
1) I have DynamicWebResource (MyPdfDynamicWebResource) that overrides
   the
getResourceState() method as follows.
   
   
  protected ResourceState getResourceState() {
 return new ResourceState() {
protected byte[] myPDF;
   
public String getContentType() {
   return application/pdf;
}
   
public Time lastModifiedTime() {
   return Time.now();
}
   
public byte[] getData() {
   return basicGetData();
}
   
protected synchronized byte[] basicGetData() {
   if (myPDF== null) {
  myPDF = generatePDF();
   }
   return myPDF;
}
   
public int getLength() {
  return basicGetData().length;
}
   
 };
  }
   
2) I have a MyForm extension (simple) that has the following
   onSubmit()
code:
   
 public void onSubmit() {
Resource cResource = new MyPdfDynamicWebResource();
cResource.onResourceRequested();
  }
   
3) Saddly )*This works perfect on IE 7, but does not work on Firefox
   and
Safari.*
   
My goals:
   
1) Open the PDF file in a new window for the purpose of NOT losing the
   User
input data on the form and the page that the user was on.
   
2) The opening of the PDF inside the browser is kind of optional.
   
   
Hopefully you'll be able to help me,
   
cheers,
   
f(t)
   
  
   --
   Sent from Gmail for mobile | mobile.google.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


-- 
Sent from Gmail for mobile | mobile.google.com

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



Re: Hi, PDF Question

2008-01-23 Thread severian

Something like this may work for your DynamicWebResource:

@Override
protected void setHeaders(WebResponse response) {
super.setHeaders(response);
String name = getFileName();
if (name != null) {
response.setHeader(Content-Disposition,
String.format(attachment; filename=\%s\, name));
}

// Cache for 60 secs to give client app (e.g. word or excel or
acrobat) time to open file.
response.setDateHeader(Expires, System.currentTimeMillis() + (60 *
1000));
response.setHeader(Cache-Control, max-age= + 60);
}
-- 
View this message in context: 
http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
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: hi questions about DateField, thanks!

2007-10-17 Thread raybristol

Thanks very much, I was looking at the log files in tomcat, but I don't think
I found anything but in the console (I am using eclipse), I saw:

17-Oct-2007 10:53:41 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet NiceUrlApplication threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)




Eelco Hillenius wrote:
 
 Your code looks fine to me. We really need to see that stack trace.
 
 Eelco
 
 
 On 10/16/07, raybristol [EMAIL PROTECTED] wrote:

 Hi, I try to add a datefield to my page, accroding to the examples in
 http://www.wicketstuff.org/wicket13/index.html

 but I get a error and then I try to do it on a sperate page just for
 testing
 but getting the same error:

 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

 javax.servlet.ServletException: Servlet execution threw an exception


 note The full stack trace of the root cause is available in the Apache
 Tomcat/6.0.14 logs.


 However about error message doesn't tell me anything, and the code is
 really
 simple:

 java code:

 public class DateFieldTest extends WebPage{
 private Date date = new Date();

 public DateFieldTest(){
 Form form = new Form(form);
 DateTextField dateTextField = new DateTextField(dateTextField,
 new
 PropertyModel(this,
 date), new StyleDateConverter(S-, true));
 form.add(dateTextField);
 dateTextField.add(new DatePicker());
 add(form);
 }

 }

 Html code:
 ?xml version=1.0 encoding=UTF-8?
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 titleWicket Examples - dates/title

 /head
 body

 form wicket:id=form
 input type=text wicket:id=dateTextField /
 input type=submit value=submit /
 /form

 /body
 /html


 Thanks for this forum, I am getting lots help from here, many many thanks
 again!

 Ray


 --
 View this message in context:
 http://www.nabble.com/hi-questions-about-DateField%2C-thanks%21-tf4635435.html#a13237803
 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/hi-questions-about-DateField%2C-thanks%21-tf4635435.html#a13250347
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: hi questions about DateField, thanks!

2007-10-17 Thread raybristol

I found the problem, it's because my Tomcat has confict severlet jar files...
thanks very much!




raybristol wrote:
 
 Hi, I try to add a datefield to my page, accroding to the examples in
 http://www.wicketstuff.org/wicket13/index.html
 
 but I get a error and then I try to do it on a sperate page just for
 testing but getting the same error:
 
 type Exception report
 
 message 
 
 description The server encountered an internal error () that prevented it
 from fulfilling this request.
 
 exception 
 
 javax.servlet.ServletException: Servlet execution threw an exception
 
 
 note The full stack trace of the root cause is available in the Apache
 Tomcat/6.0.14 logs.
 
 
 However about error message doesn't tell me anything, and the code is
 really simple:
 
 java code:
 
 public class DateFieldTest extends WebPage{
   private Date date = new Date();
 
   public DateFieldTest(){
   Form form = new Form(form);
   DateTextField dateTextField = new DateTextField(dateTextField, new
 PropertyModel(this,
 date), new StyleDateConverter(S-, true));
   form.add(dateTextField);
 dateTextField.add(new DatePicker());
 add(form);
   }
 
 }
 
 Html code:
 ?xml version=1.0 encoding=UTF-8?
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 titleWicket Examples - dates/title
 
 /head
 body
 
 form wicket:id=form
 input type=text wicket:id=dateTextField / 
 input type=submit value=submit /
 /form
 
 /body
 /html
 
 
 Thanks for this forum, I am getting lots help from here, many many thanks
 again!
 
 Ray
 
 
 

-- 
View this message in context: 
http://www.nabble.com/hi-questions-about-DateField%2C-thanks%21-tf4635435.html#a13254937
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: hi questions about DateField, thanks!

2007-10-16 Thread Eelco Hillenius
Your code looks fine to me. We really need to see that stack trace.

Eelco


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

 Hi, I try to add a datefield to my page, accroding to the examples in
 http://www.wicketstuff.org/wicket13/index.html

 but I get a error and then I try to do it on a sperate page just for testing
 but getting the same error:

 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

 javax.servlet.ServletException: Servlet execution threw an exception


 note The full stack trace of the root cause is available in the Apache
 Tomcat/6.0.14 logs.


 However about error message doesn't tell me anything, and the code is really
 simple:

 java code:

 public class DateFieldTest extends WebPage{
 private Date date = new Date();

 public DateFieldTest(){
 Form form = new Form(form);
 DateTextField dateTextField = new DateTextField(dateTextField, new
 PropertyModel(this,
 date), new StyleDateConverter(S-, true));
 form.add(dateTextField);
 dateTextField.add(new DatePicker());
 add(form);
 }

 }

 Html code:
 ?xml version=1.0 encoding=UTF-8?
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 titleWicket Examples - dates/title

 /head
 body

 form wicket:id=form
 input type=text wicket:id=dateTextField /
 input type=submit value=submit /
 /form

 /body
 /html


 Thanks for this forum, I am getting lots help from here, many many thanks
 again!

 Ray


 --
 View this message in context: 
 http://www.nabble.com/hi-questions-about-DateField%2C-thanks%21-tf4635435.html#a13237803
 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: hi questions about Wizard again, thanks!

2007-09-26 Thread Andrew Klochkov

raybristol wrote:

My WizardPage is like

public class AddDeliveryWizardPage extends AbstractExamplePage{

public AddDeliveryWizardPage(){

super();

WizardModel model = new WizardModel();
  int numberOfBoxes = 0;
  ListBox boxesList = new ArrayListBox();

  //variable 'numberOfBoxes' will be set in this
step
model.add(new SetNumberOfBoxesWizardStep());

  //set box entity objects according to variable
'numberOfBoxes' set from last step
model.add(new SetBoxEntityWizardStep(int numberOfBoxes));

Wizard wizard = new Wizard(wizard, model)
this.add(wizard);
}

}

question 1: as model step is added at compile time, so I don't know how to
get the value of variable 'numberOfBoxes' after it got set from the 1st
step, in the 2nd step 'numberOfBoxes''s value is default value 0.
  
You should make numberOfBoxes variable accessible in both the steps. One 
way to do it:


public class AddDeliveryWizardPage extends AbstractExamplePage{

private int numberOfBoxes;
   private final ListBox boxesList = new ArrayListBox();

public AddDeliveryWizardPage(){

super();

IModel boxesAmountModel = new PropertyModel(this, 
numberOfBoxes);
WizardModel model = new WizardModel();

//variable 'numberOfBoxes' will be set in this step
model.add(new SetNumberOfBoxesWizardStep(boxesAmountModel) {
public void applyState() {
for (int i = 0; i  numberOfBoxes; i++)
boxesList.add(new Box());
}
});

//set box entity objects according to variable 'numberOfBoxes' 
set from last step
model.add(new SetBoxEntityWizardStep(boxesAmountModel, 
boxesList));

Wizard wizard = new Wizard(wizard, model)
this.add(wizard);
}

}


question 2: in the 2nd step I probably need user to input multiple box
object's details, for a single model, I can use somthign like setModel(new
CompoundPropertyModel(box)), but what about for multiple objects? is it
something like setModel(new CompoundPropertyModel(boxeslist))  - boxeslist
is a arraylist of box objects.
  
Notice that I added a boxesList parameter for the second step in the 
code above. So then in the SexBoxEntityWizardStep you could use some 
repeater to generate html inputs for every box. For example here is a 
ListView example:


add(new ListView(boxes, boxesList) {
   protected void populateItem(final ListItem item) {
   item.add(new TextField(name, new 
PropertyModel(item.getModelObject(), name));

   }
});


Many thanks for your guys help, this is the best forum I can find for wicket
:)

  

+1 :)


--
Andrew Klochkov


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



Re: hi questions about Wizard again, thanks!

2007-09-26 Thread raybristol

Thansk very much, love this forum! got a reply so prompt!



Andrew Klochkov wrote:
 
 raybristol wrote:
 My WizardPage is like

 public class AddDeliveryWizardPage extends AbstractExamplePage{
  
  public AddDeliveryWizardPage(){
  
  super();

  WizardModel model = new WizardModel();
   int numberOfBoxes = 0;
   ListBox boxesList = new ArrayListBox();

   //variable 'numberOfBoxes' will be set in this
 step
  model.add(new SetNumberOfBoxesWizardStep());
  
   //set box entity objects according to variable
 'numberOfBoxes' set from last step
  model.add(new SetBoxEntityWizardStep(int numberOfBoxes));
  
  Wizard wizard = new Wizard(wizard, model)
  this.add(wizard);
  }

 }

 question 1: as model step is added at compile time, so I don't know how
 to
 get the value of variable 'numberOfBoxes' after it got set from the 1st
 step, in the 2nd step 'numberOfBoxes''s value is default value 0.
   
 You should make numberOfBoxes variable accessible in both the steps. One 
 way to do it:
 
 public class AddDeliveryWizardPage extends AbstractExamplePage{
   
   private int numberOfBoxes;
 private final ListBox boxesList = new ArrayListBox();
 
   public AddDeliveryWizardPage(){
   
   super();
 
   IModel boxesAmountModel = new PropertyModel(this, 
 numberOfBoxes);
   WizardModel model = new WizardModel();
 
   //variable 'numberOfBoxes' will be set in this step
   model.add(new SetNumberOfBoxesWizardStep(boxesAmountModel) {
   public void applyState() {
   for (int i = 0; i  numberOfBoxes; i++)
   boxesList.add(new Box());
   }
   });
   
   //set box entity objects according to variable 'numberOfBoxes' 
 set from
 last step
   model.add(new SetBoxEntityWizardStep(boxesAmountModel, 
 boxesList));
   
   Wizard wizard = new Wizard(wizard, model)
   this.add(wizard);
   }
 
 }
 
 question 2: in the 2nd step I probably need user to input multiple box
 object's details, for a single model, I can use somthign like
 setModel(new
 CompoundPropertyModel(box)), but what about for multiple objects? is it
 something like setModel(new CompoundPropertyModel(boxeslist))  -
 boxeslist
 is a arraylist of box objects.
   
 Notice that I added a boxesList parameter for the second step in the 
 code above. So then in the SexBoxEntityWizardStep you could use some 
 repeater to generate html inputs for every box. For example here is a 
 ListView example:
 
 add(new ListView(boxes, boxesList) {
 protected void populateItem(final ListItem item) {
 item.add(new TextField(name, new 
 PropertyModel(item.getModelObject(), name));
 }
 });

 Many thanks for your guys help, this is the best forum I can find for
 wicket
 :)

   
 +1 :)
 
 
 -- 
 Andrew Klochkov
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/hi-questions-about-Wizard-again%2C-thanks%21-tf4521282.html#a12899730
Sent from the Wicket - User mailing list archive at Nabble.com.


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