Re: what is wicket
Gerald Fernando wrote: Hello Friends, Am Gerald, new to wicket. can anyone say about wicket and advantages over other technologies it is very useful to my next step. please help me http://lmgtfy.com/?q=wicket+advantages -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - 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?
Igor Vaynberg wrote: what makes you think you need any special tweaking or scaling in wicket to handle that kind of load? I've got a bit of knowledge (not wicket-specific) in this area and the one thing I can say for sure is: if there is a financial stake in the project, then you should never assume it will scale. The only way to know is to test it up to (and past) the expected load level. Chris Disclaimer: my employer sells load testing software and services. -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OFF TOPIC] Java desktop applications
nino martinez wael wrote: The largest issue about going towards a desktop solution with java are that designing the ui really are a pain if you dont use something like mattise, it's even worse that hacking html.. I'll agree on the javaFX Granted, HTML frameworks have come a long way in the past 15 years, but even with Wicket, building GUIs is still easier with a dedicated graphics toolkit. Even SWT is better than HTML/CSS. I worked a lot with AWT/Swing in the past and now SWT/JFace/Eclipse RCP. For anything more than trivial GUIs, either one is easier than HTML. No matter how good Wicket and AJAX get, you're still fighting the underlying design principal of HTML - it was designed for rendering documents, not building GUIs. my 2c, Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Returning to the original page after session timeout / login
I've changed out PageExpiredErrorPage to be the login page for our app. Does wicket have any support built-in to help return the user to where they were after re-authenticating? From my modest understanding of Wicket, it would need to be a bookmarkable page, which will be ok for a good percentage of the pages in our system. Any suggestions? TIA! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Returning to the original page after session timeout / login
Wow, I hope it's really that easy!?! Should this work through an appserver restart? E.g. if I 1) login to the app 2) restart the app server 3) click a page link in the browser Should this work? It didn't for me. Based on my limited understanding of how wicket works and stepping into the code, it kinda looks like it might not? Chris Jeremy Thomerson wrote: in your login form submit, call continueToOriginalDestination() onSubmit() { if (false == continueToOriginalDestination()) { setReturnPage(SomeOtherPage.class); } } -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jun 12, 2009 at 1:45 PM, Christopher L Merrillch...@webperformance.com wrote: I've changed out PageExpiredErrorPage to be the login page for our app. Does wicket have any support built-in to help return the user to where they were after re-authenticating? From my modest understanding of Wicket, it would need to be a bookmarkable page, which will be ok for a good percentage of the pages in our system. Any suggestions? TIA! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - 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 -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Returning to the original page after session timeout / login
Jeremy Thomerson wrote: the path is stored in the session, so as long as your app server reloads existing sessions on restart, it should (iirc). however, in your dev environment, the app server probably blows away sessions hr, i just re-read and realized that you said this is for the PageExpired which is typically encountered when you lost your session - so this won't work for that. But it will work if I go back twenty pages and click a link - not super helpful. Sorry. Ahhh...you had me all excited! : So maybe my question is really about controlling session duration. We don't want our user to be forced to re-authenticate throughout the day - so maybe I'm asking the wrong question...Is there another way I should be approaching that problem? -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: getting started with swarm/wasp - rendering links to secure pages
Warren Bell wrote: Try securing the link on your HomePage and do not secure the HomePage itself. The link has to implement ISecureComponent. Warren, I've followed your suggestion but the link is still rendering, so I'm still missing something. First, I made my own component MyPageLink that extends PageLink and implements ISecureComponent. I implemented the ISecureComponent methods by simply calling into the corresponding methods in SecureComponentHelper, as suggested in the ISecureComponent docs. I added the link in the home page like this: add(new MyPageLink(link, Page2.class)); Maybe I needed to do more in the implementation - I see that getSecurityCheck() in MyPageLink is returning null...which the results in WaspAuthorizationStrategy. isActionAuthorized(link, RENDER) returning true. Who should be calling MyPageLink.setSecurityCheck()? Me? I'm not sure what I should be passing to it? Any suggestions? TIA! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: getting started with swarm/wasp - rendering links to secure pages
Now I'm embarrassed for posting that question. I see there is a SecurePageLink class that already does that I need...and I see from that source how I can create the LinkSecurityCheck if I wanted to do it myself. Thanks Warren! I've got it working now. Like everything else in Wicket, that was really easy : Chris Christopher L Merrill wrote: Warren Bell wrote: Try securing the link on your HomePage and do not secure the HomePage itself. The link has to implement ISecureComponent. Warren, I've followed your suggestion but the link is still rendering, so I'm still missing something. First, I made my own component MyPageLink that extends PageLink and implements ISecureComponent. I implemented the ISecureComponent methods by simply calling into the corresponding methods in SecureComponentHelper, as suggested in the ISecureComponent docs. I added the link in the home page like this: add(new MyPageLink(link, Page2.class)); Maybe I needed to do more in the implementation - I see that getSecurityCheck() in MyPageLink is returning null...which the results in WaspAuthorizationStrategy. isActionAuthorized(link, RENDER) returning true. Who should be calling MyPageLink.setSecurityCheck()? Me? I'm not sure what I should be passing to it? Any suggestions? TIA! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
getting started with swarm/wasp - rendering links to secure pages
I have a question about rendering of links to secure pages when the user has not been authenticated. Based on this line from the tutorial: In addition we granted links to our homepage the right to be clicked (enable). I expected the link to either be non-visible or non-clickable - since I did not grant the enable permission for this page until login. The link is enabled (though the user is redirected to the login page when clicked). I've made my way through the getting-started guide (http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm) and have a simple example working in my prototype. I have 3 pages: - HomePage (non-secure) - LoginPage (non-secure...obviously) - Page2 (secure) My authorization file looks like this: grant principal org.apache.wicket.security.hive.authorization.SimplePrincipal basic { permission org.apache.wicket.security.hive.authorization.permissions.ComponentPermission com.webperformance.portal.web.Page2, inherit, render; permission org.apache.wicket.security.hive.authorization.permissions.ComponentPermission com.webperformance.portal.web.Page2, enable; }; When the user logs in, they get the basic principal via a UsernamePasswordContext. I have a link from the HomePage to Page2 (secure page). When the HomePage renders and the user had not logged in, the link is enabled. Clicking the link does not take the user to the page - it takes them to the login page. I was expecting the link to be disabled - so you don't even get the clickable cursor for it. Am I simply mistaken in my understanding of what right to be clicked means? Or have I missed some crucial bit somewhere to allow it to function as I expected? If user is not authorized for an action, we will either want links to be disabled (i.e. non- clickable) or be not rendered at all...depending on the context. Is this something that should be done via wasp/swarm or should I be doing this manually during page construction? TIA! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JPA EntityManager storage
Frank Tegtmeyer wrote: would the Request object be a good place to store a JPA EntityManager? It would be created in onBeginRequest() and destroyed in onEndRequest() of the RequestCycle object. You may find these of interest: http://javanotepad.blogspot.com/2007/08/managing-jpa-entitymanager-lifecycle.html http://javanotepad.blogspot.com/2007/05/jpa-entitymanagerfactory-in-web.html Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: singletons, pools, wicket, web services and architecture
It's a question we've wrestled with as well. It seemed remarkably inefficient to do XML encoding/decoding to move data from one part of the appserver to another. It seemed to make more sense to let the web UI skip past that and go straight to the business logic. Thanks! Chris Martijn Dashorst wrote: Might be a dumb question, but why not make your wicket front end use the JAX-WS services as well? Martijn On Thu, May 28, 2009 at 10:01 PM, Christopher L Merrill ch...@webperformance.com wrote: I've got a few questions that are somewhat general to web development, but since we've chosen Wicket as one of our front-end frameworks, I thought I would ask here first for pointers...especially where there may be a wicket way of doing things that we need to be aware of. The system we're developing will have 2 UIs - a browser-based UI developed in Wicket and an Eclipse-based rich-client app (Java). The available functionality will be a little different in each but with a good bit of overlap. There must be common authentication - a user might use either UI or both at any given time. We'll likely be using JAX-WS for communicating between the rich client and server. The server will be Tomcat. We obviously need to keep very good separation between the business logic and presentation layers, since there will be 2 presentation layers : 1) We need to have an application object/singleton to hold things like online/offline mode - so we can, for example, bring the application down for maintenance and give the user an intelligent response. In Wicket, I think that would be the Application object? I assume we'll need to make that reference a MyApplication object - how do I expose that to both Wicket and the WS APIs? JNDI? 2) We'll want our database connection pools to also be shared...one of the databases is an odd-ball - Filemaker (groan) - and I'm not sure how to pool connections for it and share the pool between the Wicket app and the WS APIs? When I've used connection pools in the past, it has always been something common, like MySQL, so the Tomcat configuration was pretty well-documented. I'm not sure where to start with this one? 3) Any other architecture issues I should be thinking about? Pointers? Good articles that might address some of these issues? Thanks in advance! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: singletons, pools, wicket, web services and architecture
James Carman wrote: Is there any particular reason that you want to use XML-based communication if you have an all-Java architecture going on? Wouldn't it be easy to XMLize the services you're exposing remotely later if a different type of client would want to connect to it? I'd say just use Spring remoting (if you're using Spring). RMI would probably have been our (my) first choice, but is out due to firewall issues. Spring with the HTTP invoker was considered as well as some other more efficient HTTP and/or light-XML options. There are some organizational reasons to favor SOAP vs something simpler and there are plans to extend the service at some point to other organizations. We certainly _could_ do that later, but maintaining a 3rd interface down the road is not attractive in terms of maintenance cost. We would have to content with an installed user base - and therefore could not easily deprecate an unused interface. Personally, I'm not fond of XML for this type of work...but such is life : -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
singletons, pools, wicket, web services and architecture
I've got a few questions that are somewhat general to web development, but since we've chosen Wicket as one of our front-end frameworks, I thought I would ask here first for pointers...especially where there may be a wicket way of doing things that we need to be aware of. The system we're developing will have 2 UIs - a browser-based UI developed in Wicket and an Eclipse-based rich-client app (Java). The available functionality will be a little different in each but with a good bit of overlap. There must be common authentication - a user might use either UI or both at any given time. We'll likely be using JAX-WS for communicating between the rich client and server. The server will be Tomcat. We obviously need to keep very good separation between the business logic and presentation layers, since there will be 2 presentation layers : 1) We need to have an application object/singleton to hold things like online/offline mode - so we can, for example, bring the application down for maintenance and give the user an intelligent response. In Wicket, I think that would be the Application object? I assume we'll need to make that reference a MyApplication object - how do I expose that to both Wicket and the WS APIs? JNDI? 2) We'll want our database connection pools to also be shared...one of the databases is an odd-ball - Filemaker (groan) - and I'm not sure how to pool connections for it and share the pool between the Wicket app and the WS APIs? When I've used connection pools in the past, it has always been something common, like MySQL, so the Tomcat configuration was pretty well-documented. I'm not sure where to start with this one? 3) Any other architecture issues I should be thinking about? Pointers? Good articles that might address some of these issues? Thanks in advance! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 60% waste
Martin Makundi wrote: Use an IDE plugin? That's a hack, not a design. Wow...I'm new to this list, but I doubt you can expect much help with that attitude. I suggest you request a refund for your Wicket license and support subscription and go find a tool that better fits your needs. Oh, wait, Wicket is free and so is all the support you are receiving here. ;) -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
using OpenJPA with wicket?
I'm just getting my feet wet with Wicket and OpenJPA. I've got the basics of both and have started prototyping parts of an upcoming project in each and everything was going great. Then I tried to put the two technologies together and hit a wall. I'd written the OpenJPA pieces in a standalone application. Moving to a web container (Tomcat), I saw a recommendation to annotate the servlet code with something like: @PersistenceUnit private EntityManagerFactory emf; Of course, with Wicket, we don't write a servlet...and now I'm drawing a blank as to where I should go next?. I'm guessing I'm not the first to get here...does anyone have a recommendation for what direction I should be going next? TIA! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com| http://webperformance.com 919-433-1762| 919-845-7601 Website Load Testing and Stress Testing Software Services - - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org