JavaLand 2014

2014-03-23 Thread Martin Funk
Hi,

anyone at the JavaLand 2014 conference in Brühl this week?

I'd be happy to meet, ping me on twitter:
@funkattack

or send an E-Mail:
mafulaf...@gmail.com

Cheers,

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



What is the meaning of: javax.ejb.Stateless;

2014-03-06 Thread Martin Funk
Hi again,

still at a very early stage of conquering the domain of TomEE+.

I have a question on javax.ejb.Stateless. In the specs I read that in the area 
of SOAP based web services, which are implemented by an EJB component the class 
implementing the endpoint must be annotated @Stateless or @Singleton.

I got curious on what would happen if the class was annotated @Statless even 
though the instances were not 'Stateless'
Exceptions were expected, but non were thrown.

Code Service:
package de.jaxws.soap.ejb;

import javax.ejb.Stateless;
import javax.jws.WebService;

@WebService
@Stateless
public class SoapEjb {

private int i;

public String helloEJB() {
return helloEJB again : + i++;
}
}

Code Client (supporting Classes were generated using wsimport):
package de.jaxws.soap.client;


import de.jaxws.soap.client.SoapEjb;
import de.jaxws.soap.client.SoapEjbService;

public class Client {

public static void main(String[] args) {

SoapEjbService service = new SoapEjbService();
SoapEjb port = service.getPort(SoapEjb.class);
for (int i = 0; i  10; i++) {
System.out.println(port.helloEJB());
}
}

}

Output of Client:
helloEJB again :0
helloEJB again :1
helloEJB again :2
helloEJB again :3
helloEJB again :4
helloEJB again :5
helloEJB again :6
helloEJB again :7
helloEJB again :8
helloEJB again :9

Could someone please give me a hint on what I'm misunderstanding?

Cheers,

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



Re: What is the meaning of: javax.ejb.Stateless;

2014-03-06 Thread Martin Funk
skip this wrong mailing list:

Am 06.03.2014 um 17:33 schrieb Martin Funk mafulaf...@gmail.com:

 Hi again,
 
 still at a very early stage of conquering the domain of TomEE+.
 
 I have a question on javax.ejb.Stateless. In the specs I read that in the 
 area of SOAP based web services, which are implemented by an EJB component 
 the class implementing the endpoint must be annotated @Stateless or 
 @Singleton.
 
 I got curious on what would happen if the class was annotated @Statless even 
 though the instances were not 'Stateless'
 Exceptions were expected, but non were thrown.
 
 Code Service:
 package de.jaxws.soap.ejb;
 
 import javax.ejb.Stateless;
 import javax.jws.WebService;
 
 @WebService
 @Stateless
 public class SoapEjb {
 
   private int i;
 
   public String helloEJB() {
   return helloEJB again : + i++;
   }
 }
 
 Code Client (supporting Classes were generated using wsimport):
 package de.jaxws.soap.client;
 
 
 import de.jaxws.soap.client.SoapEjb;
 import de.jaxws.soap.client.SoapEjbService;
 
 public class Client {
 
   public static void main(String[] args) {
 
   SoapEjbService service = new SoapEjbService();
   SoapEjb port = service.getPort(SoapEjb.class);
   for (int i = 0; i  10; i++) {
   System.out.println(port.helloEJB());
   }
   }
 
 }
 
 Output of Client:
 helloEJB again :0
 helloEJB again :1
 helloEJB again :2
 helloEJB again :3
 helloEJB again :4
 helloEJB again :5
 helloEJB again :6
 helloEJB again :7
 helloEJB again :8
 helloEJB again :9
 
 Could someone please give me a hint on what I'm misunderstanding?
 
 Cheers,
 
 Martin


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



Re: bug or new feature

2014-02-22 Thread Martin Funk
Hi Ernesto,

without having looked into this.
It sound similar to:
https://issues.apache.org/jira/browse/WICKET-3277

mf


Am 22.02.2014 um 08:04 schrieb Ernesto Reinaldo Barreiro reier...@gmail.com:

 Guess %- text % is giving problems
 
 
 On Sat, Feb 22, 2014 at 7:50 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:
 
 Maybe related to
 
 https://issues.apache.org/jira/browse/WICKET-5288
 
 ?
 
 
 On Sat, Feb 22, 2014 at 7:46 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:
 
 On Wicket 6.13.0 following code
 
 script type=text/template id=message-template
div class=sender pull-left
div class=icon
img src=img/2.jpg class=img-circle alt=/
/div
div class=time
just now
/div
/div
div class=chat-message-body
span class=arrow/span
div class=senderTikhon Laninga/div
div class=text
%- text %
/div
/div
 /script
 
 was parsed OK. On Wicket 6.14.0 I get
 
 ==
 
 2014-02-22 07:42:48,618 [qtp757902664-22] ERROR
 [org.apache.wicket.DefaultExceptionMapper] - Unexpected error occurred
 org.apache.wicket.markup.MarkupException: Malformed tag (line 73, column
 17)
 at
 org.apache.wicket.markup.AbstractMarkupParser.parseMarkup(AbstractMarkupParser.java:301)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.AbstractMarkupParser.parse(AbstractMarkupParser.java:183)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:51)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:57)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:52)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:412)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:448)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:544)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:305)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:236)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.getBaseMarkup(InheritedMarkupMarkupLoader.java:99)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:68)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:52)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:412)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:448)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:544)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:305)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:236)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:194)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkup(MarkupContainer.java:405)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Component.getMarkup(Component.java:728)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Component.internalRender(Component.java:2346)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Component.render(Component.java:2309)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Page.renderPage(Page.java:1024)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:274)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 ~[wicket-request-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
 [wicket-core-6.14.0.jar:6.14.0]
 at
 

Re: 10th aniversary of wicket

2014-01-22 Thread Martin Funk
Btw. does anyone know which date might count for the birthdate?

Jonathan wrote something like in the spring of 2004 in Wicket in Action.

I googled around a little bit, finding the initial first commit is kinda hard, 
but I came up with an issue at codehaus.org:
https://jira.codehaus.org/browse/HAUS-554

As I understand the issue, up till 08/Aug/04 4:56 PM wicket might have been 
called chipotle (me: shudders)
But on 11/Aug/04 12:51 PM Jonathan comes up wit the name wicket

So I'd say it must have happened between 8th and 11th of August 04.

Maybe one would have to as Jonathan...


mf


Am 20.01.2014 um 10:52 schrieb Ernesto Reinaldo Barreiro reier...@gmail.com:

 Hi,
 
 Chatting with Martin Funk, a fellow wicketeer, he mentioned this year
 Apache Wicket will become 10 years old!
 
 Are there any celebrations planned? Shall we organize something? Just
 kidding, I mentioned to Martin that we should maybe promote a wicket
 meeting at some exotic place: e.g. Wicket, Salsa and Mojitos, in
 Havana... Seriously, is someone planning a celebration? Maybe it is a good
 opportunity to say a big THANKS to those who have sacrificed their own
 free time in order to make our developer's lives a lot better and
 pleasurable!
 
 -- 
 Regards - Ernesto Reinaldo Barreiro


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



Re: Displaying Wicket version number

2014-01-17 Thread Martin Funk
Hint,

create a quickstart
http://wicket.apache.org/start/quickstart.html
and look into the code :-)


otherwise go for:

getApplication().getFrameworkSettings().getVersion()


mf


2014/1/17 Oliver B. Fischer mails...@swe-blog.net

 I would like to show the wicket version number in the about page of my
 application. Is the version numner available as message property or do I
 jave to do it by my own?

 BYe,

 Oliver

 --
 Oliver Fischer

 M +49 178 7903538
 E oliver.fisc...@profitbricks.com
 W http://www.profitbricks.com
 J oliver.fisc...@profitbricks.com


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




StartExamples of wicket-examples not running

2014-01-15 Thread Martin Funk
Hi,

looking into the current experimental wicket-cdi-1.1 of the wicket-6.x branch, 
I noticed that the wicket-examples.war runs fine in an Container, here Apache 
Tomcat/7.0.50,
but the StartExamples of the wicket-examples doesn't run.

Weld throws an Deployment Exception

WARN  - Interceptor- WELD-001700: Interceptor annotation class 
javax.ejb.PrePassivate not found, interception based on it is not enabled
WARN  - WebAppContext  - Failed startup of context 
o.e.j.w.WebAppContext{/,file:/Users/mafulafunk/Code/wicket/wicket-examples/src/main/webapp/},src/main/webapp
org.jboss.weld.exceptions.DeploymentException: javax/servlet/DispatcherType

It can't find the DispatcherType class, which is plausible, since it is part of 
Servlet 3.0 spec.

I messed around with the jetty versions, but no success yet.

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



Re: Wicket Sessions and Akamai Caching

2013-11-20 Thread Martin Funk
Hi,

the explanation in wicket guide might give further insight:
http://wicket.apache.org/guide/guide/chapter11.html#chapter11_9

mf


Am 20.11.2013 um 06:04 schrieb Jeremy Thomerson jer...@wickettraining.com:

 Pages that are session-specific should not be cached in a way that allows
 the cached response to be given to multiple users. Stateful forms are
 session-specific.
 
 
 On Tue, Nov 19, 2013 at 6:59 PM, Scott Carpenter scarpen...@gmail.comwrote:
 
 I have a client Wicket web site and they are using Akamai for caching. They
 wanted to cache more aggressively but it seems there's an issue with
 expired sessions. When a user hits a cached version of a page with a form
 and tries to submit it, a 500 error is raised. (I'm relaying this from at
 least two sources removed, so by now I might have the details thoroughly
 obfuscated.)
 
 I was hoping from this list I could get some pointers on best taking
 advantage of Akamai, and how I might work around issues like this. Please
 let me know if and what further information would be useful in answering.
 
 Thank you!
 
 Scott
 
 
 
 
 -- 
 Jeremy Thomerson
 http://wickettraining.com


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



Re: Problem running wicket in eclipse working with tomcat

2013-11-20 Thread Martin Funk
Hi Gerrit,

for now just try something like:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.9/version
configuration
downloadSourcestrue/downloadSources
wtpversion2.0/wtpversion
/configuration
/plugin

in your pom.xml
This generates the right nature into the the .project file.

Though currently eclipse claims some problems in the jetty-*.xml files.

Shouldn't harm the Tomcat case.

I'll look into that.

Martin
 
Am 20.11.2013 um 11:57 schrieb Gerrit Wassink gerrit.wass...@qfactors.nl:

 Hello Martin,
 Thanks a lot for your quick response!
 Is there also a way to build a dynamic web project with Wicket structure.This 
 must be possible?I did many research on the web but not very succesful.I have 
 to build a java webapplication with Wicket and Hibernate.The nice book 
 Wicket in Action give me a lot of inspiration but how to get to work with 
 it.
 Gerrit
 
 Martin Grigorov mgrigo...@apache.org , 20-11-2013 11:41:
 Hi, 
 
 I am user of Intellij IDEA now but before when I was an Eclipse user I have 
 used embedded Jetty. See Start.java in Wicket quickstart application. 
 If you want to use Tomcat as you described I think you need 
 http://www.eclipse.org/m2e-wtp/. This project integrates Eclipse's Web 
 Tools with Maven based web projects. 
 
 Give a try to embedded Jetty. Is is much faster to develop with it and I 
 didn't have any major problems using Jetty for development and Tomcat for 
 production. 
 
 
 On Wed, Nov 20, 2013 at 12:28 PM, Gerrit Wassink gerrit.wass...@qfactors.nl 
 wrote: 
 
 Hello members, 
 My name is Gerrit Wassink and i am junior java developer.I am trying to 
 setup a development environment in Eclipse Juno and want to use Wicket in 
 it.Until now i did not succeed in getting a working structure which can 
 work with Tomcat.I want to run and debug in Eclipse with the embedded 
 Tomcat server.What is the best approach to have a working environment. 
 I did some (re)search before in this mailinglist and found similar 
 problem(s), but the right solution is not clear to me. 
 I hope you can give me a workaround and thank you in advance. 
 below you find exact the things i also tried 
 == 
 Get started with Wicket (again) and banging my head on Eclipse and 
 Tomcat. What is a typical way to setup a project (in Eclipse) so that it is 
 easy totest and develop (locally) in Tomcat? 
 Here is what I've been trying.  Install Eclipse with Tomcat 
 integration. Works fine.  I can build an Eclipse Dynamic Web App.  Can 
 write servletsand JSPs, and debugging and developing is easy via Eclipse's 
 Run As Servercommand. 
 Ideally, I'd like to manually setup an Eclipse project to work with 
 Wicket. But, I don't know how to get the project structure right and have 
 the classand HTML files copied into the resultant WAR.  So, I use Maven to 
 create anew web app: 
 mvn archetype:create -DgroupId=com.mycompany.app 
 -DartifactId=my-webapp-DarchetypeArtifactId=maven-archetype-webapp 
 and then generate Eclipse project files 
 mvn eclipse:eclipse 
 Then I import the project into Eclipse.  Problem is that the 
 projectappears to be a Java project and not a webapp.  There is no Run As 
 Servercommand. 
 == 
 Greetings Gerrit 


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



Re: Back button not calling onConfigure()

2013-11-06 Thread Martin Funk
Hi,

have you thought about wireshark?

Easy to set up and not all that hard to handle. Filters are powerful and most 
interestingly for Web-Development
ist the Follow TCP stream function.
http://www.wireshark.org/docs/wsug_html_chunked/ChAdvFollowTCPSection.html


mf

Am 06.11.2013 um 15:27 schrieb Artur Kronenberg 
artur.kronenb...@openmarket.com:

 Hi,
 
 I would expect it to hit the container. Debuggin and testing on a test 
 environment works and hits it. Unfortunatelly there is no way to definitely 
 proove that the error in question hits it to. I do know that the onConfigure 
 is not hit. I don't have access to the access logs.
 
 Is there a way that the user uses a proxy that disables the response headers 
 we set for caching?
 
 Thanks!
 
 On 05/11/13 14:22, Martin Grigorov wrote:
 Hi,
 
 It looks like the page is loaded from the browser/proxy cache.
 Can you verify that the web container is hit ? E.g. check its access logs
 
 
 On Tue, Nov 5, 2013 at 4:05 PM, Artur Kronenberg 
 artur.kronenb...@openmarket.com wrote:
 
 Hi,
 
 I have a rather odd problem with a page of mine. The design is that the
 model on the page gets a flag set that indicates that the send button has
 been clicked (so the user doesn't send multiple times by clicking it
 vigurously over and over again).
 The problem now is that on browser back, the model is still created and
 the page can't be used.
 I overwrote the onConfigure method to set up my model correctly and
 everything works just fine. However there seems to be cases where the
 onConfigure method is not called?
 
 Does anyone know of those cases? Can it have anything to do with the user
 using a proxy? A weird browser thing?
 
 We set the response headers to:
 
 Expires: -1
 Pragma: no-cache
 Cache-Control: no-cache, max-age=0, must-revalidate, no-store
 
 This seems to be a very odd issue that I can not reproduce locally at all
 (I used to be able to by hitting the back button so I am guessing this is
 where things happen, but overwriting onConfigure fixed it for most cases).
 
 Thanks!
 
 Artur
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: Back button not calling onConfigure()

2013-11-06 Thread Martin Funk
Hi Arthur,

no worries. This was just a hint. Wireshark might look quite discouraging at 
first sight.

When it is started it will show all the network traffic on the machine, but 
that output can be filtered quite effectively.

If it is really important, then wireshark can analyse gigabyte big tcpdump 
files:
http://www.wireshark.org/docs/wsug_html_chunked/AppToolstcpdump.html

It depends on the pain, that bug is giving, but at least it would be known 
which request 'really' leaves the building.

mf

Am 06.11.2013 um 17:08 schrieb Artur Kronenberg 
artur.kronenb...@openmarket.com:

 Hi Martin,
 
 I had a quick read through it and this is not an option. I can't reproduce 
 the error and it is not given when it will reoccur. If I understood it 
 correctly I'd have to caputre all network traffic for my application until 
 the point the error occurs to be able to use wireshark and analyze it. This 
 won't be possble.
 
 Thanks,
 
 Artur
 
 On 06/11/13 15:53, Martin Funk wrote:
 Hi,
 
 have you thought about wireshark?
 
 Easy to set up and not all that hard to handle. Filters are powerful and 
 most interestingly for Web-Development
 ist the Follow TCP stream function.
 http://www.wireshark.org/docs/wsug_html_chunked/ChAdvFollowTCPSection.html
 
 
 mf
 
 Am 06.11.2013 um 15:27 schrieb Artur Kronenberg 
 artur.kronenb...@openmarket.com:
 
 Hi,
 
 I would expect it to hit the container. Debuggin and testing on a test 
 environment works and hits it. Unfortunatelly there is no way to definitely 
 proove that the error in question hits it to. I do know that the 
 onConfigure is not hit. I don't have access to the access logs.
 
 Is there a way that the user uses a proxy that disables the response 
 headers we set for caching?
 
 Thanks!
 
 On 05/11/13 14:22, Martin Grigorov wrote:
 Hi,
 
 It looks like the page is loaded from the browser/proxy cache.
 Can you verify that the web container is hit ? E.g. check its access logs
 
 
 On Tue, Nov 5, 2013 at 4:05 PM, Artur Kronenberg 
 artur.kronenb...@openmarket.com wrote:
 
 Hi,
 
 I have a rather odd problem with a page of mine. The design is that the
 model on the page gets a flag set that indicates that the send button has
 been clicked (so the user doesn't send multiple times by clicking it
 vigurously over and over again).
 The problem now is that on browser back, the model is still created and
 the page can't be used.
 I overwrote the onConfigure method to set up my model correctly and
 everything works just fine. However there seems to be cases where the
 onConfigure method is not called?
 
 Does anyone know of those cases? Can it have anything to do with the user
 using a proxy? A weird browser thing?
 
 We set the response headers to:
 
 Expires: -1
 Pragma: no-cache
 Cache-Control: no-cache, max-age=0, must-revalidate, no-store
 
 This seems to be a very odd issue that I can not reproduce locally at all
 (I used to be able to by hitting the back button so I am guessing this is
 where things happen, but overwriting onConfigure fixed it for most cases).
 
 Thanks!
 
 Artur
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: Component detecting Ajax update

2013-11-03 Thread Martin Funk
traveling down the implementations of 

AjaxRequestTarget.add
AjaxRequestHandler public void add(Component... components)

one comes across to:

AbstractAjaxResponse.add((final Component component, final String markupId)

I don't see code that signals the Component that it was added to an 
AjaxRequestTarget

it just seems to end up in an HashMap of AbstractAjaxResponse

markupIdToComponent.put(markupId, component);


So my guess is, that the component itself can't detect that it was added.

If you are serious about it, maybe deriving form AjaxRequestHandler and than 
hooking the derived Handler up into the Application might help.

At least the Application has a setter for the AjaxRequestTargetProvider:
@Override
protected void internalInit()
{
[...]
setAjaxRequestTargetProvider(new 
DefaultAjaxRequestTargetProvider());
[...}
}


Though I'm not sure if that is an ok path, maybe someone else has a better idea.

Martin



Am 01.11.2013 um 14:45 schrieb Nick Pratt nbpr...@gmail.com:

 Is there a way for a Component to detect if its been added to an
 AjaxRequestTarget?
 
 N


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



Re: AjaxButton submit issue in GAE

2013-11-03 Thread Martin Funk
How about some code?

And if it is deployed on GAE you even might be able to provide an url to the 
app.

mf

Am 03.11.2013 um 03:16 schrieb luiss184 luisfi...@yahoo.com.ar:

 Hi,
 
 I have an issue in my application with an AjaxButton which submits properly
 only the first time.
 To get it working again is necessary to clear the browser cache.
 The application is deployed in Google App Engine.
 In development mode works perfectly.
 
 Has anybody experienced anything similar or has an idea how to solve this
 issue?
 
 Thanks in advanced,
 
 Luis
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/AjaxButton-submit-issue-in-GAE-tp4662084.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: NumberFormatException from Requests with invalid URIs

2013-07-25 Thread Martin Funk
done
https://issues.apache.org/jira/browse/WICKET-5287


2013/7/25 Sven Meier s...@meiers.net

 ServletWebRequest#**getContextRelativeUrl() passes foo://:/ to
 Url#parse() and that one fails.

 Please create a Jira issue.

 Sven


 On 07/24/2013 05:06 PM, Martin Funk wrote:

 Hi Sven,

 we still can reproduce this on any version.

 Maybe this git diff gives a clearer picture:

 diff --git
 a/wicket-core/src/test/java/**org/apache/wicket/protocol/**http/servlet/*
 *ServletWebRequestTest.java
 b/wicket-core/src/test/java/**org/apache/wicket/protocol/**http/servlet/*
 *ServletWebRequestTest.java
 index f974a06..9ee3308 100644
 ---
 a/wicket-core/src/test/java/**org/apache/wicket/protocol/**http/servlet/*
 *ServletWebRequestTest.java
 +++
 b/wicket-core/src/test/java/**org/apache/wicket/protocol/**http/servlet/*
 *ServletWebRequestTest.java
 @@ -191,6 +191,16 @@
assertEquals(any/source/of/**error, errorClientUrl.toString());
}

 + @Test
 + public void wicketFoo()
 + {
 + String filterPath = filterPath;
 + MockHttpServletRequest httpRequest = new MockHttpServletRequest(null,
 null, null);
 + httpRequest.setURL(http://**localhost http://localhost + '/' +
 filterPath +
 /request/foo://:/);
 +
 + ServletWebRequest webRequest = new ServletWebRequest(httpRequest,
 filterPath);
 + }
 +
private static class CustomRequestPage extends WebPage implements
 IMarkupResourceStreamProvider
{
private static final long serialVersionUID = 1L;

 This tests leads to this exption

 java.lang.**NumberFormatException: For input string: 
 at java.lang.**NumberFormatException.**forInputString(Unknown Source)
 at java.lang.Integer.parseInt(**Unknown Source)
 at java.lang.Integer.parseInt(**Unknown Source)
 at org.apache.wicket.request.Url.**parse(Url.java:277)
 at
 org.apache.wicket.protocol.**http.servlet.**ServletWebRequest.**
 getContextRelativeUrl(**ServletWebRequest.java:208)
 at
 org.apache.wicket.protocol.**http.servlet.**ServletWebRequest.init(**
 ServletWebRequest.java:112)
 at
 org.apache.wicket.protocol.**http.servlet.**ServletWebRequest.init(**
 ServletWebRequest.java:82)
 at
 org.apache.wicket.protocol.**http.servlet.**ServletWebRequestTest.**
 wicketFoo(**ServletWebRequestTest.java:**201)
 at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
 at sun.reflect.**NativeMethodAccessorImpl.**invoke(Unknown Source)
 at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(Unknown Source)
 at java.lang.reflect.Method.**invoke(Unknown Source)
 at
 org.junit.runners.model.**FrameworkMethod$1.**runReflectiveCall(**
 FrameworkMethod.java:47)
 at
 org.junit.internal.runners.**model.ReflectiveCallable.run(**
 ReflectiveCallable.java:12)
 at
 org.junit.runners.model.**FrameworkMethod.**invokeExplosively(**
 FrameworkMethod.java:44)
 at
 org.junit.internal.runners.**statements.InvokeMethod.**
 evaluate(InvokeMethod.java:17)
 at org.junit.runners.**ParentRunner.runLeaf(**ParentRunner.java:271)
 at
 org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
 BlockJUnit4ClassRunner.java:**70)
 at
 org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
 BlockJUnit4ClassRunner.java:**50)
 at org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:238)
 at org.junit.runners.**ParentRunner$1.schedule(**ParentRunner.java:63)
 at org.junit.runners.**ParentRunner.runChildren(**ParentRunner.java:236)
 at org.junit.runners.**ParentRunner.access$000(**ParentRunner.java:53)
 at org.junit.runners.**ParentRunner$2.evaluate(**ParentRunner.java:229)
 at org.junit.runners.**ParentRunner.run(ParentRunner.**java:309)
 at
 org.eclipse.jdt.internal.**junit4.runner.**JUnit4TestReference.run(**
 JUnit4TestReference.java:50)
 at
 org.eclipse.jdt.internal.**junit.runner.TestExecution.**
 run(TestExecution.java:38)
 at
 org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
 runTests(RemoteTestRunner.**java:467)
 at
 org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
 runTests(RemoteTestRunner.**java:683)
 at
 org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
 run(RemoteTestRunner.java:390)
 at
 org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
 main(RemoteTestRunner.java:**197)

 cheers,


 Martin



 2013/7/24 Mathias Binder mailto...@gmail.com

  We work with Version 6.7.0

 Mathias

 2013/7/24 Sven Meier s...@meiers.net:

 Hi,

 which Wicket version? Url parsing has been improved on lately:

  @Test
  public void weirdUrl()
  {
  Url url = 
 Url.parse(http://wicket.**apache.org/h@@p://h@@p://http://wicket.apache.org/h@@p://h@@p://
 );

  assertEquals(wicket.apache.**org http://wicket.apache.org,
 url.getHost());
  assertEquals(/h@@p://h@@p://**, url.getPath());
  }


 Works fine with 6.10.0-SNAPSHOT.

 Sven


 On 07/24/2013 10:29 AM, Mathias Binder wrote:

 Hi,

 we became aware of a problem caused by requests with invalid URIs on
 our wicket-application. The URI contains strings like *://*:*, so
 wicket tries to determine and parse a port number

Re: NumberFormatException from Requests with invalid URIs

2013-07-24 Thread Martin Funk
Hi Sven,

we still can reproduce this on any version.

Maybe this git diff gives a clearer picture:

diff --git
a/wicket-core/src/test/java/org/apache/wicket/protocol/http/servlet/ServletWebRequestTest.java
b/wicket-core/src/test/java/org/apache/wicket/protocol/http/servlet/ServletWebRequestTest.java
index f974a06..9ee3308 100644
---
a/wicket-core/src/test/java/org/apache/wicket/protocol/http/servlet/ServletWebRequestTest.java
+++
b/wicket-core/src/test/java/org/apache/wicket/protocol/http/servlet/ServletWebRequestTest.java
@@ -191,6 +191,16 @@
  assertEquals(any/source/of/error, errorClientUrl.toString());
  }

+ @Test
+ public void wicketFoo()
+ {
+ String filterPath = filterPath;
+ MockHttpServletRequest httpRequest = new MockHttpServletRequest(null,
null, null);
+ httpRequest.setURL(http://localhost; + '/' + filterPath +
/request/foo://:/);
+
+ ServletWebRequest webRequest = new ServletWebRequest(httpRequest,
filterPath);
+ }
+
  private static class CustomRequestPage extends WebPage implements
IMarkupResourceStreamProvider
  {
  private static final long serialVersionUID = 1L;

This tests leads to this exption

java.lang.NumberFormatException: For input string: 
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.apache.wicket.request.Url.parse(Url.java:277)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:208)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.init(ServletWebRequest.java:112)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.init(ServletWebRequest.java:82)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequestTest.wicketFoo(ServletWebRequestTest.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

cheers,


Martin



2013/7/24 Mathias Binder mailto...@gmail.com

 We work with Version 6.7.0

 Mathias

 2013/7/24 Sven Meier s...@meiers.net:
  Hi,
 
  which Wicket version? Url parsing has been improved on lately:
 
  @Test
  public void weirdUrl()
  {
  Url url = Url.parse(http://wicket.apache.org/h@@p://h@@p://;);
 
  assertEquals(wicket.apache.org, url.getHost());
  assertEquals(/h@@p://h@@p://, url.getPath());
  }
 
 
  Works fine with 6.10.0-SNAPSHOT.
 
  Sven
 
 
  On 07/24/2013 10:29 AM, Mathias Binder wrote:
 
  Hi,
 
  we became aware of a problem caused by requests with invalid URIs on
  our wicket-application. The URI contains strings like *://*:*, so
  wicket tries to determine and parse a port number, that is not
  present. This leads to NumberFormatExceptions with URIs like, e.g.
  http://host/h@@p://h@@p://
 
  java.lang.NumberFormatException: For input string: 
 
 
 java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
  java.lang.Integer.parseInt(Integer.java:470)
  java.lang.Integer.parseInt(Integer.java:499)
  org.apache.wicket.request.Url.parse(Url.java:197)
 
 
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContextRelativeUrl(ServletWebRequest.java:222)
 
 
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.init(ServletWebRequest.java:126)
 
 
 

Re: Save place to set http response status?

2013-07-03 Thread Martin Funk
Besides the 'non' buffering trait of the BufferedWebResponse it is a little
irritating, that the 'setStatus(int)' method doesn't signal if its
execution is not successfull.

Though locking into code like: org.apache.catalina.connector.ResponseFacade
of Tomcat shows that it doesn't signal anything either.
[...]
public void setStatus(int sc) {

if (isCommitted())
return;

response.setStatus(sc);

}
[...]

even the JavaDoc of oracle isn't helpful:
http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html#setStatus(int)
it only gives a statement on
http://docs.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html#reset()
which should throw a IllegalStateException - if the response has already
been committed
http://docs.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html#isCommitted()

If it were up to me, I'd of course would like to have both.
Wicket guaranteeing that the status can be set up till 'onDetach()'
and also a signal if setStatus was not successfull.
;-)

Martin


2013/7/3 Martin Grigorov mgrigo...@apache.org

 Correct.


 On Wed, Jul 3, 2013 at 10:29 AM, Sven Meier s...@meiers.net wrote:

  Yes, WebPageRenderer renders the page into a BufferedWebResponse. But
  after that it writes it into the response of the RequestCycle:
 
  response.writeTo((WebResponse)**requestCycle.getResponse());
 

 By default REDIRECT_TO_BUFFER strategy is used so all this happens in the
 second http request cycle.
 But for all other cases in WebPageRenderer you are right.


 
  That's the point of no return.
 
  By default the RequestCycle's response is a ServletWebResponse nested in
 a
  HeaderBufferingWebResponse. So only headers are buffered until the first
  content is written.
 
  ServletWebResponse#flush() just forwards to
 HttpServletResponse#**flushBuffer(),
  no buffering involved there.
 

 Yep. No buffering by Wicket, but still the flush is needed for the
 buffering done by the servlet container.


 
  Sven
 
 
 
  On 07/03/2013 09:19 AM, Martin Grigorov wrote:
 
  On Wed, Jul 3, 2013 at 10:02 AM, Sven Meier s...@meiers.net wrote:
 
   HttpServletResponse has no data to push until the very end of the
 
  request cycle.
 
   That's not quite right:
  As soon as WebPageRenderer writes the buffered page into the real
  response, Tomcat has something to flush. If it does flush (for whatever
  reason), any additional header set
 
 
  Can you paste the code that does this in WebPageRenderer ?
 
  AFAIK org.apache.wicket.protocol.**http.servlet.**
  ServletWebResponse#flush()
  makes the transfer from the BufferedWebResponse to HttpServletResponse.
 
 
   in #onEndRequest() might be ignored.
 
  Sven
 
 
 
  On 07/03/2013 03:52 AM, Martin Grigorov wrote:
 
   Hi,
 
  org.apache.wicket.markup.html.WebPage#configureResponse() is a
 good
 
  place
  for this.
 
  Wicket buffers the response so Tomcat cannot flush it no matter the
  size.
  I.e. the HttpServletResponse has no data to push until the very end of
  the
  request cycle.
 
 
  On Tue, Jul 2, 2013 at 5:07 PM, Martin Funk mafulaf...@gmail.com
  wrote:
 
Hi there,
 
  what is the best place to set http response state?
 
  I was trying the 'onSomething' callback methods in
  IRequestCycleListener
  Like onEndRequest
 
  But sometimes those get ignored
 
  The last save place I figured was onAfterRender in the page class,
 but
  this
  doesn't feel right.
 
  The reason that calls like:
  ((HttpServletResponse)
  RequestCycle.get().getResponse().getContainerResponse()).**
 
  setStatus(404);
  in the RequestCycle Listner are ignored seems to be that the
 underlying
  container, Tomcat 6.0.37 in our case, starts to flush the
 outputstream
  as
  the Response becomes big, as in maybe 20k.
 
  If the response is small enoug the status, can be set in the
  'onDetach()'
 
  Anyone any ideas?
 
  Martin
 
 
   --**
  --**-
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org
 http://apache.org
  users-unsubscribe@**wicket.apache.org
 users-unsubscr...@wicket.apache.org
  
 
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --**--**-
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
 users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Save place to set http response status?

2013-07-02 Thread Martin Funk
Hi there,

what is the best place to set http response state?

I was trying the 'onSomething' callback methods in IRequestCycleListener
Like onEndRequest

But sometimes those get ignored

The last save place I figured was onAfterRender in the page class, but this
doesn't feel right.

The reason that calls like:
((HttpServletResponse)
RequestCycle.get().getResponse().getContainerResponse()).setStatus(404);
in the RequestCycle Listner are ignored seems to be that the underlying
container, Tomcat 6.0.37 in our case, starts to flush the outputstream as
the Response becomes big, as in maybe 20k.

If the response is small enoug the status, can be set in the 'onDetach()'

Anyone any ideas?

Martin


Save place to set http response status?

2013-07-02 Thread Martin Funk
Hi there,

what is the best place to set http response state?

I was trying the 'onSomething' callback methods in IRequestCycleListener
Like onEndRequest

But sometimes those get ignored

The last save place I figured was onAfterRender in the page class, but this 
doesn't feel right.

The reason that calls like:
((HttpServletResponse) 
RequestCycle.get().getResponse().getContainerResponse()).setStatus(404);
in the RequestCycle Listner are ignored seems to be that the underlying 
container, Tomcat 6.0.37 in our case, starts to flush the outputstream as the 
Response becomes big, as in maybe 20k.

If the response is small enoug the status, can be set up to  'onDetach()'

Anyone any ideas?

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



Re: Wicket as Jboss Modules

2012-06-14 Thread Martin Funk
given that I have not dug deep into the contract that JBoss promises for
jar Files in the JBOSS_HOME/modules folder, I'd still be
quite surprised that putting the jars into a shared folder would imply that
the class instances created from those jars would be shared between
applications on a single JBoss container.

Isn't it the responsibility of the container to keep separate class
instances for each application it is running?

mf

2012/6/13 Martin Grigorov mgrigo...@apache.org

 Hi,

 Wicket uses ThreadLocal for the Application, Session and RequestCycle.
 There are no JVM singletons.

 Some people are against putting jars in the shared lib folder. I
 personally see the benefit and I'd do it if I need to
 If you use shared jars then make sure that none of the applications
 provide these jars or another version of them because in this case you
 will see some ClassLoader related problems, e.g.: ClassCastException:
 o.a.w.Session class is not o.a.w.Session.

 On Tue, Jun 12, 2012 at 11:04 PM, Martin Sachs sachs.mar...@gmail.com
 wrote:
  Hello,
 
  i think that is in general not a good idea. If you deploy the wicket-lib
  outside the war and run multiple Wicket-Applications, then you could not
 use
  all applications, because wicket stores (as far as i know) e.g. the
  application instance in a static field. There is one application per
  WAR-deployment with wicket, but if you use the libs from ear/lib or
 modules
  there will be only one application.
 
  best
  Martin
 
  Илья Нарыжный schrieb:
 
  Hello,
 
  I have several projects which use wicket and various wicket sun-modules.
  Every project (*.ear file) took about 10Mb and about 8Mb is for wicket
  libraries.
  Recently I have move my projects to Jboss AS 7 and now I'm thinking
  about putting all wicket related jars to JBOSS_HOME/modules.
 
  Have anyone tried that? Do you have some suggestions for Jboss module
  structure for this?
  It will be great to have
 
  IMPLICIT(
 https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments
 )
  deploy of wicket related jars to the project.
 
  Thanks,
 
  Ilia
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Wicket as Jboss Modules

2012-06-14 Thread Martin Funk
Just read

SRV.9.7.1
Dependencies On Extensions

in the servlet 2.5 specs.
Obviously my assumption was wrong...

mf


2012/6/14 Martin Grigorov mgrigo...@apache.org

 The classes are shared, not the instances. The same classloader loads
 JBoss' modules for all apps.

 This is what Igor meant with 'static caches'. If you have a static
 field then it is also shared for all apps.

 On Thu, Jun 14, 2012 at 11:27 AM, Martin Funk mafulaf...@googlemail.com
 wrote:
  given that I have not dug deep into the contract that JBoss promises for
  jar Files in the JBOSS_HOME/modules folder, I'd still be
  quite surprised that putting the jars into a shared folder would imply
 that
  the class instances created from those jars would be shared between
  applications on a single JBoss container.
 
  Isn't it the responsibility of the container to keep separate class
  instances for each application it is running?
 
  mf
 
  2012/6/13 Martin Grigorov mgrigo...@apache.org
 
  Hi,
 
  Wicket uses ThreadLocal for the Application, Session and RequestCycle.
  There are no JVM singletons.
 
  Some people are against putting jars in the shared lib folder. I
  personally see the benefit and I'd do it if I need to
  If you use shared jars then make sure that none of the applications
  provide these jars or another version of them because in this case you
  will see some ClassLoader related problems, e.g.: ClassCastException:
  o.a.w.Session class is not o.a.w.Session.
 
  On Tue, Jun 12, 2012 at 11:04 PM, Martin Sachs sachs.mar...@gmail.com
  wrote:
   Hello,
  
   i think that is in general not a good idea. If you deploy the
 wicket-lib
   outside the war and run multiple Wicket-Applications, then you could
 not
  use
   all applications, because wicket stores (as far as i know) e.g. the
   application instance in a static field. There is one application per
   WAR-deployment with wicket, but if you use the libs from ear/lib or
  modules
   there will be only one application.
  
   best
   Martin
  
   Илья Нарыжный schrieb:
  
   Hello,
  
   I have several projects which use wicket and various wicket
 sun-modules.
   Every project (*.ear file) took about 10Mb and about 8Mb is for
 wicket
   libraries.
   Recently I have move my projects to Jboss AS 7 and now I'm thinking
   about putting all wicket related jars to JBOSS_HOME/modules.
  
   Have anyone tried that? Do you have some suggestions for Jboss module
   structure for this?
   It will be great to have
  
   IMPLICIT(
 
 https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments
  )
   deploy of wicket related jars to the project.
  
   Thanks,
  
   Ilia
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: missing page

2011-10-12 Thread Martin Funk
is

RequestCycle.get().getRequest().getUrl()

what you are looking for?

mf

2011/10/11 Miroslav F. mir...@seznam.cz

 Hi guys,

 I need a help - have my custom class PageNotFound based on this help:
 https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html

 In my PageNotFound class I have:
 this.add(new Label(missingPage, _put_pagename_which_was_not_found));
 but I have no idea how to find-out pagename. I just know that somehow
 system must know this pagename.

 Any ideas please?

 Miro


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




Re: Wicket filter chain and other servlets

2011-08-08 Thread Martin Funk
the web.xml might help

Am 08.08.2011 um 21:29 schrieb Julian Sinai:

 Hi Dan
 
 I don't understand the reason either, but clearly it's happening. My best
 guess is what I said in my original post: the non-wicket servlets are going
 through the wicket filter.
 Julian
 On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff dretzl...@gmail.com wrote:
 
 Hi Julian,
 
 I'm not quite understanding your setup. How did your non-Wicket servlet get
 a Wicket-proxied Spring bean?
 
 Dan
 
 
 On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote:
 
 Hi, I really could use some advice on how to solve this problem:
 
 In our webapp, we have a wicket filter as well as a couple of other
 servlets. The url pattern for the wicket filter is the usual /*. The
 problem
 is that because of this, all urls, including those of the other servlets,
 go
 through the wicket filter, which is causing problems. Specifically, we are
 using  spring, so wicket's SpringComponentInjector wraps the beans, which
 sometimes results in the exception below.
 
 The real solution is to separate the other servlets into another webapp,
 but
 because of time constraints we can't do that. We also can't easily change
 our urls to assign a unique pattern to the wicket urls (although the other
 servlets do have unique patterns), because it will adversely affect users.
 Is there a way to solve this problem in web.xml? Use wicket servlet
 instead
 of wicket filter?
 
 org.apache.wicket.WicketRuntimeException: There is no application attached
 to
 current thread http-8443-7
   at org.apache.wicket.Application.get(Application.java:179)
 
 ...
 
 
   at
 
 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy(generated)
 
 ...
 
 
   at
 
 com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
 
 
 Any help is appreciated.
 Julian
 
 
 


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



Re: Username gets cached

2011-08-03 Thread Martin Funk
Looking at 1.5-RC5.1 I'd say

public final PasswordTextField setResetPassword(final boolean resetPassword)

will fix that.

But besides that I'd definitely investigate how the models of the two
PasswordTextFields are connected.

mf

2011/8/3 Anna Simbirtsev asimbirt...@gmail.com

 I have autocomplete=off, it does not work.

 On Wed, Aug 3, 2011 at 10:12 AM, vineet semwal
 vineetsemwal1...@gmail.comwrote:

  try after doing autocomplete off on that textfield
 
  On Wed, Aug 3, 2011 at 7:31 PM, Anna Simbirtsev asimbirt...@gmail.com
  wrote:
   No, I am not. The pages are not related.
  
   On Wed, Aug 3, 2011 at 9:54 AM, robert.mcguinness 
   robert.mcguinness@gmail.com wrote:
  
   are you sharing the same model between pages?
  
   --
   View this message in context:
  
 
 http://apache-wicket.1842946.n4.nabble.com/Username-gets-cached-tp3715475p3715532.html
   Sent from the Users forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   Anna Simbirtsev
   (416) 729-7331
  
 
 
 
  --
  thank you,
 
  regards,
  Vineet Semwal
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Anna Simbirtsev
 (416) 729-7331



Re: Run a standalone wicket app

2011-03-07 Thread Martin Funk
if you want to use maven look for 
mvn jetty:run
wicket-quickstart and wicket-examples are set up to run that way.

if you are looking for something like:
java -jar YourAppsName.war

the export function 'Runnable Jar File Export' might be something of help

mf


Am 07.03.2011 um 18:26 schrieb Mauro Ciancio:

 Hello all,
 I'd like to create a jar with a wicket application inside that can be
 run from the command line as it were a desktop application. I'm using
 maven and jetty and it would be great if jetty could start and listen
 on a port.
 
 Any hints or links would be really appreciated.
 
 Thanks in advance.
 Regards.
 -- 
 Mauro Ciancio
 http://about.me/maurociancio
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: http 500 status on GitHub

2011-02-04 Thread Martin Funk
thank you

 

by the way, they fixed it in the meantime.

mf

Am 26.01.2011 um 21:00 schrieb Igor Vaynberg:

 works for me :/
 
 -igor
 
 On Wed, Jan 26, 2011 at 11:42 AM, Martin Funk mafulaf...@googlemail.com 
 wrote:
 Hi,
 
 anyone experiencing something similar, as I described here?
 
 http://support.github.com/discussions/site/2640-wiki-git-access-leads-to-500
 
 mf
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



http 500 status on GitHub

2011-01-26 Thread Martin Funk
Hi,

anyone experiencing something similar, as I described here?

http://support.github.com/discussions/site/2640-wiki-git-access-leads-to-500

mf

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



Re: [Announce] Wicket Stuff Core 1.4.15 released

2011-01-05 Thread Martin Funk
Hi,

seems quite complicated to me (one branch too much):

I'd propose to keep the number of branches low, or even very low. Branches, at 
least to me, are the hotspots to commit code to, the code you'd like to live on 
in the upstream.
As wicketstuff is sort of the tail of wicket, it should try to follow wickets 
branching and release behavior.
In wicket I see two development hotspots represented in the wicket-1.4.x and 
trunk (aka. wicket-1.5.x) branch. These hotspots are quite distinct. If code is 
committed to one of them and the same functionality is needed in the other 
branch, most likely an automatic merge will not do. The branches differ in the 
api and a patch to be merged into the other branch will need to be merged by 
hand. Its quite obvious to any developer that code committed to the 1.4.x will 
not automatically find its way into the trunk.

So, I'd say, if wicketstuff wants to be the reference point for stuff for 
wicket, it should only carry two branches.

wicketstuff-core-1.4.x with the artifact/version wicketstuff-core-1.4-SNAPSHOT 
depending on wicket-1.4-SNAPSHOT

and

trunk with the artifact/version wicketstuff-core-1.5-SNAPSHOT depending on 
wicket-1.5-SNAPSHOT


If a release is build it should first be decided on the wicket version this 
release depends on. Releases depending on wicket-1.4.[1..9] should be cut from 
the wicketstuff-core.1.4.x branch.
The release tag name and the version name should follow wickets version naming. 
I. e. a release depending on wicket-1.4.15 should get a tag and version of 
wicketstuff-1.4.15.0
If a second release depending on the same wicket version is needed it should be 
called wicketstuff-1.4.15.1

So basically keep the number of branches code will be committed to low and keep 
the naming obvious for any developer, to make it easy to decide in which branch 
code needs to be committed to, to make it live in the upstream.

mf


Am 05.01.2011 um 03:47 schrieb Michael O'Cleirigh:

 Hello,
 
 Following the release of wicket 1.4.15 I've cut a matching release for 
 wicketstuff-core.  This release was delayed due to the migration from 
 sourceforge and subversion to github.
 
 The artifacts have been promoted and will be synced into the maven central 
 repository within 1-2 hours.
 
 They can be retrieved like this:
 
 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdwicket-shiro/artifactId
 version1.4.15/version
 /dependency
 
 The release tag is here: 
 https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.15
 
 The core-1.4.x branch now has a pom version of 1.4.16-SNAPSHOT 
 (https://github.com/wicketstuff/core/tree/core-1.4.x).
 
 I've created a new stable branch core-1.4.15.x and it has a pom version of 
 1.4.15.1-SNAPSHOT (https://github.com/wicketstuff/core/tree/core-1.4.15.x).
 
 Release Notes - WicketStuff Core - Version 1.4.15:
 
 wicket-shiro:
- org.wicketstuff.shiro.component.LoginPanel$SignInForm now extends 
 StatelessForm instead of Form
- org.wicketstuff.shiro.component.LoginPanel.onSignInSucceeded now 
 redirects to homepage using
setResponsePage(getApplication().getHomePage())
instead of

 setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(getApplication().getHomePage()))
 
 
 The plan is to release a 1.4.15.1 point release within one month from today.  
   If you commit code and/or want a release sooner let me know as one month is 
 the worst case target.
 
 Regards,
 
 Mike
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



New Wicket based website: https://mm.web.de

2010-12-13 Thread Martin Funk
There is yet another Wicked based site out in the wild.

https://mm.web.de

To take a ride you have to have a web.de e-mail account though. srry.. But
they do have a free plan too.. ;-)

If you do have an account you should be able to access your web.de e-mail on
quite a variety of mobile gadgets.
Basically anything that, can access the URL and render any sort of HTML,
should get you going.

Besides serving a wide variety of devices up to their capabilities, another
focus was on delivering a lean and responsive interface. At least on the LAN
it is very very fast (~300ms / ~10KB / per Page), that shouldn't harm out
there in the field.

Feel free and try yourself,

mf


Re: wicket in a mobile application.

2010-07-15 Thread Martin Funk
2010/7/15 amit1400158 ade...@qasource.com


 Is it favourable to develop android application in wicket or to use android
 sdk or any other framework??

as with so many other questions: it depends and there is no easy answer to
that.
There probably already have been written ephic papers on that subject.

Short answer that would come to my mind is. If you choose to develop a
webapplication using a servlet based framework like wiket you pbrobably
don't have to go far out our way.

On the other hand if you develop a andrdoid native app, it is possible to
come up with a user interface that gives a much better experiance to the
user. But still a server for the information you want to handle on the
device needs to be developed.

Either way, go ahead and have fun,

mf


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2289914.html
 Sent from the Wicket - User mailing list archive at Nabble.com.



Re: wicket in a mobile application.

2010-07-13 Thread Martin Funk
Hi Amit,

the market for web-apps specially designed for mobiles is rather new, the
technological decisions made in that area aren't quite settled yet. Its not
even clear if serving your content in an web-app is the best approach.
The biggest problem seems to be the big number of different devices out
there. Solving that is not really dependent on the framework you use for
developing the web-app. Though if you use wicket your toolbox is well set.
Since it is not possible to render the content customized down to every
device out there a classification of the devices needs to be done. Then it
is a monetary question to decide how many device classes ought to be
supported.
With wicket you might have the chance of developing the components once and
then render em using the html template that fits the device best. Wickets
style mechanism is a good entry point for that.

Ad 1.
It runs on the server side, no different jdk needed

Ad 2.
Firefox offers a plugin that lets you configure the user-agent string in the
header, so the browser can mimic another browser.
As many of the mobile browsers are WebKit based Google Chrome is a good
start to test with.

Ad 3.
err... not that I know of.

Ad 4.
Life will teach you

Ad 5.
same as 3.

Ad 6.
How should we know. Just go ahead and tell us about the experiences you make

mf

2010/7/13 amit1400158 ade...@qasource.com


 Thanks for speedy replies
 Stefan I already know that walmart has developed its mobile site in wicket,
 I want to know how successful is wicket in mobile applications. Like are
 there any performance issues with using wicket in mobile, are there any
 tendencies of hanging the application??
 I have worked in wicket for 2 years now, but have never developed any app
 for mobile, So please bear with my simple qustions. Thanks in
 advance
 1. Do we have to use different jdk while developing mobile apps??
 2. Are there any special browsers for testing apps developed for mobile??
 3. Is there any specification for mobile wicket apps??
 4. Are there any books or online tutorials available for this??
 5.Do we have to develop some special components for mobile apps??
 6.Lastly, if I have worked on developing complex desktop apps in wicket,
 how
 difficult it is for me to develop wicket mobile applications
 Regards,
 Amit Dewan
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287332.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




Re: Wicket and mobile browsers

2010-06-16 Thread Martin Funk
Thank you for the hint, mobileaware wasn't on my radar so far.

2010/6/15 Joachim F. Kainz j...@jolira.com

 Martin,

 WURFL is a great solution, but there are some problems with keeping it
 up-to-date for commercial applications.

 http://www.mobileaware.com/ is a good commercial vendor I have used for
 m.wellsfarg.com and other sites. They have an extensive
 device-repository and a lot of other useful features for building MWeb
 sites. Downside: $$$

 Best regards,

 Joachim

 On Tue, 2010-06-15 at 17:36 +0200, Martin Funk wrote:

  Hi Giovanni,
 
  on what basis do you do the device recognition and classification?
 
  Currently we are looking into wurfl http://wurfl.sourceforge.net/
  Any opion on tha? Or do you know of an alternative to wurfl?
 
  mf
 
  2010/6/15 Joachim F. Kainz j...@jolira.com
 
   Giovanni,
  
   I am one of the developers of mobile.walmart.com. We are using Wicket
 to
   support all types of cell phones, but most of our traffic is from smart
   phones. If you point to our site using iPhone, Blackberry, and Motorola
   Razor you get three different experience. All three experiences are
   backed by the same Java code.
  
   We have nothing to do with visural wicket (even though at first glance
   it looks interesting). Our opensource components are at
   http://code.google.com/p/jolira-tools/
  
   Best regards,
  
   Joachim
   http://www.jolira.com
  
   On Sun, 2010-04-18 at 13:02 -0500, Jeremy Thomerson wrote:
  
There are many classes of smart phones available.  Some support n JS,
   some
very limited, while others support just about anything you can put in
 a
regular browser.  Because of this, you may use the same java code
 with
   three
or four different styles of markup so that each browser class has its
 own
markup.
   
Search the list for mobile.walmart.com and see the post made by
 the
   guys
that created that site.  It talked about this.  They also released
 some
   open
source components - visural wicket.
   
--
Jeremy Thomerson
http://www.wickettraining.com
   
   
   
On Sun, Apr 18, 2010 at 3:17 AM, Giovanni pino_o...@yahoo.com
 wrote:
   
 I need to write a web application which will be accessed via mobile
 browsers from smartphones.

 What are the smartphone browsers which work well with Wicket?

 What kind of attention should I pay during the development of
 Wicket
 applications for mobile devices?

 Is there any tutorial about developing Wicket applications for
 mobile
 target browsers?

 Thanks in advance for any help.

 giovanni




  



Re: Wicket and mobile browsers

2010-06-15 Thread Martin Funk
Hi Giovanni,

on what basis do you do the device recognition and classification?

Currently we are looking into wurfl http://wurfl.sourceforge.net/
Any opion on tha? Or do you know of an alternative to wurfl?

mf

2010/6/15 Joachim F. Kainz j...@jolira.com

 Giovanni,

 I am one of the developers of mobile.walmart.com. We are using Wicket to
 support all types of cell phones, but most of our traffic is from smart
 phones. If you point to our site using iPhone, Blackberry, and Motorola
 Razor you get three different experience. All three experiences are
 backed by the same Java code.

 We have nothing to do with visural wicket (even though at first glance
 it looks interesting). Our opensource components are at
 http://code.google.com/p/jolira-tools/

 Best regards,

 Joachim
 http://www.jolira.com

 On Sun, 2010-04-18 at 13:02 -0500, Jeremy Thomerson wrote:

  There are many classes of smart phones available.  Some support n JS,
 some
  very limited, while others support just about anything you can put in a
  regular browser.  Because of this, you may use the same java code with
 three
  or four different styles of markup so that each browser class has its own
  markup.
 
  Search the list for mobile.walmart.com and see the post made by the
 guys
  that created that site.  It talked about this.  They also released some
 open
  source components - visural wicket.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Sun, Apr 18, 2010 at 3:17 AM, Giovanni pino_o...@yahoo.com wrote:
 
   I need to write a web application which will be accessed via mobile
   browsers from smartphones.
  
   What are the smartphone browsers which work well with Wicket?
  
   What kind of attention should I pay during the development of Wicket
   applications for mobile devices?
  
   Is there any tutorial about developing Wicket applications for mobile
   target browsers?
  
   Thanks in advance for any help.
  
   giovanni
  
  
  
  



Re: Stack Overflow exception

2010-06-02 Thread Martin Funk
Well now that sure is quite an impressive stack.

Looks like a recursion problem.

Do some pages have members referencing to other pages, or themselves?

The stacktrace indicates that the deserialisation process, which tries to
receive the previous rendered page from the DiskPageStore is looping over
and over.
The page that is meant to be serialized might have a long tail of references
to other pages, which it has to deserialize too.

Also the beginning of the stacktrace might be interesting, to identify the
method call that started that recursion . They might be found in some logs.

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

mf

2010/6/2 Srikanth.NT ntsrika...@gmail.com


 I am using wicket 1.3.5 on tomcat clustering. I am getting the stacktrace
 as
 below

 HTTP Status 500 -

 type Exception report

 message

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

 exception

 javax.servlet.ServletException: Filter execution threw an exception
 com.tui.alpine.presentation.filters.GZIPFilter.doFilter(GZIPFilter.java:75)

 com.tui.alpine.presentation.filters.TrackingFilter.doFilter(TrackingFilter.java:114)

 root cause




 java.lang.StackOverflowError
 [...]




 org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageHolder.readResolve(AbstractPageStore.java:363)

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


 Some background:
 When there is an exception in payment gateway we throw a exception to the
 wicket app, which is handled in

 return new WebRequestCycle(this, (WebRequest) request, (WebResponse)
 response) {
 @Override
public Page onRuntimeException(final Page page, final
 RuntimeException exception) {
return exceptionHandler.handleException(exception, page);
}
 }

 So we get the payment page reference in the onRuntimeException method.
 Stacktrace happens on this following page where we reference to the
 previous
 payment page.

 public PaymentErrorPage(final Page page, final String errorCode) {
final Link linkToPaymentPage = new Link(linkToPaymentPage) {
@Override
public void onClick() {
page.add(getPage().get(summaryPanel));
setResponsePage(page);
}
};
linkToPaymentPage.setVisible(page != null);
add(linkToPaymentPage);
 }

 Am I doing anything wrong here with respect to the referencing ?

 This is happening only in clustering environment.



 Thanks,
 Srikanth

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Stack-Overflow-exception-tp1880607p2239756.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




Re: GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Martin Funk
sorry my mind is in Sunday afternoon mode, and not able to wrap itself around 
this...

could you come up with a Quickstart example?

mf

Am 16.05.2010 um 14:55 schrieb Alexandros Karypidis:

 Hi,
 
 I am unsing GMap2 from WicketStuff 
 (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2) 
 and need to display a map in a pop-up dialog. I use JQuery for the dialog. 
 When the Dialog comes up, the map's viewport is offset in relation to the 
 window and only the cross-section of the map's position (starting outside the 
 dialog window) and the actual pop-up window is being drawn. For example, 
 assume the map starts at absolute position 0,0 with as size of 600,400 and 
 the dialog is shown at absolute position 300,200 with size 600,500: Only the 
 region (300,200 - 600,400) is drawn.
 
 This is probably because the dialog is not shown when the GMap2 javascript 
 calculates its position, so I need to call the checkResize() method on 
 http://code.google.com/apis/maps/documentation/reference.html#GMap2 that is 
 created by the WicketStuff control. Problem is, I can't get to the Javascript 
 object underlying the wicketstuff representation. I'm trying to do something 
 like:
 
 myDialog.setOpenEvent(JsScopeUiEvent
.quickScope(
alert('fixing map size');\n +
 $('#mapObjectId').checkResize();\n
);
 
 How can I get the proper mapObjectId value?
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: Gmap2 and Wicket 1.4.8

2010-05-11 Thread Martin Funk
when the blank area is already rendered the app has already come quite far.

out of my mind I'd check the Google Key.
Also I remember Firefox beeing quite picky on 'wicket' elements. If they
were present in or around the div element containing the map, it wouldn't be
rendered.

mf

2010/5/11 Doug Leeper douglee...@yahoo.com

 I just upgraded to Wicket 1.4.8 from 1.4.6.  I am using Gmap2 (1.4.1).
  Upon doing so, my maps are no longer showing a map...just a blank area with
 the google controls that are non-functional.

  Has anyone else experienced this?  Any work arounds?

 Thanks in advance,
 - Doug


Re: GMap2 and zoom_changed

2010-05-11 Thread Martin Funk
you are aware of gmap2-examples?

http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2

once there look at the 'Listen Examples'

mf




2010/5/11 dleeper douglee...@yahoo.com


 This is what I am currently doing.

 zoomChangedListener = new ZoomChangedListener();
add(zoomChangedListener);

map.add(new HeaderContributor(new IHeaderContributor() {
private static final long serialVersionUID = 1L;

public void renderHead(IHeaderResponse response) {


 response.renderOnDomReadyJavascript(zoomChangedListener.getJSinit().toString());
}
}));

 public class ZoomChangedListener extends AbstractDefaultAjaxBehavior
{
private static final long serialVersionUID = 1L;

@Override
protected void respond(AjaxRequestTarget target)
{
Request request = RequestCycle.get().getRequest();

String zoom = request.getParameter(zoom);

System.out.println( NEW ZOOM:  + zoom );

}

public Object getJSinit()
{
return map.getJSinvoke(addListener('zoom_changed',
 ' +
 this.getCallbackUrl()
+ '));
}
}

 Unfortunately the respond is not being called.  Not sure why.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/GMap2-and-zoom-changed-tp2173428p2173506.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




Re: Catch Wicket.Error with FireBug

2010-03-30 Thread Martin Funk
Could you elaborate on your problem a little more?
What precisely do you want to do?

If the Application is started in develompment mode the 'WICKET_AJAX_DEBUG
window should be available on any Page containing Wicket-Ajax components.
(The link in the right bottom corner)

mf

2010/3/30 Martin U ufer.mar...@googlemail.com

 Hi Folks,


 have everyone of you any experience in catching the wicket-ajax and
 js-errors with the Firebug?

 Easily we just need to overwrite WicketAjaxDebug.logError... but how?


 Thanks for any advice!



Re: Wicket on GAE with Facebook Connect - doesnt work after deploying / HTTP 500 error

2010-03-26 Thread Martin Funk
you are aware of this?
http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-engine-for-java/

2010/3/26 christoph glass mail.kaffeeser...@googlemail.com

 Hi everyone,

 I'm trying to run a simple Wicket Application with Facebook Connect on
 Google App Engine.

 So far it runs local, but when I deploy to Google Facebook Connect wont
 work.

 I cant find any examples for using wicket with gae and facebook on the
 web. Is anyone here who successfully made it?

 Here is the output from ajax debug window:

 ---
 INFO: Using XMLHttpRequest transport
 INFO:
 INFO:
 Initiating Ajax GET request on
 ?wicket:interface=wicket-9:36:fbconnectpanel::IActivePageBehaviorListener:0:wicket:ignoreIfNotActive=truerandom=0.6834228196057528
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 500
 ERROR: 500 error had text:
 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html

 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...
 ---

 FacebookConnectPanel.java - took the most from
 http://cwiki.apache.org/WICKET/adding-facebook-connect.html

 ---
 package polizeiwache.sites.auth.facebookconnect;

 import java.io.IOException;


 import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.List;

 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;

 import org.apache.wicket.Page;
 import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.behavior.SimpleAttributeModifier;
 import org.apache.wicket.markup.html.WebMarkupContainer;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.panel.Panel;
 import org.apache.wicket.protocol.http.WebResponse;
 import org.apache.wicket.protocol.http.servlet.ServletWebRequest;
 import org.json.JSONArray;
 import org.json.JSONException;
 import org.json.JSONObject;
 import

 org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
 import org.springframework.security.core.GrantedAuthority;
 import org.springframework.security.core.authority.GrantedAuthorityImpl;
 import org.springframework.security.core.context.SecurityContext;
 import org.springframework.security.core.context.SecurityContextHolder;
 import org.springframework.security.core.context.SecurityContextImpl;

 import pojos.FacebookUser;

 //import com.facebook.api.FacebookException;
 //import com.facebook.api.FacebookJsonRestClient;
 //import com.facebook.api.FacebookWebappHelper;
 //import com.facebook.api.ProfileField;

 import com.google.code.facebookapi.FacebookException;
 import com.google.code.facebookapi.FacebookJsonRestClient;
 import com.google.code.facebookapi.FacebookWebappHelper;
 import com.google.code.facebookapi.ProfileField;


 //import

 com.google.appengine.repackaged.org.apache.commons.logging.impl.LogFactoryImpl;

 /**
  * @see http://cwiki.apache.org/WICKET/adding-facebook-connect.html
  * @author christoph
  *
  */

 @SuppressWarnings(deprecation)
 public class FacebookConnectPanel extends Panel
 {

/**
 *
 */
private static final long serialVersionUID = -5912681574741410118L;

//private static final
 com.google.appengine.repackaged.org.apache.commons.logging.Log log =
 LogFactoryImpl.getLog(FacebookConnectPanel.class);
private WebMarkupContainer fbloginDiv;
private Label fblogin;

/**
 *
 * @param id
 */

public FacebookConnectPanel(String id) {
super(id);
}

/**
 * This method will the panel
 */

public void createPanel() {
fbloginDiv = new WebMarkupContainer(fbloginDiv);
fbloginDiv.setOutputMarkupId(true).setMarkupId(fbloginDiv);
fblogin = new Label(fblogin, fb:login-button
 onlogin='callWicket();'/fb:login-button);
fblogin.setEscapeModelStrings(false);
fblogin.setOutputMarkupId(true);
if (isAuthenticated())
{
fbloginDiv.add(new SimpleAttributeModifier(style,
 display:none;));
}
fbloginDiv.add(fblogin);
addOrReplace(fbloginDiv);

/**
 * This will only be called after they're logged in via facebook
 */

final AbstractDefaultAjaxBehavior behave = new
 AbstractDefaultAjaxBehavior()
{
/**
 *
 */
private static final long serialVersionUID =
 -486358491644699655L;

protected void respond(final AjaxRequestTarget
 target)
  

Re: mvn jetty plugin not compatible with wicket

2010-03-04 Thread Martin Funk
it doesn't?

svn checkout http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.7
cd wicket-1.4.7/
mvn install
cd wicket-quickstart/
mvn jetty:run


works fine on this machine.

mf

2010/3/4 Douglas Ferguson doug...@douglasferguson.us

 Apparently the mvn jetty plugin doesn't work if your pom already has a
 dependency on jetty.

 I was curious if anybody else has a mechanism for stoping and starging a
 jetty instance from mvn.

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




Re: Wicket used for mobile.walmart.com

2010-02-23 Thread Martin Funk
incredibly nice

2010/2/22 Joachim F. Kainz j...@jolira.com

  Fellow Wicket Users,

 The question if Wicket is suitable for large enterprises has just become
 easier to answer: The largest enterprise in the world is now using Wicket
 for its mobile site. Check out mobile.walmart.com (or just point your
 mobile phone to www.walmart.com and get redirected automatically).

 The reason why my client decided to go with Wicket makes it easy to support
 multiple different types of devices. The walmart mobile application supports
 different HTML for three categories of devices (L1: iPhones  challengers,
 L2: BlackBerries, L3: Plain Old Devices). These three experiences are
 supported by the same Java code on the server side.


I'd be very curious how that was achieved? Do you keep three sets of
templates and decide at runtime based on the user-agent information which
template to render against?

I'm currently in a project where this device independence is achieved by a
'post-processor' which picks up the rendered markup and re-renders it for
each device category.

Just curious which approach was chosen for wallmart and your experiences
with it.


mf



 We added a few components to Wicket, mostly because in the retail arena
 being stateless is very important. Our components are available at
 http://code.google.com/p/jolira-tools/.

 Wicket is an awesome product and I would like to thank the Wicket team for
 all there work. One day I hope to get the largest enterprise in the world to
 donate an appropriate amount of money for future development! [image: :)]

 Best regards,

 Joachim

 http://www.jolira.com






Re: wicket Google maps integration

2010-02-16 Thread Martin Funk
look for the contract of ClickListener.onClick
http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/gmap2-parent/gmap2/src/main/java/wicket/contrib/gmap/event/ClickListener.java?r=#l65

An Overlay was clicked, so glatLng is null.

mf

2010/2/16 Josh Kamau joshnet2...@gmail.com

 Team;;


 Whats wrong with this code?

 The map is being displayed properly and when i click on it, a new marker is
 added and the infoWindow is shown. when i click on the info window, i get
 the below error.



 package org.at.example;

 import org.apache.wicket.PageParameters;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.basic.Label;

 import wicket.contrib.gmap.GMap2;
 import wicket.contrib.gmap.api.GControl;
 import wicket.contrib.gmap.api.GEvent;
 import wicket.contrib.gmap.api.GEventHandler;
 import wicket.contrib.gmap.api.GLatLng;
 import wicket.contrib.gmap.api.GMarker;
 import wicket.contrib.gmap.api.GMarkerOptions;
 import wicket.contrib.gmap.api.GOverlay;
 import wicket.contrib.gmap.event.ClickListener;
 import wicket.contrib.gmap.event.InfoWindowCloseListener;
 import wicket.contrib.gmap.event.InfoWindowOpenListener;

 /**
  * Homepage
  */
 public class HomePage extends WebPage {

 private static final long serialVersionUID = 1L;

 /**
  * Constructor that is invoked when page is invoked without a session.
  *
  * @param parameters
  *Page parameters
  */
 public HomePage(final PageParameters parameters) {

 final GMap2 gmap = new GMap2(
 gmap,

 ABQI5IYWHbtyKMSxjbiygH-jRxQqloa41_x1QYpvvO_ao_uBs0dQxxQQyhzR9MXmD-ENkRmQIOig-WC-iw);

 gmap.addControl(GControl.GMapTypeControl);
 gmap.addControl(GControl.GLargeMapControl);

 gmap.setOutputMarkupId(true);
 gmap.setScrollWheelZoomEnabled(true);

 gmap.add(new ClickListener() {

 @Override
 protected void onClick(AjaxRequestTarget target, GLatLng glatLng,
 GOverlay overlay) {

 // GMarkerOptions gmo = new GMarkerOptions();
 // gmo.draggable(true);
 // gmo.bouncy(true);
 if (!(overlay instanceof GMarker)) {//This section was
 added
 to stop the same error from occouring when the marker is clicked.
 GMarker gm = new GMarker(glatLng);
 gmap.getInfoWindow().open(glatLng,
 new Label(Hello, Hi , am here));
 gmap.addOverlay(gm);
 }

 }

 });

  add(gmap);
 }
 }




 Error:

 ERROR - RequestCycle   -
 java.lang.NullPointerException
 at wicket.contrib.gmap.api.GInfoWindow.getJSopen(GInfoWindow.java:162)
 at wicket.contrib.gmap.api.GInfoWindow.open(GInfoWindow.java:115)
 at wicket.contrib.gmap.api.GInfoWindow.open(GInfoWindow.java:91)
 at org.at.example.HomePage$1.onClick(HomePage.java:56)
 at wicket.contrib.gmap.event.ClickListener.onEvent(ClickListener.java:61)
 at

 wicket.contrib.gmap.event.GEventListenerBehavior.respond(GEventListenerBehavior.java:58)
 at

 org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
 at

 org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
 at

 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
 at

 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
 at

 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
 at

 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
 at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
 at

 org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
 at

 org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at org.mortbay.jetty.Server.handle(Server.java:326)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
 at

 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
 at

 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
 at

 

Re: Future of Wicket Security (WASP/SWARM)

2010-01-22 Thread Martin Funk
[ ] adopt Wicket security into Apache Wicket

 [x ] keep Wicket security at Wicket Stuff

 Pulling more code into Apache Wicket doesn't look like the best option to
me.
Looking at
http://www.ohloh.net/p/wicket/contributors?query=sort=latest_commit I'd be
more interesed in ideas of creating more commitment to the project.

mf


Re: Wicket Release Plans for 1.5

2009-11-01 Thread Martin Funk


Am 30.10.2009 um 16:42 schrieb Igor Vaynberg:


possibly. i think i would like this release to be as small as
possible, centered around the new url stuff. once that is in release
1.5 and put the new ajax support from ng into 1.6.

trying to release more and more often instead of taking over a year
and a half like we did with 1.4.0

I totally go along with you on that plan.
Release early and release often.

Any other plans on getting back some momentum on the wicket project?

mf


-igor

On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen
richard.l.al...@gmail.com wrote:

Is the Wicket Ajax Next Generation work going into 1.5?

Also, is there plans for an event bus, sort of like what you see in  
Jonathan
Locke's 26 wicket tricks source code? I've seen some really nice  
use of

event bus in GWT that I think Wicket could benefit from.

-Richard


On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote:


I'm still eager to make WicketTester a first class citizen.


I'm keen on this too -- is there a 'voting' mechanism in the bug
tracker for this sort of thing?

Cheers,
Dave



On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:

I'm still eager to make WicketTester a first class citizen.

Martijn

On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar  
wrote:


   Thanks for your answer,

Daniel


igor.vaynberg wrote:


the focus of this release is to rewrite url and page handling.  
the
focus is on flexibility and pluggability as well as  
simplification of

use to the end user.

the other major feature is the markupfragment implementation,  
which
will allow users access to the markup the component is attached  
to,

possibly, at a time earlier then render time.

other then that there will probably be smaller features that  
will not

go into 1.4.x because they require an api break.

-igor

On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar  
wrote:


   Besides, it would be very interesting to know what changes  
and new

features are planned.

Cheers,

Daniel






--
View this message in context:

http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html

Sent from the Wicket - User mailing list archive at Nabble.com.


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






--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

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




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






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




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



Re: wickstuff-dojo-1.1 maintainer

2009-10-29 Thread Martin Funk
oh, I'm just so command line YEAHHH

svn log
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1|
less

mf

Am 29. Oktober 2009 14:27 schrieb Giambalvo, Christian 
christian.giamba...@excelsisnet.com:

 Hi all,



 who ist he actuall maintainer of wicketstuff-dojo-1.1 ?



 Mit freundlichen Grüßen
 Christian Giambalvo
 --
 Fachinformatiker für Anwendungsentwicklung

 EXCELSIS Informationssysteme GmbH
 Wilhelmsplatz 8 - 70182 Stuttgart
 Mobile +49 176 196 32 406
 Office +49 711 6 20 30 406
 christian.giamba...@excelsisnet.com mailto:
 christian.giamba...@excelsisnet.com
 www.excelsisnet.com http://www.excelsisnet.com/
 www.twitter.com/excelsis_info http://www.twitter.com/excelsis_info

 excelsisnet.blogspot.com http://excelsisnet.blogspot.com/


 Sitz Stuttgart
 Amtsgericht Stuttgart, HRB 21104
 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf






Re: GMap2 GOverlay.getJSConstructor() change request

2009-09-16 Thread Martin Funk
Hi Doug,

the change of getJSconstructor() from protected to public is fine by me.
Go ahead an commit that change.

The client code you posted, I haven't analyzed in depth, but seeing all that
JavaScript genereated on the Server using so many String literals would make
me start to think if that code could somehow be moved into a custom
JavaScript file.
So instead of shoving all that JavaScript code from the server to the client
things could me reduced to calling a custom JavaScript function. It might be
mind bending, but I think its always worth a thought.

mf

2009/9/16 Doug Leeper douglee...@yahoo.com

 I recently moved from 1.3.6 to 1.4.1 and came across a compile error.  I
 believe I had a local copy of GMap2 (1.3.x) and made modifications to make
 the following work.

 Now I would like to propose a change but not sure who I need to talk.
  Specifically, I would like to request to change GOverlay.getJSConstructor()
 from protected to public (and all subsequent derived classes)

 I am need to send javascript back to the browser which basically rebounds
 the a GMap2...the following is my code snippet:

 raw
private String getJSRebound() {
StringBuffer buf = new StringBuffer();
buf.append(var bounds = new GLatLngBounds();\n);
buf.append(var map =  + map.getJSinvoke(map));
buf.append(bounds.extend( map.getCenter() ); \n);

int idx = 0;

for (GOverlay overlay : map.getOverlays()) {
if (overlay instanceof GMarker) {
GMarker marker = (GMarker) overlay;
GLatLng point = marker.getLatLng();
buf.append(bounds.extend(  + point.getJSconstructor()
+  );\n);
}

if (overlay instanceof GGeoXml) {
GGeoXml xml = (GGeoXml) overlay;

String var = xml + idx++;

// this is broken with 1.4.1
// getJSconstructor has been made protected

buf.append(var  + var +  =  + xml.getJSconstructor()
+ ; \n);

buf.append(GEvent.addListener( + var
+ , 'load', function(){ \n);
buf.append(bounds.extend(  + var
+ .getDefaultBounds().getSouthWest() ); \n);
buf.append(bounds.extend(  + var
+ .getDefaultBounds().getNorthEast() ); \n);
buf.append(map.setZoom( map.getBoundsZoomLevel(bounds)
 );\n);
buf.append(}); \n);
}
}

if (idx == 0) {
GLatLng point = new GLatLng(location.getCentralLatitude(),
 location
.getCentralLongitude(), false);
buf.append(bounds.extend(  + point.getJSconstructor() + 
 );\n);
buf
.append(map.setZoom(
 Math.min(map.getBoundsZoomLevel(bounds),8) );\n);
} else {
buf.append(map.setZoom( map.getBoundsZoomLevel(bounds) );\n);
}
buf.append(map.setCenter( bounds.getCenter() );\n);
return buf.toString();
}
 /raw

 This method is called in my constructor:

 raw
map.add(new HeaderContributor(new IHeaderContributor() {
private static final long serialVersionUID = 1L;

public void renderHead(IHeaderResponse response) {
response.renderOnDomReadyJavascript(getJSRebound());
}
}));
 /raw


 Without the ability to generated the JS object and keep a reference, I
 don't believe I can accomplish what I need to do...rebound the map within
 the points I have stored.  If someone has a better idea, I am all ears.  If
 not, the accessibliity change would greatly be appreciated.

 Thanks
 - Doug


Re: GMap2 GOverlay.getJSConstructor() change request

2009-09-16 Thread Martin Funk
2009/9/16 Martin Funk mafulaf...@googlemail.com

 Hi Doug,

 the change of getJSconstructor() from protected to public is fine by me.
 Go ahead an commit that change.


argh... I withdraw and claim the opposite.
or at least rethink it really hard.
If the map you are reffering to already has a JavaSript-counterpart-instance
on the client your ar most likely better of doing al that in a JavaScript on
the client side.

mf




 The client code you posted, I haven't analyzed in depth, but seeing all
 that JavaScript genereated on the Server using so many String literals would
 make me start to think if that code could somehow be moved into a custom
 JavaScript file.
 So instead of shoving all that JavaScript code from the server to the
 client things could me reduced to calling a custom JavaScript function. It
 might be mind bending, but I think its always worth a thought.

 mf

 2009/9/16 Doug Leeper douglee...@yahoo.com

 I recently moved from 1.3.6 to 1.4.1 and came across a compile error.  I
 believe I had a local copy of GMap2 (1.3.x) and made modifications to make
 the following work.

 Now I would like to propose a change but not sure who I need to talk.
  Specifically, I would like to request to change GOverlay.getJSConstructor()
 from protected to public (and all subsequent derived classes)

 I am need to send javascript back to the browser which basically rebounds
 the a GMap2...the following is my code snippet:

 raw
private String getJSRebound() {
StringBuffer buf = new StringBuffer();
buf.append(var bounds = new GLatLngBounds();\n);
buf.append(var map =  + map.getJSinvoke(map));
buf.append(bounds.extend( map.getCenter() ); \n);

int idx = 0;

for (GOverlay overlay : map.getOverlays()) {
if (overlay instanceof GMarker) {
GMarker marker = (GMarker) overlay;
GLatLng point = marker.getLatLng();
buf.append(bounds.extend(  + point.getJSconstructor()
+  );\n);
}

if (overlay instanceof GGeoXml) {
GGeoXml xml = (GGeoXml) overlay;

String var = xml + idx++;

// this is broken with 1.4.1
// getJSconstructor has been made protected

buf.append(var  + var +  =  + xml.getJSconstructor()
+ ; \n);

buf.append(GEvent.addListener( + var
+ , 'load', function(){ \n);
buf.append(bounds.extend(  + var
+ .getDefaultBounds().getSouthWest() ); \n);
buf.append(bounds.extend(  + var
+ .getDefaultBounds().getNorthEast() ); \n);
buf.append(map.setZoom( map.getBoundsZoomLevel(bounds)
 );\n);
buf.append(}); \n);
}
}

if (idx == 0) {
GLatLng point = new GLatLng(location.getCentralLatitude(),
 location
.getCentralLongitude(), false);
buf.append(bounds.extend(  + point.getJSconstructor() + 
 );\n);
buf
.append(map.setZoom(
 Math.min(map.getBoundsZoomLevel(bounds),8) );\n);
} else {
buf.append(map.setZoom( map.getBoundsZoomLevel(bounds) );\n);
}
buf.append(map.setCenter( bounds.getCenter() );\n);
return buf.toString();
}
 /raw

 This method is called in my constructor:

 raw
map.add(new HeaderContributor(new IHeaderContributor() {
private static final long serialVersionUID = 1L;

public void renderHead(IHeaderResponse response) {
response.renderOnDomReadyJavascript(getJSRebound());
}
}));
 /raw


 Without the ability to generated the JS object and keep a reference, I
 don't believe I can accomplish what I need to do...rebound the map within
 the points I have stored.  If someone has a better idea, I am all ears.  If
 not, the accessibliity change would greatly be appreciated.

 Thanks
 - Doug





Re: [announce] Wicket 1.4.1

2009-08-20 Thread Martin Funk
and leave clean underwear

don't think Martijn is up for another one of this:
http://www.nabble.com/SVN-URL-for-Wicket-1.4.0-sources--td24803875.html

mf

2009/8/20 Igor Vaynberg igor.vaynb...@gmail.com

 Apache Wicket 1.4.1 Released

 The Apache Wicket project is proud to announce the first maintenance
 release of Apache Wicket 1.4.

 Download Apache Wicket 1.4.1
 -
 You can download the release here:
 http://www.apache.org/dyn/closer.cgi/wicket/1.4.1

 Or use this in your Maven pom's to upgrade to the new version:

 dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.1/version
 /dependency

 Changes
 -
 The most notable change in this release is the transparent support for
 multipart form submissions via Ajax. Wicket is now smart enough to
 submit a form using a hidden iframe rather then the standard
 XMLHttpRequest if the form contains file upload fields.

 A complete list of changes can be found in our Jira instance[0].

 --

 We thank you for your patience and support.

 The Wicket Team

 [0]
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=prioritypid=12310561fixfor=12314113

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




Re: tooltip in wicket 1.4

2009-08-11 Thread Martin Funk
hmmm

how about:

http://www.google.com/search?q=wicket+tooltip

mf

2009/8/11 srinivas srinivas.r...@sifycorp.com

 Hi,

 I have to add tool tip for label in wicket 1.4, how can i implement this. I
 have Student Name, if a place mouse on that i have to show his details
 can any one help regarding this.

 Thanks in Advance.

 Regards,
 Srinivasa Raju CH.


 Get your world in your inbox!

 Mail, widgets, documents, spreadsheets, organizer and much more with your
 Sifymail WIYI id!
 Log on to http://www.sify.com

 ** DISCLAIMER **
 Information contained and transmitted by this E-MAIL is proprietary to Sify
 Limited and is intended for use only by the individual or entity to which it
 is addressed, and may contain information that is privileged, confidential
 or exempt from disclosure under applicable law. If this is a forwarded
 message, the content of this E-MAIL may not have been sent with the
 authority of the Company. If you are not the intended recipient, an agent of
 the intended recipient or a  person responsible for delivering the
 information to the named recipient,  you are notified that any use,
 distribution, transmission, printing, copying or dissemination of this
 information in any way or in any manner is strictly prohibited. If you have
 received this communication in error, please delete this mail  notify us
 immediately at ad...@sifycorp.com

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




Re: Wicketstuff checkout fails

2009-08-05 Thread Martin Funk
what are you trying to do?

that url is no subversion repo, but a maven repo.

maybe you were looking for this:
http://sourceforge.net/projects/wicket-stuff/develop

mf

2009/8/5 Erik van Oosten e.vanoos...@grons.nl

 Hi,

 I am trying to do a checkout of wicketstuff but I get redirected to the
 same URL:

 e...@oostblok:~/projects/wicketstuff$ svn co
 http://wicketstuff.org/maven/repository/org/wicketstuff/tinymce/
 svn: Repository moved temporarily to '
 http://wicketstuff.org/maven/repository/org/wicketstuff/tinymce/'; please
 relocate
 e...@oostblok:~/projects/wicketstuff$
 Accessing the repo with FF is no problem.

 Am I doing something wrong?

 Regards,
   Erik.

 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/



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




img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
I know its been talked about before
http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Gotchas

Just had to restate it, make myself remember.

mf


Re: img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
like this?

~/dev/sandbox/wicket-trunk$ jsvn diff
Index: wicket/src/main/java/org/apache/wicket/Application.java
===
--- wicket/src/main/java/org/apache/wicket/Application.java(revision
800428)
+++ wicket/src/main/java/org/apache/wicket/Application.java(working
copy)
@@ -33,6 +33,7 @@
 import org.apache.wicket.application.IComponentOnBeforeRenderListener;
 import org.apache.wicket.javascript.DefaultJavascriptCompressor;
 import org.apache.wicket.markup.IMarkupCache;
+import org.apache.wicket.markup.html.EmptySrcAttributeFilter;
 import org.apache.wicket.markup.html.IHeaderContributor;
 import org.apache.wicket.markup.html.IHeaderResponse;
 import
org.apache.wicket.markup.html.image.resource.DefaultButtonImageResourceFactory;
@@ -348,6 +349,8 @@
 getDebugSettings().setDevelopmentUtilitiesEnabled(true);
 // getDebugSettings().setOutputMarkupContainerClassName(true);
 getResourceSettings().setJavascriptCompressor(null);
+getRequestCycleSettings().addResponseFilter(
+EmptySrcAttributeFilter.LOG_EMPTY_SRC_ATTRIBUTE);
 }
 else if (DEPLOYMENT.equalsIgnoreCase(configurationType))
 {
Index:
wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
===
---
wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
(revision 0)
+++
wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
(revision 0)
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the License); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.markup.html;
+
+import org.apache.wicket.IResponseFilter;
+import org.apache.wicket.util.string.AppendingStringBuffer;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+public class EmptySrcAttributeFilter implements IResponseFilter
+{
+private static final Logger log =
LoggerFactory.getLogger(EmptySrcAttributeFilter.class);
+
+/**
+ * Indicates that an exception page appropriate to development should
be shown when an
+ * unexpected exception is thrown.
+ */
+public static final EmptySrcAttributeFilter LOG_EMPTY_SRC_ATTRIBUTE =
new EmptySrcAttributeFilter();
+
+/**
+ * @see org.apache.wicket.IResponseFilter#filter(AppendingStringBuffer)
+ */
+public AppendingStringBuffer filter(AppendingStringBuffer
responseBuffer)
+{
+int emptySrcIndex = responseBuffer.indexOf(src=\\);
+if (emptySrcIndex != -1)
+{
+log.warn(Empty src attribute found in response:);
+int from = Math.max(0, emptySrcIndex - 10);
+int to = Math.min(emptySrcIndex + 10, responseBuffer.length());
+log.warn(responseBuffer.substring(from, to));
+}
+return responseBuffer;
+}
+}
\ No newline at end of file


2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com

 it should be possible to create an IResponseFilter that checks for
 this and reports the error in dev mode.

 -igor

 On Mon, Aug 3, 2009 at 8:00 AM, Martin Funkmafulaf...@googlemail.com
 wrote:
  I know its been talked about before
 
 http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Gotchas
 
  Just had to restate it, make myself remember.
 
  mf
 

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




Re: img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
https://issues.apache.org/jira/browse/WICKET-2412

wow, now we all can be happy together ;-)

mf

2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com

 yep, now if you would only attach it to a jira issue and check that
 attachment is ASL licensed check box we will be happy to roll it in
 :)

 -igor

 On Mon, Aug 3, 2009 at 8:58 AM, Martin Funkmafulaf...@googlemail.com
 wrote:
  like this?
 
  ~/dev/sandbox/wicket-trunk$ jsvn diff
  Index: wicket/src/main/java/org/apache/wicket/Application.java
  ===
  --- wicket/src/main/java/org/apache/wicket/Application.java(revision
  800428)
  +++ wicket/src/main/java/org/apache/wicket/Application.java(working
  copy)
  @@ -33,6 +33,7 @@
   import org.apache.wicket.application.IComponentOnBeforeRenderListener;
   import org.apache.wicket.javascript.DefaultJavascriptCompressor;
   import org.apache.wicket.markup.IMarkupCache;
  +import org.apache.wicket.markup.html.EmptySrcAttributeFilter;
   import org.apache.wicket.markup.html.IHeaderContributor;
   import org.apache.wicket.markup.html.IHeaderResponse;
   import
 
 org.apache.wicket.markup.html.image.resource.DefaultButtonImageResourceFactory;
  @@ -348,6 +349,8 @@
  getDebugSettings().setDevelopmentUtilitiesEnabled(true);
  //
 getDebugSettings().setOutputMarkupContainerClassName(true);
  getResourceSettings().setJavascriptCompressor(null);
  +getRequestCycleSettings().addResponseFilter(
  +EmptySrcAttributeFilter.LOG_EMPTY_SRC_ATTRIBUTE);
  }
  else if (DEPLOYMENT.equalsIgnoreCase(configurationType))
  {
  Index:
 
 wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
  ===
  ---
 
 wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
  (revision 0)
  +++
 
 wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
  (revision 0)
  @@ -0,0 +1,50 @@
  +/*
  + * Licensed to the Apache Software Foundation (ASF) under one or more
  + * contributor license agreements.  See the NOTICE file distributed with
  + * this work for additional information regarding copyright ownership.
  + * The ASF licenses this file to You under the Apache License, Version
 2.0
  + * (the License); you may not use this file except in compliance with
  + * the License.  You may obtain a copy of the License at
  + *
  + *  http://www.apache.org/licenses/LICENSE-2.0
  + *
  + * Unless required by applicable law or agreed to in writing, software
  + * distributed under the License is distributed on an AS IS BASIS,
  + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.
  + * See the License for the specific language governing permissions and
  + * limitations under the License.
  + */
  +package org.apache.wicket.markup.html;
  +
  +import org.apache.wicket.IResponseFilter;
  +import org.apache.wicket.util.string.AppendingStringBuffer;
  +import org.slf4j.Logger;
  +import org.slf4j.LoggerFactory;
  +
  +
  +public class EmptySrcAttributeFilter implements IResponseFilter
  +{
  +private static final Logger log =
  LoggerFactory.getLogger(EmptySrcAttributeFilter.class);
  +
  +/**
  + * Indicates that an exception page appropriate to development
 should
  be shown when an
  + * unexpected exception is thrown.
  + */
  +public static final EmptySrcAttributeFilter LOG_EMPTY_SRC_ATTRIBUTE
 =
  new EmptySrcAttributeFilter();
  +
  +/**
  + * @see
 org.apache.wicket.IResponseFilter#filter(AppendingStringBuffer)
  + */
  +public AppendingStringBuffer filter(AppendingStringBuffer
  responseBuffer)
  +{
  +int emptySrcIndex = responseBuffer.indexOf(src=\\);
  +if (emptySrcIndex != -1)
  +{
  +log.warn(Empty src attribute found in response:);
  +int from = Math.max(0, emptySrcIndex - 10);
  +int to = Math.min(emptySrcIndex + 10,
 responseBuffer.length());
  +log.warn(responseBuffer.substring(from, to));
  +}
  +return responseBuffer;
  +}
  +}
  \ No newline at end of file
 
 
  2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com
 
  it should be possible to create an IResponseFilter that checks for
  this and reports the error in dev mode.
 
  -igor
 
  On Mon, Aug 3, 2009 at 8:00 AM, Martin Funkmafulaf...@googlemail.com
  wrote:
   I know its been talked about before
  
 
 http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Gotchas
  
   Just had to restate it, make myself remember.
  
   mf
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 -
 To 

Re: img src= ... tags are truely evil!

2009-08-03 Thread Martin Funk
thank you

2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com

 voila

 -igor

 On Mon, Aug 3, 2009 at 9:46 AM, Martin Funkmafulaf...@googlemail.com
 wrote:
  https://issues.apache.org/jira/browse/WICKET-2412
 
  wow, now we all can be happy together ;-)
 
  mf
 
  2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com
 
  yep, now if you would only attach it to a jira issue and check that
  attachment is ASL licensed check box we will be happy to roll it in
  :)
 
  -igor
 
  On Mon, Aug 3, 2009 at 8:58 AM, Martin Funkmafulaf...@googlemail.com
  wrote:
   like this?
  
   ~/dev/sandbox/wicket-trunk$ jsvn diff
   Index: wicket/src/main/java/org/apache/wicket/Application.java
   ===
   --- wicket/src/main/java/org/apache/wicket/Application.java
  (revision
   800428)
   +++ wicket/src/main/java/org/apache/wicket/Application.java
  (working
   copy)
   @@ -33,6 +33,7 @@
import
 org.apache.wicket.application.IComponentOnBeforeRenderListener;
import org.apache.wicket.javascript.DefaultJavascriptCompressor;
import org.apache.wicket.markup.IMarkupCache;
   +import org.apache.wicket.markup.html.EmptySrcAttributeFilter;
import org.apache.wicket.markup.html.IHeaderContributor;
import org.apache.wicket.markup.html.IHeaderResponse;
import
  
 
 org.apache.wicket.markup.html.image.resource.DefaultButtonImageResourceFactory;
   @@ -348,6 +349,8 @@
   getDebugSettings().setDevelopmentUtilitiesEnabled(true);
   //
  getDebugSettings().setOutputMarkupContainerClassName(true);
   getResourceSettings().setJavascriptCompressor(null);
   +getRequestCycleSettings().addResponseFilter(
   +EmptySrcAttributeFilter.LOG_EMPTY_SRC_ATTRIBUTE);
   }
   else if (DEPLOYMENT.equalsIgnoreCase(configurationType))
   {
   Index:
  
 
 wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
   ===
   ---
  
 
 wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
   (revision 0)
   +++
  
 
 wicket/src/main/java/org/apache/wicket/markup/html/EmptySrcAttributeFilter.java
   (revision 0)
   @@ -0,0 +1,50 @@
   +/*
   + * Licensed to the Apache Software Foundation (ASF) under one or more
   + * contributor license agreements.  See the NOTICE file distributed
 with
   + * this work for additional information regarding copyright
 ownership.
   + * The ASF licenses this file to You under the Apache License,
 Version
  2.0
   + * (the License); you may not use this file except in compliance
 with
   + * the License.  You may obtain a copy of the License at
   + *
   + *  http://www.apache.org/licenses/LICENSE-2.0
   + *
   + * Unless required by applicable law or agreed to in writing,
 software
   + * distributed under the License is distributed on an AS IS BASIS,
   + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  implied.
   + * See the License for the specific language governing permissions
 and
   + * limitations under the License.
   + */
   +package org.apache.wicket.markup.html;
   +
   +import org.apache.wicket.IResponseFilter;
   +import org.apache.wicket.util.string.AppendingStringBuffer;
   +import org.slf4j.Logger;
   +import org.slf4j.LoggerFactory;
   +
   +
   +public class EmptySrcAttributeFilter implements IResponseFilter
   +{
   +private static final Logger log =
   LoggerFactory.getLogger(EmptySrcAttributeFilter.class);
   +
   +/**
   + * Indicates that an exception page appropriate to development
  should
   be shown when an
   + * unexpected exception is thrown.
   + */
   +public static final EmptySrcAttributeFilter
 LOG_EMPTY_SRC_ATTRIBUTE
  =
   new EmptySrcAttributeFilter();
   +
   +/**
   + * @see
  org.apache.wicket.IResponseFilter#filter(AppendingStringBuffer)
   + */
   +public AppendingStringBuffer filter(AppendingStringBuffer
   responseBuffer)
   +{
   +int emptySrcIndex = responseBuffer.indexOf(src=\\);
   +if (emptySrcIndex != -1)
   +{
   +log.warn(Empty src attribute found in response:);
   +int from = Math.max(0, emptySrcIndex - 10);
   +int to = Math.min(emptySrcIndex + 10,
  responseBuffer.length());
   +log.warn(responseBuffer.substring(from, to));
   +}
   +return responseBuffer;
   +}
   +}
   \ No newline at end of file
  
  
   2009/8/3 Igor Vaynberg igor.vaynb...@gmail.com
  
   it should be possible to create an IResponseFilter that checks for
   this and reports the error in dev mode.
  
   -igor
  
   On Mon, Aug 3, 2009 at 8:00 AM, Martin Funk
 mafulaf...@googlemail.com
   wrote:
I know its been talked about before
   
  
 
 http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Gotchas
   
Just had to restate it, make myself

Re: WicketStuff Developers - please read

2009-07-17 Thread Martin Funk

good work,

thank you.

May I add a Number 0 item to the list.

0 - Don't commit code that breaks the build mvn install

mf

Am 16.07.2009 um 23:38 schrieb Jeremy Thomerson:


I'm trying to build wicketstuff-core 1.4-rc7 to match the Wicket
release.  I have spent hours tracking down pom issues where you
either:

1 - declared a specific version of Wicket to use.  Don't do this -
it's declared in the parent pom and it should always match Wicket's
trunk (or in this case a release that I'm building against).

2 - declared a specific version of your project (0.1-SNAPSHOT /
1.0-SNAPSHOT / etc).  Don't do this.  The projects in wicketstuff-core
will be versioned to match Wicket releases.  If you want to version
yours a different way - move it out of wicketstuff-core and version it
however you want to.

Thank you!!

--
Jeremy Thomerson
http://www.wickettraining.com

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




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



Re: Wicket and javascript

2009-07-05 Thread Martin Funk

you are getting closer...

next step is to get the callbackURL to the browser and than pick it up  
by your javascript.

it could be rendered as an attribute using an AttributeModifier.

given that wicket supplies the javaScript method wicketAjaxGet.
If that gets called with the callbackURL the call will hit right  
through to the onLinkClicked()


so far i did that trick with behaviors, but this is an interesting  
approach too.


mf


Am 05.07.2009 um 13:52 schrieb Mathias Nilsson:



Sorry for not getting this totally.

If I do something like this

class Comp extends WebComponent implements ILinkListener{

public Comp(String id) {
super(id);

}

public String getCallbackURL(){
return  urlFor( ILinkListener.INTERFACE ).toString();
}
public void onLinkClicked() {
// TODO Auto-generated method stub

}

}

Then how could I update it via AJAX?
--
View this message in context: 
http://www.nabble.com/Wicket-and-javascript-tp24336438p24342389.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: Large internet rich UI Wicket websites?

2009-07-01 Thread Martin Funk


Am 01.07.2009 um 20:11 schrieb David Chang:



I am still learning Wicket. The more I read from Wicket in  
Action, the more I like it.


From the book, I know that companies from startups to large-size  
ones such as IBM, Amazon, etc. use Wicket for their projects, but I  
cannot find a list of specific larget internet rich UI websites  
coded with Wicket. Could someone help?


The backgound for this request is that we may use Wicket for a large  
highly-active website.

maybe this helps:
http://cwiki.apache.org/WICKET/sites-using-wicket.html
mf


Cheers!




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




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



Re: AjaxSelfUpdatingTimerBehavior: Leaving page not possible

2009-06-29 Thread Martin Funk


Am 29.06.2009 um 10:22 schrieb Tokalak Ahmet:


Hi Wicketians,

i have a problem with AjaxSelfUpdatingTimerBehavior.

I have added an AjaxSelfUpdatingTimerBehavior to a page, because of  
a background-thread running very long and the
page checks (an AjaxSelfUpdatingTimerBehavior with 10 sec interval  
added at thread start to page) for the termination of the thread and  
showing the results of thread.


It is in theory possible to leave the page while the background  
thread is running and come back to it at a later time.
But in practice it isn't possible to leave it, the behavior reloads  
the page again and again until the thread ends and the behavior is  
removed from the page.

In theory, practice is always easy :-)

Though I don't quite understand your problem.
The ASUTB generates some JavaScript that instructs the Browser to fire  
an AjaxRequest right back to that Behavior on the Server.
If the user leaves the page (on the browser) this JavaScript is  
disabled, no more calls to the browser.
If the user comes back to that page, even if it is loaded from the  
browser cache, those Ajax-calls start again.

Look at the clock example of the ajax examples in the wicket examples.
Also the AjaxRequest doesn't reload the whole page, it just reloads  
the components that are added to the target in the overridden  
'onTimer' method.


To stop the Timer a removal is not needed, a call to its 'stop()'  
method does the same trick.


Hopefully this helps, if not, come back,

mf


Any idea how to solve this problem?
Thank you in advance.






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



Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Martin Funk

not that bad of a plan,

I'd suggest a little change.

Besides the things you have already done please uncomment the shiro- 
security module out of the wicketstuff-core pom.xml


You can comment on that in the pom.xml itself and on the the wiki page  
you already created.


mf


Am 26.06.2009 um 10:23 schrieb Tauren Mills:


I've created a new project in WicketStuff for wicket-shiro-security:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/

This project is basically the same as wicket-ki-security, but I've  
changed
all references of apache ki/jsecurity to shiro. In addition, instead  
of
being dependent on jsecurity-0.9.0.jar, this project relies on the  
following

jars:

shiro-core-1.0-incubating-SNAPSHOT.jar
shiro-web-1.0-incubating-SNAPSHOT.jar
shiro-spring-1.0-incubating-SNAPSHOT.jar

Unfortunately, I don't think these jars are availabe in a maven repo  
yet.

So to build you'll need to:

mkdir shiro
cd shiro
svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
mvn install

I've ran the two sample apps (realm and spring-jdbc) and they both  
appear to

be working correctly.

I didn't want to remove the wicket-ki-security project, as others  
might be
using it.  But now that apache ki has changed its name to apache  
shiro,

perhaps that project should be moved out of wicketstuff-core?

Please let me know if anyone finds any issues with this release.  
Thanks!


Tauren



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



Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Martin Funk

the state it is currently in it affects 20 other projects.
The initial idea for the core projects was to get all the projects  
that are alive together.
In that sense I think the core projects should be in a state were one  
can build em with the

following steps:

svn checkout 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core
cd wicketstuff-core
mvn install

mf

Am 26.06.2009 um 22:02 schrieb Tauren Mills:

I was just chatting with Les (from the Shiro project), and it sounds  
like
Shiro will have maven snapshots available on the Apache Hudson  
server very

soon now.  I think he's just waiting on Apache to set something up.

Martin -- I didn't realize I shouldn't have added the project to
wicketstuff-core/pom.xml.  Is that because the project depends on  
something
that isn't available in maven? I just want to make sure I understand  
the
reasoning.  Once shiro is in maven, it would be fine to have the  
submodule

included, right?

Thanks,
Tauren




On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk mafulaf...@googlemail.com 
wrote:



not that bad of a plan,

I'd suggest a little change.

Besides the things you have already done please uncomment the
shiro-security module out of the wicketstuff-core pom.xml

You can comment on that in the pom.xml itself and on the the wiki  
page you

already created.

mf


Am 26.06.2009 um 10:23 schrieb Tauren Mills:


I've created a new project in WicketStuff for wicket-shiro-security:


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/

This project is basically the same as wicket-ki-security, but I've  
changed
all references of apache ki/jsecurity to shiro. In addition,  
instead of

being dependent on jsecurity-0.9.0.jar, this project relies on the
following
jars:

shiro-core-1.0-incubating-SNAPSHOT.jar
shiro-web-1.0-incubating-SNAPSHOT.jar
shiro-spring-1.0-incubating-SNAPSHOT.jar

Unfortunately, I don't think these jars are availabe in a maven  
repo yet.

So to build you'll need to:

mkdir shiro
cd shiro
svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
mvn install

I've ran the two sample apps (realm and spring-jdbc) and they both  
appear

to
be working correctly.

I didn't want to remove the wicket-ki-security project, as others  
might be
using it.  But now that apache ki has changed its name to apache  
shiro,

perhaps that project should be moved out of wicketstuff-core?

Please let me know if anyone finds any issues with this release.  
Thanks!


Tauren




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





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



Re: Adding attribute to body tag

2009-06-24 Thread Martin Funk


Am 24.06.2009 um 06:54 schrieb John:


Hi,

I need to add a class attribute to the body tag but this:

component.add(new AttributeAppender(class, true, Model.of(yui- 
skin-sam),  ));


... and this ...

component.add(new BodyTagAttributeModifier(class, true,  
Model.of(yui-skin-sam), component));


are not working.  Is there a new way to do this?

not to my knowledge  it works in trunk just like that.

mf


Thanks,

John



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



Re: AJAX and Safari

2009-06-22 Thread Martin Funk

uh, now that's a moving target.

sorry but no solution out of my head, but next steps for me would be  
checking if it happens on the server or on its way to the browser.
What does the response Buffer in the WicketFilter look like just  
before the doGet returns?


mf
Am 22.06.2009 um 12:58 schrieb Wayne Pope:


It looks like we are using an AjaxButton.
Sorry for 2 emails to describe the one problem.
Any ideas?

many thanks

On Mon, Jun 22, 2009 at 12:49 PM, Wayne Popewaynemailingli...@gmail.com 
 wrote:


Sorry I just realised that its not ajax - just a normal form submit.
We still have the same problem though


Wayne Pope-2 wrote:


Hi,

not sure how to investigate this, but we have an issue with ajax and
safari. Problem is it doesn't happen every time - only about 40% .
Essentally we send a request:

Request
Accepttext/xml
Content-Type  application/x-www-form-urlencoded
Referer   http://foo1.glasscubesdev.com:8080/?wicket:interface=:5 


User-AgentMozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/525.19 (KHTML, like Gecko) Version/3.1.2 Safari/525.21
Wicket-Ajax   true

We receive this on the server/eclipse and the request is processed.
However the response is received like this on safari (using the
developer menu):
Response
Ajax-Location ?wicket:interface=:5
Content-Length1
ServerJetty(6.1.4)


As you can see the content length is 1. The effect is that it  
appears
that request never returns (there's nothing in the ajax debug  
window).

It happens locally and on the server. We're on 1.4-rc2 of wicket.

Any ideas? Anyone seen something like this before?

many thanks
Wayne

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





--
View this message in context: 
http://www.nabble.com/AJAX-and-Safari-tp24145113p24145166.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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




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



Re: AJAX and Safari

2009-06-22 Thread Martin Funk

sorry still no answers on this side, just questions.

what does the implementation of the onSubmit method of the AjaxButton  
look like.
Is the component that needs to be rerendered in the browser properly  
added to the AjaxRequestTarget?


mf

Am 22.06.2009 um 13:45 schrieb Wayne Pope:


The buffer is empty.

I see from the request the querystring is
wicket:interface=: 
7 
:projectPagePanel:toolBox2 
:inviteUserPanel:hiddenArea:invitePanel:inviteForm:inviteButton 
::IActivePageBehaviorListener: 
0:wicket:ignoreIfNotActive=truerandom=0.2301371863577515


the response is a http 200 adn ther redirectURL is set to
?wicket:interface=:7 - not sure if this is relavent.

If I can the button to a norml button (not an AjaxButton) it works
fine. Looks like I will need to do this.



On Mon, Jun 22, 2009 at 1:29 PM, Wayne
Popewaynemailingli...@googlemail.com wrote:

Yes sorry  - apologies to all.
I'll have a look Martin.

On Mon, Jun 22, 2009 at 1:11 PM, Martin Funkmafulaf...@googlemail.com 
 wrote:

uh, now that's a moving target.

sorry but no solution out of my head, but next steps for me would be
checking if it happens on the server or on its way to the browser.
What does the response Buffer in the WicketFilter look like just  
before the

doGet returns?

mf
Am 22.06.2009 um 12:58 schrieb Wayne Pope:


It looks like we are using an AjaxButton.
Sorry for 2 emails to describe the one problem.
Any ideas?

many thanks

On Mon, Jun 22, 2009 at 12:49 PM, Wayne Popewaynemailingli...@gmail.com 


wrote:


Sorry I just realised that its not ajax - just a normal form  
submit.

We still have the same problem though


Wayne Pope-2 wrote:


Hi,

not sure how to investigate this, but we have an issue with  
ajax and
safari. Problem is it doesn't happen every time - only about  
40% .

Essentally we send a request:

Request
Accepttext/xml
Content-Type  application/x-www-form-urlencoded
Referer
http://foo1.glasscubesdev.com:8080/?wicket:interface=:5
User-AgentMozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/525.19 (KHTML, like Gecko) Version/3.1.2 Safari/ 
525.21

Wicket-Ajax   true

We receive this on the server/eclipse and the request is  
processed.

However the response is received like this on safari (using the
developer menu):
Response
Ajax-Location ?wicket:interface=:5
Content-Length1
ServerJetty(6.1.4)


As you can see the content length is 1. The effect is that it  
appears
that request never returns (there's nothing in the ajax debug  
window).

It happens locally and on the server. We're on 1.4-rc2 of wicket.

Any ideas? Anyone seen something like this before?

many thanks
Wayne

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





--
View this message in context:
http://www.nabble.com/AJAX-and-Safari-tp24145113p24145166.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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




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






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




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



Re: Reverse geocoding with wicket contrib gmap2

2009-06-18 Thread Martin Funk

Now that's getting quite JavaScript'isch,

out of the box, this might not be possible.

May I recap on this though, just to see if I got it right. A good  
starting point in this area to me allways seems to get aware of the  
runtime calling sequence and then think of the code that could set  
just that up.

So if I got it right it is happing all on the Browser side:

The dragging of a marker should emit events.
These should get picked up by GClientGeocoder.
The GCG should reverse geocode the lat lang of the marker.
The return value should be displayed in the Browser.
And eventually, maybe when the marker is droped
the server should be informed of the last result too.

For the first step I'd come up with a new implementation of  
GEventListenerBehavior

The public String getJSaddListener() would have to be overridden.
Instead of letting it render a call to addListener(...) it would have
to render a call to another yet to be implemented addX(...) method.
After that it get's dissy in my head :-(

mf
P.S.: But never mind, if you come up with soemthing, ask for write  
access to wicket-stuff, and commit it.
Your implementation of reverseDecode might be a good enough candidate  
already.




Am 18.06.2009 um 11:30 schrieb Jesse Kivialho:


Hi,

I'm using wicket 1.3.5. and downloaded the wicket contrib gmap2 from  
the wicket-stuff 1.3.x branch (https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicket-contrib-gmap2/ 
)


I've noticed that the GClientGeocoder knows the reverse geocoding  
also. When I try the example Geocoder in contrib-gmap2-examples it  
gives me a name of the place if write to the address-field ie. 60,20.


Also, I managed to do the reverse geocoding with the server geocoder  
(wicket.contrib.gmap.util.Geocoder) by mostly copy-pasting an  
additional decoding method (since the original assumes the response  
to be type GlatLng):


public String reverseDecode(String response) throws  
GeocoderException {


StringTokenizer gLatLng = new StringTokenizer(response, ,);

String status = gLatLng.nextToken();
gLatLng.nextToken(); // skip precision
String address = ;
while (gLatLng.hasMoreTokens()) {
address += gLatLng.nextToken();
}

if (Integer.parseInt(status) != GeocoderException.G_GEO_SUCCESS) {
throw new GeocoderException(Integer.parseInt(status));
}
return address;
}

With reverse geocoding I want to show the markers location in text,  
not in latitude-longitude-pairs. So, when the user adds a new marker  
by clicking on the map or moves an existing marker by dragging it, I  
want to show the city name the marker is in (instead of latlng).  
With that additional server geocoding method I'm able to do it. I'd  
like to be able to do it client-side, since my fear is that the  
dragging will cause quite many reverse geocoding requests.


So how could I give the GClientGeocoder a TextField-object which  
would have the user-clicked latitude-longitude-pair? Or  
alternatively, how should I modify the GClientGeocoder to be able to  
hook in to the click. I've also looked into the click listener, but  
the request has always already been made in the onEvent-method, so I  
don't know how to alter the request.


The gmap2 extension is working nicely and helps me a lot, thanks!

br,

Jesse Kivialho

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





Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread Martin Funk
since the error is thrown on the browser side a dump of the generated  
html source might be more helpful.


try http://papernapkin.org/pastebin/home for posting that dump

mf

Am 17.06.2009 um 15:58 schrieb Justin Boyd:


All,

I have a simple application where I can change the size, position,  
and color
of a div within a page.  When I click on the div I want some  
functionality
to be performed, however the onclick event is never being returned  
to the
server, and is instead intercepted and rejected by the javascript, I  
get the

error
Ajax GET stopped because of precondition check,
url:;jsessionid=e80700c56cdf00f163ab8b7adb38?wicket:interface=: 
0:superDiv::IBehaviorListener:0:


HomePage.java -
public class HomePage extends BasePage
{

   CompoundPropertyModelRectInfo rectInfoModel = new
CompoundPropertyModelRectInfo(new RectInfo(100, 100, 400, 400,  
blue));
   WebMarkupContainer superDiv = new SuperDiv(superDiv,  
rectInfoModel);


   public HomePage(){
   ... form setup ...
   superDiv.add(new AjaxEventBehavior(onmousedown)
   {

   @Override
   protected void onEvent(AjaxRequestTarget target)
   {
   System.out.println(dicks);
   }
   });
   add(superDiv.setOutputMarkupId(true));

   }

   private class SuperDiv extends WebMarkupContainer
   {

   IModelRectInfo rectInfoModel;

   public SuperDiv(String id, IModelRectInfo rectInfoModel)
   {
   super(id);
   this.rectInfoModel = rectInfoModel;
   }

   @Override
   protected void onComponentTag(ComponentTag tag)
   {
   tag.put(style,
   position: static; +
   top:  + getModelObject().getTop() + ; +
   left:  + getModelObject().getLeft() + ; +
   height:  + getModelObject().getHeight() + ; +
   width:  + getModelObject().getWidth() + ; +
   background-color:  +  
getModelObject().getColor() +

;);
   }

   public RectInfo getModelObject()
   {
   return rectInfoModel.getObject();
   }

   public void setModelObject(RectInfo rectInfo)
   {
   rectInfoModel.setObject(rectInfo);
   }
   }

The markup is simple, I can post that if requested, but it's just a  
div with

a wicket:id tag.

Thanks in advance!



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



Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread Martin Funk

ok, wrong wording on my side.

i meant the html source of the page in the browser.

mf

Am 17.06.2009 um 16:41 schrieb walnutmon:



Martin,

I actually don't know how to get that dump, i'm using firefox, the  
error I
posted was from the AjaxDebugBox, any tips on getting the client  
side dump?

I have firebug, but don't seem to see any JavaScript errors, although
admittedly I don't know anything about using it for JavaScript  
debugging.



Martin Funk-3 wrote:


since the error is thrown on the browser side a dump of the generated
html source might be more helpful.

try http://papernapkin.org/pastebin/home for posting that dump

mf

Am 17.06.2009 um 15:58 schrieb Justin Boyd:


All,

I have a simple application where I can change the size, position,
and color
of a div within a page.  When I click on the div I want some
functionality
to be performed, however the onclick event is never being returned
to the
server, and is instead intercepted and rejected by the javascript, I
get the
error
Ajax GET stopped because of precondition check,
url:;jsessionid=e80700c56cdf00f163ab8b7adb38?wicket:interface=:
0:superDiv::IBehaviorListener:0:

HomePage.java -
public class HomePage extends BasePage
{

  CompoundPropertyModelRectInfo rectInfoModel = new
CompoundPropertyModelRectInfo(new RectInfo(100, 100, 400, 400,
blue));
  WebMarkupContainer superDiv = new SuperDiv(superDiv,
rectInfoModel);

  public HomePage(){
  ... form setup ...
  superDiv.add(new AjaxEventBehavior(onmousedown)
  {

  @Override
  protected void onEvent(AjaxRequestTarget target)
  {
  System.out.println(dicks);
  }
  });
  add(superDiv.setOutputMarkupId(true));

  }

  private class SuperDiv extends WebMarkupContainer
  {

  IModelRectInfo rectInfoModel;

  public SuperDiv(String id, IModelRectInfo rectInfoModel)
  {
  super(id);
  this.rectInfoModel = rectInfoModel;
  }

  @Override
  protected void onComponentTag(ComponentTag tag)
  {
  tag.put(style,
  position: static; +
  top:  + getModelObject().getTop() + ; +
  left:  + getModelObject().getLeft() + ; +
  height:  + getModelObject().getHeight() + ; +
  width:  + getModelObject().getWidth() + ; +
  background-color:  +
getModelObject().getColor() +
;);
  }

  public RectInfo getModelObject()
  {
  return rectInfoModel.getObject();
  }

  public void setModelObject(RectInfo rectInfo)
  {
  rectInfoModel.setObject(rectInfo);
  }
  }

The markup is simple, I can post that if requested, but it's just a
div with
a wicket:id tag.

Thanks in advance!



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





--
View this message in context: 
http://www.nabble.com/AjaxEventBehavior-onclick-for-WebMarkupContainer-Precondition-Check-tp24074285p24075168.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread Martin Funk

close, but no cigar
http://www.phrases.org.uk/meanings/close-but-no-cigar.html

not the html of the component or page that you created in the ide.
i think it might be helpful to see the html that the browser received.
in firefox there ought to be a menu item like: View - show  
Sourcecode (i'm using firefox with a german locale, so the naming  
might be slightly different)


mf


Am 17.06.2009 um 17:44 schrieb walnutmon:



!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
   head
   title/title
   /head
   body
   form wicket:id=form
   top: input type=text wicket:id=top/br/
   left: input type=text wicket:id=left/br/
   length: input type=text wicket:id=height/br/
   width: input type=text wicket:id=width/br/
   color: input type=text wicket:id=color/br/
   input type=submit/
   /form
   div wicket:id=superDiv/div
   /body
/html


Martin Funk-3 wrote:


ok, wrong wording on my side.

i meant the html source of the page in the browser.

mf




--
View this message in context: 
http://www.nabble.com/AjaxEventBehavior-onclick-for-WebMarkupContainer-Precondition-Check-tp24074285p24076448.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread Martin Funk

hm... lets see,

the JavaScript in the Browser complains since: function() {return  
Wicket.$('superDiv2') != null;}.bind(this))

returns false. (its the precondition)
It returns false since there is no dom element with the id 'superDiv2'  
in the page.

I assume its the id of the div elements, but the id is not rendered.
Which is strange since   add(superDiv.setOutputMarkupId(true)); got  
called.

Next shoot would be the overridden onComponentTag() method.
I'd say a call to super.onComponentTag() is needed.

Maybe that should be described more explicit in the JavaDoc.

mf

Am 17.06.2009 um 19:25 schrieb walnutmon:



Close but no donut, copper.  That occurred to me, but it was too  
late.  The
source doesn't seem to give much away, I do see the JavaScript on  
the Div

though.


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
   head
   title/title
   script type=text/javascript
src=resources/org.apache.wicket.markup.html.WicketEventReference/ 
wicket-event.js/script

script type=text/javascript
src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket- 
ajax.js/script

script type=text/javascript
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/ 
wicket-ajax-debug.js/script

script type=text/javascript
id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
wicketAjaxDebugEnable=true;
/*--]]*//script

/head
   body
   form wicket:id=form id=form1 method=post
action=?wicket:interface=:0:form::IFormSubmitListener::div
style=display:noneinput type=hidden name=form1_hf_0  
id=form1_hf_0

//div
   top: input type=text wicket:id=top value=400
name=top/br/
   left: input type=text wicket:id=left value=400
name=left/br/
   length: input type=text wicket:id=height value=100
name=height/br/
   width: input type=text wicket:id=width value=100
name=width/br/

   color: input type=text wicket:id=color value=blue
name=color/br/
   input type=submit/
   /form
   div wicket:id=superDiv style=position: static;top:  
400;left:

400;height: 100;width: 100;background-color: blue; onmousedown=var
wcall=wicketAjaxGet('?wicket:interface=: 
0:superDiv::IBehaviorListener:0:',null,null,
function() {return Wicket.$('superDiv2') != null;}.bind(this));/ 
div

   /body
/html

Thanks again
--
View this message in context: 
http://www.nabble.com/AjaxEventBehavior-onclick-for-WebMarkupContainer-Precondition-Check-tp24074285p24078270.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread Martin Funk


Am 17.06.2009 um 20:15 schrieb walnutmon:



For the record, the call to super.onComponentTag(tag) fixed the issue.

Awesome catch Martin!

Thank you,

your welcome. (and not to forget, I had my fun too)

mf





Martin Funk-3 wrote:


hm... lets see,

the JavaScript in the Browser complains since: function() {return
Wicket.$('superDiv2') != null;}.bind(this))
returns false. (its the precondition)
It returns false since there is no dom element with the id  
'superDiv2'

in the page.
I assume its the id of the div elements, but the id is not  
rendered.

Which is strange since   add(superDiv.setOutputMarkupId(true)); got
called.
Next shoot would be the overridden onComponentTag() method.
I'd say a call to super.onComponentTag() is needed.

Maybe that should be described more explicit in the JavaDoc.

mf

Am 17.06.2009 um 19:25 schrieb walnutmon:



Close but no donut, copper.  That occurred to me, but it was too
late.  The
source doesn't seem to give much away, I do see the JavaScript on
the Div
though.


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
  head
  title/title
  script type=text/javascript
src=resources/org.apache.wicket.markup.html.WicketEventReference/
wicket-event.js/script
script type=text/javascript
src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-
ajax.js/script
script type=text/javascript
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/
wicket-ajax-debug.js/script
script type=text/javascript
id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
wicketAjaxDebugEnable=true;
/*--]]*//script

/head
  body
  form wicket:id=form id=form1 method=post
action=?wicket:interface=:0:form::IFormSubmitListener::div
style=display:noneinput type=hidden name=form1_hf_0
id=form1_hf_0
//div
  top: input type=text wicket:id=top value=400
name=top/br/
  left: input type=text wicket:id=left value=400
name=left/br/
  length: input type=text wicket:id=height value=100
name=height/br/
  width: input type=text wicket:id=width value=100
name=width/br/

  color: input type=text wicket:id=color value=blue
name=color/br/
  input type=submit/
  /form
  div wicket:id=superDiv style=position: static;top:
400;left:
400;height: 100;width: 100;background-color: blue; onmousedown=var
wcall=wicketAjaxGet('?wicket:interface=:
0:superDiv::IBehaviorListener:0:',null,null,
function() {return Wicket.$('superDiv2') != null;}.bind(this));/
div
  /body
/html

Thanks again
--
View this message in context:
http://www.nabble.com/AjaxEventBehavior-onclick-for-WebMarkupContainer-Precondition-Check-tp24074285p24078270.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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





--
View this message in context: 
http://www.nabble.com/AjaxEventBehavior-onclick-for-WebMarkupContainer-Precondition-Check-tp24074285p24079175.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: spring dojo or wicket for 508 application

2009-06-11 Thread Martin Funk

how about:
http://www.google.com/#hl=enq=508aq=foq=aqi=g10fp=JchEd6hFBSg

Thnx to google I'm only half as dumb as I used to be.

Cheers Korbinian whiskyworld.de Bachl :-)

mf


Am 11.06.2009 um 10:46 schrieb Korbinian Bachl - privat:


dumb question: what is 508?

tubin gen schrieb:
My application must be 508 , we are using wicket , recently 
heard spring
dojo , or spring dwr provides rich UI and  ajax support and its 90%  
508
complaint is that true ?  Please suggest us If we should go with  
spring

dojo  or wicket ?


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




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



Re: Component lifecycle question

2009-06-10 Thread Martin Funk

this is how free I felt:
https://issues.apache.org/jira/browse/WICKET-2321

I'd be looking forward for that especially in the context of Ajax and  
keeping control over JavaScript objects on the browser side. Like  
components that induce the instation of JavaScript objects in the  
Browser. These should outlive the Component#detach() but be cleaned up  
on removal of the Component. From my perspective the given patch would  
be a good way to go.


mf

Am 08.06.2009 um 18:27 schrieb Igor Vaynberg:

On Sun, Jun 7, 2009 at 10:40 AM, Martin  
Funkmafulaf...@googlemail.com wrote:

Hi list,

in short:

Why is there no Component#onRemove() method?


because no one asked for it. feel free to create a jira issue with  
the request.


-igor



I see that there is Component#onDetach() which is called by
Component#remove(), so it might be a good candidate.
But onDetach is also called at the end of every RequestCycle.
I have things that I want to get done when a Component is removed or
replaced, not on every detach.

How can I achieve that?

mf

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




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





Re: Component lifecycle question

2009-06-10 Thread Martin Funk

hm...

how about this (i changed the method naming from onRemove to  
onRemoveFromHierarchy):


@Override
protected void onRemoveFromHierarchy()
{
if (AjaxRequestTarget.get() != null) {
			AjaxRequestTarget.get().appendJavascript(remove the JavaScript  
objects that belong to me.);

}
super.onRemoveFromHierarchy();
}

with the current api it seems to impossible to implement something  
like the counterpart of the poor men's init/onAttach idiom as  
described here:

http://cwiki.apache.org/confluence/display/WICKET/Page+construction+strategies#Pageconstructionstrategies-UsingComponent%23onBeforeRender

mf


Am 10.06.2009 um 14:51 schrieb Alex Objelean:



Hi Martin,
Could you please provide an example of how you could be able to  
control

javascript object if you would have onRemove method?

Thanks!
Alex


Martin Funk-3 wrote:


this is how free I felt:
https://issues.apache.org/jira/browse/WICKET-2321

I'd be looking forward for that especially in the context of Ajax and
keeping control over JavaScript objects on the browser side. Like
components that induce the instation of JavaScript objects in the
Browser. These should outlive the Component#detach() but be cleaned  
up
on removal of the Component. From my perspective the given patch  
would

be a good way to go.

mf

Am 08.06.2009 um 18:27 schrieb Igor Vaynberg:


On Sun, Jun 7, 2009 at 10:40 AM, Martin
Funkmafulaf...@googlemail.com wrote:

Hi list,

in short:

Why is there no Component#onRemove() method?


because no one asked for it. feel free to create a jira issue with
the request.

-igor



I see that there is Component#onDetach() which is called by
Component#remove(), so it might be a good candidate.
But onDetach is also called at the end of every RequestCycle.
I have things that I want to get done when a Component is removed  
or

replaced, not on every detach.

How can I achieve that?

mf

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




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







--
View this message in context: 
http://www.nabble.com/Component-lifecycle-question-tp23913399p23961642.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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





Re: AW: Custom HeaderContributor

2009-06-08 Thread Martin Funk

Hi Stefan,

I can see the pain you have with the  script.../script sections.
But looking at HeaderResponse#renderJavascript(..) I'd say wicket  
might not be very helpful in aggregating all the script sections into  
one.
My best shot would be trying to aggregate the Behaviors into one/fewer  
Behaviors.


But you could always create a jira or put something on the 1.5  
wishlist :-)


mf

Am 08.06.2009 um 07:15 schrieb Stefan Lindner:


Hello Jeremy,

you wrote HeaderContributor is rather an implementation of  
IHeaderContributor - of which of course you could create your own  
implementations


Great to read, but how can I do this?

-Ursprüngliche Nachricht-
Von: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Gesendet: Montag, 8. Juni 2009 02:22
An: users@wicket.apache.org
Betreff: Re: Custom HeaderContributor

HeaderContributor is rather an implementation of IHeaderContributor -
of which of course you could create your own implementations.  What
you really seem to be seeking is to make each ajax behavior use a
different header contributor.  For that, you would need to override
the way which each ajax behavior contributes script.

--
Jeremy Thomerson
http://www.wickettraining.com




On Sun, Jun 7, 2009 at 12:25 PM, Stefan Lindner  
lind...@visionet.de wrote:

OK :-)
When I create a special AjaxBehavior I can overwrite the  
onRenderHead method which has an IHeaderContributor (=Header  
Contributor) as parameterJavaScript to the page's head section.
But every AjaxBehavior renders it's own script/script tag.  
I there are a lot of such AjaxBehaviors on a page then the header  
contains a huge number of script.../script sections with only a  
few characters of javascript inside.
I found no possibility to combine all the small pieces in one  
script/script section.
So my idea was to use my own, extended version of  
HeaderContributor. Just like I can have a own version of Session.  
But where can I direct Wicket to use my extended version of  
HeaderContributor?




Von: Martin Funk [mailto:mafulaf...@googlemail.com]
Gesendet: So 07.06.2009 19:00
An: users@wicket.apache.org
Betreff: Re: Custom HeaderContributor




Am 07.06.2009 um 18:43 schrieb Stefan Lindner:


Is it possible to have a custom HeaderContributor?


err... could you elaborate a little more?




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



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






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



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


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




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



Re: Custom HeaderContributor

2009-06-07 Thread Martin Funk


Am 07.06.2009 um 18:43 schrieb Stefan Lindner:


Is it possible to have a custom HeaderContributor?


err... could you elaborate a little more?




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



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



Component lifecycle question

2009-06-07 Thread Martin Funk

Hi list,

in short:

Why is there no Component#onRemove() method?

I see that there is Component#onDetach() which is called by  
Component#remove(), so it might be a good candidate.

But onDetach is also called at the end of every RequestCycle.
I have things that I want to get done when a Component is removed or  
replaced, not on every detach.


How can I achieve that?

mf

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



Re: Automatically adding a parameter to every link?

2009-05-05 Thread Martin Funk

the most authorative might be the javadoc in the code:

http://fisheye6.atlassian.com/browse/wicket/trunk/wicket/src/main/java/org/apache/wicket/settings/IPageSettings.java?r=768578#l53

mf

Am 05.05.2009 um 00:25 schrieb Eyal Golan:


In short,
what does it mean exactly Multi Window Support ?

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really  
necessary



On Mon, May 4, 2009 at 1:06 PM, Martin Funk  
mafulaf...@googlemail.comwrote:



maybe automatic multi window support might help you

this can be turned on like this in the init method of your  
Application.


  /**
   * @see org.apache.wicket.protocol.http.WebApplication#init()
   */
  @Override
  protected void init()
  {
  super.init();
  getPageSettings().setAutomaticMultiWindowSupport(true);
  }

mf

Am 03.05.2009 um 15:00 schrieb Matthew Welch:


The data in the application that I'm working on is divided in any  
number

of
different contexts. The pages displayed for each context are the  
same but
the data shown on those pages will be different depending on the  
specific

context. A logged in user might might have multiple pages (browser
windows)
open at one time from any one of these contexts, otherwise I would  
store

the
context in their session. As it stands I need to pass the context  
around

from page to page as a parameter. Is there an easy way to have this
parameter automatically appended to all links on page as they are  
rendered

or generated?

I suppose I could build my own set of Link components that look  
for the
existing context of a page and append that to themselves, and use  
those

links instead of the built in ones. Any other options?

-Matt







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



Re: Automatically adding a parameter to every link?

2009-05-04 Thread Martin Funk

maybe automatic multi window support might help you

this can be turned on like this in the init method of your Application.

/**
 * @see org.apache.wicket.protocol.http.WebApplication#init()
 */
@Override
protected void init()
{
super.init();
getPageSettings().setAutomaticMultiWindowSupport(true);
}

mf

Am 03.05.2009 um 15:00 schrieb Matthew Welch:

The data in the application that I'm working on is divided in any  
number of
different contexts. The pages displayed for each context are the  
same but
the data shown on those pages will be different depending on the  
specific
context. A logged in user might might have multiple pages (browser  
windows)
open at one time from any one of these contexts, otherwise I would  
store the
context in their session. As it stands I need to pass the context  
around

from page to page as a parameter. Is there an easy way to have this
parameter automatically appended to all links on page as they are  
rendered

or generated?

I suppose I could build my own set of Link components that look for  
the
existing context of a page and append that to themselves, and use  
those

links instead of the built in ones. Any other options?

-Matt




Re: Wicketstuff-core issue

2009-05-04 Thread Martin Funk


Am 04.05.2009 um 19:32 schrieb Jeremy Thomerson:

Regarding jetty - not sure - hopefully one of the Maven mavens will  
speak up.




hmmm..
how about beeing a little more specific about the 'does not work for  
me' part.

which command is issued on which codebase?

svn info

comes in hand for that

also which error message is seen?

for maven version issues the
mvn help:effective-pom
is quite helpful

mf


Regarding jar - It's not a jar project, it's a pom project.  There
won't be a jar.  There are nightly builds, but the TeamCity server
always has vcs connection issues - so sometimes the builds don't work.
If you search the list, you will see where I have posted links in the
past to my own build server on wickettraining.com that you are welcome
to use if necessary.

--
Jeremy Thomerson
http://www.wickettraining.com




On Mon, May 4, 2009 at 12:17 PM, Kaspar Fischer h...@rapsak.com  
wrote:
I have a minor issue with wicket-stuff core. I don't know where to  
report it
to, so I hope it's fine if I post here. (Wicket JIRA probably isn't  
the

right place and Wicketstuff JIRA does not contain a project
'wicketstuff-core'.)

The pom.xml does not work for me with Maven 2.1.0. If I change

  plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty-plugin/artifactId
  /plugin

to

  plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty-plugin/artifactId
 version6.1.10/version
  /plugin

it works.

Kaspar

P.S. Just to be sure: I found no JAR in the maven repository [1],  
so assume
that there are no nightly builds for this project and I have to  
compile

myself, right?

[1]
http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-core/1.4-SNAPSHOT/

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




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




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



Re: wicket-push project

2009-04-30 Thread Martin Funk

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core

Am 30.04.2009 um 15:15 schrieb Eman Nollase:


Hello,

As I browse to wicketstuff repository the wicket-push project is  
already

gone?

Thanks.
Cheers.



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



Re: Registering 'global' Ajax listeners?

2009-04-23 Thread Martin Funk

Hi Liam,

what is it that you'd like to achieve?

On the server side, when executing protected abstract void  
respond(AjaxRequestTarget target);

any component can be added to the target.

mf

Am 23.04.2009 um 00:43 schrieb Liam Clarke-Hutchinson:


Hi,

I have  page with several child components, and several of the
children update themselves using Ajax. Is it possible for the page to
register an Ajax listener that is called on the Ajax events of the
children?

Regards,

Liam Clarke

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





Re: Which component for gmap for wicket 1.3.5?

2009-04-21 Thread Martin Funk
number 1)

it evolved out of 2)

mf

2009/4/20 Phillip Rhodes spamsu...@rhoderunner.com

 I see there are a couple gmap projects if I browse to the SVN repo for
 wicketstuff.

 http://wicketstuff.org/maven/repository/org/wicketstuff/

 For example:
 1) gmap2  (updated Mon, 20 Apr 2009)
 2) wicket-contrib-gmap2 (updated on Mon, 01 Dec 2008)

 I am using wicket 1.3.5  Which component should I be using?


 Thanks!




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




Re: google maps in wicket

2009-04-14 Thread Martin Funk
Hi Shiraz,

gmap2-contrib has moved

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

mf

2009/4/14 shiraz memon shiraz.li...@googlemail.com

 Hi

 I am a newbie to wicket and stumbled upon it via several websites and
 blogs,
 even I managed to run simple examples with in couple of minutes. Also very
 amazed about its elegance and simplicity, which really pushes me to use
 this
 framework in my application.

 I am using maven for dependency management and implicity got wicket
 v1.4-rc2
 dep's without any problems, but did not see any GoogleMap classes which are
 explained in gmap(2)-contrib's. Are they deployed on any maven repos or
 downloadable from any website as seperate source/binary bundle?

 Thanks for any help in advance,

 Shiraz



Re: google maps in wicket

2009-04-14 Thread Martin Funk

as far as I can tell
there is no wicketstuff-core or gma2 module on maven.

You need to compile it yourself.

svn checkout 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
cd wicketstuff-core
mvn clean install

should just do that.

mf
Am 14.04.2009 um 15:29 schrieb shiraz memon:


Thanks Martin for your quick reply,

I have tried to fetch dependencies using maven, but seems like  
dependencies

could not be downloaded.

below is the repository if I am adding to my pom

repositories
 repository
 idwicket-snaps/id
 urlhttp://wicketstuff.org/maven/repository/url
 snapshots
 enabledtrue/enabled
 /snapshots
 releases
 enabledtrue/enabled
 /releases
 /repository
/repositories

and the declaring dependency as follows:

dependency
 groupIdorg.wicketstuff/groupId
 artifactIdwicketstuff-core/artifactId
 version1.4-SNAPSHOT/version
 /dependency

Best regards,

Shiraz




On Tue, Apr 14, 2009 at 2:31 PM, Martin Funk mafulaf...@googlemail.com 
wrote:



Hi Shiraz,

gmap2-contrib has moved


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

mf

2009/4/14 shiraz memon shiraz.li...@googlemail.com


Hi

I am a newbie to wicket and stumbled upon it via several websites  
and

blogs,
even I managed to run simple examples with in couple of minutes.  
Also

very
amazed about its elegance and simplicity, which really pushes me  
to use

this
framework in my application.

I am using maven for dependency management and implicity got wicket
v1.4-rc2
dep's without any problems, but did not see any GoogleMap classes  
which

are
explained in gmap(2)-contrib's. Are they deployed on any maven  
repos or

downloadable from any website as seperate source/binary bundle?

Thanks for any help in advance,

Shiraz






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



Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Martin Funk
look around in the area of HeaderContributor and how it is used in  
JavascriptPackageResource.getHeaderContributor


and keep in mind, when implementing the method renderHead of class  
HeaderContributor, that IHeaderResponse contains a  
method .renderOnDomReadyJavascript(


mf
Am 08.04.2009 um 15:13 schrieb Craig Tataryn:


On 8-Apr-09, at 3:27 AM, Martijn Dashorst wrote:

On Wed, Apr 8, 2009 at 4:04 AM, Craig Tataryn crai...@tataryn.net  
wrote:

but the JavaDoc tells me not to use this
method as it's supposed to be used by Wicket internally only.  And  
they use

capital letters too when telling me this.


That is because a kitten gets killed every time you call such  
methods. ;-)


You can call such methods, but you should be aware that we reserve  
the

right to remove those methods in a new version, or change the
behavior. These methods often also do things inside of Wicket
internals that might hinder proper request processing (you might call
a method before it is supposed to be called, causing ill effects such
as doing expensive things twice or throw NPE's, or a long time after
it is supposed to be called and leave a mess).

If you need that method, you can call it, but you're on your own :)



Thanks Martijn, is there another way one might be able to get the  
Markup Component in renderHead?  The one you get from the incoming  
container is of course the head tag.


The scenario I'm using this for must be a common one, I'm using  
response.renderOnDomReadyJavascript(someJs) within renderHead() and  
the code within someJs contains some javascript that has  
document.getElementById(mycomponentId).


Craig.


Martijn

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




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




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



Re: London Wicket Event 01/04/09

2009-04-02 Thread Martin Funk

If you would have taken of at 14:35
you would have had time to drop by the tate galery.
:-)

beyond that I'd also like to thank Cemal and Al organizing that event  
and even helping with peoples traveling plans.
I wonder how many people would have showed up if the G20 were not  
arround.


Thank you guys!

mf

Am 02.04.2009 um 15:09 schrieb Martijn Dashorst:


It definitely is an event worth visiting. I had a blast, and enjoyed
every minute of it (except for travelling back at 5am).

Great crowd, finally being able to meet, greet, and drink beers with
luminaries such as Cemal and Al.

I hope we can create such an atmosphere over the world for the  
Wicket events.


Martijn

(feeling quite tired now after ~3 hours of sleep)

On Thu, Apr 2, 2009 at 1:27 PM, Yiannis Mavroukakis
imavrouka...@gameaccount.com wrote:


Just wanted to thank everyone involved for another excellent  
evening  :-)
The presentations from everyone were very informative, I especially  
enjoyed
Martijn Dashorst's presentation of what can be achieved with  
Wicket, and Al
Maw for the fastest trying-to-drum-API-sense-into-you tutorial  
ever ;-)


Ioannis.

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






--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




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



Re: wicketstuff / ki / jsecurity

2009-03-25 Thread Martin Funk


Am 25.03.2009 um 10:17 schrieb nino martinez wael:

The problem with wicket stuff have been cleared up a bit, the part  
about
which projects are dead and not.. Those in wicketstuff-core are  
alive, and
if they become incompatible with the current version of wicket they  
will be

kicked..

are they? I mean alive.
Locking here:
http://wicketstuff.org/teamcity/viewLog.html?buildId=3486tab=buildResultsDivbuildTypeId=bt35
I'd say it's at least not compiling no more.

Could someone please fix that?

mf




2009/3/25 Maarten Bosteels mbosteels@gmail.com


Hi Ryan,

I added you to the Project Members, so feel free to commit your  
examples.

Unfortunately, until now I haven't had time to work on it myself

The idea was to let the code mature in
http://code.google.com/p/wicket-jsecurity/
and maybe move it to wicket-stuff later on.

Maybe we should move it to wicket-stuff already.
My main problem with wicket-stuff is/was that it's not always very  
clear
which projects are still alive and maintained and which are  
practically

dead. And at the time, wicket-stuff had some problems with continuous
integration, IIRC.

Les, what do you think ?
We should change the project name to wicket-ki anyway.

regards,
Maarten

On Wed, Mar 25, 2009 at 7:47 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:


Yeah I've for one always been very pro for wicketstuff.. It's nice

keeping
things in one place.. Plus as you write if we share a somewhat  
similar

structure it's potentially easier to maintain..

2009/3/24 Ryan McKinley ryan...@gmail.com


Hi-

I've been looking to integrate a complex security model with  
wicket --

jsecurity seems really good.  I tried messing with:
http://code.google.com/p/wicket-jsecurity/

This appears to be a starting place, but does not have any running

example.


In an effort to get things running (and learn JSecurity) i took  
that +
wicket-auth-roles and tried to make a functioning core +  
example.  I've

got

something running and would love to share it...

Should I post this to the google code site?

It makes more sense (to me) if we keep it in the wicketstuff  
repos --

that
way we get the benefit of Jeremy's work to make wickettuff-core  
much

cleaner.

Thoughts?

Ryan



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









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



Re: wicket - opensocial integration (with example code)

2009-03-12 Thread Martin Funk

I'd even ask for one step further.
How about creating some quickstart with this and add it to wicketstuff.
Not quite sure, maybe this script could be turned into a reusable  
HeaderContributor.


mf
Am 12.03.2009 um 03:23 schrieb Igor Vaynberg:


Armin, maybe you should put this on our wiki page. threads like this
tend to get lost easily in all the traffic.

-igor

On Wed, Mar 11, 2009 at 4:28 PM, Armin Bauer  
armin.ba...@amiando.com wrote:

Hi everyone,

we are currently working on an opensocial application based on  
wicket.
Currently it is not possible to use the ajax functionality of  
wicket in an

opensocial app.

opensocial is based on iframes which run your html / js in a seperate
domain. If you build a widget for myspace.com for example, your  
html will
run in msappspace.com which will prevent ajax call due to cross  
domain

browser security. Luckily there is a opensocial method
gadgets.io.makeRequest to pull xml content from your backend  
which is
proxied through the opensocial container and basically works like  
an ajax

request.

so i created a bridge which replaces the XHR of wicket-ajax.js with  
an

implementation based on makeRequest. Without further ado:

script type=text/javascript

Wicket.Ajax.createTransport = function() {
  return {

  open: function(method, url, async) {
  this.url = url;
  },

  setRequestHeader: function(key, value) {

  },
send: function(body) {
  var req_params = new Object();
  req_params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
  var req = gadgets.io.makeRequest(http://your.server.com; +
this.url +  + body, this.callback.bind(this), req_params);
  },
callback: function(data) {
  this.responseText = data.text;
  this.status = 200;
  this.readyState = 4;
  this.onreadystatechange();
  },
getResponseHeader: function(key) {
  return null;
  },
abort: function() {
}
};
}

/script

By including this script below your wicket-ajax script in the  
opensocial app
you can use finally use ajax functionality directly on the canvas.  
It should
work completely transparent so no changes in your wicket code  
should be
required. Developing / porting wicket code to opensocial apps  
should be a

lot easier now :)

Note that this example does not support error handling, headers,  
aborting
and GET request also do not work completely. Adding this  
functionality
should be easy however. Feel free to use / modify / publish the  
code as you

like.

Best Regards,
Armin

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




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




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



Re: Wicket meetup in Switzerland?

2009-02-20 Thread Martin Funk
Your commitment to this is too;-)

Please don't get me wrong on this, but
be agile. Initiate something scaleable.
Do it in a way that it would be a success for you no matter how many people
come.

Just don't start complaining before taking real action.

mf
P.S.: I might be interested coming in from Frankfurt. Its always nice to
find a reason to travel to Zürich.



2009/2/20 Thomas Mäder thomas.mae...@devotek-it.ch

 Whoa! The silence is deafening! Since I've had one answer in a week, I
 guess
 there is just no interest. Oh well...

 Thomas

 On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder
 thomas.mae...@devotek-it.chwrote:

  Hi Folks,
 
  I would be willing to organize a Wicket meetup in Switzerland if there is
  enough interest. I propose a meeting somewhere in Zürich. The format I
  imagine is that participants could (don't have to) shortly (15-20min.)
  present their work with Wicket (demos are always nice). That would be
  followed by general mingling with drinks  snacks.
  For the date, I would shoot for the week starting March 16, 17:30-20:30h.
  Would you be interested in participating in/hosting/sponsoring such a
  thing? Either reply here or to me privately, and if there is enough
  interest, I'll set up a thing on the wiki.
 
  Thomas
 
  --
  Thomas Mäder
  Wicket  Eclipse Consulting
  www.devotek-it.ch
 



 --
 Wicket  Eclipse Consulting
 www.devotek-it.ch
 thomasmaeder.blogspot.com



Re: Wicket newbie - Quickstart help required

2009-02-19 Thread Martin Funk
maybe this helps.

http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383

maven obviously compiles with java version 1.3

if you use annotations you need to compile against 1.5

the maven compiler plugin needs to be configured as in the example above.

mf

2009/2/19 nicgould wic...@nicgould.co.uk


 Hi there,

 I set up a wicket 1.3.5 project using the quickstart instructions from
 wicket.apache.org. I successfully got the test page up and running using
 Jetty.

 I tried adding a basic form with a textbox to the page using code taken
 from
 Wicket in Action. However when recompiling I got the following error from
 Maven:

 [INFO] Compilation failure
 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4]
 annotations are not supported in -source 1.3
 (use -source 5 or higher to enable annotations)
  @override

 This is my first foray into Wicket so apologies if this is an obvious error
 - I searched the list first but couldn't find anything that looked like the
 same issue. I'd be grateful for any assistance anyone can offer.

 I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage
 constructor now looks like this:

 public HomePage(final PageParameters parameters) {

// Add the simplest type of label
add(new Label(message, If you see this message wicket is properly
 configured and running));

//Member lookup form
Form memform = new Form(memform){
  @override
  protected void onSubmit(){
System.out.println(Form onSubmit is called);
  }
};
add(memform);
form.add(new TextField(memname, new Model()));
form.add(new Button(membutton, new Model(Go)){
  @override
  public void onSubmit(){
System.out.println(Mem button clicked);
  }
});

// TODO Add your page's components here
}


 --
 View this message in context:
 http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Wicket newbie - Quickstart help required

2009-02-19 Thread Martin Funk
Maybe this spoon will feed you right:
http://www.sonatype.com/download.php?file=books/maven-definitive-guide.pdf


2009/2/19 nicgould wic...@nicgould.co.uk


 Martin,

 Thanks for your help.

 I tried adding the following to my pom.xml within plugins

 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  configuration
source1.5/source
target1.5/target
encodingUTF-8/encoding
 /configuration
/plugin

 I'm now getting a bunch of cannot find symbol errors though (see paste
 below). Anyone have any further suggestions?

 [INFO] Compilation failure

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1] cannot
 find symbol
 symbol  : class Form
 location: class com.mycompany.HomePage

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20]
 cannot
 find symbol
 symbol  : class Form
 location: class com.mycompany.HomePage

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14]
 cannot
 find symbol
 symbol  : class TextField
 location: class com.mycompany.HomePage

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39]
 cannot
 find symbol
 symbol  : class Model
 location: class com.mycompany.HomePage

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1] cannot
 find symbol
 symbol  : variable form
 location: class com.mycompany.HomePage

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14]
 cannot
 find symbol
 symbol  : class Button
 location: class com.mycompany.HomePage

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38]
 cannot
 find symbol
 symbol  : class Model
 location: class com.mycompany.HomePage

 /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1] cannot
 find symbol
 symbol  : variable form
 location: class com.mycompany.HomePage


 Martin Funk-3 wrote:
 
  maybe this helps.
 
 
 http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383
 
  maven obviously compiles with java version 1.3
 
  if you use annotations you need to compile against 1.5
 
  the maven compiler plugin needs to be configured as in the example above.
 
  mf
 
  2009/2/19 nicgould wic...@nicgould.co.uk
 
 
  Hi there,
 
  I set up a wicket 1.3.5 project using the quickstart instructions from
  wicket.apache.org. I successfully got the test page up and running
 using
  Jetty.
 
  I tried adding a basic form with a textbox to the page using code taken
  from
  Wicket in Action. However when recompiling I got the following error
 from
  Maven:
 
  [INFO] Compilation failure
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4]
  annotations are not supported in -source 1.3
  (use -source 5 or higher to enable annotations)
   @override
 
  This is my first foray into Wicket so apologies if this is an obvious
  error
  - I searched the list first but couldn't find anything that looked like
  the
  same issue. I'd be grateful for any assistance anyone can offer.
 
  I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my
  Homepage
  constructor now looks like this:
 
  public HomePage(final PageParameters parameters) {
 
 // Add the simplest type of label
 add(new Label(message, If you see this message wicket is
  properly
  configured and running));
 
 //Member lookup form
 Form memform = new Form(memform){
   @override
   protected void onSubmit(){
 System.out.println(Form onSubmit is called);
   }
 };
 add(memform);
 form.add(new TextField(memname, new Model()));
 form.add(new Button(membutton, new Model(Go)){
   @override
   public void onSubmit(){
 System.out.println(Mem button clicked);
   }
 });
 
 // TODO Add your page's components here
 }
 
 
  --
  View this message in context:
 
 http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103676.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Wicket newbie - Quickstart help required

2009-02-19 Thread Martin Funk
things that happen while beeing in haste ;-)
its this, what I meant:
http://www.sonatype.com/maven/documentation/download-book?file=books/maven-definitive-guide.pdf
which 'seriously' is a readable source for information. at least on the
maven subject.

mf

2009/2/19 nicgould wic...@nicgould.co.uk


 It's a forbidden link for me but I get the hint ;) will read up on Maven
 myself. Thanks for your help anyway.

 Nic

 Martin Funk-3 wrote:
 
  Maybe this spoon will feed you right:
 
 http://www.sonatype.com/download.php?file=books/maven-definitive-guide.pdf
 
 
  2009/2/19 nicgould wic...@nicgould.co.uk
 
 
  Martin,
 
  Thanks for your help.
 
  I tried adding the following to my pom.xml within plugins
 
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
 source1.5/source
 target1.5/target
 encodingUTF-8/encoding
  /configuration
 /plugin
 
  I'm now getting a bunch of cannot find symbol errors though (see paste
  below). Anyone have any further suggestions?
 
  [INFO] Compilation failure
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1]
  cannot
  find symbol
  symbol  : class Form
  location: class com.mycompany.HomePage
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20]
  cannot
  find symbol
  symbol  : class Form
  location: class com.mycompany.HomePage
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14]
  cannot
  find symbol
  symbol  : class TextField
  location: class com.mycompany.HomePage
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39]
  cannot
  find symbol
  symbol  : class Model
  location: class com.mycompany.HomePage
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1]
  cannot
  find symbol
  symbol  : variable form
  location: class com.mycompany.HomePage
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14]
  cannot
  find symbol
  symbol  : class Button
  location: class com.mycompany.HomePage
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38]
  cannot
  find symbol
  symbol  : class Model
  location: class com.mycompany.HomePage
 
  /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1]
  cannot
  find symbol
  symbol  : variable form
  location: class com.mycompany.HomePage
 
 
  Martin Funk-3 wrote:
  
   maybe this helps.
  
  
 
 http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383
  
   maven obviously compiles with java version 1.3
  
   if you use annotations you need to compile against 1.5
  
   the maven compiler plugin needs to be configured as in the example
  above.
  
   mf
  
   2009/2/19 nicgould wic...@nicgould.co.uk
  
  
   Hi there,
  
   I set up a wicket 1.3.5 project using the quickstart instructions
 from
   wicket.apache.org. I successfully got the test page up and running
  using
   Jetty.
  
   I tried adding a basic form with a textbox to the page using code
  taken
   from
   Wicket in Action. However when recompiling I got the following error
  from
   Maven:
  
   [INFO] Compilation failure
   /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4]
   annotations are not supported in -source 1.3
   (use -source 5 or higher to enable annotations)
@override
  
   This is my first foray into Wicket so apologies if this is an obvious
   error
   - I searched the list first but couldn't find anything that looked
  like
   the
   same issue. I'd be grateful for any assistance anyone can offer.
  
   I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my
   Homepage
   constructor now looks like this:
  
   public HomePage(final PageParameters parameters) {
  
  // Add the simplest type of label
  add(new Label(message, If you see this message wicket is
   properly
   configured and running));
  
  //Member lookup form
  Form memform = new Form(memform){
@override
protected void onSubmit(){
  System.out.println(Form onSubmit is called);
}
  };
  add(memform);
  form.add(new TextField(memname, new Model()));
  form.add(new Button(membutton, new Model(Go)){
@override
public void onSubmit(){
  System.out.println(Mem button clicked);
}
  });
  
  // TODO Add your page's components here
  }
  
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe

Re: maven guru/wickstuff project maintainers..

2009-02-18 Thread Martin Funk

But those are only defined in profiles:
'bamboo'   and 'wickettraining.com-continuum'

are those profiles pulled for the builds?

mf

Am 18.02.2009 um 22:07 schrieb Jeremy Thomerson:

Yes - all wicketstuff-core projects appear to be generating  
timestamped
snapshots, which they shouldn't be.  The wicketstuff-core parent pom  
[1] has

the proper line in it (I think) to exclude this from happening:

uniqueVersionfalse/uniqueVersion

Continuum is still running on my server [2], building the  
wicketstuff-core

projects and deploying to an alternate repo [3] (including javadoc
snapshots).  Everything there seems to be running fine, and it's not
generating timestamped snapshots.  Perhaps this is a problem with  
TeamCity?
Maybe a Maven / TeamCity guru can help more, but I tried to make  
sure that

it wouldn't do this.  I never have liked TeamCity too much.

Let me know how I can be of assistance.  I don't mind hosting these  
repos on
my servers.  And I don't mind keeping Continuum running - it has  
been very

easy.

PS - Continuum is also building the site:deploy goal on my server, and
deploying the sites publicly [4], including nice html views of the  
source in

the reports section for each project.

[1] -
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/pom.xml
[2] - http://www.wickettraining.com/continuum/
[3] - http://www.wickettraining.com/ws-snaps/
[4] - http://www.wickettraining.com/ws-sites/


--
Jeremy Thomerson
http://www.wickettraining.com


On Wed, Feb 18, 2009 at 8:41 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:


I see this is a issue for wicketstuff core aswell

2009/2/18 Johan Compagner jcompag...@gmail.com


Hi,

if i look into this dir:




http://www.wicketstuff.org/maven/repository/org/wicketstuff/scriptaculous/1.4-SNAPSHOT/


i am getting really really sad :(

I want to get rid of all those horrible timestamps snapshots
these should be removed for everything, this will run out of disk  
space

soon
like that

i think it has to do something in the profiles and then
distributionManagement ??

distributionManagement
  snapshotRepository
  idrepo/id
  nameLocal Bamboo/Tomcat repository/name

urlfile:/home/wicket/tomcat/webapps/maven/repository//url
  uniqueVersionfalse/uniqueVersion
  /snapshotRepository
  /distributionManagement

also wicket 1.3 has the same problem. i guess because the jdk1.4 and

jdk1.5

dirs dont have the right stuff?
Or is the wrong profiler being done? Where can this be changed?

johan






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



Re: wicket-phonebook has been removed from svn ?

2009-02-04 Thread Martin Funk

http://www.nabble.com/Phonebook-Missing-td21454727.html#a21455120

Am 04.02.2009 um 16:08 schrieb cmoulliard:



Hi,

Can someone tell me where the project wicket-phonebook is located  
under svn
because the following link mentioned on this page is not correct/ 
accurate
(http://wicketstuff.org/confluence/display/STUFFWIKI/wicket- 
phonebook/) ?


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/



-
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
--
View this message in context: 
http://www.nabble.com/wicket-phonebook-has-been-removed-from-svn---tp21832291p21832291.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: Google Maps / GMap2?

2009-02-03 Thread Martin Funk

its part of wicketstuff-core now

checkout:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

and do the 'mvn install' there

examples can be found here:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/gmap2-parent/gmap2-examples/
after core is installed the examples should run with:
mvn jetty:run
in the examples directory.

mf

Am 03.02.2009 um 12:32 schrieb Fabrizio Giudici:


Martin Funk wrote:

Hi Fabrizio,

basically this still holds true:
http://www.nabble.com/where-is-wicket-contrib-gmap3-1.3.4-td20063260.html#a20064098



Thanks - but the URL of SVN seems to be wrong:

[Mistral:Apache/Wicket/gmap2] fritz% svn co 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2
svn: URL 'https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2' 
 doesn't exist



Looking at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/ 
 these are the subdirectories I see:


  *  ..
  * active-widgets-parent/
  * pickwick/
  * wicket-calendar/
  * wicket-cluster/
  * wicket-contrib-accordion/
  * wicket-contrib-accordion-examples/
  * wicket-contrib-bbcodecomponent/
  * wicket-contrib-jamon/
  * wicket-contrib-jasperreports/
  * wicket-contrib-mootools/
  * wicket-contrib-mootools-examples/
  * wicket-iolite/
  * wicket-persistence-template/
  * wicket-security/
  * wicketstuff-animator/
  * wicketstuff-core/
  * wicketstuff-dojo-1.1/
  * wicketstuff-jmx-panel/
  * wicketstuff-lightbox/
  * wicketstuff-merged-resources/
  * wicketstuff-merged-resources-examples/
  * wicketstuff-picnik/
  * wicketstuff-progressbar/


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941


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




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



Re: Google Maps / GMap2?

2009-02-02 Thread Martin Funk
Hi Fabrizio,

basically this still holds true:
http://www.nabble.com/where-is-wicket-contrib-gmap3-1.3.4-td20063260.html#a20064098

mf

2009/2/2 Fabrizio Giudici fabrizio.giud...@tidalwave.it

 I need to integrate Google Maps in my Wicket application. I searched in the
 Wiki and found GMap2 - but I only see artifacts for Wicket 1.4 Is it
 possible to use it, or some alternative, with Wicket 1.3.x?

 Thanks.

 --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
 fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941


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




Re: wicketstuff build question

2009-01-20 Thread Martin Funk
Wicket core corrected a typo in IHeaderResponse which changed the method
signature.
So gmap implementing that interface broke.
I just corrected that, so in the svn repo it should be fine now.

don't know how fast the build systems catch up on that.

mf

2009/1/19 rossputin rossaj...@yahoo.co.uk


 Hi guys.

 Hoping you can shed some light on this.  I accidentally posted this to the
 wicketstuff group under nabble, and understand it is best put here in
 Wicket
 - User.

 Recent updates to the wicketstuff-core maven project I use, and
 wicket-1.4-SNAPSHOT are causing a conflict.  If I build wicketstuff-core
 against the wicket-1.4-SNAPSHOT from
 http://svn.apache.org/repos/asf/wicket/trunk there is a problem with the
 method signature for renderOnEventJavascript for interface
 org.apache.wicket.markup.html.IHeaderResponse exposed in my gmap2
 integration.

 If I use the wicket-1.4-SNAPSHOT as distributed at
 http://wicketstuff.org/maven/repository the Google Map Integration code
 works fine, but my ContextImages are broken in the following two ways:

 1) The relative path is now wrong... I now need to prepend '../' to my
 code.. ContextImage editImage = new ContextImage(editImage, new Model
 (skin/images/edit.jpg));

 2) For some reason when looking at the path to the image in the
 browser it is losing the image name part of the path, so I get ..
 http://localhost:8080/myapp/skin/images/, instead of
 http://localhost:8080/myapp/skin/images/edit.jpg

 How is the wicket-1.4-SNAPSHOT distributed by wicketstuff.org different ?

 Any help would be greatly appreciated,

 thanks in advance,

 regards,

 Ross





 --
 View this message in context:
 http://www.nabble.com/wicketstuff-build-question-tp21547550p21547550.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Phonebook Missing

2009-01-14 Thread Martin Funk
look into wicketstuff-core
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

mf

2009/1/14 Kevin Logue ke...@viableoptions.ie

 Hi

 I'm currently implementing a checkgroup within a datatable. After checking
 nabble, this has been
 done within the Wicket Stuff phonebook example but try as I might I
 can't find a recent copy
 of it on the SVN repository. Has it been removed or am I running
 dangerously low on caffeine.

 Apologies if I should be asking this somewhere else.

 Cheers
 Kevin

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




Re: [GMAP2] Map can not display in AjaxTabbedPanel

2009-01-01 Thread Martin Funk
maybe this helps:
http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/gmap2-parent/gmap2-examples/src/main/java/wicket/contrib/examples/gmap/many/ManyPage.java?r=4445#l45

2008/12/30 新希望软件 -- 俞宏伟 nhsoft@gmail.com

 first, sorry for my poor englist.

 in normal page, GMAP can display well, but when add GMAP AjaxTabbedPanel,
 when click tab, the GMAP can not display(can not see any map image). if
 default tabindex of the Page is GMAP's Tab, it displays well.

 attachfile is example code.


 I have another question about GIcon usage: I try to set GIcon in
 GMarkerOptions, but after set GIcon, GMarker can not display, it looks my
 icon resource's problem, where GIcon image place. now i place GIcon image
 page class path.

 thanks.



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



Re: [VOTE] Consistent naming for Wicket Stuff projects

2008-11-28 Thread Martin Funk

 [x] - YES - I would like consistent naming


Re: gmap2 and helper classes / methods?

2008-11-13 Thread Martin Funk
2008/11/12 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]

 Hi

 I seem to be lacking some helper methods for finding out if a glatlng are
 in a gbounds etc.. Are there someone out there who has implemented anything
 or do I need to roll my own, and if the latter I guess I should provide a
 patch?

go ahead and commit something,
I'll be happy to unclutter.

mf



 --
 -Wicket for love

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


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




Re: XMLHttpRequest.open(...)

2008-11-07 Thread Martin Funk
Hi Wilhelmsen,

2008/11/7 Wilhelmsen Tor Iver [EMAIL PROTECTED]

  that XMLHttpRequest.open(...) are disallowed if they target
  for another domain, than the one the document is in?
  Like disallowing cross-site calls?

 Yes, to avoid cross-site scripting attacks; remember Javascript has
 globally accessible objects so if cross-site scripting was allowed then
 an attacker could make a script which went through the browser's open
 documents looking for a particular library and modify that.

 Presumably a signed Javascript will be allowed to perform a cross-site
 connection.


thanks for the confirmation, this helps to understand an issue I have while
developing wicket-contrib-gmap2. It was noticed that a map can't be initally
added to a page within an ajax call. As I understand now this is because
wicket-ajax.js is evaluating the HeaderContributions needed for the GMap2
and tries to XMLHttpRequest.open(..) the google javascript file for the gmap
from google.com.
A solution is quite simpe, as we already did it. The HeaderContribution
needs to be added to the page that potentially might load a gmap using ajax
later on.

thnx,

Martin


  1   2   >