Re: [Wicket-user] wicket-bench and the html editor

2007-01-27 Thread Joni Freeman
On Thu, 2007-01-25 at 18:17 -0800, Loren Rosen wrote:
 Yes, I can create a patch. It's a one-line change (well, two lines if you
 count changing
 the class imports).
 
 (The code in question assumes the editor is a CompilationUnitEditor when in
 fact
 it suffices to assume an AbstractTextEditor. My guess is it was copied from
 some
 Eclipse documentation example and then modified.)

Which editor did you associate with html files? Note, wicket editor
should be associated only with java files, for html files you should set
e.g. text editor or wtp's editor (or something better). 

 I'd be happy to work on the plug-in. I need to refresh my plug-in writing
 skills anyway.

Excellent! I'm happy to create svn-account for you and help to get
started. 

Joni


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form submit to modal window issues

2007-01-27 Thread Matej Knopp
When the validation fails the onSubmit method is not called at all. 
There's an onError method that is called in this case.

-Matej

Shawn Tumey wrote:
 When validation should fail and the feedback panel should show up.
 
 *INFO: 
 *Initiating Ajax POST request on 
 /inl/secure/app/page?wicket:interface=:0:panel:reqForm:submit:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=
  
 0.393144868947922
 *INFO: *Invoking pre-call handler(s)...
 *INFO: *Received ajax response (69 characters)
 *INFO: *
 ?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response
 *INFO: *Response parsed. Now invoking steps...
 * INFO: *Response processed successfully.
 *INFO: *Invoking post-call handler(s)...
 
 When the modal windows is shown because validation passes.
 
 *INFO: 
 *Initiating Ajax POST request on 
 /inl/secure/app/page?wicket:interface=:0:panel:reqForm:submit:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=
  
 0.9417643576134753
 *INFO: *Invoking pre-call handler(s)...
 *INFO: *Received ajax response (1254 characters)
 *INFO: *
 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent 
 id=panel_reqForm_classification ![CDATA[div wicket:id=classification 
 style=display:none id=panel_reqForm_classificationwicket:panel 
 
 div wicket:id=content id=panel_reqForm_classification_content
 /div
 /wicket:panel/div]]/componentcomponent id=feedback 
 ![CDATA[]]/componentevaluate![CDATA[var settings = new Object();
 settings.minWidth=200 ;
 settings.minHeight=200;
 settings.className=w_blue;
 settings.width=600;
 settings.height=400;
 settings.resizable=true;
 settings.src=/inl/secure/app/page?wicket:interface=classification:0::;
 settings.iframeName=classification;
 settings.cookieId=modal-window-11554571;
 settings.mask=semi-transparent;
 settings.onCloseButton = function() { var 
 wcall=wicketAjaxGet('/inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListenerwicket:behaviorId=0',
  function() { }, function() { });return !wcall;}; 
 
 settings.onClose = function() { var 
 wcall=wicketAjaxGet('/inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListenerwicket:behaviorId=1',
  function() { }, function() { }); };
 Wicket.Window.create(settings).show();
 ]]/evaluate/ajax-response
 *INFO: *Response parsed. Now invoking steps...
 *INFO: *Response processed successfully.
 *INFO: *Invoking post-call handler(s)...
 *INFO: *Calling posponed function...
 
 *INFO: 
 *Initiating Ajax GET request on 
 /inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListenerwicket:behaviorId=0random=0.08781822351433555
 *INFO: *Invoking pre-call handler(s)...
 *INFO: *Received ajax response (130 characters)
 *INFO: *
 ?xml version=1.0 
 encoding=UTF-8?ajax-responseevaluate![CDATA[Wicket.Window.get().close();]]/evaluate/ajax-response
  
 
 *INFO: *Response parsed. Now invoking steps...
 *INFO: *Chanel busy - postponing...
 *INFO: *Response processed successfully.
 *INFO: *Invoking post-call handler(s)...
 *INFO: *Calling posponed function...
 *INFO: *
 *INFO: 
 *Initiating Ajax GET request on 
 /inl/secure/app/page?wicket:interface=:0:panel:reqForm:classification::IBehaviorListenerwicket:behaviorId=1random=
  
 0.9822901756880449
 *INFO: *Invoking pre-call handler(s)...
 *INFO: *Received ajax response (69 characters)
 *INFO: *
 ?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response
 *INFO: *Response parsed. Now invoking steps...
 * INFO: *Response processed successfully.
 *INFO: *Invoking post-call handler(s)...
 
 Note - I'll be leaving work soon and may not be able to provide useful 
 responses until next week.
 
 Thank you for your assistance
 
 On 1/26/07, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 One more thing. Can you please post also the content of javascript
 console? And can is the onSubmit handler of AjaxSubmitButton really
 called?
 
 -Matej
 
 Matej Knopp wrote:
   Nothing apparent. Can you post the markup too?
  
   Shawn Tumey wrote:
   Thank you Matej, I was aware of this, but I still don't see what
 I am
   doing wrong. I believe I have included the relevant code.
  
   With the below code the form does not display the feedback panel
 for
   components that failed validation like it should. If all the fields
   validate, the modalWindow is shown.
  
   What am I missing?
  
   The Wicket Ajax Debug tool shows the ajax request completing
 normally
  
   input type=submit wicket:id=submit/
  
  
   final ModalWindow classification = new
   ModalWindow(classification);
   classification.setPageMapName(classification);
   classification.setPageCreator(new ModalWindow.PageCreator()
   {
   public Page createPage()
   {
   return new 

[Wicket-user] Application layout question: File uploads

2007-01-27 Thread behlma

Hi guys,
I'm just writing a simple portal application, where users can upload
files, i.e. images that will be displayed on their sites, but should not be
accessible for unregistered users, i.e the outer world.

Now I take it it's the common approach to store only the files paths' to the
database and put the files somewhere on the disk. My question is now where
would that be? Would you put them in the /WEB-INF/ dir? If, how can I get
the /web-inf/ path? Or would you put them somewhere else?

Thanks in advance

-- 
View this message in context: 
http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8665057
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Gomianer Premiumaccount schon ab 29,90 Euro

2007-01-27 Thread Goldman Morgenstern Partners
Hallo liebe Finanzfreunde!

Sie suchen Kapitalgeber?

Aufgrund zahlreicher Anfragen teilen wir nochmals unsere Homepage mit.

GoMoPa Finanzforum
www.gomopa.net

Premiumaccounts jetzt ab 29,- Euro.

Ihr Finanzfreunde-Team

- - - GoMoPa - - -
Goldman Morgenstern Partners

In eigener Sache:
http://www.gomopa.net/index.php?con=35


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] external request response - best approach

2007-01-27 Thread De Soca

Hello,

I have a requirement to validate credit card via an external service
(external to our wicket application) then display the approriate response to
the client.

How best to approach this task the wicket way.

1. Should I do a redirect? If so how do I get the response

2. I saw mention here of using a RequestTarger but I can find no such
class.

Of course this whole operation occurs in an HTTPS session.

All suggestions appreciated.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Application layout question: File uploads

2007-01-27 Thread Igor Vaynberg

i wouldnt put them into web-inf as that is overwritten when you redeploy.
put them somewhere else on the harddrive.

-igor


On 1/27/07, behlma [EMAIL PROTECTED] wrote:



Hi guys,
I'm just writing a simple portal application, where users can upload
files, i.e. images that will be displayed on their sites, but should not
be
accessible for unregistered users, i.e the outer world.

Now I take it it's the common approach to store only the files paths' to
the
database and put the files somewhere on the disk. My question is now where
would that be? Would you put them in the /WEB-INF/ dir? If, how can I get
the /web-inf/ path? Or would you put them somewhere else?

Thanks in advance

--
View this message in context:
http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8665057
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg

you need to redirect to another website, and then that website redirects
back to you? when you redirect to it you pass it the url you want to
comeback to?

-igor


On 1/27/07, De Soca [EMAIL PROTECTED] wrote:



Hello,

I have a requirement to validate credit card via an external service
(external to our wicket application) then display the approriate response
to
the client.

How best to approach this task the wicket way.

1. Should I do a redirect? If so how do I get the response

2. I saw mention here of using a RequestTarger but I can find no such
class.

Of course this whole operation occurs in an HTTPS session.

All suggestions appreciated.

Thanks in advance.
--
View this message in context:
http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Application layout question: File uploads

2007-01-27 Thread Eelco Hillenius
Yep. And maybe you could consider using a JCR (Java Content
Repository) like http://jackrabbit.apache.org/ so that you abstract
from where you put it.

Eelco


On 1/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i wouldnt put them into web-inf as that is overwritten when you redeploy.
 put them somewhere else on the harddrive.

 -igor



 On 1/27/07, behlma  [EMAIL PROTECTED] wrote:
 
  Hi guys,
  I'm just writing a simple portal application, where users can upload
  files, i.e. images that will be displayed on their sites, but should not
 be
  accessible for unregistered users, i.e the outer world.
 
  Now I take it it's the common approach to store only the files paths' to
 the
  database and put the files somewhere on the disk. My question is now where
  would that be? Would you put them in the /WEB-INF/ dir? If, how can I get
  the /web-inf/ path? Or would you put them somewhere else?
 
  Thanks in advance
 
  --
  View this message in context:
 http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8665057
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca

No I don't, the call all happens in one request response cycle.

Ideally I would like to perform the call and receive the response within my
wicket submit method.

Thanks.



igor.vaynberg wrote:
 
 you need to redirect to another website, and then that website redirects
 back to you? when you redirect to it you pass it the url you want to
 comeback to?
 
 -igor
 
 
 On 1/27/07, De Soca [EMAIL PROTECTED] wrote:


 Hello,

 I have a requirement to validate credit card via an external service
 (external to our wicket application) then display the approriate response
 to
 the client.

 How best to approach this task the wicket way.

 1. Should I do a redirect? If so how do I get the response

 2. I saw mention here of using a RequestTarger but I can find no such
 class.

 Of course this whole operation occurs in an HTTPS session.

 All suggestions appreciated.

 Thanks in advance.
 --
 View this message in context:
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671764
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg

heh so what exactly is the problem? make the call in your onsubmit... ??

-igor


On 1/27/07, De Soca [EMAIL PROTECTED] wrote:



No I don't, the call all happens in one request response cycle.

Ideally I would like to perform the call and receive the response within
my
wicket submit method.

Thanks.



igor.vaynberg wrote:

 you need to redirect to another website, and then that website redirects
 back to you? when you redirect to it you pass it the url you want to
 comeback to?

 -igor


 On 1/27/07, De Soca [EMAIL PROTECTED] wrote:


 Hello,

 I have a requirement to validate credit card via an external service
 (external to our wicket application) then display the approriate
response
 to
 the client.

 How best to approach this task the wicket way.

 1. Should I do a redirect? If so how do I get the response

 2. I saw mention here of using a RequestTarger but I can find no such
 class.

 Of course this whole operation occurs in an HTTPS session.

 All suggestions appreciated.

 Thanks in advance.
 --
 View this message in context:

http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671764
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca

How would I get the response object in wicket?

Do I do a redirect?

Please elaborate.

Thanks.


igor.vaynberg wrote:
 
 heh so what exactly is the problem? make the call in your onsubmit... ??
 
 -igor
 
 
 On 1/27/07, De Soca [EMAIL PROTECTED] wrote:


 No I don't, the call all happens in one request response cycle.

 Ideally I would like to perform the call and receive the response within
 my
 wicket submit method.

 Thanks.



 igor.vaynberg wrote:
 
  you need to redirect to another website, and then that website
 redirects
  back to you? when you redirect to it you pass it the url you want to
  comeback to?
 
  -igor
 
 
  On 1/27/07, De Soca [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  I have a requirement to validate credit card via an external service
  (external to our wicket application) then display the approriate
 response
  to
  the client.
 
  How best to approach this task the wicket way.
 
  1. Should I do a redirect? If so how do I get the response
 
  2. I saw mention here of using a RequestTarger but I can find no
 such
  class.
 
  Of course this whole operation occurs in an HTTPS session.
 
  All suggestions appreciated.
 
  Thanks in advance.
  --
  View this message in context:
 
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671764
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671789
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg

heh

form/button.onsubmit() {
 boolean validated=validatethecard();
 if (validated==true ) {
  processthedata();
  setresposnepage(new successpage());
 } else {
   error(invalid cc num);
 }
}

-igor


On 1/27/07, De Soca [EMAIL PROTECTED] wrote:



How would I get the response object in wicket?

Do I do a redirect?

Please elaborate.

Thanks.


igor.vaynberg wrote:

 heh so what exactly is the problem? make the call in your onsubmit... ??

 -igor


 On 1/27/07, De Soca [EMAIL PROTECTED] wrote:


 No I don't, the call all happens in one request response cycle.

 Ideally I would like to perform the call and receive the response
within
 my
 wicket submit method.

 Thanks.



 igor.vaynberg wrote:
 
  you need to redirect to another website, and then that website
 redirects
  back to you? when you redirect to it you pass it the url you want to
  comeback to?
 
  -igor
 
 
  On 1/27/07, De Soca [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  I have a requirement to validate credit card via an external service
  (external to our wicket application) then display the approriate
 response
  to
  the client.
 
  How best to approach this task the wicket way.
 
  1. Should I do a redirect? If so how do I get the response
 
  2. I saw mention here of using a RequestTarger but I can find no
 such
  class.
 
  Of course this whole operation occurs in an HTTPS session.
 
  All suggestions appreciated.
 
  Thanks in advance.
  --
  View this message in context:
 

http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys - and earn
cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys - and earn
cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:

http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671764
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671789
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca

Hi Igor,

this is the direction I would like to take:

 snip -


Form form = new Form(this, inputForm);

new ButtonString(form, saveButton) {
@Override
public void onSubmit() {
logger.debug(  need to validate credit card
here .);
   
getPage().getResponse().redirect(https://secure.x.com/process.cgi;);

 how do I get the response object here:
 
}
};

-- snip -

Cheers,
De.


igor.vaynberg wrote:
 
 heh so what exactly is the problem? make the call in your onsubmit... ??
 
 -igor
 
 
 On 1/27/07, De Soca [EMAIL PROTECTED] wrote:


 No I don't, the call all happens in one request response cycle.

 Ideally I would like to perform the call and receive the response within
 my
 wicket submit method.

 Thanks.



 igor.vaynberg wrote:
 
  you need to redirect to another website, and then that website
 redirects
  back to you? when you redirect to it you pass it the url you want to
  comeback to?
 
  -igor
 
 
  On 1/27/07, De Soca [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  I have a requirement to validate credit card via an external service
  (external to our wicket application) then display the approriate
 response
  to
  the client.
 
  How best to approach this task the wicket way.
 
  1. Should I do a redirect? If so how do I get the response
 
  2. I saw mention here of using a RequestTarger but I can find no
 such
  class.
 
  Of course this whole operation occurs in an HTTPS session.
 
  All suggestions appreciated.
 
  Thanks in advance.
  --
  View this message in context:
 
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671764
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671840
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca

In your validatethecard() do have to work with the raw servlet api or are
there wicket objects i can i use.

I guess that is the crux of my question.


igor.vaynberg wrote:
 
 heh
 
 form/button.onsubmit() {
   boolean validated=validatethecard();
   if (validated==true ) {
processthedata();
setresposnepage(new successpage());
   } else {
 error(invalid cc num);
   }
 }
 
 -igor
 
 
 On 1/27/07, De Soca [EMAIL PROTECTED] wrote:


 How would I get the response object in wicket?

 Do I do a redirect?

 Please elaborate.

 Thanks.


 igor.vaynberg wrote:
 
  heh so what exactly is the problem? make the call in your onsubmit...
 ??
 
  -igor
 
 
  On 1/27/07, De Soca [EMAIL PROTECTED] wrote:
 
 
  No I don't, the call all happens in one request response cycle.
 
  Ideally I would like to perform the call and receive the response
 within
  my
  wicket submit method.
 
  Thanks.
 
 
 
  igor.vaynberg wrote:
  
   you need to redirect to another website, and then that website
  redirects
   back to you? when you redirect to it you pass it the url you want to
   comeback to?
  
   -igor
  
  
   On 1/27/07, De Soca [EMAIL PROTECTED] wrote:
  
  
   Hello,
  
   I have a requirement to validate credit card via an external
 service
   (external to our wicket application) then display the approriate
  response
   to
   the client.
  
   How best to approach this task the wicket way.
  
   1. Should I do a redirect? If so how do I get the response
  
   2. I saw mention here of using a RequestTarger but I can find no
  such
   class.
  
   Of course this whole operation occurs in an HTTPS session.
  
   All suggestions appreciated.
  
   Thanks in advance.
   --
   View this message in context:
  
 
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
  share
   your
   opinions on IT  business topics through brief surveys - and earn
 cash
  
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
 share
   your
   opinions on IT  business topics through brief surveys - and earn
 cash
  
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671764
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671789
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg

i really dont understand what you are trying to do

but if you want the raw http request you do

((webrequest)getrequest()).gethttpservletrequest()


-igor


On 1/27/07, De Soca [EMAIL PROTECTED] wrote:



In your validatethecard() do have to work with the raw servlet api or
are
there wicket objects i can i use.

I guess that is the crux of my question.


igor.vaynberg wrote:

 heh

 form/button.onsubmit() {
   boolean validated=validatethecard();
   if (validated==true ) {
processthedata();
setresposnepage(new successpage());
   } else {
 error(invalid cc num);
   }
 }

 -igor


 On 1/27/07, De Soca [EMAIL PROTECTED] wrote:


 How would I get the response object in wicket?

 Do I do a redirect?

 Please elaborate.

 Thanks.


 igor.vaynberg wrote:
 
  heh so what exactly is the problem? make the call in your onsubmit...
 ??
 
  -igor
 
 
  On 1/27/07, De Soca [EMAIL PROTECTED] wrote:
 
 
  No I don't, the call all happens in one request response cycle.
 
  Ideally I would like to perform the call and receive the response
 within
  my
  wicket submit method.
 
  Thanks.
 
 
 
  igor.vaynberg wrote:
  
   you need to redirect to another website, and then that website
  redirects
   back to you? when you redirect to it you pass it the url you want
to
   comeback to?
  
   -igor
  
  
   On 1/27/07, De Soca [EMAIL PROTECTED] wrote:
  
  
   Hello,
  
   I have a requirement to validate credit card via an external
 service
   (external to our wicket application) then display the approriate
  response
   to
   the client.
  
   How best to approach this task the wicket way.
  
   1. Should I do a redirect? If so how do I get the response
  
   2. I saw mention here of using a RequestTarger but I can find
no
  such
   class.
  
   Of course this whole operation occurs in an HTTPS session.
  
   All suggestions appreciated.
  
   Thanks in advance.
   --
   View this message in context:
  
 

http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8668662
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 

-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
  share
   your
   opinions on IT  business topics through brief surveys - and earn
 cash
  
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 

-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
 share
   your
   opinions on IT  business topics through brief surveys - and earn
 cash
  
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 

http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671764
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys - and earn
cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys - and earn
cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:

http://www.nabble.com/external-request-response---best-approach-tf3128605.html#a8671789
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash