Re: [Wicket-user] how to abort the xmlhttprequest

2007-01-28 Thread Prashant Khanal
Rather than firing new threads for each ajax
operation, wouldn't it be nice that wicket itself
handles each ajax operation in separate threads.
Or there must be some mechanism to allow user to abort
the request.

Anyway i will stick to your idea for now.
--- Johan Compagner [EMAIL PROTECTED] wrote:

 just fire off a new thread or runnable (using a
 threadpool)
 and then connect  that thread to a session so that
 you can poll for it
 when it is finished.
 Then you also can say, this takes to long and set a
 boolean so that the
 worker thread does do a terminate as soon as
 possible
 
 johan
 
 
 On 1/24/07, Prashant Khanal [EMAIL PROTECTED]
 wrote:
 
  How to use that in a wicket. Can u explain it a
 bit
  more.
  --- Nino Wael [EMAIL PROTECTED] wrote:
 
   Why not use a worker thread?
  
   -Original Message-
   From: [EMAIL PROTECTED]
  
 [mailto:[EMAIL PROTECTED]
   On Behalf Of Prashant Khanal
   Sent: 23. januar 2007 04:41
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] how to abort the
   xmlhttprequest
  
   Ok the main problem is that i want to include
 some
   timeout mechanism for ajax operation and to
 abort
   the
   request in case it takes considerable time.
   As can be done with XMLHttpRequest using
 setTimeOut,
   is there any way that i can achive this in
 wicket.
  
   So the main reason to cancel is for those ajax
   operation that takes awful long time.
  
   --- Nino Wael [EMAIL PROTECTED] wrote:
  
Why do you need to cancel it?
   
   
-Original Message-
From:
 [EMAIL PROTECTED]
   
 [mailto:[EMAIL PROTECTED]
On Behalf Of Prashant Khanal
Sent: 22. januar 2007 12:09
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] how to abort the
xmlhttprequest
   
Hello all,
Is there any way to abort the xmlhttprequest
 in
wicket. As XMLHttpRequest object has got
 abort()
method to abort the request. Can it be used in
wicket.
   
   
   
   
  
 
 


We won't tell. Get more on shows you hate to
 love
(and love to hate): Yahoo! TV's Guilty
 Pleasures
list.
http://tv.yahoo.com/collections/265
   
   
  
 

-
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
   
  
  
  
  
  
 
 


   Don't get soaked.  Take a quick peak at the
 forecast
   with the Yahoo! Search weather shortcut.
  
 http://tools.search.yahoo.com/shortcuts/#loc_weather
  
  
 

-
   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
  
 
 
 
 
 
 


  Never miss an email again!
  Yahoo! Toolbar alerts you the instant new Mail
 arrives.
 
=== message truncated ===

[Wicket-user] problem in displaying the html formatted text with rendering

2007-01-28 Thread Prashant Khanal
hello all,
I want to load html formatted text to the table cell
with rendering of html markup.
Suppose the html formatted text is stored in the
database in this format:

ul
lione/li
litwo/li
/ul
First linebr /
second line

My problem is i didnt find any way to load this text
such that it is loaded rendered.


 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.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-28 Thread behlma

Thank you guys, much appreciated.



Eelco Hillenius wrote:
 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Application-layout-question%3A-File-uploads-tf3127417.html#a8674118
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] getObjectAsString always empty in 1.2.3

2007-01-28 Thread kurt heston
Three weeks ago I entered a Jira issue (198) for this problem.  Did I
enter it in the right place?

I'm convinced I'm using the RequestCycle in an ill-prescribed way and
it's causing the problem.  However, I can't find any postings or other
doco that say I should be doing it another way.  Suggestions?


Johan Compagner wrote:
 if not make a jira issue:

 http://issues.apache.org/jira/browse/WICKET

 and point us to the jira number.

 johan


 On 10/31/06, *kurt heston* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Sure.  Didn't know I could attach a web archive (it wouldn't let me
 attach a zip).


 Johan Compagner wrote:
  can't you put in in a quickstart.war so that we can directly run it?
 
  joahn
 
 
  On 10/30/06, *kurt heston*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  I've attached a test case I wrote.  It works fine until I
 upgrade
  the jars.
 
  kurt heston wrote:
   None of my Forms work after upgrading from 1.2.rc3.  Can
 anyone give
   me a clue what's wrong?  No error is thrown, it's just
 that NONE
  of my
   form field values are anything other than an empty string.
  
   Johan Compagner wrote:
   that seems to be the error then.
   What is the full stacktrace of that error?
  
   johan
  
  
   On 10/23/06, *kurt heston*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
  
   Is this normal behavior or a good place to start chasing
  down my
   issue:
  
   java.lang.NoSuchFieldException: username
  
   kurt heston wrote:
Something changed about how I'm supposed to override
   WebRequestCycle.
This is where my values are disappearing.  Reading
 up on
  it now...
   
Igor Vaynberg wrote:
   
yes you are too vague, and another problem is that
 this
  list
   has been
down because of sf.net http://sf.net
 http://sf.net http://sf.net
  http://sf.net
http://sf.net for a while.
   
-Igor
   
   
On 10/2/06, * kurt heston* 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
   
Am I being too vague here to get an answer?  Do I
  need to
   post my
code?
   
kurt heston wrote:
 All I did was switch from wicket-1.2-rc3.jar to
   wicket-1.2.2.jar
and my
 SignIn page, adapted from  Juergen's code,
 stopped
   working.  The
fields
 are always an empty string.

 What did I miss in the release notes?


   
  
 
 -

 
  
 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
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
  
   
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 

Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-28 Thread nilo.de.roock

( I certainly did not imply that everything needs tons of classes, but as you
well know Java is a rather verbose language. I don't imply anything in
e-mail. If I want to say something I write it explicitly. )

Back to Wicket / Groovy. I still have to find my way around here, I suppose,
can you help me finding the Groovy integration example project?

- nilo


Juergen Donnerstag wrote:
 
 More wasnt need to integrate Groovy. Why does everything need tons of
 classes?
 I know for sure that an example existed in one of the example projects.
 
 Juergen
 
 On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:

 Is it correct that the groovy integration contribution consists of
 - GroovyClassResolver.java
 - GroovyWarClassLoader.java ?
 You think it still works... no testset, I suppose. What else is there
 besides some code?
 Thanks
 - nilo


 Eelco Hillenius wrote:
 
  I think it should still work. You can report bugs if you find them
  (preferably fixing them if you can). If there is interest (you) we can
  at least take a quick look in case problems arise, but there is a fair
  chance this integration project still just works.
 
  Eelco
 
 
  On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:
 
  I won't mind investing time to acquire in-depth Wicket source
 knowledge,
  but
  I am not sure yet if I feel the same way about Groovy. I 'll have a
 look
  at
  the Wicket-Groovy integration source over the weekend first. I'll get
  back
  on this.
  - nilo de roock
 
 
  Martijn Dashorst wrote:
  
   Nobody is maintaining it. So you can step up and integrate Groovy
 1.0
   into wicket 1.2, 1.x or 2.x (or any combination of that).
  
   Grooyv interest is pretty low here, but might catch up if someone
 goes
   the extra mile to revitalize the integration.
  
   Martijn
  
   On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:
  
   I was hoping to be able to use Groovy ( or any other scripting
  language )
   with Wicket but I just read...
  
... End of line. until someone actually uses it, this project
 will
  not
   be
   supported any further. It is here to proove that it can be done. If
  you
   want
   to use and support it, send an email about it to one of the mailing
   lists.
   ...
  
   on the Wicket-stuff site.
  
   So Groovy is no longer supported? ( Yes, I can read..., but ) just
  want
   to
   make sure. I did a Groovy project and really liked the language.
  
   -nilo de roock
  
  
   --
   View this message in context:
  
 
 http://www.nabble.com/-Wicket-user--Groovy-integration--Scripting-languages-tf3121629.html#a8648966
   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
  
  
  
   --
   Vote for Wicket at the
   http://www.thebeststuffintheworld.com/vote_for/wicket
   Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
   http://wicketframework.org
  
  
 
 -
   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/-Wicket-user--Groovy-integration--Scripting-languages-tf3121629.html#a8650014
  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
 
 

[Wicket-user] cd app site is down

2007-01-28 Thread nilo.de.roock

don't know who maintains the site but it is down...

http://www.wicket-library.com/wicket-contrib-examples/

javax.servlet.ServletException: Servlet.init() for servlet cdapp threw
exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

- nilo
-- 
View this message in context: 
http://www.nabble.com/-Wicket-user--cd-app-site-is-down-tf3130890.html#a8674896
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] in-progress indicator

2007-01-28 Thread Ivo van Dongen

Hi,

We're adding some Ajax support to our pages and some of the components can
take a long time to load. To the user it is not clear if anything is
happening so we want to add a sign that a request is in progress, something
like an animated gif. This should pop-up on each XMLhttpRequest and
disappear when the call is completed. What would be a good way to accomplish
this?

Thanks in advance,
Ivo van Dongen
-
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] in-progress indicator

2007-01-28 Thread Carfield Yim
I personally think gmail presentation is simple and user friendly

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 Hi,

 We're adding some Ajax support to our pages and some of the components can
 take a long time to load. To the user it is not clear if anything is
 happening so we want to add a sign that a request is in progress, something
 like an animated gif. This should pop-up on each XMLhttpRequest and
 disappear when the call is completed. What would be a good way to accomplish
 this?

 Thanks in advance,
 Ivo van Dongen

 -
 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-28 Thread Carfield Yim
Are you refer to something like verisign payflow pro API? For me I
will just have a form and open an HTTP connection at onSubmit() method
just like the example they've given.

On 1/28/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] in-progress indicator

2007-01-28 Thread Ivo van Dongen

I agree, but what I meant to ask is how to go about this? I thought of using
an AjaxCallDecorator, but that would mean that it must be added to each
component that makes an ajax call. I was wondering if somebody had an easier
idea.

On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:


I personally think gmail presentation is simple and user friendly

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 Hi,

 We're adding some Ajax support to our pages and some of the components
can
 take a long time to load. To the user it is not clear if anything is
 happening so we want to add a sign that a request is in progress,
something
 like an animated gif. This should pop-up on each XMLhttpRequest and
 disappear when the call is completed. What would be a good way to
accomplish
 this?

 Thanks in advance,
 Ivo van Dongen


-
 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-28 Thread De Soca

I realized that was probably the easiest option.

Thanks.


Carfield Yim-2 wrote:
 
 Are you refer to something like verisign payflow pro API? For me I
 will just have a form and open an HTTP connection at onSubmit() method
 just like the example they've given.
 
 On 1/28/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#a8675330
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] in-progress indicator

2007-01-28 Thread Carfield Yim
Sorry I misunderstand your question, I don't know about that. May be
you can see how wicket implement the AJAX DEBUG link?

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 I agree, but what I meant to ask is how to go about this? I thought of using
 an AjaxCallDecorator, but that would mean that it must be added to each
 component that makes an ajax call. I was wondering if somebody had an easier
 idea.


 On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:
  I personally think gmail presentation is simple and user friendly
 
  On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
   Hi,
  
   We're adding some Ajax support to our pages and some of the components
 can
   take a long time to load. To the user it is not clear if anything is
   happening so we want to add a sign that a request is in progress,
 something
   like an animated gif. This should pop-up on each XMLhttpRequest and
   disappear when the call is completed. What would be a good way to
 accomplish
   this?
  
   Thanks in advance,
   Ivo van Dongen
  
  
 -
   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




-
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] in-progress indicator

2007-01-28 Thread Martijn Dashorst
We have an AjaxIndicatingLink (or something similarly named) component
that displays an indicator next to the link. I believe it is in the
extensions project. You can take that and use it directly or use it to
add the desired functionality to your own components.

Martijn

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 I agree, but what I meant to ask is how to go about this? I thought of using
 an AjaxCallDecorator, but that would mean that it must be added to each
 component that makes an ajax call. I was wondering if somebody had an easier
 idea.


 On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:
  I personally think gmail presentation is simple and user friendly
 
  On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
   Hi,
  
   We're adding some Ajax support to our pages and some of the components
 can
   take a long time to load. To the user it is not clear if anything is
   happening so we want to add a sign that a request is in progress,
 something
   like an animated gif. This should pop-up on each XMLhttpRequest and
   disappear when the call is completed. What would be a good way to
 accomplish
   this?
  
   Thanks in advance,
   Ivo van Dongen
  
  
 -
   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





-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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] Preserve value of TextField on Ajax action

2007-01-28 Thread Dominik Roblek
Hi all,

I have a form with a TextField component and a DropDownChoice
component. The DropDownChoice component has an
AjaxFormComponentUpdatingBehavior(onchange) behavior added.

What I would like to do is to change the color of the text in the
TextField component whenever a DropDownChoice component selection
changes. Everything works fine except of that the text in the
TextField component is reseted to an empty string (that is inital
value) each time the TextField component is added to AjaxRequestTarget
parameter in onUpdate(AjaxRequestTarget) method.

How to preserve the text value in TextField component and only change
the color of the text?

Here is a relevant code snippet:
---
final TextField textField = new TextField(categoryName,
new PropertyModel(categoryModel, name));
textField.setOutputMarkupId(true);
textField.add(new AttributeModifier(style, true, new Model() {
public Object getObject(Component component) {
if (category.getType() == CategoryType.HIGH)
return color:blue;;
else if (category.getType() == CategoryType.LOW)
return color:red;;
else
return null;
}
}));
add(textField);

DropDownChoice dropDownChoice = new DropDownChoice(categoryType,
new PropertyModel(categoryModel, type),
Arrays.asList(CategoryType.values()),
new CategoryTypeChoiceRenderer());
dropDownChoice.add(
new AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget target) {
target.addComponent(textField);
}
});
add(dropDownChoice);
---

Thanks,
Dominik

-
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] in-progress indicator

2007-01-28 Thread Ivo van Dongen

Thanks, works like a charm! I didn't find a tabbed panel variant that uses
the indicating links by the way. I've added it below, perhaps someone finds
it usefull.

package org.webical.web.components.ajax.tabs;

import java.util.List;

import wicket.ajax.AjaxRequestTarget;
import wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
import wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel;
import wicket.markup.html.WebMarkupContainer;

/**
* Adds indicating behavior to the tabbed panel
* @author ivo
*
*/
public class IndicatingAjaxTabbedPanel extends AjaxTabbedPanel {
   private static final long serialVersionUID = 1L;

   /**
* @param id the components id
* @param tabs the tabs to show
*/
   public IndicatingAjaxTabbedPanel(String id, List tabs) {
   super(id, tabs);
   }

   /**
* Adds an IndicatingAjaxLink
* @see wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel#newLink(
java.lang.String, int)
*/
   @Override
   protected WebMarkupContainer newLink(String linkId, final int index) {

   return new IndicatingAjaxLink(linkId) {
   private static final long serialVersionUID = 1L;

   /**
* Copied from code
wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel/code
* @see wicket.ajax.markup.html.AjaxLink#onClick(
wicket.ajax.AjaxRequestTarget)
*/
   @Override
   public void onClick(AjaxRequestTarget target) {
   setSelectedTab(index);

   if(target != null) {
   target.addComponent(IndicatingAjaxTabbedPanel.this);
   }

   onAjaxUpdate(target);
   }

   };

   }
}

On 1/28/07, Martijn Dashorst [EMAIL PROTECTED] wrote:


We have an AjaxIndicatingLink (or something similarly named) component
that displays an indicator next to the link. I believe it is in the
extensions project. You can take that and use it directly or use it to
add the desired functionality to your own components.

Martijn

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
 I agree, but what I meant to ask is how to go about this? I thought of
using
 an AjaxCallDecorator, but that would mean that it must be added to each
 component that makes an ajax call. I was wondering if somebody had an
easier
 idea.


 On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:
  I personally think gmail presentation is simple and user friendly
 
  On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
   Hi,
  
   We're adding some Ajax support to our pages and some of the
components
 can
   take a long time to load. To the user it is not clear if anything is
   happening so we want to add a sign that a request is in progress,
 something
   like an animated gif. This should pop-up on each XMLhttpRequest and
   disappear when the call is completed. What would be a good way to
 accomplish
   this?
  
   Thanks in advance,
   Ivo van Dongen
  
  

-
   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





--
Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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] cd app site is down

2007-01-28 Thread Johan Compagner

can we easily also build the examples automatic and host them on wicket
stuff server?

johan


On 1/28/07, nilo.de.roock [EMAIL PROTECTED] wrote:



don't know who maintains the site but it is down...

http://www.wicket-library.com/wicket-contrib-examples/

javax.servlet.ServletException: Servlet.init() for servlet cdapp threw
exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)

- nilo
--
View this message in context:
http://www.nabble.com/-Wicket-user--cd-app-site-is-down-tf3130890.html#a8674896
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] Groovy integration? Scripting languages

2007-01-28 Thread nilo.de.roock

You were going to say Why does everything need tons of examples?, right?

There are indeed some examples, they are at...
path_to/wicket/contrib/examples/groovy/

Thanks!


Juergen Donnerstag wrote:
 
 More wasnt need to integrate Groovy. Why does everything need tons of
 classes?
 I know for sure that an example existed in one of the example projects.
 
 Juergen
 
 On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:

 Is it correct that the groovy integration contribution consists of
 - GroovyClassResolver.java
 - GroovyWarClassLoader.java ?
 You think it still works... no testset, I suppose. What else is there
 besides some code?
 Thanks
 - nilo


 Eelco Hillenius wrote:
 
  I think it should still work. You can report bugs if you find them
  (preferably fixing them if you can). If there is interest (you) we can
  at least take a quick look in case problems arise, but there is a fair
  chance this integration project still just works.
 
  Eelco
 
 
  On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:
 
  I won't mind investing time to acquire in-depth Wicket source
 knowledge,
  but
  I am not sure yet if I feel the same way about Groovy. I 'll have a
 look
  at
  the Wicket-Groovy integration source over the weekend first. I'll get
  back
  on this.
  - nilo de roock
 
 
  Martijn Dashorst wrote:
  
   Nobody is maintaining it. So you can step up and integrate Groovy
 1.0
   into wicket 1.2, 1.x or 2.x (or any combination of that).
  
   Grooyv interest is pretty low here, but might catch up if someone
 goes
   the extra mile to revitalize the integration.
  
   Martijn
  
   On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:
  
   I was hoping to be able to use Groovy ( or any other scripting
  language )
   with Wicket but I just read...
  
... End of line. until someone actually uses it, this project
 will
  not
   be
   supported any further. It is here to proove that it can be done. If
  you
   want
   to use and support it, send an email about it to one of the mailing
   lists.
   ...
  
   on the Wicket-stuff site.
  
   So Groovy is no longer supported? ( Yes, I can read..., but ) just
  want
   to
   make sure. I did a Groovy project and really liked the language.
  
   -nilo de roock
  
  
   --
   View this message in context:
  
 
 http://www.nabble.com/-Wicket-user--Groovy-integration--Scripting-languages-tf3121629.html#a8648966
   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
  
  
  
   --
   Vote for Wicket at the
   http://www.thebeststuffintheworld.com/vote_for/wicket
   Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
   http://wicketframework.org
  
  
 
 -
   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/-Wicket-user--Groovy-integration--Scripting-languages-tf3121629.html#a8650014
  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
  

Re: [Wicket-user] Preserve value of TextField on Ajax action

2007-01-28 Thread Martijn Dashorst
You don't send the data of the text field back to the server. So
either you add a formcomponent updating behavior to the textfield, so
that the user input is available at the server, or you don't update
the textfield, but manipulate its style directly, see
target.appendJavaScript() for that.

Martijn

On 1/28/07, Dominik Roblek [EMAIL PROTECTED] wrote:
 Hi all,

 I have a form with a TextField component and a DropDownChoice
 component. The DropDownChoice component has an
 AjaxFormComponentUpdatingBehavior(onchange) behavior added.

 What I would like to do is to change the color of the text in the
 TextField component whenever a DropDownChoice component selection
 changes. Everything works fine except of that the text in the
 TextField component is reseted to an empty string (that is inital
 value) each time the TextField component is added to AjaxRequestTarget
 parameter in onUpdate(AjaxRequestTarget) method.

 How to preserve the text value in TextField component and only change
 the color of the text?

 Here is a relevant code snippet:
 ---
 final TextField textField = new TextField(categoryName,
 new PropertyModel(categoryModel, name));
 textField.setOutputMarkupId(true);
 textField.add(new AttributeModifier(style, true, new Model() {
 public Object getObject(Component component) {
 if (category.getType() == CategoryType.HIGH)
 return color:blue;;
 else if (category.getType() == CategoryType.LOW)
 return color:red;;
 else
 return null;
 }
 }));
 add(textField);

 DropDownChoice dropDownChoice = new DropDownChoice(categoryType,
 new PropertyModel(categoryModel, type),
 Arrays.asList(CategoryType.values()),
 new CategoryTypeChoiceRenderer());
 dropDownChoice.add(
 new AjaxFormComponentUpdatingBehavior(onchange) {
 protected void onUpdate(AjaxRequestTarget target) {
 target.addComponent(textField);
 }
 });
 add(dropDownChoice);
 ---

 Thanks,
 Dominik

 -
 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



-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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] problem in displaying the html formatted text with rendering

2007-01-28 Thread Martijn Dashorst
add(new Label(thing, stuffFromDatabase).setEscapeModelStrings(false));

This does pose a possible security risk with cross site scripting/spam
if you allow javascript and such in your database.

Martijn

On 1/28/07, Prashant Khanal [EMAIL PROTECTED] wrote:
 hello all,
 I want to load html formatted text to the table cell
 with rendering of html markup.
 Suppose the html formatted text is stored in the
 database in this format:

 ul
 lione/li
 litwo/li
 /ul
 First linebr /
 second line

 My problem is i didnt find any way to load this text
 such that it is loaded rendered.



 
 Cheap talk?
 Check out Yahoo! Messenger's low PC-to-Phone call rates.
 http://voice.yahoo.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



-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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] how to abort the xmlhttprequest

2007-01-28 Thread Johan Compagner

That would be pretty hard to do..
If we would spawn all ajax request to a thread. What are we then returning
in the normal request thread?
And what are we doing with the result of that second thread? Poll it
ourself?

Maybe we could make a special behavior/request that you can use that sets a
boolean
somewhere without doing anything else (no touching of pages)
and then that boolean can be checked in the running ajax code now and then
and if it is set the ajax will just directly terminate what it is doing.

But in the end it is always you as developer that has to do something.

johan

On 1/28/07, Prashant Khanal [EMAIL PROTECTED] wrote:


Rather than firing new threads for each ajax
operation, wouldn't it be nice that wicket itself
handles each ajax operation in separate threads.
Or there must be some mechanism to allow user to abort
the request.

Anyway i will stick to your idea for now.
--- Johan Compagner [EMAIL PROTECTED] wrote:

 just fire off a new thread or runnable (using a
 threadpool)
 and then connect  that thread to a session so that
 you can poll for it
 when it is finished.
 Then you also can say, this takes to long and set a
 boolean so that the
 worker thread does do a terminate as soon as
 possible

 johan


 On 1/24/07, Prashant Khanal [EMAIL PROTECTED]
 wrote:
 
  How to use that in a wicket. Can u explain it a
 bit
  more.
  --- Nino Wael [EMAIL PROTECTED] wrote:
 
   Why not use a worker thread?
  
   -Original Message-
   From: [EMAIL PROTECTED]
  
 [mailto:[EMAIL PROTECTED]
   On Behalf Of Prashant Khanal
   Sent: 23. januar 2007 04:41
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] how to abort the
   xmlhttprequest
  
   Ok the main problem is that i want to include
 some
   timeout mechanism for ajax operation and to
 abort
   the
   request in case it takes considerable time.
   As can be done with XMLHttpRequest using
 setTimeOut,
   is there any way that i can achive this in
 wicket.
  
   So the main reason to cancel is for those ajax
   operation that takes awful long time.
  
   --- Nino Wael [EMAIL PROTECTED] wrote:
  
Why do you need to cancel it?
   
   
-Original Message-
From:
 [EMAIL PROTECTED]
   
 [mailto:[EMAIL PROTECTED]
On Behalf Of Prashant Khanal
Sent: 22. januar 2007 12:09
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] how to abort the
xmlhttprequest
   
Hello all,
Is there any way to abort the xmlhttprequest
 in
wicket. As XMLHttpRequest object has got
 abort()
method to abort the request. Can it be used in
wicket.
   
   
   
   
  
 
 



We won't tell. Get more on shows you hate to
 love
(and love to hate): Yahoo! TV's Guilty
 Pleasures
list.
http://tv.yahoo.com/collections/265
   
   
  
 

-
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
   
  
  
  
  
  
 
 



   Don't get soaked.  Take a quick peak at the
 forecast
   with the Yahoo! Search weather shortcut.
  
 http://tools.search.yahoo.com/shortcuts/#loc_weather
  
  
 

-
   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 

Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-28 Thread Eelco Hillenius
 There are indeed some examples, they are at...
 path_to/wicket/contrib/examples/groovy/

Oh yeah. I thought it had a separate examples project, but the
examples are actually in the same project
(https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-groovy/src/examples).

We can migrate those to the wicket-contrib-examples project as well.

Eelco

-
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] wicket-bench and the html editor

2007-01-28 Thread Loren Rosen

I use the WTP html editor.


Joni Freeman wrote:
 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-bench-and-the-html-editor-tf3120326.html#a8679648
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] in-progress indicator

2007-01-28 Thread Frank Bille

You are welcome to add it to the wiki :)

Frank

On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:


Thanks, works like a charm! I didn't find a tabbed panel variant that uses
the indicating links by the way. I've added it below, perhaps someone finds
it usefull.

package org.webical.web.components.ajax.tabs ;

import java.util.List;

import wicket.ajax.AjaxRequestTarget;
import wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
import wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel;
import wicket.markup.html.WebMarkupContainer ;

/**
 * Adds indicating behavior to the tabbed panel
 * @author ivo
 *
 */
public class IndicatingAjaxTabbedPanel extends AjaxTabbedPanel {
private static final long serialVersionUID = 1L;

/**
 * @param id the components id
 * @param tabs the tabs to show
 */
public IndicatingAjaxTabbedPanel(String id, List tabs) {
super(id, tabs);
}

/**
 * Adds an IndicatingAjaxLink
 * @see
wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel#newLink(
java.lang.String, int)
 */
@Override
protected WebMarkupContainer newLink(String linkId, final int index) {


return new IndicatingAjaxLink(linkId) {
private static final long serialVersionUID = 1L;

/**
 * Copied from code
wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel /code
 * @see wicket.ajax.markup.html.AjaxLink#onClick(
wicket.ajax.AjaxRequestTarget)
 */
@Override
public void onClick(AjaxRequestTarget target) {
setSelectedTab(index);

if(target != null) {
target.addComponent(IndicatingAjaxTabbedPanel.this);
}

onAjaxUpdate(target);
}

};

}
}

On 1/28/07, Martijn Dashorst  [EMAIL PROTECTED] wrote:

 We have an AjaxIndicatingLink (or something similarly named) component
 that displays an indicator next to the link. I believe it is in the
 extensions project. You can take that and use it directly or use it to
 add the desired functionality to your own components.

 Martijn

 On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
  I agree, but what I meant to ask is how to go about this? I thought of
 using
  an AjaxCallDecorator, but that would mean that it must be added to
 each
  component that makes an ajax call. I was wondering if somebody had an
 easier
  idea.
 
 
  On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:
   I personally think gmail presentation is simple and user friendly
  
   On 1/28/07, Ivo van Dongen [EMAIL PROTECTED] wrote:
Hi,
   
We're adding some Ajax support to our pages and some of the
 components
  can
take a long time to load. To the user it is not clear if anything
 is
happening so we want to add a sign that a request is in progress,
  something
like an animated gif. This should pop-up on each XMLhttpRequest
 and
disappear when the call is completed. What would be a good way to
  accomplish
this?
   
Thanks in advance,
Ivo van Dongen
   
   
 
 -
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
 
 
 


 --
 Vote for Wicket at the
 http://www.thebeststuffintheworld.com/vote_for/wicket
 Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
 http://wicketframework.org


 

Re: [Wicket-user] cd app site is down

2007-01-28 Thread Juergen Donnerstag
It is not down for me.

Juergen

On 1/28/07, Johan Compagner [EMAIL PROTECTED] wrote:
 can we easily also build the examples automatic and host them on wicket
 stuff server?

 johan



 On 1/28/07, nilo.de.roock  [EMAIL PROTECTED] wrote:
 
  don't know who maintains the site but it is down...
 
  http://www.wicket-library.com/wicket-contrib-examples/
 
  javax.servlet.ServletException: Servlet.init() for servlet cdapp threw
  exception
 
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 
  - nilo
  --
  View this message in context:
 http://www.nabble.com/-Wicket-user--cd-app-site-is-down-tf3130890.html#a8674896
  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] [jira] Commented: (WICKET-198) getObjectAsString always empty in 1.2.3

2007-01-28 Thread kurt heston
That worked, Johan.  Thanks for the tip.

I missed that in the doco.  Won't ever forget it now...

Johan Compagner (JIRA) wrote:
 [ 
 https://issues.apache.org/jira/browse/WICKET-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468123
  ] 

 Johan Compagner commented on WICKET-198:
 

 i tested it quickly on 1.3 stream
 and i had to change the web.xml so that the servlet path was not /* but 
 /app/* and then signin did go fine.
 Is that also the case at your place?



   
 getObjectAsString always empty in 1.2.3
 ---

 Key: WICKET-198
 URL: https://issues.apache.org/jira/browse/WICKET-198
 Project: Wicket
  Issue Type: Bug
  Components: wicket
Affects Versions: 1.2.3
 Environment: Java 1.4.2, Tomcat 5.0
Reporter: Kurt Heston
 Attachments: rc3Test.war


 None of my Forms work after upgrading from 1.2.rc3.  Can anyone give me 
 a clue what's wrong?  No error is thrown, it's just that NONE of my form 
 field values are anything other than an empty string.
 

   

-
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] How to let subclassed page contribute to body tag attributes?

2007-01-28 Thread dukejansen

Is there any way to allow inherited page markup to update or contribute to
the body tag's attributes (other than onLoad and onUnload, which seems to be
covered).

Specifically, I'd like to have a single base page which is then subclassed
to provide different page behaviors, and I want to be able to specify the
body class attribute in the subclassed pages' markup.

Using Wicket 1.2.4.

Any tips?
-- 
View this message in context: 
http://www.nabble.com/How-to-let-subclassed-page-contribute-to-body-tag-attributes--tf3133595.html#a8682952
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] How to set a markup ID of a HTML element to javascript

2007-01-28 Thread Carfield Yim
Thanks, just try it today, I have code like:

dateField.setOutputMarkupId(true);
final String javascript=Calendar.setup({ inputField :
\+dateField.getMarkupId()+\, ifFormat : \%d-%b-%Y %H:%M\, button
: \trigger\ });;

However, the ID generated at input field is
main_border_cust_menu_orderSearchForm_startTime_date_textfield but
in the script I get from getMarkupId() is date_textfield, which, is
the wicket:id I've specified.

Am I need to do something else to get the generated ID ?

On 1/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Component c=...
 String javascript=calendar blah=new
 calendar(`+c.getmarkupid()+'`);...)

 new label(script,
 javascript).setescapemodelstrings(false);
 script wicket:id=script/script

 is the easiest way for very simple javascript stings

 there is also PackagedTextTemplate for more complex stings that require
 variable replacement, as well as CssTemplate and JavasScriptTemplate. have a
 look.

 -igor



 On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  I found a datetime picket with is more suitable for my application and
  I would like to integrate that javascript to my application.
 
  I can get the markup id using getMarkId() method of Component. However
  I don't know how to press it to that javascript. I have talk of look
  of
 http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html
  and I wonder can I have similar ${backGroundElementId} at HTML
  template instead of js file?
 
 
 -
  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] How to set a markup ID of a HTML element to javascript

2007-01-28 Thread Igor Vaynberg

in 1.x you cannot call getmarkupid() from the constructor, so you have to
use an attribute modifier with imodel to retrieve the id during render time
once all the components have been linked to their parents

-igor


On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:


Thanks, just try it today, I have code like:

dateField.setOutputMarkupId(true);
final String javascript=Calendar.setup({ inputField :
\+dateField.getMarkupId()+\, ifFormat : \%d-%b-%Y %H:%M\, button
: \trigger\ });;

However, the ID generated at input field is
main_border_cust_menu_orderSearchForm_startTime_date_textfield but
in the script I get from getMarkupId() is date_textfield, which, is
the wicket:id I've specified.

Am I need to do something else to get the generated ID ?

On 1/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Component c=...
 String javascript=calendar blah=new
 calendar(`+c.getmarkupid()+'`);...)

 new label(script,
 javascript).setescapemodelstrings(false);
 script wicket:id=script/script

 is the easiest way for very simple javascript stings

 there is also PackagedTextTemplate for more complex stings that require
 variable replacement, as well as CssTemplate and JavasScriptTemplate.
have a
 look.

 -igor



 On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  I found a datetime picket with is more suitable for my application and
  I would like to integrate that javascript to my application.
 
  I can get the markup id using getMarkId() method of Component. However
  I don't know how to press it to that javascript. I have talk of look
  of

http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html
  and I wonder can I have similar ${backGroundElementId} at HTML
  template instead of js file?
 
 

-
  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

-
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] How to let subclassed page contribute to body tag attributes?

2007-01-28 Thread Eelco Hillenius
Haven't tried it myself, but looking at the code, calling (your web
page).getBodyContainer().getBodyContainer() should get you the 'real'
body container, to which you should be able to add AttributeModifiers.

Eelco


On 1/28/07, dukejansen [EMAIL PROTECTED] wrote:

 Is there any way to allow inherited page markup to update or contribute to
 the body tag's attributes (other than onLoad and onUnload, which seems to be
 covered).

 Specifically, I'd like to have a single base page which is then subclassed
 to provide different page behaviors, and I want to be able to specify the
 body class attribute in the subclassed pages' markup.

 Using Wicket 1.2.4.

 Any tips?
 --
 View this message in context: 
 http://www.nabble.com/How-to-let-subclassed-page-contribute-to-body-tag-attributes--tf3133595.html#a8682952
 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] How to set a markup ID of a HTML element to javascript

2007-01-28 Thread Carfield Yim
Thanks, this work nice

On 1/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 in 1.x you cannot call getmarkupid() from the constructor, so you have to
 use an attribute modifier with imodel to retrieve the id during render time
 once all the components have been linked to their parents

 -igor



 On 1/28/07, Carfield Yim [EMAIL PROTECTED] wrote:
 
  Thanks, just try it today, I have code like:
 
  dateField.setOutputMarkupId(true);
  final String javascript=Calendar.setup({ inputField :
  \+dateField.getMarkupId()+\, ifFormat : \%d-%b-%Y
 %H:%M\, button
  : \trigger\ });;
 
  However, the ID generated at input field is
 
 main_border_cust_menu_orderSearchForm_startTime_date_textfield
 but
  in the script I get from getMarkupId() is date_textfield, which, is
  the wicket:id I've specified.
 
  Am I need to do something else to get the generated ID ?
 
  On 1/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   Component c=...
   String javascript=calendar blah=new
   calendar(`+c.getmarkupid()+'`);...)
  
   new label(script,
   javascript).setescapemodelstrings(false);
   script wicket:id=script/script
  
   is the easiest way for very simple javascript stings
  
   there is also PackagedTextTemplate for more complex stings that require
   variable replacement, as well as CssTemplate and JavasScriptTemplate.
 have a
   look.
  
   -igor
  
  
  
   On 1/26/07, Carfield Yim  [EMAIL PROTECTED] wrote:
   
I found a datetime picket with is more suitable for my application and
I would like to integrate that javascript to my application.
   
I can get the markup id using getMarkId() method of Component. However
I don't know how to press it to that javascript. I have talk of look
of
  
 http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg22608.html
and I wonder can I have similar ${backGroundElementId} at HTML
template instead of js file?
   
   
  
 -
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
 


 -
 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