Re: [Wicket-user] AuthenticatedWebApplication only working when deployed in real server

2006-06-20 Thread Eelco Hillenius
No idea. Most of us (people that I know around here) run their Wicket
apps straight from the IDE. And there's nothing magical going on in
wicket-auth-roles-examples either...

Eelco


On 6/19/06, Stefan Arentz [EMAIL PROTECTED] wrote:
 I have a really odd problem here. I'm working on a simple application
 that is based on the authentication sample from
 wicket-auth-roles-examples. It works fine when I deploy in JBoss, but
 when I either start Jetty by hand from main() (like in the examples)
 or run it from the command line with mvn jetty6:run or jetty6:run-war
 it doesn't work.

 The thing that is happening is that I can submit the SignIn form but
 nothing happens. In my authenticate() I print the username/password
 but they are always empty strings.

 I was thinking of a class loader issue, but the apps works and code
 from both my side and the wicket side is loaded fine, otherwise it
 would not work at all I guess.

 Does anyone have an idea what is going on here? I would really prefer
 to just run my Wicket app from the IDE.

  S.


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



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


Re: [Wicket-user] AuthenticatedWebApplication only working when deployed in real server

2006-06-20 Thread Stefan Arentz
Found it!

The problem is:

   !-- Does not work! --
  servlet-mapping
servlet-namewicket/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping

vs

  !-- Does work fine! --
  servlet-mapping
servlet-namewicket/servlet-name
url-pattern/foo/*/url-pattern
  /servlet-mapping

That took a while to figure out :-/

Eelco told me that this will be solved when the Listener is backported
to 1.2. I might take a stab at that today if I can find some time.

 S.

On 6/19/06, Stefan Arentz [EMAIL PROTECTED] wrote:
 I have a really odd problem here. I'm working on a simple application
 that is based on the authentication sample from
 wicket-auth-roles-examples. It works fine when I deploy in JBoss, but
 when I either start Jetty by hand from main() (like in the examples)
 or run it from the command line with mvn jetty6:run or jetty6:run-war
 it doesn't work.

 The thing that is happening is that I can submit the SignIn form but
 nothing happens. In my authenticate() I print the username/password
 but they are always empty strings.

 I was thinking of a class loader issue, but the apps works and code
 from both my side and the wicket side is loaded fine, otherwise it
 would not work at all I guess.

 Does anyone have an idea what is going on here? I would really prefer
 to just run my Wicket app from the IDE.

  S.



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


Re: [Wicket-user] AuthenticatedWebApplication only working when deployed in real server

2006-06-20 Thread Eelco Hillenius
As far as I understand it, all root mapping problems are solved when
we use the servlet filter we have in 2.0 instead of the wicket servlet
of pre-2.0. It's probably easy to back port, but the only problem is
that it breaks the API in some places (like
WebApplication.getWicketServlet will be replaced by alternatives).
That means we can't put it in the 1.2 branch, but have to wait until
we start working on 1.3 (and we won't do that until we feel we can EOL
1.2).

Eelco



On 6/20/06, Stefan Arentz [EMAIL PROTECTED] wrote:
 Found it!

 The problem is:

!-- Does not work! --
   servlet-mapping
 servlet-namewicket/servlet-name
 url-pattern/*/url-pattern
   /servlet-mapping

 vs

   !-- Does work fine! --
   servlet-mapping
 servlet-namewicket/servlet-name
 url-pattern/foo/*/url-pattern
   /servlet-mapping

 That took a while to figure out :-/

 Eelco told me that this will be solved when the Listener is backported
 to 1.2. I might take a stab at that today if I can find some time.

  S.

 On 6/19/06, Stefan Arentz [EMAIL PROTECTED] wrote:
  I have a really odd problem here. I'm working on a simple application
  that is based on the authentication sample from
  wicket-auth-roles-examples. It works fine when I deploy in JBoss, but
  when I either start Jetty by hand from main() (like in the examples)
  or run it from the command line with mvn jetty6:run or jetty6:run-war
  it doesn't work.
 
  The thing that is happening is that I can submit the SignIn form but
  nothing happens. In my authenticate() I print the username/password
  but they are always empty strings.
 
  I was thinking of a class loader issue, but the apps works and code
  from both my side and the wicket side is loaded fine, otherwise it
  would not work at all I guess.
 
  Does anyone have an idea what is going on here? I would really prefer
  to just run my Wicket app from the IDE.
 
   S.
 


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



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


Re: [Wicket-user] Allow nested components in VelocityPanel

2006-06-20 Thread Eelco Hillenius
I'll look into it tomorrow (going to bed now).

Cheers,

Eelco


On 6/20/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 Hello,

 I'm new  to the  mailing-list, and very  interested in  Wicket.  I
 designed  recently an  application that  generates user  interface
 based on a  RDF schema.  To make it work,  the VelocityPanel needs
 to  not  allow nested  Wicket  components,  ie request  Wicket  to
 process the merged template.

 If you are interested, the patch is in the SF tracker:
 http://sourceforge.net/tracker/index.php?func=detailaid=1485704group_id=119783atid=684977

 However this also requires a change in Wicket core:
 http://sourceforge.net/tracker/index.php?func=detailaid=1485695group_id=119783atid=684977

 I'd be happy to provide updated  patches if there are still issues
 with the  ones submitted.  I  had but limited feedback  until now.
 There's a whole lot of new  possibilities to work with Wicket, and
 «I hope this is the beginning of a long relationship».

 All the best,
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/


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



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


[Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Michiel Korthuis
hi,In wicket.markup.html.form.validation.EmailAddressPatternValidator.java the validation-_expression_ is incorrect.the regular _expression_ reads:^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$
According to this _expression_ the TLD is 2 or 3 characters, but that's incorrect.Nowadays it can exceed the limit of 3 characters (for example: .aero or .travel. Source: 
http://www.iana.org/gtld/gtld.htm ).Michiel
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Frank Bille Jensen
Thats right.. In our company we use the (crazy) regex pattern taken from
http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html



String emailPattern = (?:(?:\\r\\n)?[ \\t])*(?:(?:(?:[^()@,;:\\\.\\[\\] 
\\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t]
+ 
)+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|.|(?:(?:\\r\\n)?[
 \\t]))*\(?:(?:
+ \\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ 
\\t])*(?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:(
+ ?:\\r\\n)?[ 
\\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|.|(?:(?:\\r\\n)?[
 
+ \\t]))*\(?:(?:\\r\\n)?[ \\t])*))*@(?:(?:\\r\\n)?[ 
\\t])*(?:[^()@,;:\\\.\\[\\] \\000-\\0
+ 31]+(?:(?:(?:\\r\\n)?[ 
\\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\\[([^\\[\\]\\r]|.)*\\
+ ](?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ 
\\t])*(?:[^()@,;:\\\.\\[\\] \\000-\\031]+
+ (?:(?:(?:\\r\\n)?[ 
\\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\\[([^\\[\\]\\r]|.)*\\](?:
+ (?:\\r\\n)?[ \\t])*))*|(?:[^()@,;:\\\.\\[\\] 
\\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z
+ 
|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|.|(?:(?:\\r\\n)?[ 
\\t]))*\(?:(?:\\r\\n)
+ ?[ \\t])*)*\\(?:(?:\\r\\n)?[ 
\\t])*(?:@(?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:(?:\\
+ r\\n)?[ 
\\t])+|\\Z|(?=[\\[\()@,;:\\\.\\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\\\.\\[
+ 
\\]]))|\\[([^\\[\\]\\r]|.)*\\](?:(?:\\r\\n)?[ 
\\t])*))*|(?:[^()@,;:\\\.\\[\\] \\000-
+ \\031]+(?:(?:(?:\\r\\n)?[ 
\\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|.|(
+ ?:(?:\\r\\n)?[ \\t]))*\(?:(?:\\r\\n)?[ 
\\t])*)*\\(?:(?:\\r\\n)?[ \\t])*(?:@(?:[^()@,;
+ :\\\.\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ 
\\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\\[([
+ ^\\[\\]\\r]|.)*\\](?:(?:\\r\\n)?[ 
\\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()@,;:\\\
+ .\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ 

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Michiel Korthuis
I am currently working on my graduation(project) @ Topicus with another student (Ronald Hemmink). We are new to Wicket and before we saw the wicket-build-in validator we came up with our own _expression_:^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$)
the Wicket _expression_:^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$almost identical, but 'large TLD compatible' (the pattern in wicket has the argument 'Pattern.CASE_INSENSITIVE
' and therefore they don't need to define the upper-case charcters).your pattern looks a bit too complicated for the job :PMichielOn 6/20/06, 
Frank Bille Jensen [EMAIL PROTECTED] wrote:
Thats right.. In our company we use the (crazy) regex pattern taken fromhttp://www.ex-parrot.com/~pdw/Mail-RFC822-Address.htmlString emailPattern = [...]
Would anyone in the wicket team like to use this as the emailvalidationpattern instead, I would be happy to submit a patch (for both 1.2 or 2.0if thats the case).RegardsFrank BilleAvaleo
On Tue, 2006-06-20 at 10:08 +0200, Michiel Korthuis wrote: hi, In wicket.markup.html.form.validation.EmailAddressPatternValidator.java the validation-_expression_ is incorrect.
 the regular _expression_ reads: ^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\ \.[a-z]{2,3})$ According to this _expression_ the TLD is 2 or 3 characters, but that's incorrect.
 Nowadays it can exceed the limit of 3 characters (for example: .aero or .travel. Source: http://www.iana.org/gtld/gtld.htm ).
 Michiel ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Frank Bille Jensen
Yeah I know. The regex is really frightening to most people (my self
included), but AFAIK it should actually be the only one which truly
validates the full RFC; for what it's worth.

Regards
Frank Bille
Avaleo

On Tue, 2006-06-20 at 10:37 +0200, Michiel Korthuis wrote:
 I am currently working on my graduation(project) @ Topicus with
 another student (Ronald Hemmink). We are new to Wicket and before we
 saw the wicket-build-in validator we came up with our own expression:
 ^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\
 \.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$) 
 
 the Wicket expression:
 ^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\
 \.[a-z]{2,3})$
 
 almost identical, but 'large TLD compatible' (the pattern in wicket
 has the argument 'Pattern.CASE_INSENSITIVE ' and therefore they don't
 need to define the upper-case charcters).
 
 your pattern looks a bit too complicated for the job :P
 
 Michiel
 
 On 6/20/06, Frank Bille Jensen [EMAIL PROTECTED] wrote:
 Thats right.. In our company we use the (crazy) regex pattern
 taken from
 http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
 
 
 
 String emailPattern = [...] 
 
 
 Would anyone in the wicket team like to use this as the
 emailvalidation
 pattern instead, I would be happy to submit a patch (for both
 1.2 or 2.0
 if thats the case).
 
 
 Regards
 Frank Bille
 Avaleo 
 
 
 On Tue, 2006-06-20 at 10:08 +0200, Michiel Korthuis wrote:
  hi,
 
  In
 
 wicket.markup.html.form.validation.EmailAddressPatternValidator.java
  the validation-expression is incorrect. 
  the regular expression reads:
  ^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\
  \.[a-z]{2,3})$
 
  According to this expression the TLD is 2 or 3 characters,
 but that's
  incorrect. 
  Nowadays it can exceed the limit of 3 characters (for
 example: .aero
  or .travel. Source: http://www.iana.org/gtld/gtld.htm ).
  
  Michiel
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ___
 Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



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


Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread Eelco Hillenius
You can override Resource.configureResponse or WebResource.setHeaders.

Additionally, you could consider using Resource.setCacheable(false),
and then the IResourceStream's (or actually IModifiable's)
lastModifiedTime result is used.

Eelco


On 6/19/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 how can I add response.setHeader(Pragma, no-cache) to some shared
 resources? I have upload area/folder and when resource is uploaded I want to
 see the new resource instead of cached old resource.

 Thanks, Jan





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



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


[Wicket-user] Changing the Link innerHTML

2006-06-20 Thread Alex Objelean

I just started to learn the Wicket Framework, so sorry for a trivial
question... (I couldn't find the solution on the forum):

How can I change the innerHTML of the Link component dynamically?

For instance in the following code:

lt;a href=# wicket:id=navLinkPage1lt;/a


new Link(navLink) {
  public void onClick() {
setResponsePage(Page1.class);
  }
} 

I would like to change the Page1 value to something else 
How can I do that? 
Thank you!
--
View this message in context: 
http://www.nabble.com/Changing-the-Link-innerHTML-t1816416.html#a4951617
Sent from the Wicket - User forum at Nabble.com.



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


Re: [Wicket-user] Changing the Link innerHTML

2006-06-20 Thread Martijn Dashorst
a href=# wicket:id=linkspan wicket:id=content/span/a

Link link = new Link(link) { public void onClick() {} };
link.add(new Label(content, Hello, World!));

Martijn

On 6/20/06, Alex Objelean [EMAIL PROTECTED] wrote:

 I just started to learn the Wicket Framework, so sorry for a trivial
 question... (I couldn't find the solution on the forum):

 How can I change the innerHTML of the Link component dynamically?

 For instance in the following code:

 lt;a href=# wicket:id=navLinkPage1lt;/a


 new Link(navLink) {
   public void onClick() {
 setResponsePage(Page1.class);
   }
 }

 I would like to change the Page1 value to something else
 How can I do that?
 Thank you!
 --
 View this message in context: 
 http://www.nabble.com/Changing-the-Link-innerHTML-t1816416.html#a4951617
 Sent from the Wicket - User forum at Nabble.com.



 ___
 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


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


Re: [Wicket-user] Spring 2.0 Domain object dependency injection

2006-06-20 Thread Stefan Arentz
On 6/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 no, there are no problems with wicket-spring poject other then some people
 dont think its a true way to integrate with spring. sigh.

I have some more concrete issues with the current spring integration code.

First, it is intrusive. Instead of using hooks or interceptors it
requires a new class hierarchy. This is generally not a big deal but
it makes it difficult to pick 'extensions' and put them together. As a
concrete example; we have two great extensions available:
wicket-spring-annot and wicket-auth-roles. However since these are
both implemented in the Spring class hierarchy as subclasses of
WebApplication there is no way to put these together in one project.
You end up copy/pasting code to merge them in your own implementation.
This is rather silly.

The second problem I have with the current Spring code is that it just
works in a subset of Wicket objects. For example, I have just merged
auth-roles and spring-annot together for my current app and I
discovered that the @SpringBean annotation does not work inside my
subclass of the AuthenticatedWebSession. This is of course rather
silly because that is *the* place to talk to Spring and retrieve user
info through a DAO of some sort. This is something that AOP could
solve pretty well without the need of a whole Injector infrastructure
in the Wicket code.

What I really hope is that 2.0 will include strong support for AOP and
some kind of interceptor chain in the right place so that we can add
functionality like Spring and Authentication annotations more easily.
As I understand it the 2.0 release will be JSE 5 only, so a lot more
interesting things will be possible then.

 S.


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


Re: [Wicket-user] Spring 2.0 Domain object dependency injection

2006-06-20 Thread Martijn Dashorst
The application issue is known
(http://sourceforge.net/tracker/index.php?func=detailaid=1458736group_id=119783atid=684975)
and won't be fixed in 1.2 as it will break backwards compatibility.

Could you file a RFE for the Session injector?

Martijn

On 6/20/06, Stefan Arentz [EMAIL PROTECTED] wrote:
 On 6/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  no, there are no problems with wicket-spring poject other then some people
  dont think its a true way to integrate with spring. sigh.

 I have some more concrete issues with the current spring integration code.

 First, it is intrusive. Instead of using hooks or interceptors it
 requires a new class hierarchy. This is generally not a big deal but
 it makes it difficult to pick 'extensions' and put them together. As a
 concrete example; we have two great extensions available:
 wicket-spring-annot and wicket-auth-roles. However since these are
 both implemented in the Spring class hierarchy as subclasses of
 WebApplication there is no way to put these together in one project.
 You end up copy/pasting code to merge them in your own implementation.
 This is rather silly.

 The second problem I have with the current Spring code is that it just
 works in a subset of Wicket objects. For example, I have just merged
 auth-roles and spring-annot together for my current app and I
 discovered that the @SpringBean annotation does not work inside my
 subclass of the AuthenticatedWebSession. This is of course rather
 silly because that is *the* place to talk to Spring and retrieve user
 info through a DAO of some sort. This is something that AOP could
 solve pretty well without the need of a whole Injector infrastructure
 in the Wicket code.

 What I really hope is that 2.0 will include strong support for AOP and
 some kind of interceptor chain in the right place so that we can add
 functionality like Spring and Authentication annotations more easily.
 As I understand it the 2.0 release will be JSE 5 only, so a lot more
 interesting things will be possible then.

  S.


 ___
 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


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


Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread jan_bar
Thanks Eelco,

 Additionally, you could consider using Resource.setCacheable(false),
 and then the IResourceStream's (or actually IModifiable's)
 lastModifiedTime result is used.

Actually (in wicket 1.2), the Resource.setCacheable(false) will call
response.setLastModifiedTime(Time.valueOf(-1)) and that will not append the
Last-Modified header at all.

Jan





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


Re: [Wicket-user] link cannot be resolved

2006-06-20 Thread Ittay Dror


Nili Adoram wrote:
 Hi all,
 
 I have  a problem resolving a stylesheet link as follows:
 
 This is the markup:
 link wicket:id=globalCss href=../include/global_en.css 
 rel=stylesheet type=text/css/link

why is globalCss needed? the servlet gets a request for a url, which is 
mounted, so it can just request the resource locator of the mount to locate 
this file

 
 This is the component:
 add(new StyleSheetReference(globalCss,new 
 PackageResourceReference(Application.get(),
 RssSettings.class, include/global_en.css)));
 
 The PackageResourceReference indeed exists but the rendering fails.
 
 In MarkupContainer.renderNext(), no component resolver is able to 
 resolve this tag
 ( AutoLinkResolver is unable to resolve it since it has a wicket:id 
 attribute and WicketLinkResolver is unable to resolve it since it is not 
 defined as wicket:link)
 so I get the markup exception: 'Unable to find component with id 
 globalCss'
 
 Please advise,
 
 Thanks,
 Nili
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


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


Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread jan_bar
My resource is static file, so naturaly I want to use PackageResource. But I
cannot override the configureResponse() or setHeaders() because
PackageResource has private contructor. I cannot resue this class.

Thanks Jan


Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 You can override Resource.configureResponse or WebResource.setHeaders.

 Additionally, you could consider using Resource.setCacheable(false),
 and then the IResourceStream's (or actually IModifiable's)
 lastModifiedTime result is used.

 Eelco


 On 6/19/06, jan_bar [EMAIL PROTECTED] wrote:
  Hi,
 
  how can I add response.setHeader(Pragma, no-cache) to some shared
  resources? I have upload area/folder and when resource is uploaded I
want to
  see the new resource instead of cached old resource.
 
  Thanks, Jan
 
 
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 







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


Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread karthik Guru
Thank you all! .Eelco  Hey, competition :)Eelco No! I dont think it exists :) and even if it does am definitely not a part of it :) Wicket probably has competition from Tapestry, Echo, Facelets and the like :). It is turning out to be great fun (and quite a challenge) writing the book as Nick mentioned. I hope it will be in a good shape by Aug/Sept time frame.
thanks!karthik 
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Michael Welter
Is Eelco's book in English, and where can I find it?

Thanks,

karthik Guru wrote:
 Thank you all! .
 
 Eelco  Hey, competition :)
 
 Eelco No! I dont think it exists :) and even if it does am definitely 
 not a part of it :) Wicket probably has competition from Tapestry, Echo, 
 Facelets and the like :). It is turning out to be great fun (and quite a 
 challenge) writing the book as Nick mentioned. I hope it will be in a 
 good shape by Aug/Sept time frame.
 
 thanks!
 karthik
  
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

-- 
Michael Welter
Telecom Matters Corp.
Denver, Colorado US
+1.303.414.4980
[EMAIL PROTECTED]
www.TelecomMatters.net


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


Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Iman Rahmatizadeh
Thanks to both karthik  eelco !
But despite the excitement, I'm always worried that the wicket books 
turn out to be some sort of reference manual which wicket is missing. 
What I like about books like 'Hibernate in Action', etc. is that they 
show you how to build real world apps, various design patterns, 
architecture issues, etc. I hope both wicket authors take this in mind.

Iman


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


Re: [Wicket-user] Plan to develop a portal

2006-06-20 Thread Vincent Jenks
Yeah...I could use some bookmarkable pages but just didn't.  Since
we're doing paid advertising and not worry so much about indexing on
google it wasn't a huge concern to get one or two pages in the entire
cart indexed - the snakeriverfarms.com site is more of a brochure site
and they'd probably target that before the cart, which sits behind the
site.

I know the portal would be a big project but it's definitely something
I'm interested in doing...though I'm going to research all options
before any real work gets done there...want to be sure it gets done
right.

I'm not too familiar w/ the portlets spec but from what I've read,
it's going in the direction of being closely tied to JSF, especially
in future implementations.  If that's the case, I'd be interested in
avoiding it altogether - I'm not real impressed by what I see in JSF
today...even the good implementations.  However, if there were a way
to somehow tie Wicket into the spec...I'd definitely look at it!

On 6/14/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Thanks for sharing and congrats. Tiny remark: wouldn't you want to
 work with bookmarkable pages more, especially for things like contact
 details, terms of use, etc? You shouldn't really need to be in a
 session to access those pages (you probably want google to index them)
 and if you mount the urls to those pages, that will look even better!

 About the portal... that's a non-trivial task. Depending on how many
 services you actually want to develop of course. Wouldn't it be a
 better idea to look at JSR168 portal servers and see how Wicket can be
 fit in? Janne still has the idea of working on Wicket support for 2.0;
 maybe you can tickle him a bit ;)

 Eelco



 On 6/14/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  So, I finally completed our first Wicket experiment - the infamous
  storefront I've been blathering about endlessly:
 
  http://www.snakeriverfarms.com/ - click the animated gif on the
  bottom-left of the page.
 
  I'm hoping it leads to more Wicket-based projects for me here at work
  but I've got definite plans of my own - the first of which is a Portal
  based on Wicket.
 
  We have a really crappy portal here at work that was quite
  expensive...and I'd really like to build something better myself w/
  Wicket  EJB 3.0.  As far as I know, there's nothing out there like
  that currently, is there?
 
  I was looking at JSR-286 but it looks like it's geared toward JSF, am
  I correct?  If that were the case I'd have no interest in conforming
  to it - but please correct me if I'm wrong.
 
  I'd like to begin planning it right away but I thought I'd take some
  feedback from the good folks behind Wicket first since you've all been
  so helpful so far!  I've never built anything quite as modular as a
  portal before and I'm not sure where to begin as far as making
  portlets dynamically loadable  modular while keeping performance
  acceptable.  I'd like to build an initial, rough, alpha-quality base
  to release as an open source project and work from there.
 
  I've never created my own open source project either, so any input
  there would be helpful!
 
  Thanks all!
 
  -v
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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



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


Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Igor Vaynberg
i wonder how big the created state machine is for this beast :)-IgorOn 6/20/06, Frank Bille Jensen 
[EMAIL PROTECTED] wrote:Thats right.. In our company we use the (crazy) regex pattern taken from
http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.htmlString emailPattern = (?:(?:\\r\\n)?[ \\t])*(?:(?:(?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t]
+ )+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|.|(?:(?:\\r\\n)?[ \\t]))*\(?:(?:+ \\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:(
+ ?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|.|(?:(?:\\r\\n)?[ + \\t]))*\(?:(?:\\r\\n)?[ \\t])*))*@(?:(?:\\r\\n)?[ \\t])*(?:[^()@,;:\\\.\\[\\] \\000-\\0
+ 31]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\\[([^\\[\\]\\r]|.)*\\+ ](?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()@,;:\\\.\\[\\] \\000-\\031]+
+ (?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\\[([^\\[\\]\\r]|.)*\\](?:+ (?:\\r\\n)?[ \\t])*))*|(?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z
+ |(?=[\\[\()@,;:\\\.\\[\\]]))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:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?:[^\r]|+ .|(?:(?:\\r\\n)?[ \\t]))*\(?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()@,
+ ;:\\\.\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\()@,;:\\\.\\[\\]]))|\(?+ :[^\r]|.|(?:(?:\\r\\n)?[ \\t]))*\(?:(?:\\r\\n)?[ \\t])*))*@(?:(?:\\r\\n)?[ \\t])*
+ (?:[^()@,;:\\\.\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ 

Re: [Wicket-user] Ajax Panel Include

2006-06-20 Thread samyem

Has this problem been fixed yet? This is becoming a major problem in my
project.
--
View this message in context: 
http://www.nabble.com/Ajax-Panel-Include-t1606490.html#a4957969
Sent from the Wicket - User forum at Nabble.com.



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


[Wicket-user] errors on servlet init

2006-06-20 Thread Ittay Dror
i get this stack trace the first time i try to access a page. the page is a 
simple form (no ajax/upload)

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

Stack Trace:

* Message: javax.servlet.ServletException: Servlet.init() for servlet 
wicket threw exception

  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1146)
  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  at java.lang.Thread.run(Thread.java:595)

* Message: java.lang.NoSuchFieldError: EXTENSION_JS

  at 
wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar$ComponentInitializer.init(UploadProgressBar.java:83)
  at wicket.extensions.Initializer.init(Initializer.java:41)
  at wicket.Application.initialize(Application.java:621)
  at wicket.Application.initializeComponents(Application.java:684)
  at wicket.Application.initializeComponents(Application.java:661)
  at wicket.Application.internalInit(Application.java:589)
  at 
wicket.protocol.http.WebApplication.internalInit(WebApplication.java:391)
  at wicket.protocol.http.WicketServlet.init(WicketServlet.java:270)
  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  at java.lang.Thread.run(Thread.java:595) 
-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


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


Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Eelco Hillenius
It's not out yet, and it will take some more months to write. It will
be published by Manning as part of the ... In Action series (Wicket In
Action).

Eelco


On 6/20/06, Michael Welter [EMAIL PROTECTED] wrote:
 Is Eelco's book in English, and where can I find it?

 Thanks,

 karthik Guru wrote:
  Thank you all! .
 
  Eelco  Hey, competition :)
 
  Eelco No! I dont think it exists :) and even if it does am definitely
  not a part of it :) Wicket probably has competition from Tapestry, Echo,
  Facelets and the like :). It is turning out to be great fun (and quite a
  challenge) writing the book as Nick mentioned. I hope it will be in a
  good shape by Aug/Sept time frame.
 
  thanks!
  karthik
 
 
 
  
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user

 --
 Michael Welter
 Telecom Matters Corp.
 Denver, Colorado US
 +1.303.414.4980
 [EMAIL PROTECTED]
 www.TelecomMatters.net


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



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


Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Eelco Hillenius
I haven't seen Karthik's content, so I can't speak for him. As for the
book Martijn and me are writing: we have a bunch of Manning editors
and proofreaders making sure we don't make a mess of the book. Wicket
In Action will not only explain you how to do things, but also why and
tries to give you a good context on the framework.

Eelco


On 6/20/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
 Thanks to both karthik  eelco !
 But despite the excitement, I'm always worried that the wicket books
 turn out to be some sort of reference manual which wicket is missing.
 What I like about books like 'Hibernate in Action', etc. is that they
 show you how to build real world apps, various design patterns,
 architecture issues, etc. I hope both wicket authors take this in mind.

 Iman


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



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


Re: [Wicket-user] Ajax Panel Include

2006-06-20 Thread Igor Vaynberg
juergen is there an easy way to capture the wicket:head output from an ajax render into the ajax target? i think we can just dump it as part of ajax response via document.write or something like that.-Igor
On 6/20/06, samyem [EMAIL PROTECTED] wrote:
Has this problem been fixed yet? This is becoming a major problem in myproject.--View this message in context: http://www.nabble.com/Ajax-Panel-Include-t1606490.html#a4957969
Sent from the Wicket - User forum at Nabble.com.___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Spring 2.0 Domain object dependency injection

2006-06-20 Thread Igor Vaynberg
so far we only targetted the components being injected because that is what users asked for. its trivial to inject any object you wantclass MySession extends WebSession() {@SpringBean Foo bar; MySession() {
 InjectorHolder.getInjector().inject(this); ... }}-IgorOn 6/20/06, Martijn Dashorst
 [EMAIL PROTECTED] wrote:
The application issue is known(http://sourceforge.net/tracker/index.php?func=detailaid=1458736group_id=119783atid=684975
)and won't be fixed in 1.2 as it will break backwards compatibility.Could you file a RFE for the Session injector?MartijnOn 6/20/06, Stefan Arentz 
[EMAIL PROTECTED] wrote: On 6/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote:  no, there are no problems with wicket-spring poject other then some people
  dont think its a true way to integrate with spring. sigh. I have some more concrete issues with the current spring integration code. First, it is intrusive. Instead of using hooks or interceptors it
 requires a new class hierarchy. This is generally not a big deal but it makes it difficult to pick 'extensions' and put them together. As a concrete example; we have two great extensions available:
 wicket-spring-annot and wicket-auth-roles. However since these are both implemented in the Spring class hierarchy as subclasses of WebApplication there is no way to put these together in one project.
 You end up copy/pasting code to merge them in your own implementation. This is rather silly. The second problem I have with the current Spring code is that it just works in a subset of Wicket objects. For example, I have just merged
 auth-roles and spring-annot together for my current app and I discovered that the @SpringBean annotation does not work inside my subclass of the AuthenticatedWebSession. This is of course rather
 silly because that is *the* place to talk to Spring and retrieve user info through a DAO of some sort. This is something that AOP could solve pretty well without the need of a whole Injector infrastructure
 in the Wicket code. What I really hope is that 2.0 will include strong support for AOP and some kind of interceptor chain in the right place so that we can add functionality like Spring and Authentication annotations more easily.
 As I understand it the 2.0 release will be JSE 5 only, so a lot more interesting things will be possible then.S. ___
 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___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


Re: [Wicket-user] Spring 2.0 Domain object dependency injection

2006-06-20 Thread Igor Vaynberg
or since we do use a factory for creating application/session objects you can write a factory that pulls the session out of spring context where it is declared as a prototype bean.-Igor
On 6/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
so far we only targetted the components being injected because that is what users asked for. its trivial to inject any object you wantclass MySession extends WebSession() {@SpringBean Foo bar; MySession() {
 InjectorHolder.getInjector().inject(this); ... }}-Igor
On 6/20/06, Martijn Dashorst
 [EMAIL PROTECTED] wrote:

The application issue is known(
http://sourceforge.net/tracker/index.php?func=detailaid=1458736group_id=119783atid=684975
)and won't be fixed in 1.2 as it will break backwards compatibility.Could you file a RFE for the Session injector?MartijnOn 6/20/06, Stefan Arentz 

[EMAIL PROTECTED] wrote: On 6/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  no, there are no problems with wicket-spring poject other then some people
  dont think its a true way to integrate with spring. sigh. I have some more concrete issues with the current spring integration code. First, it is intrusive. Instead of using hooks or interceptors it
 requires a new class hierarchy. This is generally not a big deal but it makes it difficult to pick 'extensions' and put them together. As a concrete example; we have two great extensions available:
 wicket-spring-annot and wicket-auth-roles. However since these are both implemented in the Spring class hierarchy as subclasses of WebApplication there is no way to put these together in one project.
 You end up copy/pasting code to merge them in your own implementation. This is rather silly. The second problem I have with the current Spring code is that it just works in a subset of Wicket objects. For example, I have just merged
 auth-roles and spring-annot together for my current app and I discovered that the @SpringBean annotation does not work inside my subclass of the AuthenticatedWebSession. This is of course rather

 silly because that is *the* place to talk to Spring and retrieve user info through a DAO of some sort. This is something that AOP could solve pretty well without the need of a whole Injector infrastructure
 in the Wicket code. What I really hope is that 2.0 will include strong support for AOP and some kind of interceptor chain in the right place so that we can add functionality like Spring and Authentication annotations more easily.
 As I understand it the 2.0 release will be JSE 5 only, so a lot more interesting things will be possible then.S. ___

 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___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



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


Re: [Wicket-user] Ajax Panel Include

2006-06-20 Thread Juergen Donnerstag
Without having tested it. IHeaderContributor is the major interface
and it has one method void renderHead(final Response response); The
Page calls visitChildren to iterate over all components and the
components iterate over all there behaviors. Hence, if an ajax
response should include the header contributions as well the only
thing you need to do is to call Component.renderHead() for all
components involved in the ajax request. But first you need to change
Component.renderHead(HtmlHeaderContainer) to
Component.renderHead(Response). One more thing to consider.
HtmlHeaderContainer makes sure that headers are not printed more than
once etc.. Is that required for ajax responses as well? If yes, than
we probably need some more changes.

Juergen

On 6/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 juergen is there an easy way to capture the wicket:head output from an ajax
 render into the ajax target? i think we can just dump it as part of ajax
 response via document.write or something like that.

 -Igor



 On 6/20/06, samyem [EMAIL PROTECTED] wrote:
 
  Has this problem been fixed yet? This is becoming a major problem in my
  project.
  --
  View this message in context:
 http://www.nabble.com/Ajax-Panel-Include-t1606490.html#a4957969
  Sent from the Wicket - User forum at Nabble.com.
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




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





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


Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread Eelco Hillenius
I changed PackageResource so that the constructor is protected instead
of private now. Having a private constructor in a non final class
doesn't make sense anyway.

Could you try if extending that class and overriding setHeaders does
the job for you?

Eelco


On 6/20/06, jan_bar [EMAIL PROTECTED] wrote:
 My resource is static file, so naturaly I want to use PackageResource. But I
 cannot override the configureResponse() or setHeaders() because
 PackageResource has private contructor. I cannot resue this class.

 Thanks Jan


 Eelco Hillenius [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  You can override Resource.configureResponse or WebResource.setHeaders.
 
  Additionally, you could consider using Resource.setCacheable(false),
  and then the IResourceStream's (or actually IModifiable's)
  lastModifiedTime result is used.
 
  Eelco
 
 
  On 6/19/06, jan_bar [EMAIL PROTECTED] wrote:
   Hi,
  
   how can I add response.setHeader(Pragma, no-cache) to some shared
   resources? I have upload area/folder and when resource is uploaded I
 want to
   see the new resource instead of cached old resource.
  
   Thanks, Jan
  
  
  
  
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 





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



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


Re: [Wicket-user] errors on servlet init

2006-06-20 Thread Eelco Hillenius
Looks to me like you have some classpath problems. Try cleaning up
your projects and make sure you don't have duplicate entries etc.

Eelco



On 6/20/06, Ittay Dror [EMAIL PROTECTED] wrote:
 i get this stack trace the first time i try to access a page. the page is a 
 simple form (no ajax/upload)

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

 Stack Trace:

 * Message: javax.servlet.ServletException: Servlet.init() for servlet 
 wicket threw exception

   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1146)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at 
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

 * Message: java.lang.NoSuchFieldError: EXTENSION_JS

   at 
 wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar$ComponentInitializer.init(UploadProgressBar.java:83)
   at wicket.extensions.Initializer.init(Initializer.java:41)
   at wicket.Application.initialize(Application.java:621)
   at wicket.Application.initializeComponents(Application.java:684)
   at wicket.Application.initializeComponents(Application.java:661)
   at wicket.Application.internalInit(Application.java:589)
   at 
 wicket.protocol.http.WebApplication.internalInit(WebApplication.java:391)
   at wicket.protocol.http.WicketServlet.init(WicketServlet.java:270)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at 
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
 --
 ===
 Ittay Dror,
 Chief architect, openQRM TL,
 RD, Qlusters Inc.
 [EMAIL PROTECTED]
 +972-3-6081994 Fax: +972-3-6081841

 http://www.openQRM.org
 - Keeps your Data-Center Up and Running


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



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


Re: [Wicket-user] Allow nested components in VelocityPanel

2006-06-20 Thread Eelco Hillenius
I see there is some disagreement on
http://sourceforge.net/tracker/index.php?func=detailaid=1485695group_id=119783atid=684977
but that Johan basically wants to adopt the change in a slightly
different manner. I think he is currently in Germany watching soccer
matches, but hopefully he'll look into it when he is back. I increased
the priority a bit so that it won't slip our attention.

Eelco


On 6/20/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I'll look into it tomorrow (going to bed now).

 Cheers,

 Eelco


 On 6/20/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
  Hello,
 
  I'm new  to the  mailing-list, and very  interested in  Wicket.  I
  designed  recently an  application that  generates user  interface
  based on a  RDF schema.  To make it work,  the VelocityPanel needs
  to  not  allow nested  Wicket  components,  ie request  Wicket  to
  process the merged template.
 
  If you are interested, the patch is in the SF tracker:
  http://sourceforge.net/tracker/index.php?func=detailaid=1485704group_id=119783atid=684977
 
  However this also requires a change in Wicket core:
  http://sourceforge.net/tracker/index.php?func=detailaid=1485695group_id=119783atid=684977
 
  I'd be happy to provide updated  patches if there are still issues
  with the  ones submitted.  I  had but limited feedback  until now.
  There's a whole lot of new  possibilities to work with Wicket, and
  «I hope this is the beginning of a long relationship».
 
  All the best,
  --
   Jean-Baptiste Quenot
  aka  John Banana Qwerty
  http://caraldi.com/jbq/
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



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