[Wicket-user] 优惠代开发票!!

2006-07-10 Thread 刘先生
 

   ¹ó¹«Ë¾¸ºÔðÈË(¾­Àí/²ÆÎñ£©ÄúºÃ£º 
   
ÉîÛÚÊÐãü̩ʵҵÓÐÏÞ¹«Ë¾,ÔÚÈ«¹ú¸÷ÉèÓзֹ«Ë¾(¹ãÖÝ¡¢¶«Ý¸µÈµÈÊÐÓÐ
·Ö¹«Ë¾)¡£Òò¹«Ë¾½øÏî½Ï¶àÏÖÍê³É²»ÁËÿÔÂÏúÊÛ¶î¶È.ÏÖÓÐÒ»²¿·ÖÔöÖµ
·¢Æ±£¨6%£©ÆÕͨ·¢Æ±( ÉÌÆ·ÏúÊÛ¡¢ÆäËü·þÎñ¡¢¹ã¸æ¡¢ÔËÊä¡¢½¨Öþ¹¤³Ì¡¢
»õÔË´úÀí¡¢º£ÔË¡¢²ÍÒû¡¢×âÁÞרÓ÷¢Æ±)µÈµÈ1.5%×óÓÒÓŻݴú¿ª£¬»¹¿É
ÒÔ¸ù¾Ý¹ó¹«Ë¾Ëù¿ªµÄÊýÁ¿´óСÀ´ÉÌÌÖÓŻݵĵãÊý ¡£±¾¹«Ë¾³ÉÁ¢¶àÄêÒ»
Ö±¼á³ÖÒÔ¡°³ÏÐÅ¡±ÎªÖÐÐÄ×÷Ϊ¹«Ë¾µÄºËÐÄ˼Ïë¡¢ÀιÌÊ÷Á¢¹«Ë¾ÐÎÏó¡¢
ÕæÕý×öµ½¡°±Ë´ËºÏ×÷Ò»´Î¡¢±Ø³ÉÓÀ¾ÃÅóÓÑ¡±   
  
   ±¾¹«Ë¾Ö£ÖسÐŵËùÓþø¶ÔÊÇÕæƱ£¡¸üÏ£ÍûÓлú»áÓë¹ó˾ºÏ×÷£¡
   Èç¹ó˾ÔÚ·¢Æ±µÄÕæα·½ÃæÓÐÈκÎÒÉÂÇ»òµ£ÐÄ£¬¿ÉÉÏÍø²éÖ¤»òÎÒ˾ 
   Ö±½ÓÓë¹ó˾ȥ˰Îñ¾ÖµÖ¿ÛºË¶Ô¡£ 

   ´ËÐÅÏ¢³¤ÆÚÓÐЧ£¬ÈçÐë½øÒ»²½Ç¢ÉÌ: 
   ÏêÇéÇëµç£º13926597058
   Áª ϵ ÈË£ºÁõÏÈÉú
   [EMAIL PROTECTED]

   ˳ףÉÌì÷£¡ 

  ÉîÛÚÊÐãü̩ʵҵÓÐÏÞ¹«Ë¾
ÓŻݴú¿ª·¢Æ±£¡


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Panel visibility

2006-07-10 Thread Martijn Dashorst
Just a thought: if you had overridden (?) isVisible on your MyPanel,
then setting it wouldn't have any effect.

Martijn

On 7/7/06, Frank Silbermann [EMAIL PROTECTED] wrote:
 I did not modify the client header, but I don't think it's a caching
 issue, because other widgets are changing as expected on postback.

 I modified my program in a way that should not have made a difference,
 and it seems to work now.  Perhaps I had some sort of programming error
 that's now gone.  Oh, well.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Juergen
 Donnerstag
 Sent: Friday, July 07, 2006 2:28 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Panel visibility

 Are you sure it not a caching issue? Your browser caching the page?
 Did you modify the response header to disable client caching?

 Juergen

 On 7/7/06, Frank Silbermann [EMAIL PROTECTED] wrote:
 
 
  I'm using Wicket 1.2, and I've included on my page a subclass of
  Panel.  In response to an event, I called myPanel.setVisible(false)
  but the panel remains visible.  Is this a known bug, or do I need to
  do something to implement void setVisible(boolean) in my subclass?
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your job

  easier Download IBM WebSphere Application Server v.1.0.1 based on
  Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=1216
  42
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SSL

2006-07-10 Thread Johan Compagner
then you are doing the redirect wrong.How and when do you do the redirect??On 7/7/06, Joe Toth [EMAIL PROTECTED]
 wrote:Weird...I'm only getting the error in Jetty 6 (Beta17). 
wicket.WicketRuntimeException: Internal Error: Could not render error page class wicket.markup.html.pages.InternalErrorPage at wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:109) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76) at wicket.RequestCycle.step(RequestCycle.java

:1000) at wicket.RequestCycle.steps(RequestCycle.java:1034) at wicket.RequestCycle.request(RequestCycle.java:453) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) at javax.servlet.http.HttpServlet.service

(HttpServlet.java:747) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter

(ServletHandler.java:966) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter

(OncePerRequestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:957) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:353) at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java

:126) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119) at org.mortbay.jetty.Server.handle(Server.java:248) at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java

:360) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:614) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:487) at org.mortbay.jetty.HttpParser.parseAvailable

(HttpParser.java:197) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288) at org.mortbay.jetty.nio.SelectChannelConnector$HttpChannelEndPoint.run(SelectChannelConnector.java:805) at org.mortbay.thread.BoundedThreadPool$PoolThread.run

(BoundedThreadPool.java:475)Caused by: wicket.WicketRuntimeException: Already redirecting to 'https://localhost:8443/app
'. Cannot redirect more than once at wicket.protocol.http.BufferedWebResponse.redirect
(BufferedWebResponse.java:92) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:225) at wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60) at wicket.request.compound.DefaultResponseStrategy.respond

(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.respond(RequestCycle.java:905)
 at wicket.RequestCycle.step(RequestCycle.java:975) ... 23 moreOn 7/6/06, 
Johan Compagner 
[EMAIL PROTECTED] wrote:Redirect to a full url or use an ExternalLink (pointing to your own site but then with 
ssl)Do that redirect with a IRequestTarget.I don't know how you do it now but doing a redirect should always be donethrough request targets. 
johanOn 7/6/06, Joe Toth 

[EMAIL PROTECTED] wrote:

How can I implement a way switch over to https?Depending on how the user navigates I need to swich over to https froma form submit.Every time I try a different way to implement thistransparently I receive Caused by: 
wicket.WicketRuntimeException:Already redirecting to '/app/Checkout'. Cannot redirect more thanonceAt first I tried to annotate a class with @RequiredSSL and created anew IResponseStrategy that would test if the request was secure, if
not, WebResponse.redirect to the https version of the requested url.Second I tried to do the same in the constructor of my Base Class forall my pages and throw an AbortException, but I had the same problem.
Any ideas?Also, are there any plans to add a https feature in 2.0 core or extensions?Thanks!Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user

Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing 

[Wicket-user] Several times the same panel on a page

2006-07-10 Thread Alban Duval
Hi all,

I'd like to know if there is a way to add several times the same panel 
on the same page ??
It seems to be impossible because it means to add several times element 
with the same wicket:id... Considering this, I think the question could 
be : could we change dynamically the wicket:id of some elements ??

AD.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Nino Wael

Why dont you just use a listview?

regards Nino

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Alban Duval
Sent:   Mon 10-07-2006 13:30
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:[Wicket-user] Several times the same panel on a page

Hi all,

I'd like to know if there is a way to add several times the same panel 
on the same page ??
It seems to be impossible because it means to add several times element 
with the same wicket:id... Considering this, I think the question could 
be : could we change dynamically the wicket:id of some elements ??

AD.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



winmail.dat
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Alban Duval




What I want to do is to use a panel containing a table, a text field
and a button (allowing to add the content of the text field into the
table using a listview). 
I would like to use such a panel four times on the same page.
The purpose is to avoid coding four times all of those components by
reusing the panel. It would work if I use the panel on different pages,
but not on the same page because of the wicket:id of the components
composing the panel.

Nino Wael a écrit :

  Why dont you just use a listview?

regards Nino

-Original Message-
From:	[EMAIL PROTECTED] on behalf of Alban Duval
Sent:	Mon 10-07-2006 13:30
To:	wicket-user@lists.sourceforge.net
Cc:	
Subject:	[Wicket-user] Several times the same panel on a page

Hi all,

I'd like to know if there is a way to add several times the same panel 
on the same page ??
It seems to be impossible because it means to add several times element 
with the same wicket:id... Considering this, I think the question could 
be : could we change dynamically the wicket:id of some elements ??

AD.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





__ NOD32 1.1651 (20060708) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

  
  


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


__ NOD32 1.1651 (20060708) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

  
  

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


__ NOD32 1.1651 (20060708) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

  





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Martijn Dashorst
You can use the panel four times, but not the instance. As each
component requires to have only 1 parent, you can add it only once.
Also, the model (the state of the component) is bound to the panel, so
setting the panel multiple times to the page will overwrite the state
of previous usages. These are just 2 problems with this type of reuse.

Either you should follow Nino's advise to create them into a listview,
or add each new instance manually to your page

Martijn

On 7/10/06, Alban Duval [EMAIL PROTECTED] wrote:

  What I want to do is to use a panel containing a table, a text field and a
 button (allowing to add the content of the text field into the table using a
 listview).
  I would like to use such a panel four times on the same page.
  The purpose is to avoid coding four times all of those components by
 reusing the panel. It would work if I use the panel on different pages, but
 not on the same page because of the wicket:id of the components composing
 the panel.

  Nino Wael a écrit :

 Why dont you just use a listview? regards Nino -Original Message-
 From: [EMAIL PROTECTED] on behalf
 of Alban Duval Sent: Mon 10-07-2006 13:30 To:
 wicket-user@lists.sourceforge.net Cc: Subject:
 [Wicket-user] Several times the same panel on a page Hi all, I'd like to
 know if there is a way to add several times the same panel on the same page
 ?? It seems to be impossible because it means to add several times element
 with the same wicket:id... Considering this, I think the question could be :
 could we change dynamically the wicket:id of some elements ?? AD.
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user
 mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  __ NOD32 1.1651 (20060708) Information __ This message was
 checked by NOD32 antivirus system. http://www.eset.com
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  __ NOD32 1.1651 (20060708) Information __ This message was
 checked by NOD32 antivirus system. http://www.eset.com
 

  ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  __ NOD32 1.1651 (20060708) Information __ This message was
 checked by NOD32 antivirus system. http://www.eset.com


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


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





-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Johan Compagner
why??Just dospan wicket:id=panel1span wicket:id=panel2span wicket:id=panel3span wicket:id=panel4and in your code:
add(new MyPanel(panel1));add(new MyPanel(panel2));add(new MyPanel(panel3));add(new MyPanel(panel4));johanOn 7/10/06, 
Alban Duval [EMAIL PROTECTED] wrote:



  


What I want to do is to use a panel containing a table, a text field
and a button (allowing to add the content of the text field into the
table using a listview). 
I would like to use such a panel four times on the same page.
The purpose is to avoid coding four times all of those components by
reusing the panel. It would work if I use the panel on different pages,
but not on the same page because of the wicket:id of the components
composing the panel.

Nino Wael a écrit:

  Why dont you just use a listview?

regards Nino

-Original Message-
From:	[EMAIL PROTECTED] on behalf of Alban Duval
Sent:	Mon 10-07-2006 13:30
To:	wicket-user@lists.sourceforge.net
Cc:	
Subject:	[Wicket-user] Several times the same panel on a page

Hi all,

I'd like to know if there is a way to add several times the same panel 
on the same page ??
It seems to be impossible because it means to add several times element 
with the same wicket:id... Considering this, I think the question could 
be : could we change dynamically the wicket:id of some elements ??

AD.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

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





__ NOD32 1.1651 (20060708) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

  
  

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642



__ NOD32 1.1651 (20060708) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

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


__ NOD32 1.1651 (20060708) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

  





-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] introducing qwicket

2006-07-10 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

I just uploaded the svn and website for my new project qwicket.  Qwicket
is a quickstart application that will produce the skeleton of a
spring+hibernate+wicket project.  I've said a bit more about it at
http://www.antwerkz.com/wp/?p=1006 and the official project site is at
http://qwicket.sf.net.  I had been planning on a Swing/JWS interface
like the blog entry says, but after talking to igor he's convinced me to
make it a web app as well.  Hopefully this will help a lot of you with
your wicket projects.  Feedback is always welcome.

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Skype : evanchooly
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFEslrOJnQfEGuJ90MRA4VeAJ9hQdphC+2xjammvFonRGI9u3syhgCeOu3n
EwhUIxHciN3icHdvmapIB6U=
=sIqV
-END PGP SIGNATURE-


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Johan Compagner
use a listview if you want repeating stuffBut what do you mean exactly with the same panel?The same instance? That is not possible. A instance can only be used once in a page.You can add more instances of the panel to your page. But then also the wicket:id's don't have to be the same or something
You can give the different names.johanOn 7/10/06, Alban Duval [EMAIL PROTECTED] wrote:
Hi all,I'd like to know if there is a way to add several times the same panel
on the same page ??It seems to be impossible because it means to add several times elementwith the same wicket:id... Considering this, I think the question couldbe : could we change dynamically the wicket:id of some elements ??
AD.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SSL

2006-07-10 Thread [EMAIL PROTECTED] Imam
Hi,I had a similar problemI decided not to use that RequiredSSL method.Instead i maintain an array of page classes that require https and used the following code. It worked fine for me. Hope it helps you.
protected IResponseStrategy newResponseStrategy() {  return new IResponseStrategy() {   @SuppressWarnings(unchecked)   public void respond( RequestCycle requestCycle )
   {IRequestTarget requestTarget = requestCycle.getRequestTarget();if( requestTarget != null ) { Application.get().logResponseTarget( requestTarget );
 WebRequest webRequest = (WebRequest) requestCycle.getRequest(); WebResponse webResponse = (WebResponse) requestCycle   .getResponse();
 HttpServletRequest httpServletRequest = webRequest   .getHttpServletRequest(); Class pageClass = null; if( requestTarget instanceof IPageRequestTarget ) {
   IPageRequestTarget pageTarget = (IPageRequestTarget) requestTarget;  pageClass = pageTarget.getPage().getClass(); }
 else if( requestTarget instanceof IBookmarkablePageRequestTarget ) {  IBookmarkablePageRequestTarget bookmarkableTarget = (IBookmarkablePageRequestTarget) requestTarget;
  pageClass = bookmarkableTarget.getPageClass(); } boolean isSecurityRequired = false; if( pageClass != null ) {  for( int i = 0; i  
secureClasses.length !isSecurityRequired; i++ ) {   isSecurityRequired = secureClasses[i] .isAssignableFrom( pageClass );
  } }  if( pageClass != null  !httpServletRequest.isSecure()isSecurityRequired ) {
  StringBuffer url = "" StringBuffer( https://+ httpServletRequest.getServerName() );  url.append( : + getSslPortNumber() );
  String q = RequestCycle.get().urlFor( requestTarget ).toString();  url.append( q );  webResponse.redirect
( url.toString() ); } else if( httpServletRequest.isSecure()  !isSecurityRequired ) {  StringBuffer url = "" StringBuffer( http://
+ httpServletRequest.getServerName() );  url.append( : + getNormalPortNumber() );  String q = RequestCycle.get().urlFor( requestTarget )
.toString();  url.append( q );  webResponse.redirect( url.toString() ); } else {  
requestTarget.respond( requestCycle ); }   }  }; }Shams.On 7/10/06, 
Johan Compagner [EMAIL PROTECTED] wrote:
then you are doing the redirect wrong.How and when do you do the redirect??On 7/7/06, 
Joe Toth [EMAIL PROTECTED]
 wrote:Weird...I'm only getting the error in Jetty 6 (Beta17). 

wicket.WicketRuntimeException: Internal Error: Could not render error page class wicket.markup.html.pages.InternalErrorPage at wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:109) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76) at wicket.RequestCycle.step(RequestCycle.java


:1000) at wicket.RequestCycle.steps(RequestCycle.java:1034) at wicket.RequestCycle.request(RequestCycle.java:453) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) at javax.servlet.http.HttpServlet.service


(HttpServlet.java:747) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter


(ServletHandler.java:966) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter


(OncePerRequestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:957) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:353) at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java


:126) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119) at org.mortbay.jetty.Server.handle(Server.java:248) at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java


:360) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:614) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:487) at org.mortbay.jetty.HttpParser.parseAvailable


(HttpParser.java:197) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288) at org.mortbay.jetty.nio.SelectChannelConnector$HttpChannelEndPoint.run(SelectChannelConnector.java:805) at org.mortbay.thread.BoundedThreadPool$PoolThread.run


(BoundedThreadPool.java:475)Caused by: wicket.WicketRuntimeException: Already redirecting to 'https://localhost:8443/app
'. Cannot redirect more than once at wicket.protocol.http.BufferedWebResponse.redirect
(BufferedWebResponse.java:92) at 

Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Bruno Borges
It's just like in JFC Swing.You can't add the same JButton's instance into several JPanels... ;)[]'sOn 7/10/06, Johan Compagner 
[EMAIL PROTECTED] wrote:use a listview if you want repeating stuff
But what do you mean exactly with the same panel?The same instance? That is not possible. A instance can only be used once in a page.You can add more instances of the panel to your page. But then also the wicket:id's don't have to be the same or something
You can give the different names.johanOn 7/10/06, Alban Duval
 [EMAIL PROTECTED] wrote:
Hi all,I'd like to know if there is a way to add several times the same panel
on the same page ??It seems to be impossible because it means to add several times elementwith the same wicket:id... Considering this, I think the question couldbe : could we change dynamically the wicket:id of some elements ??
AD.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-10 Thread Vincent Jenks
OK, that definitely helped...but

Results :
Tests run: 410, Failures: 0, Errors: 1, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 1 minute 22 seconds
[INFO] Finished at: Mon Jul 10 13:48:34 MDT 2006
[INFO] Final Memory: 7M/35M
[INFO] 

On 7/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 looks like their repo servers are overloaded -- too popular for their own
 good

 try this:

 http://www.nabble.com/new-maven-repo-available-with-snapshots-tf1851211.html#a5054042

 -Igor



 On 7/10/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  No such luck - that didn't work any better.
 
  when doing 'mvn install' in the top-level WICKET_1_2 directory I get this
 error:
 
  Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
 
 default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom
  [INFO]
 
  [ERROR] BUILD ERROR
  [INFO]
 
  [INFO] Error building POM (may not be this project's POM).
 
 
  Project ID: org.codehaus.plexus:plexus-container-default
 
  Reason: Error getting POM for
 'org.codehaus.plexus:plexus-container-default' fro
  m the repository: Error transferring file
 
 org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-8
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots
 (http://svn.apache.org/maven-snapshot-repository ),
snapshots (http://snapshots.maven.codehaus.org/maven2)
 
  So, just for the sake of completeness I cd'd into the lower 'wicket'
  directory and ran 'mvn install' and got this:
 
  [INFO]
 
  [ERROR] BUILD ERROR
  [INFO]
 
  [INFO] Failed to resolve artifact.
 
  Error transferring file
 
 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2 )
 
 
  Caused by I/O exception: Server returned HTTP response code: 503 for URL:
 http:/
 
 /repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven
  -surefire-plugin-2.2.jar.sha1
 
  Sounds like it might be better in concept than Ant but you run the
  risk of not being able to download dependencies - not sure I like the
  idea of relying on an internet connection for them.
 
  Anyhow...no closer than I was before.
 
  Any ideas?
 
  On 7/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   thats what i understood from martijn. the problem is that there is a
 parent
   pom file that all other projects inherit from, so that means that parent
 pom
   has to be installed in the maven repo in order for other projects to
 find it
   when you try to build
  
   so what i would do is
  
  
   cd WICKET_1_2
   mvn install  (possibly optional if you have the whole thing checked
 out)
  
   cd wicket
   mvn install
  
   and you should be good to go
  
   -Igor
  
  
  
  
  
   On 7/7/06, V. Jenks [EMAIL PROTECTED] wrote:
So, if I check out all projects at
   
  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
   I
should be able to build them w/ maven, as you described before?
   
Igor Vaynberg wrote:
 svn co

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
   will
 give you the 1.2 release

 maven doesnt work out of the box because of the new build thing
 martijn is trying where you need to have a parent pom installed
 first
 so its a more tedious process unless you check out the entire folder
 that contains all the projects.

 -Igor


 On 7/7/06, *Vincent Jenks*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Ha!  It ran w/o the exception!  It would have been nice to get
   around
 the logging another way but I guess I'll take what I can get at
 this
 point.

 My last concern is - is 1.2.1.rc1 fit for production - because
 this
 site is *already* in production and I'm hesitant to throw a
   relatively
 unstable version of wicket into it.

 Could someone help me figure out how to build the 1.2 final
 branch
 w/o errors?

 Thanks!

 On 7/7/06, Vincent Jenks  [EMAIL PROTECTED]
 mailto:[EMAIL 

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-10 Thread Vincent Jenks
Beautiful, it all built and it works in the app.

Thanks Igor!

On 7/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 mvn install -Dmaven.test.skip=true


 -Igor


 On 7/10/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  OK, that definitely helped...but
 
  Results :
  Tests run: 410, Failures: 0, Errors: 1, Skipped: 0
 
  [INFO]
 
  [ERROR] BUILD FAILURE
  [INFO]
 
  [INFO] There are test failures.
  [INFO]
 
  [INFO] For more information, run Maven with the -e switch
  [INFO]
 
  [INFO] Total time: 1 minute 22 seconds
  [INFO] Finished at: Mon Jul 10 13:48:34 MDT 2006
  [INFO] Final Memory: 7M/35M
  [INFO]
 
 
  On 7/10/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   looks like their repo servers are overloaded -- too popular for their
 own
   good
  
   try this:
  
  
 http://www.nabble.com/new-maven-repo-available-with-snapshots-tf1851211.html#a5054042
  
   -Igor
  
  
  
   On 7/10/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
No such luck - that didn't work any better.
   
when doing 'mvn install' in the top-level WICKET_1_2 directory I get
 this
   error:
   
Downloading:
  
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
   
  
 default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom
[INFO]
  
 
[ERROR] BUILD ERROR
[INFO]
  
 
[INFO] Error building POM (may not be this project's POM).
   
   
Project ID:
 org.codehaus.plexus:plexus-container-default
   
Reason: Error getting POM for
   'org.codehaus.plexus:plexus-container-default' fro
m the repository: Error transferring file
   
  
 org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-8
   
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots
   (http://svn.apache.org/maven-snapshot-repository ),
  snapshots
 (http://snapshots.maven.codehaus.org/maven2)
   
So, just for the sake of completeness I cd'd into the lower 'wicket'
directory and ran 'mvn install' and got this:
   
[INFO]
  
 
[ERROR] BUILD ERROR
[INFO]
  
 
[INFO] Failed to resolve artifact.
   
Error transferring file
   
  
 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2
   
from the specified remote repositories:
  central (http://repo1.maven.org/maven2 )
   
   
Caused by I/O exception: Server returned HTTP response code: 503 for
 URL:
   http:/
   
  
 /repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven
-surefire-plugin-2.2.jar.sha1
   
Sounds like it might be better in concept than Ant but you run the
risk of not being able to download dependencies - not sure I like the
idea of relying on an internet connection for them.
   
Anyhow...no closer than I was before.
   
Any ideas?
   
On 7/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 thats what i understood from martijn. the problem is that there is a
   parent
 pom file that all other projects inherit from, so that means that
 parent
   pom
 has to be installed in the maven repo in order for other projects to
   find it
 when you try to build

 so what i would do is


 cd WICKET_1_2
 mvn install  (possibly optional if you have the whole thing
 checked
   out)

 cd wicket
 mvn install

 and you should be good to go

 -Igor





 On 7/7/06, V. Jenks [EMAIL PROTECTED] wrote:
  So, if I check out all projects at
 

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/
  

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
 I
  should be able to build them w/ maven, as you described before?
 
  Igor Vaynberg wrote:
   svn co
  

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
 will
   give you the 1.2 release
  
   maven doesnt work out of the box because of the new build thing
   martijn is trying where you need to have a parent pom installed
   first
   so its a more tedious process unless you check out the entire
 folder
   that contains all the projects.
  
   -Igor
  
  
   On 7/7/06, *Vincent Jenks*  [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
  
   Ha!  It ran w/o the exception!  It would 

[Wicket-user] Is it possible to abort a request?

2006-07-10 Thread Adam Smyczek
Hi All,

This is probably a simple question, but is it possible to abort a  
request in e.g. onBeginRequest() method of WebRequestCycle and return  
an empty response?

Adam



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is it possible to abort a request?

2006-07-10 Thread Eelco Hillenius
Yep. Look at AbortException and subclasses. You might be looking for
AbortWithHttpStatusException.

Eelco



On 7/10/06, Adam Smyczek [EMAIL PROTECTED] wrote:
 Hi All,

 This is probably a simple question, but is it possible to abort a
 request in e.g. onBeginRequest() method of WebRequestCycle and return
 an empty response?

 Adam



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user