[Wicket-user] Getting hold of the servlet request in a wicket WebPage
Hi, I have a servlet filter which analyses the servlet request and then sets a variable to it, I need access to this inside a wicket web page. How can I get hold of the HttpServletRequest object (or attributes set in it) from a wicket page? Thanks Rob - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Migrate to 1.3 - custom label/link problem
On 7/8/07, Robert . [EMAIL PROTECTED] wrote: I have a problem migrating from Wicket 1.2.6 to 1.3 I have a custom LabelLink component that I used to generate links, including labels, in a data table. This worked fine in 1.2.6, but now I get the following error: unable to find component with path forumBrowserForm:forums:rows:1:cells:1:cell:link on page When debugging I noticed the onLinkClicked was never called on my LabelLink. Instead the page constructor is called again. I did some more testing and found out that it only fails if the page has been mounted with mountBookmarkablePage(/ + clazz.getSimpleName(), clazz); - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Migrate to 1.3 - custom label/link problem
I have a problem migrating from Wicket 1.2.6 to 1.3 I have a custom LabelLink component that I used to generate links, including labels, in a data table. This worked fine in 1.2.6, but now I get the following error: unable to find component with path forumBrowserForm:forums:rows:1:cells:1:cell:link on page When debugging I noticed the onLinkClicked was never called on my LabelLink. Instead the page constructor is called again. Here is the LabelLink component: http://papernapkin.org/pastebin/view/933 1. public abstract class LabelLink extends Label 2. implements ILinkListener 3. { 4. 5. protected LabelLink(final String id, String label) 6. { 7. super(id, label); 8. } 9. 10. protected LabelLink(final String id, IModel model) 11. { 12. super(id, model); 13. } 14. 15. protected void onComponentTag(final ComponentTag tag) 16. { 17. tag.setName(a); 18. tag.put(href, urlFor(ILinkListener.INTERFACE)); 19. } 20. 21. protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) 22. { 23. replaceComponentTagBody(markupStream, openTag, getModelObjectAsString()); 24. } 25. 26. public final void onLinkClicked() 27. { 28. onClick(); 29. } 30. 31. public abstract void onClick(); 32. 33. } The LabelLink works fine on a page, but not when I use it inside a column of a data table. For example when I make a panel inside an AbstractColumn When I try to put a panel in the column with a normal Link and Label it works. But when I put my LinkLabel in it it does not work. The hrefs that are generated are different, and probably the cause that my onLinkClicked is not called. LabeLink href: http://localhost:8080/ForumListPage/wicket:interface/%3A1%3AforumBrowserForm%3Aforums%3Arows%3A1%3Acells%3A1%3Acell%3Alink%3A%3AILinkListener%3A%3A Link href: http://localhost:8080/?wicket:interface=:1:forumBrowserForm:forums:rows:1:cells:1:cell:link2::ILinkListener :: - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] No get method defined for expression recorder when using Palette and CompoundPropertyModel
Greetings, I have migrated by application to the wicket beta2 and I have experienced an apparent change in the functionality of CompoundPropertyModels. I have a simple page with constructor code similar to the following code: public TestPage() { setModel(new CompoundPropertyModel(author)); add(new Label(firstName)); add(new Label(lastName)); add(new Palette(lstAuthors, new Model(), new Model(new String[] {Michael, John, James, Suzy, Lucy}), new ChoiceRenderer(), 5, false)); } with the appropriate HTML page. However, when displaying this page, I get the No get method defined for class: class com.blahblah.Author expression: recorder Root cause: org.apache.wicket.WicketRuntimeException: No get method defined for class: class com.blahblah.Author expression: recorder It seems that the recorder pseudocomponent in the Palette component has no inherent model, therefore it inherits it from the parent compound model. This error does not seem to appear in the beta1. Was there some kind of CompoundPropertyModel change between beta1 and beta2? Robert Novotny -- View this message in context: http://www.nabble.com/No-get-method-defined-for-expression-recorder-when-using-Palette-and-CompoundPropertyModel-tf4007304.html#a11380394 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions
Thanks for your replies everyone. I think I can make an informed decision now about what to do in each case. I like the flexibility of the @SpringBean and the simplicity of the application object, probably with seperate objects holding the DAOs and services, so not to bloat the application object. I think I will investigate more open the OpenSessionInView to see what EXACTLY that thing is doing. Perhaps I will ask more about that later. The pros and cons of both approaches are discussed in the wiki as well: http://cwiki.apache.org/WICKET/spring.html Yes I read this before posting. I think it would be more clear if it's mentioned that the InjectorHolder.getInjector().inject(this); can be used in any of your classes, such as models, and not just components. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions
On 6/23/07, Flemming Boller [EMAIL PROTECTED] wrote: On 6/23/07, Robert . [EMAIL PROTECTED] wrote: One thing I am struggling with is where I should put my DAO's and data services. I know about the @SpringBean annotation for components, but how should I use those in classes such as DetachableXXXModel? Should I pass the DAO's I need to that class or should I put DAO's in the application object (like Pro Wicket examples do)? There is no silverbullet here. Each solution has its drawbacks. However the solution I have come to best like is only using the @SpringBean in pages, and then pass on the springbean as argument to where every it is needed. That way it is also more clearly seen in the page where the service is used. I'm curious when this is simpler that accessing the DAOs from the application object. I find it annoying so far that I find out that I need a certain DAO in my DetachableXXXModel, and then, for example, have to pass it from the page to the XXXDataProvider, save a reference there, and in the model method pass it to the DetachableXXXModel. Is there a good Wicket example project I can look at, besides phonebook, that uses Spring and Hibernate? I am interested in the right set-up. You could also look at the Databinder project. It includes some nice examples too. Ok thanks! I also have some questions about OpenSessionInViewFilter, which probably are off-topic, but hope someone wants to help anyway. There seems to be quite some disagreements about whether using OpenSessionInViewFilter is a good thing or not. What does the Wicket team/users think about it? I have also used OSIVF on a project. And you really have to be carefull here. Hibernate has some nasty exceptions that easily will be thrown at you. Especially Lazyexception session closed or... object with same id is already loaded in session Unfortunately I do not know what to be careful for yet :) I came to the conclusion that is was much easier to copy you hibernate objects into viewbeans which is designed with wicket in mind. So above the service layer you have view bean. And under the service layer you have hibernateobjects (domain objects). I would be happy to hear others comments on this one. Do you have an example for this? It's difficult to think of what those viewbeans are. They don't have associations? You know the answer(s) to the section below? If I understand correctly, and please correct me if I'm wrong, by using the OpenSessionInViewFilter you get a new transaction at the start of every request, which commits or rollbacks at the end. This is so that lazy associations, which are accessed outside explicit transactions, such as in Wicket Page classes, are initialized and don't throw an exception. So what kind of transaction exactly is created by the OpenSessionInViewFilter? (propagation, isolation?) Can I use it only for reading? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions
On 6/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/23/07, Robert . [EMAIL PROTECTED] wrote: On 6/23/07, Flemming Boller [EMAIL PROTECTED] wrote: On 6/23/07, Robert . [EMAIL PROTECTED] wrote: There is no silverbullet here. Each solution has its drawbacks. However the solution I have come to best like is only using the @SpringBean in pages, and then pass on the springbean as argument to where every it is needed. That way it is also more clearly seen in the page where the service is used. I'm curious when this is simpler that accessing the DAOs from the application object. I find it annoying so far that I find out that I need a certain DAO in my DetachableXXXModel, and then, for example, have to pass it from the page to the XXXDataProvider, save a reference there, and in the model method pass it to the DetachableXXXModel. there is nothing wrong with doing this class PersonModel extends LoadableDetachableModel { @SpringBean private PersonDao dao; private final long id; public PersonModel(long id) { this.id=id; InjectorHolder.getInjector().inject(this); } ... } Ah very interesting to see this is possible. Still I am thinking why this would be better than using the application to hold the DAOs. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions
On 6/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: class PersonModel extends LoadableDetachableModel { @SpringBean private PersonDao dao; private final long id; public PersonModel(long id) { this.id=id; InjectorHolder.getInjector().inject(this); } ... } Ah very interesting to see this is possible. Still I am thinking why this would be better than using the application to hold the DAOs. this is better because if you use applications to hold non-proxied daos you have to be very careful not to leave a reference to it anywhere. because dependencies injected throgh @SpringBean are special proxies you dont have to worry about it because the proxies can be safely serialized. I do understand that. But isn't it very easy to avoid it? For example the PersonClass would be something like this: class PersonModel extends LoadableDetachableModel { private final long id; public PersonModel(long id) { this.id=id; } private PersonDao getDao() { return MyApplication.get().getPersonDao(); ... } With this getter there is no temptation to save the DAO as a field. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] File Releases suggestions
When a new version is released I would like to get all the new zip files quickly. However there are 11 zip files and somehow the download is always set to some non-working mirror which I have to change manually. Those are a lot of clicks. I would really enjoy if there is a mega-zip file release which contains all the other zip files or directories. Another suggestion is the filename of the releases. They all have the -bin part, even though they include source and documentation. Some other open source projects use the -bin filename part too, but they usually have separate releases with -src. So why not have filenames such as wicket-1.2.6.zip - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListView class cast exception
Hello, your getUsers() method looks suspicious - it seems to create list of strings (not Users). Particularly, you add Strings retrieved from the resultset into the list. retval.add(rs.getString(1)); Therefore the ListView component gets passed the list of Strings retrieved from the first column of table. Robert Novotny eddmosphere wrote: Hi there! I'm realll getting confused.. I'm trying to create a table with the resultSet from a mysql database (I tried DataView but gave up..too much for me) by using a ListView. The problem is that I keep getting an ClassCastException: java.lang.String. Wicket tells me this happens in the populateItem() method when I try to cast the ListItem to User (of course..). I have a simple User class with getters to retrieve: int userid, String name, String phone, etc...I don't know why this is happening so..could someone please help? Thanks in advance, Edd [CODE] /* create connection do mysql db and retrive a ResultSet */ NewConnection myconn = new NewConnection(); final ResultSet userTableData = myconn.queryTable(SELECT * FROM user); /* calling method that transforms my ResultSet (usersList) to a List */ List usersList = getUsers(userTableData); ListView listView = new ListView(pageable, usersList) { protected void populateItem(ListItem listItem) { User user = (User)listItem.getModelObject(); // CLASSCASTEXCEPTION HEREEE listItem.add(new Label(userid, Integer.toString(user.getUserId(; listItem.add(new Label(name, user.getName())); listItem.add(new Label(phone, user.getPhone())); listItem.add(new Label(email, user.getEmail())); listItem.add(new Label(type, user.getType())); } }; add(listView); . /* method to convert ResultSet to List */ public List getUsers(ResultSet rs) { List retval = new ArrayList(); try { while(rs.next()) { retval.add(rs.getString(1)); } } catch (SQLException ex) { ex.printStackTrace(); } return retval; } -- View this message in context: http://www.nabble.com/ListView-class-cast-exception-tf3807874.html#a10779048 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
Hello, in my experience, the most frequent problems with applets are connected with classpath problems. Could you have a look into the Java Console output and search for the potential ClassNotFoundError stack traces? (If I remember correctly, you could right click on the applet that failed loading and use 'Show Java Console' from the popup menu). Besides that, this is an applet page from our project: HTML template: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head titleApplet Page/title /head body div id=main h1User profile/h1 applet code=uinf.wid.tools.UserProfileApplet.class archive=applets.jar,log4j-1.2.12.jar name=UserProfileApplet width=800 height=600 /applet /div /body /html Corresponding Java class: public class UserProfileAppletPage extends WebPage { public static final Logger logger = Logger.getLogger(UserProfileAppletPage.class); public UserProfileAppletPage() { logger.debug(UserProfileAppletPage loaded.); } } edward durai wrote: Hi! I have put both graph.class and html file. In non-wicket page it is working. but in wicket it is not working. Please advise. Thanks howzat wrote: Does the markup you give below work in a non-wicket page? I would make a the simplest possible html page including your applet tag below to see if it works. When it works, compare it to the html generated by wicket. If they are the same, you should observe exactly the same result in your browser in both cases. edward durai wrote: Hi, I have tried. but i am not able to display that applet. Please give me one sample. Thanks Robert Novotny wrote: Hello, there is nothing special in displaying applets in wicket pages. Just put the proper applet tags into the HTML page template. You don't even need to have corresponding components in the Java class, since applet is not a wicket component. Robert Novotny edward durai wrote: Hi to all, I have one graph.java file. In HTML I can display like APPLET CODE=graph.class WIDTH=900 HEIGHT=400 PARAM name=title value=Date Vs Average Speed PARAM name=X_axis_description value=Average Speed PARAM name=Y_axis_description value=Date PARAM name=variation_series value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007 !-- Dynamic -- PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic -- PARAM name=description_1 value=item1 /APPLET In Wicket, how can I display this applet file? Please explain me. Thank you for answering -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443943 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
One problem, which could arise, is the URL from which is the graph.class loaded. When you've got your applet page on http://server.com/page/applet.html, browser JVM willl try to load graph.class from http://server.com/page/graph.class URL. Also make sure that you have a correct case (Java classes should start with an uppercase letter, therefore I think it is better to have applect code=Graph.class.. and class called Graph). However, if you specify the JAR files in the archive attribute, your classes will be loaded from the specified JARs. There can be another hiccup dealing with URL mounting. In our project we have mounted the Wicket webapplication on the url-pattern/app/*/url-pattern. Therefore our applet page has URL http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet, which means that the JAR files are loaded from the http://[servername]:8080/[appname] directory, i. e. from JAR files which are located in the directory just above the WEB-INF. If your webpage is mounted (for example to http://[servername]:8080/[appname]/app/userprofile), you could come across JAR loading problems, because JVM will try to load JAR/CLASS file from that http://[servername]:8080/[appname]/app/userprofile, which does not correspond to any server directory, therefore it will not find your JARs/CLASSes. edward durai wrote: Hi to all, I have one graph.java file. In HTML I can display like APPLET CODE=graph.class WIDTH=900 HEIGHT=400 PARAM name=title value=Date Vs Average Speed PARAM name=X_axis_description value=Average Speed PARAM name=Y_axis_description value=Date PARAM name=variation_series value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007 !-- Dynamic -- PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic -- PARAM name=description_1 value=item1 /APPLET In Wicket, how can I display this applet file? Please explain me. Thank you for answering -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10445420 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
Hello, there is nothing special in displaying applets in wicket pages. Just put the proper applet tags into the HTML page template. You don't even need to have corresponding components in the Java class, since applet is not a wicket component. Robert Novotny edward durai wrote: Hi to all, I have one graph.java file. In HTML I can display like APPLET CODE=graph.class WIDTH=900 HEIGHT=400 PARAM name=title value=Date Vs Average Speed PARAM name=X_axis_description value=Average Speed PARAM name=Y_axis_description value=Date PARAM name=variation_series value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007 !-- Dynamic -- PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic -- PARAM name=description_1 value=item1 /APPLET In Wicket, how can I display this applet file? Please explain me. Thank you for answering -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10429225 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Spring integration using AspectJ
On 3/23/07, Carlos Pita [EMAIL PROTECTED] wrote: I'm very new to Wicket (with no more than a few hours of fly). I would like to integrate it with the spring AplicationContext/BeanFactory so I've been reading the solutions described in http://www.wicket-wiki.org.uk/wiki/index.php/Spring. Maybe it's a silly question, but how did you find that page about Spring? I see nothing from the main wiki page that would lead to that page. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Inner classes question
I was wondering if it is unwise to prevent the use of inner classes for models. For example a page creates a model for CheckBox that depends on a list stored in the page. In Wicket examples the list is accessed from the inner model class directly. I do not like having many inner classes in a class. What if I create a seperate model class and pass the list with it in the constructor. The final modifiers will ensure that the reference to the list cannot be changed. Will this cause the list to be serialized twice? Or will it be noticed that it is the same list. Will it cause any other problems, and if so isn't there another way to prevent the use of inner classes? Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Example 1.2.5 Tree problem
Hi, I noticed a problem on the Tree pages of wicket-examples.1.2.5 If you do some actions on one of the tree pages and then switch to another page, then the WICKET AJAX DEBUG link is not available, and the tree does not work. For example: 1) Goto Simple tree 2) Click Expand all nodes 3) Goto Tree table It's always reproducable in both IE and Firefox. I use Tomcat 5.5.20 Should I file a JIRA issue? Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tapestry - Wicket | Action Service
Hi! A Tapestry service basically has a public void service(RequestCycle) method. Something like a PageService would do something like cycle.activate(cycleparam[0]) Now I understand that I don't usually need a PageService. The onClick for Link components are much easier to use. However what if I don't have a component and there is some javascript that wants to change the page? I'll try to write about this more in the other replies in this thread. Robert On 3/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you wanted to know how to have an equivalent of a tapestry service. if i remember correctly tapestry services return things. like an asset service that streams images. if all you want is a callback then you can use urlFor methods to build such a callback url. see, for example, how Link component does it. wicket is event driven. tapestry is also, but not to the same degree. in wicket you rarely need to build urls yourself because we provide components that do this for you. for example Link has an onClick() method and a Button has onSubmit(). wicket takes care of wiring these methods with urls it generates. -igor On 3/15/07, Robert . [EMAIL PROTECTED] wrote: Really? A resource? But I have nothing to return from my service resource. Robert On 3/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote: wicket's equivalent of a service is a shared resource. you can register your own shared resources through your webapplication subclass. as far as selecting pages via javascript: wicket doesnt really have a page service. urls for pages are resolved internally. if you want a stable entry point into the page then you should mount it, also via the webapplication subclass, and then the javascript can redirect to the mounted url. -igor On 3/15/07, Robert . [EMAIL PROTECTED] wrote: Hi, I have been examining how I can convert a web application product from Tapestry 3 to Wicket, and trying to adapt myself to the Wicket way of thinking about web flow. One part that I just can't seem to figure out from reading Pro Wicket and browsing through the apidocs is how to make something like Tapestry services. For example I have an action service in Tapestry that let's me send an action command, including additonal parameters, to the service by using javascript. I have such a service for both normal requests and XMLHTTP requests. But thinking about this further makes me realize I don't even know how to make something like a PageService where the page is determined by javascript. I feel like I am missing something. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions
Re: [Wicket-user] Tapestry - Wicket | Action Service
On 3/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote: One part that I just can't seem to figure out from reading Pro Wicket and browsing through the apidocs is how to make something like Tapestry services. Contrary to what some people say on The Server Side etc, Wicket and Tapestry are very different frameworks. This means that not everything can be mapped from one framework to the other. Yes, I have noticed that :) Tapestry's services seem to be pretty particular for that framework. And without those services there is not much left in Tapestry. The best way to go here is to forget about the facilities you had in Tapestry, but just focus on what you want to accomplish. It will be easier for us to help you out with specific use cases, or you might be able to figure it out yourself. What I need is a way to do have a call from javascript to trigger some action. Both through normal HTTP requests and XMLHTTP, but I will focus on the normal part first. There is no associated component in the page. It is just a javascript controller object, that wants to send commands to my application. The request cycle is enough for me to continue at that point. Something else related to this is if I can have a Link where I can add parameters to in javascript. Looking at Wicket I get the feeling that the state is purely something that is kept in pages and components with its associated models. There does not seem to be room for the client browser to keep any state. I actually have a whole model-view-controller system in javascript for certain complicated situations. I tried to look at how a Tree component works, and see if I could learn something by looking at how it's called. But that part was just magic to me :) Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tapestry - Wicket | Action Service
I tried to look at those listeners. If I understand correctly you always need to be a component to be a listener. Each listener interface must have 1 method with 0 parameters. So it means all state must be kept in the component. You cannot pass any parameters to it? So in the case of a PageLink you must know which page to render, before the link has been clicked? I'm just trying to sort things out in my head. I would like to know more about how Wicket knows which ILinkListener to call when a link is clicked. I found the apidocs to be rather abstract about listeners. It felt like you already had to know how they work before you can understand the docs. Please don't take any off this as criticism against Wicket. I'm sure it is a great project. And I will be using it in the future. I'm just not sure if I should convert this project from Tapestry to Wicket. I am beginning to think that it's not a good idea. On 3/15/07, Jonathan Locke [EMAIL PROTECTED] wrote: yes. that and the ability to create new listeners. there is nothing special about the listeners that wicket pre-registers to handle various kinds of requests such as resource requests or link clicks (although you should definitely prefer the already existing event listeners!). in fact, below is the code in init that registers all the service listeners in wicket revealing that you can create your own if you're doing something special that wicket does not (yet) support. /** * @see wicket.IInitializer#init(wicket.Application) */ public void init(Application application) { // Register listener interfaces explicitly (even though they implicitly // register when loaded) because deserialization of an object that // implements an interface does not load the interfaces it implements! IBehaviorListener.INTERFACE.register(); IUnversionedBehaviorListener.INTERFACE.register(); IFormSubmitListener.INTERFACE.register(); ILinkListener.INTERFACE.register(); IOnChangeListener.INTERFACE.register(); IRedirectListener.INTERFACE.register(); IResourceListener.INTERFACE.register(); } public interface ILinkListener extends IRequestListener { /** Listener interface */ public static final RequestListenerInterface INTERFACE = new RequestListenerInterface( ILinkListener.class); /** * Called when a link is clicked. */ void onLinkClicked(); } igor.vaynberg wrote: wicket's equivalent of a service is a shared resource. you can register your own shared resources through your webapplication subclass. as far as selecting pages via javascript: wicket doesnt really have a page service. urls for pages are resolved internally. if you want a stable entry point into the page then you should mount it, also via the webapplication subclass, and then the javascript can redirect to the mounted url. -igor On 3/15/07, Robert . [EMAIL PROTECTED] wrote: Hi, I have been examining how I can convert a web application product from Tapestry 3 to Wicket, and trying to adapt myself to the Wicket way of thinking about web flow. One part that I just can't seem to figure out from reading Pro Wicket and browsing through the apidocs is how to make something like Tapestry services. For example I have an action service in Tapestry that let's me send an action command, including additonal parameters, to the service by using javascript. I have such a service for both normal requests and XMLHTTP requests. But thinking about this further makes me realize I don't even know how to make something like a PageService where the page is determined by javascript. I feel like I am missing something. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Tapestry--%3E
Re: [Wicket-user] Tapestry - Wicket | Action Service
Because I still want/need the Wicket session, request cycle, application context and all that. On 3/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote: but this is just scope creep in tapestry. what you have just described is almost exactly a service() method in a servlet. why not just build a servlet to do what you want? wicket is about the UI, if you need callbacks that have nothing to do with UI like youve mentioned why use wicket for that? wicket focuses on doing one thing but doing it very well. we do not provide a generic request/response framework because that is what servlets do. -igor On 3/16/07, Robert . [EMAIL PROTECTED] wrote: Hi! A Tapestry service basically has a public void service(RequestCycle) method. Something like a PageService would do something like cycle.activate(cycleparam[0]) Now I understand that I don't usually need a PageService. The onClick for Link components are much easier to use. However what if I don't have a component and there is some javascript that wants to change the page? I'll try to write about this more in the other replies in this thread. Robert On 3/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you wanted to know how to have an equivalent of a tapestry service. if i remember correctly tapestry services return things. like an asset service that streams images. if all you want is a callback then you can use urlFor methods to build such a callback url. see, for example, how Link component does it. wicket is event driven. tapestry is also, but not to the same degree. in wicket you rarely need to build urls yourself because we provide components that do this for you. for example Link has an onClick() method and a Button has onSubmit(). wicket takes care of wiring these methods with urls it generates. -igor On 3/15/07, Robert . [EMAIL PROTECTED] wrote: Really? A resource? But I have nothing to return from my service resource. Robert On 3/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote: wicket's equivalent of a service is a shared resource. you can register your own shared resources through your webapplication subclass. as far as selecting pages via javascript: wicket doesnt really have a page service. urls for pages are resolved internally. if you want a stable entry point into the page then you should mount it, also via the webapplication subclass, and then the javascript can redirect to the mounted url. -igor On 3/15/07, Robert . [EMAIL PROTECTED] wrote: Hi, I have been examining how I can convert a web application product from Tapestry 3 to Wicket, and trying to adapt myself to the Wicket way of thinking about web flow. One part that I just can't seem to figure out from reading Pro Wicket and browsing through the apidocs is how to make something like Tapestry services. For example I have an action service in Tapestry that let's me send an action command, including additonal parameters, to the service by using javascript. I have such a service for both normal requests and XMLHTTP requests. But thinking about this further makes me realize I don't even know how to make something like a PageService where the page is determined by javascript. I feel like I am missing something. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
Re: [Wicket-user] Tapestry - Wicket | Action Service
On 3/16/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Please don't take any off this as criticism against Wicket. I'm sure it is a great project. And I will be using it in the future. I'm just not sure if I should convert this project from Tapestry to Wicket. I am beginning to think that it's not a good idea. Imo, you always need a very good reason to convert your projects from one technology to another to start with. It has to solve something for you, and it has to be worth more than the pain you will inevitably be going through. You know, the old if it aint broken, don't fix it. Of course, of course! But unfortunately it is a bit broken :) We have a problem of random failures in ognl expressions. Perhaps due to the fact templates are compiled at runtime. And since Howard never responded to any of the bugs I posted... - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Tapestry - Wicket | Action Service
Hi, I have been examining how I can convert a web application product from Tapestry 3 to Wicket, and trying to adapt myself to the Wicket way of thinking about web flow. One part that I just can't seem to figure out from reading Pro Wicket and browsing through the apidocs is how to make something like Tapestry services. For example I have an action service in Tapestry that let's me send an action command, including additonal parameters, to the service by using javascript. I have such a service for both normal requests and XMLHTTP requests. But thinking about this further makes me realize I don't even know how to make something like a PageService where the page is determined by javascript. I feel like I am missing something. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tapestry - Wicket | Action Service
Really? A resource? But I have nothing to return from my service resource. Robert On 3/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote: wicket's equivalent of a service is a shared resource. you can register your own shared resources through your webapplication subclass. as far as selecting pages via javascript: wicket doesnt really have a page service. urls for pages are resolved internally. if you want a stable entry point into the page then you should mount it, also via the webapplication subclass, and then the javascript can redirect to the mounted url. -igor On 3/15/07, Robert . [EMAIL PROTECTED] wrote: Hi, I have been examining how I can convert a web application product from Tapestry 3 to Wicket, and trying to adapt myself to the Wicket way of thinking about web flow. One part that I just can't seem to figure out from reading Pro Wicket and browsing through the apidocs is how to make something like Tapestry services. For example I have an action service in Tapestry that let's me send an action command, including additonal parameters, to the service by using javascript. I have such a service for both normal requests and XMLHTTP requests. But thinking about this further makes me realize I don't even know how to make something like a PageService where the page is determined by javascript. I feel like I am missing something. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0
Considering that the hierarchy is specified in the template, isn't there some way to use this to construct the hierarchy automatically? Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] What's the best way of doing menus in Wicket?
I have tried to use dropdown menu in one of my projects. NavMenu has been broken in that time (and I didn't figure out how to patch it) and my effort in integrating TigraMenu wasn't succesfull either. Finally I have used the approach which uses a pure CSS menu which is based on the :hover class. The menu is composed of multiple nested span tags (which are mapped to Wicket Label-s or Link-s). However, this approach requires you to know the structure of the menu beforehand and may pose a limitation when you require menu items which changes at runtime dynamically. (There was another slight glitch: in IE this approach requires css-hover.htc script, which may be disabled on some browsers due tu security reasons). However, this approach has suited me well. Eelco Hillenius wrote: The big question there is whether you know all items beforehand or not. If yes, integrating with any javascript library is easy. If not, you need a tree, and probably can best look at that component or navmenu (https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-navmenu) which is deprecated (won't be supported) but nevertheless may give you an idea. The second big question is: what are you going to do with these items: component replacements or do links point to bookmarkable pages? I'd really love to see someone contribute a nice component for this based on bookmarkable pages and a tree. navmenu was a step in that direction, but the API is't great. Eelco On 3/7/07, Thomas R. Corbin [EMAIL PROTECTED] wrote: We need a menu bar across the top of our pages, with pull down menus. We used to use this stuff: http://struts-menu.sf.net but I'm not sure how to integrate it, since it seems to rely on jsp tags. Thanks. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/What%27s-the-best-way-of-doing-menus-in-Wicket--tf3366440.html#a9371685 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RequestCycle ThreadLocal
On 3/6/07, Eelco Hillenius [EMAIL PROTECTED] wrote: itself too. Could the Wicket team change RequestCycle so that either: 1) There is a public or protected static set method in RequestCycle 2) Make the ThreadLocal current inside RequestCycle protected I'm ready to consider 1) if you can open up an issue for it. That way we can track progress and other team members can have their say on it. Ok, done. https://issues.apache.org/jira/browse/WICKET-366 In the meantime is checked out the 1.x branch with subversion (that's the branch for 1.3, right?), and made the change myself and build it from source. I did have to change the basedir to ../.. before ant could build. A mistake in the build files? Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RequestCycle ThreadLocal
Why is there no set methods on the request cycle like there is for session and application? Yes, that is an interesting point. Just grew like that I guess. But having a set method wouldn't really help your case, right? It would help, because I have a Request Cycle container that keeps track of the current cycle. And I would be able to do RequestCycle.set so that Wicket is able to access the RequestCycle itself too. Could the Wicket team change RequestCycle so that either: 1) There is a public or protected static set method in RequestCycle 2) Make the ThreadLocal current inside RequestCycle protected Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RequestCycle ThreadLocal
On 3/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I think your best bet is to take a close look at Wicket servlet and see how it prepares and executes request. Let the application object create the web request,set the application thread local, get the session, create a custom response object (this is where you probably want to capture your output, see for instance BufferedWebResponse) and then let the session create a request cycle (which is not meant for reuse mind you) using those request and response objects. Execute the request cycle (cycle.request()) and then do something with the response object that should now hold the render result. And don't forget to cleanup. Although I basically understand what you are saying, I don't see how this helps me to create something like a new page in another thread, since the session will attempt to access the request cycle in this thread. Or I should create a new request cycle in that thread? Why is there no set methods on the request cycle like there is for session and application? And why is the get method on the request cycle final? I would like to use covariant return types for my custom request cycle, like I can do for application and session. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RequestCycle ThreadLocal
Eelco Hillenius wrote: but why are these things tied to request threads? doesnt sound like they should be. If I understand Robert correctly that is due to an architectural choice he just has to live with. Also, I'm wondering in what way Tapestry is at fault here. I thought it had a decent reputation for stability and performance. Eelco The implementation had been done using Tapestry 3. The ognl expressions are known to be slow. However upgrading to Tapestry 4 (and 5) is like changing to a different framework. Also the Tapestry 3 code was full of bugs and weird design constructs which you probably won't see if you don't have to go deep in the Tapestry code. I was impressed by the simplicity and modularity of Wicket so I would like to change to this. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] RequestCycle ThreadLocal
Hi, I am using Wicket 1.2.5 I am trying to create a page in a different thread and get a Wicket exception caused by the fact that the RequestCycle is not available in the current thread. Can not set the attribute. No RequestCycle available Is there a way that I can associate a request cycle on a thread? I see similar API calls for Session and Application, but nothing for RequestCycle. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RequestCycle ThreadLocal
Well, I am converting an existing Tapestry application to Wicket (due to performance and stability problems). The architecture is done is such a way that it is necessary to render responses in a different thread than where the original request comes in. The web application has to deal with asynchronous communication with a server. I will give you an example. The browser sends a request that it wants to submit X. The web application receives this and put task A on the event queue that sends it to the server application. In the meantime task A waits. The server application then sends a request to the web application that it needs information about Y. The web application retrieves the current cycle and renders a response so the user can answer the question about Y. And it continues like that when finally task A gets its response from the server and renders in a request cycle other than the one causing the request. This architecture existed before any web application was developed for it. Robert On 3/2/07, Juergen Donnerstag [EMAIL PROTECTED] wrote: Why Do you want to create a Page in a separate thread? I floading the page take a long time, it usually is the model data which takes the time. Move loading the data into a separate thread if really necessary. Juergen On 3/2/07, Robert . [EMAIL PROTECTED] wrote: Hi, I am using Wicket 1.2.5 I am trying to create a page in a different thread and get a Wicket exception caused by the fact that the RequestCycle is not available in the current thread. Can not set the attribute. No RequestCycle available Is there a way that I can associate a request cycle on a thread? I see similar API calls for Session and Application, but nothing for RequestCycle. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDownChoice confusion
The documentation might be a little scattered, however is a separate topic. Nonetheless, the Wicket Library site features most of the Wicket components and examples of their usage: e. g. DropDownChoice is demonstrated (along with the IChoiceRenderer) on the http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage Jason Roelofs wrote: Which of course makes perfect sense... I'm sorry if I come across as crash, it's because I'm very annoyed. I thought Wicket was the coolest Java framework out there, but now that I've used it for 2 weeks on, I can't say that anymore. Every time I've moved on to the next part of my website, it takes me 2+ hours to figure out how, and I'm not talking about entire pages, I'm talking about components of pages. A select, an Ajax-ified form, etc. Why do I have to deal with IChoiceRenderers? Besides how the documentation doesn't tell me how to use the thing, nor do the examples explain how it works, just here ya go, copy this. It just doesn't make sense. Back to the matter at hand, does anyone have example code using wicket-extensions Select and SelectOptions? There is absolutely NO usage documentation on getting all that working together. Anyway, sorry about the rant, I'm just getting more disappointed with Wicket in general. It may be different than other Java frameworks, but I cannot say that it's any better. I like the idea, I like some of the implementation of it (how Ajaxing components work, best I've seen), but using the framework has been an exercise in frustration from day 2. So I'll head back to banging on the DropDownChoice, I'll get it eventually, though I'm open for suggestions. Jason On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote: The DropDownChoice allows you to specify in one of its constructors a custom implementation of IChoiceRenderer, which can be used to customize the item IDs and labels. You may try to have a look on the IChoiceRenderer and the ChoiceRenderer (which is its default implementation) JavaDoc. Jason Roelofs wrote: Why is nothing in Wicket obvious? I want: select ... option value=AND/option option value=|OR/option /select My model has a 'gated' field that is either '' or '|' Why can't I have: add(new DropDownChoice(gated, model, {AND, OR}, {, |}); or better yet: add(new DropDownChoice(gated, model, { {, AND}, {|, OR}}); (assuming properly created arrays, of course)? How is this supposed to work? Thanks Jason - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9191899 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9192544 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net
[Wicket-user] Session is valid?
Hi, Is there a way to see if a session is still valid. I could only find the private sessionInvalidated so that's not available. One other related question is how to deal with a case like this: A user loads the login page and goes away for a while. Later he comes back and tries to login. However at that point the session has expired and receives this message when trying to log in. Is there some way to prevent this from happening? Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MarkupWriter
On 2/13/07, Eelco Hillenius [EMAIL PROTECTED] wrote: For some cases it is easier, more efficient or - as with behaviors - simply the only way to write markup 'around' (before and after) the actual tag that a component is coupled to. This is where response.write can be used. Is this also the case when implementing the IAutoCompleteRenderer interface? Or is there a way to use the power of panels or fragments to render in renderChoice? I think it is too trivial to put this in Wicket core, but if we have a decent implementation we could consider putting it in extensions. If I will need this at some time I will make a good implementation and let you know. Robert Eelco On 2/13/07, Robert . [EMAIL PROTECTED] wrote: Actually I encounter this raw HTML output in the Pro Wicket book on page 251. A custome AutoCompleteRenderer is used to render a choice protected void renderChoice(Object object, Response response) Could you give an example how to write custom HTML to the response in such a method, without having to do something like response.write(div); Robert On 2/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: in wicket you very very very very rarely output markup from your code. why do you need this? -igor On 2/12/07, Robert . [EMAIL PROTECTED] wrote: Hi, I have been using Tapestry before and kinda enjoyed using the IMarkupWriter by doing things like writer.begin(div); writer.attribute(id, abc); writer.println(text); writer.end(); Is there an equivalent way of doing this in Wicket? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MarkupWriter
Actually I encounter this raw HTML output in the Pro Wicket book on page 251. A custome AutoCompleteRenderer is used to render a choice protected void renderChoice(Object object, Response response) Could you give an example how to write custom HTML to the response in such a method, without having to do something like response.write(div); Robert On 2/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: in wicket you very very very very rarely output markup from your code. why do you need this? -igor On 2/12/07, Robert . [EMAIL PROTECTED] wrote: Hi, I have been using Tapestry before and kinda enjoyed using the IMarkupWriter by doing things like writer.begin(div); writer.attribute(id, abc); writer.println(text); writer.end(); Is there an equivalent way of doing this in Wicket? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Intellij plugin
Hi, I read somewhere that a Wicket Intellij plugin is also being developed. Is anyone already using it? Are there any releases scheduled for the plugin? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MarkupWriter
Yes, that's the example I am talking about. BTW the overridden method's name is incorrect. It should be renderChoice instead of renderChoices. On 2/13/07, karthik Guru [EMAIL PROTECTED] wrote: this one? AbstractAutoCompleteRenderer implements IAutoCompleteRenderer{ @Override protected void renderChoices(Object object, Response r) { String val = ((Email) object).email; r.write(div style='float:left; color:red; '); r.write(val); r.write(/divdiv style='text-align:right; width:100%;'); r.write( + ((Email) object).getEmailInfo()); r.write(/div); } } I'm not sure how to move the HTML div to a panel/fragment for example , pass the EmailInfo text to the fragment/panel and then add it to the Response. thanks, Karthik On 2/13/07, Robert . [EMAIL PROTECTED] wrote: Actually I encounter this raw HTML output in the Pro Wicket book on page 251. A custome AutoCompleteRenderer is used to render a choice protected void renderChoice(Object object, Response response) Could you give an example how to write custom HTML to the response in such a method, without having to do something like response.write(div); Robert On 2/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: in wicket you very very very very rarely output markup from your code. why do you need this? -igor On 2/12/07, Robert . [EMAIL PROTECTED] wrote: Hi, I have been using Tapestry before and kinda enjoyed using the IMarkupWriter by doing things like writer.begin(div); writer.attribute(id, abc); writer.println(text); writer.end(); Is there an equivalent way of doing this in Wicket? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- -- karthik -- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] MarkupWriter
Hi, I have been using Tapestry before and kinda enjoyed using the IMarkupWriter by doing things like writer.begin(div); writer.attribute(id, abc); writer.println(text); writer.end(); Is there an equivalent way of doing this in Wicket? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxFormValidatingBehavior and focus
I tried it in Firefox 2.0.0.1 and IE 7 and it had the same problems. I didn't try it in IE6 yet. I will add a feature request to JIRA for it. Robert On 2/8/07, Igor Vaynberg [EMAIL PROTECTED] wrote: go ahead and make it a feature request and add a quickstart to it i remember i ran into something like this - it worked fine in firefox or ie but failed in the other because for some reason dom updates would cause the field to lose focus when it is repainted by ajax. -igor On 2/8/07, Robert ... [EMAIL PROTECTED] wrote: Hi everyone, I tried to use AjaxFormValidatingBehavior like this: AjaxFormValidatingBehavior.addToAllFormComponents(form, onkeyup, wicket.util.time.Duration.seconds(3)); It works. The feedback panel is updated and everything. However while I'm typing the focus keeps dissapearing from the input field. That's very annoying as you can imagine. Can I set Wicket to keep my focus? If not, I would like to make this a feature request. Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pro Wicket - TextTemplateHeaderContributor
On page 232 of Pro Wicket javascript is dynamically added in the head element. The following method is used in the ConfirmDeleteBehavior: public void bind(final Component component) { this.component = component; component.setOutputMarkupId(true); component.add(TextTemplateHeaderContributor.forJavaScript (getClass(), confirmdelete.js, variablesModel)); } The first time the page is renderer I can see the javascript being added, however the second time the javascript is nowhere to be found. which of course results in a javascript error when clicking a button that has an onclick added by the same behavior. How can I fix this? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pro Wicket - TextTemplateHeaderContributor
Thanks for the information. That would be the second bug I encounter when trying the examples from the book. Is there any estimate on a release date for the next version? On 2/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote: This is most likely due a bug in 1.2.4, which should be solved for 1.2.5 and 1.3.x Eelco On 2/7/07, Robert ... [EMAIL PROTECTED] wrote: On page 232 of Pro Wicket javascript is dynamically added in the head element. The following method is used in the ConfirmDeleteBehavior: public void bind(final Component component) { this.component = component; component.setOutputMarkupId(true); component.add(TextTemplateHeaderContributor.forJavaScript(getClass(), confirmdelete.js , variablesModel)); } The first time the page is renderer I can see the javascript being added, however the second time the javascript is nowhere to be found. which of course results in a javascript error when clicking a button that has an onclick added by the same behavior. How can I fix this? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Deprecated example in wicket.util.convert.Converter
Ok, it is the WICKET-257 issue. R. N. igor.vaynberg wrote: a jira issue would be awesome, we would need one for our 1.2.5 changelog anyways :) -igor On 2/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Gladly. I enclose it in the attachment. (Shall I create an JIRA issue?) R. N. how about a patch to the javadoc? :) -igor On 2/5/07, Robert Novotny wrote: Hello, I stumbled upon a deprecated example in the wicket.util.convert.Converter example. Method newConverter() on the ConverterFactory seems to be gone in the Wicket 1.2.5. final IConverter converter = new ConverterFactory().newConverter(); converter.setLocale(Locale.US); converter.convert(new Double(7.1), String.class); I know that this is a rarely used class by the general public, but I hope that some day the documentation will deserve its update :-) Robert Novotny -- View this message in context: http://www.nabble.com/Deprecated-example-in-wicket.util.convert.Converter-tf3176607.html#a8814016 Sent from the Wicket - User mailing list archive at Nabble.com. - --- reklama --- http://webhosting.szm.com - AKCIA, domeny a webhosting za najnizsie ceny Ziskaj vlastnu domenu, webstranku www.mojadomena.sk a vlastne maily [EMAIL PROTECTED] v cenach uz od 50Sk/mesiac. === reklama == http://mail.szm.com - e-mail a priestor na www stranku zadarmo http://webhosting.szm.com - domeny a webhosting za najnizsie ceny --28e938265208ea82e630d63066f34bc4-- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Deprecated-example-in-wicket.util.convert.Converter-tf3176607.html#a8822158 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Deprecated example in wicket.util.convert.Converter
Hello, I stumbled upon a deprecated example in the wicket.util.convert.Converter example. Method newConverter() on the ConverterFactory seems to be gone in the Wicket 1.2.5. final IConverter converter = new ConverterFactory().newConverter(); converter.setLocale(Locale.US); converter.convert(new Double(7.1), String.class); I know that this is a rarely used class by the general public, but I hope that some day the documentation will deserve its update :-) Robert Novotny -- View this message in context: http://www.nabble.com/Deprecated-example-in-wicket.util.convert.Converter-tf3176607.html#a8814016 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question
Okay that makes it clear. Then I will just ignore this problem and hope it will be fixed by the time I really need it :) Perhaps a note could be added to the errata about it? I tried opening the tracking number, but I get a page with Artifact: Only Group Members Can View Private ArtifactTypes error. On 2/2/07, karthik Guru [EMAIL PROTECTED] wrote: It has to do with this problem - http://www.nabble.com/a-problem-with-continueToOriginalDestination-tf1427448.html#a3849601 Wicket doesn't remember the actual post url in this case. I added a bug and rfe. These are the bug/rfe tracking numbers 1468034https://sourceforge.net/tracker/?func=detailaid=1468034group_id=119783atid=684978 1480327https://sourceforge.net/tracker/?func=detailaid=1480327group_id=119783atid=684978 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pro Wicket - Form.process()
Hi, Page 96 of the Pro Wicket book describes how discouraging it is that you lose your initial selection, because Wicket does not update form component models during Form submission. A getForm().process() is needed in the DropDownChoice.onSelectionChanged() However when testing it (with wicket 1.2.4) I noticed that everything already works fine without it. Has this behaviour been changed since the book has been made and I can assume that the form component models will be updated from now on? Robert - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question
Hi, I have read the Pro Wicket book and I am trying to make some examples from the book. However I get an error when trying to use a RestartResponseAtInterceptPageException in the bookstore example from page 114. It happens after the Login page calls continueToOriginalDestination. wicket.util.convert.ConversionException: Can't convert null value to a primitive class: int for setting it on [EMAIL PROTECTED] In the authorization strategy/listener onUnauthorizedInstantiation method I see that the component is the ConfirmationPage as I expected. However the expection page I get shows the CheckoutPage as the page class. I'm not sure if it means anything, but it seems to go back to the CheckoutPage instead of continuing to the ConfirmationPage. What am I doing wrong? Robert. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question
I don't think it's a convertor problem, because if the user is already logged in, the ConfirmationPage can be reached without a problem. It's only when the user still has to login between the Checkout and Confirmation page. I don't know why it is trying to set something in CheckoutBook anyway. I'm guessing because it is returning to the CheckoutPage instead of ConfirmationPage. On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: looks like a converter problem? maybe that field that is collection an int needs to be marked required, or be backed by Integer rather then int. -igor On 2/1/07, Robert ... [EMAIL PROTECTED] wrote: Hi, I have read the Pro Wicket book and I am trying to make some examples from the book. However I get an error when trying to use a RestartResponseAtInterceptPageException in the bookstore example from page 114. It happens after the Login page calls continueToOriginalDestination. wicket.util.convert.ConversionException: Can't convert null value to a primitive class: int for setting it on [EMAIL PROTECTED] In the authorization strategy/listener onUnauthorizedInstantiation method I see that the component is the ConfirmationPage as I expected. However the expection page I get shows the CheckoutPage as the page class. I'm not sure if it means anything, but it seems to go back to the CheckoutPage instead of continuing to the ConfirmationPage. What am I doing wrong? Robert. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Writing byte[] to a WebResponse
Hello I store a lot of MS Word and Excel files as a byte[] into my database. I want to add a feature to download these files from the database again, but I did not find a way to do this in Wicket, without writing the byte[] to a File again. Is there a way to write a byte[] to a WebResponse? I tried the same Code, which is available at the Export Example from Wicket I got my byte[] from the database and then wrote it to a ByteArrayOutputStream.Then I used the toString() method. But if I download the file then I get a lot of conversion errors from MS Word, so I would like to write the byte[] directly. So I tried this method: response.getOutputStream().write(file); But using this I get this error: java.lang.UnsupportedOperationException: Cannot get output stream on BufferedResponse Thanks for any help Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Writing byte[] to a WebResponse
I subclassed DynamicWebRessource, but I still have the problem that I do not know how to add the RessourceState to my WebResponse for my download link. I found the class ResourceReference but no I did not find out how to use it. Do I have to use the ResourceReferece Class or is there another way to get my download working? Perhaps you could give me a short example Thanks Robert Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Philip A. Chapman Gesendet: Mittwoch, 03. Jänner 2007 12:03 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Writing byte[] to a WebResponse The reason you're getting errors in MS Word is that you're converting a byte array into a String using ByteArrayOutputStream's toString() method. A Java String and a byte array are not always the same thing due to unicode. Subclass wicket.markup.html.DynamicWebResource so that it returns the correct instance of ResourceState (also your own implementation). Among other things, ResourceState is supposed to provide a byte array that is the content of the download. This would be the byte array from your database. On Wed, 2007-01-03 at 11:37 +0100, Thullner, Robert wrote: Hello I store a lot of MS Word and Excel files as a byte[] into my database. I want to add a feature to download these files from the database again, but I did not find a way to do this in Wicket, without writing the byte[] to a File again. Is there a way to write a byte[] to a WebResponse? I tried the same Code, which is available at the Export Example from Wicket I got my byte[] from the database and then wrote it to a ByteArrayOutputStream.Then I used the toString() method. But if I download the file then I get a lot of conversion errors from MS Word, so I would like to write the byte[] directly. So I tried this method: response.getOutputStream().write(file); But using this I get this error: java.lang.UnsupportedOperationException: Cannot get output stream on BufferedResponse Thanks for any help Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] StringHeaderContributor acting strangely
I have filed a jira report (WICKET-188) for this. Robert Johan Compagner wrote: can you make a testcase and create a jira for this? johan On 12/28/06, Robert Novotny [EMAIL PROTECTED] wrote: Yes, I have tried this new version too, but the problem seems to persist. I have noticed some backports in the AbstractBehavior class, could this be the cause/solution? igor.vaynberg wrote: have you tried 1.2.4? -igor On 12/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Greetings, I have been trying to work with the StringHeaderContributors. However, I have observed a rather strange behavior while using Wicket 1.2.3. The header contributions seem to be appearing and disappearing randomly. I have tested a class for a simple webpage (see below) with a corresponding HTML page. If I click on the link, the contributions appear normally. However, if I refresh the page which contains the target URL of that page, the contributions sometimes appear, and sometimes not. Does this problem have something in common with the fixed HeaderContribution issue in the Wicket 1.2.3? This problem seems to be nonexistent when using Wicket 1.2.1. Thanks for any advice. Robert Novotny --- public class SimpleContributingPage extends WebPage { public SimpleContributingPage() { super(); add(new StringHeaderContributor(\title\ + new Date() + \/title\)); add(new PageLink(\self\, SimpleContributingPage.class ) { public void onClick() { super.onClick(); System.out.println(new Date() + \ : clicked\); } }); } } --- html xmlns:wicket head/head body [Self] /body /html -- -- View this message in context: http://www.nabble.com/StringHeaderContributor-acting-strangely-tf2891929.html#a8086589 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] StringHeaderContributor acting strangely
Yes, I have tried this new version too, but the problem seems to persist. I have noticed some backports in the AbstractBehavior class, could this be the cause/solution? igor.vaynberg wrote: have you tried 1.2.4? -igor On 12/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Greetings, I have been trying to work with the StringHeaderContributors. However, I have observed a rather strange behavior while using Wicket 1.2.3. The header contributions seem to be appearing and disappearing randomly. I have tested a class for a simple webpage (see below) with a corresponding HTML page. If I click on the link, the contributions appear normally. However, if I refresh the page which contains the target URL of that page, the contributions sometimes appear, and sometimes not. Does this problem have something in common with the fixed HeaderContribution issue in the Wicket 1.2.3? This problem seems to be nonexistent when using Wicket 1.2.1. Thanks for any advice. Robert Novotny --- public class SimpleContributingPage extends WebPage { public SimpleContributingPage() { super(); add(new StringHeaderContributor(\title\ + new Date() + \/title\)); add(new PageLink(\self\, SimpleContributingPage.class) { public void onClick() { super.onClick(); System.out.println(new Date() + \ : clicked\); } }); } } --- html xmlns:wicket head/head body [Self] /body /html -- View this message in context: http://www.nabble.com/StringHeaderContributor-acting-strangely-tf2891929.html#a8079951 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Avoid session reuse on login page when previous user doesn't log out
Wicket 1.2.3 User A and B share a computer at an office. User A logs in. Session is setup with account info. User A doesn't log out. User B clicks on his login bookmark, and logs in using the same session (as it wasn't invalidated with a logout) -- the same session is reused. The login process would then need to manually clear any of the user-specific objects that may have been stored in the session (eg, user preferences, whatever was set in the custom session object). A way around this would be for the login page to invalidate the session, but then a submit would have a page expired error. Any graceful way around this in wicket 1.2.3? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about DataTable
Carfield Yim a écrit : On 11/14/06, Carfield Yim [EMAIL PROTECTED] wrote: [snip] However, if I like to display a link, I will not work if I just add a BookmarkableLink like private static class OrderIdColumn extends AbstractColumn { public OrderIdColumn() { super(new Model(OrderId), OrderId); } private static final long serialVersionUID = 1L; public void populateItem(Item cellItem, String componentId, IModel model) { final Order order = (Order) model.getObject(cellItem); final MapString, String map = new HashMapString, String(); map.put(orderid, order.getOrderId().toString()); cellItem.add(new BookmarkablePageLink(componentId, Edit.class, new PageParameters(map))); } } It just display a text call [cell]. How can I solve this? How customize your cell table : You may create a panel which contains only your link : wicket:panel a wicket:id=mylinkspan wicket:id=mytext/span/a /wicket:panel and in the populateItem: MyPanel panel = new MyPanel(componentId); cellItem.add(panel); And in your panel constructor MyPanel() { add(new BookmarkablePageLink(componentId, Edit.class, new PageParameters(map))); add(new Label(mytext, click here)); } If you wich to add several types of content in your cell (a link, an image, a blob, a form, ...), or if you wich to select a row and make actions, it may more interresting to use a ListView. -- Robert JACOLIN M2M ANYWARE TECHNOLOGIES Tél : +33 (0)5.61.00.06.56 Fax : +33 (0)5 61 00 51 46 www.anyware-tech.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 1 app, 2 HomePages. 1 public, 1 logged-in
I have an app that has a public section and a logged-in section. If the session expires for a logged-in user, I'd like to direct him to the login. If a page expires for a public user, I'd like to direct him to the / page. Any thoughts on how to handle this efficently? One easy way would be to break the app into 2 apps, 2 separate WicketServlets, each with its own HomePage defined, but that may use too many resources just to accomplish this. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax refresh for Image
Hello, I'm trying to change the src of an image when the user clicking on a ajaxLink by this way : On a panel, I have an icon and a text (a date using DateLabel from databinder). When the user clicks on the link,the panel is refresh by : public void onClick(AjaxRequestTarget target) { panel.setModel(new CompoundPropertyModel(photo)); target.addComponent(panel); } The date is refreshed. It's ok for the date. But the image doesn't change. My Panel is built like that : Photo photo = (Photo) getModelObject(); add(new DateLabel(date, dd/MM/ HH:mm)); if(photo.getAlarm()) add(new Image(alarm, alarm.gif)); else add(new Image(alarm, blank.png)); So, It can not work. I extended the CompoundPropertyModel to supply the correct filename to the Image component. So, the ajaxLink will work too. All will be ok. But It seems the Image doesn't use my model :( The method onGetObject is called only for the date label. Do you have any clue, tips or solution ? I think someone I had already to change images through ajax Link ? How did you do ? Thanks by advance... Robert -- Robert JACOLIN M2M ANYWARE TECHNOLOGIES Tél : +33 (0)5.61.00.06.56 Fax : +33 (0)5 61 00 51 46 www.anyware-tech.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] TinyMCE issues with resources
I'm using wicket 1.2 jar and wicket-contrib-tinymce-1.0-SNAPSHOT.jar (built in maven from checking out 1.2 branch of wicket-stuff) I've added TinyMCEPanel to my page via add(new TinyMCEPanel(tinyMCE)); When I click on the page (I'm using Fire Fox 1.5.0.6 under OS X), the following javascript errors are reported in the console: Error: this.contentWindow has no properties Source File: http://localhost:9092/car/loads/resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js Line: 2395 Error: editorTemplate has no properties Source File: http://localhost:9092/car/loads/resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js Line: 3372 When I look at the java console, the following is reported: 15 Aug 2006 10:18:26,317 ERROR resource.SharedResourceRequestTarget - shared resource wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/themes/simple/editor_template_src.js not found 15 Aug 2006 10:18:26,331 ERROR resource.SharedResourceRequestTarget - shared resource wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/langs/en.js not found 15 Aug 2006 10:18:26,351 ERROR resource.SharedResourceRequestTarget - shared resource wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/themes/simple/css/editor_ui.css not found So it appears not to have issues requesting http://localhost:9092/car/loads/resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js, but the other resources are failing. Any ideas? Thanks. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket Blog Post
I've discovered Wicket and was moved to sing its praises: http://www.mostmedia.com/blogs/archive/2006/08/03/java-development-stack-acr onymony If I have time I hope to write up the experience I had porting some code in an article for the wiki. Regards, ___ Robert Moskal Most Media Brooklyn, USA 718-398-2170 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Wicket Include vs. RequestDispatcher.include
I posted a very similar component to the group a while back -- search for Servlet forward to a JSP. It could be used as a starting point for a nice component, as it definitely needs polishing. On 2006-03-29 23:54:57 -0700, Nili Adoram [EMAIL PROTECTED] said: How about extending Include as follows: public class LightInclude extends Include { public LightInclude(String id, String model, ServletRequest request, ServletResponse response) { this.request = request; this.response = response; } protected String importUrl(String url) { //create a buffer Writer writer = new BufferedWriter(new CharArratWriter()); //create some mockup response ServletResponse mockupResponse = new ServletResponse() { //implement all interface methods by delegating to the original response except for this: public PrintWriter getWriter(){ return new PrintWriter(writer); } }; //call RequestDispatcher with the mockup response //this will write the response to our buffer request.getrequestDispatcher(url).include(request, mockupResponse); //return the content of the buffer return writer.toString(); } } I guess some additional polish is required.. Nili Eelco Hillenius wrote: That's what I did in the first version(s) of Include. There were issues with it, which I unfortunately forgot. I never use this component myself, but if you have good ideas in the form of patches, I'd be happy to look at them. Eelco On 3/29/06, Nili Adoram [EMAIL PROTECTED] wrote: Hi, Is there an option to use utilize wicket Include without opening a new connection? I would like to include the contents of a URL like RequestDispatcher.include() does, directly into a wicket component. 10x Nili --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Back button, setVisible, isVisible, Submit Button is not Visible
I'm writing a simple Upload File/View File/Delete File panel. It has 3 buttons. 1. Upload - Only visible when no file is stored permissions are correct via isVisible() override. 2. View File - Only visible when a file is already stored via isVisible() override. 3. Delete File - Only visible when a file is already stored permissions are correct via isVisible() override. When I upload a file, the upload button is hidden, the view and delete buttons are visible. However, if I hit back and click upload again I get wicket.WicketRuntimeException: Submit Button is not visible. What I'd like to do is say a file is already uploaded and ignore their file (I think). For remove I'd say No file to remove. Etc. Or just do nothing and render the current display. Maybe if it threw a named exception? Or do I need to use state changes explicitly and call setVisible so that it rolls the page back to that state. Using setVisible is much less convenient that using isVisible for this kind of logic. Thanks! --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Back button, setVisible, isVisible, Submit Button is not Visible
Perhaps a flag on the component to specify whether it handles clicks when it is invisible? That would fix the issue and the component would get the click, could check if it whether it is visible / invisible and then act accordingly. I tried turning on versioning and then using setVisible explicitly but it isn't working (at least the way I'd expect it) The version numbers are incrementing but the visibility isn't changing. I am of course many levels deep in panels.. For now I may choose to have the buttons available at all times and that will get around the problem for the present. Thanks. On 2006-03-22 12:16:18 -0700, Igor Vaynberg [EMAIL PROTECTED] said: problem with approach like that in this case is that when you go back the upload button should indeed be hidden because youve already uploaded a file= . so in your case it would be better to call setvisible isntead of overriding isvisible because your condition does not work well across requests. -Igor On 3/22/06, Robert McClay [EMAIL PROTECTED] wrote: I'm writing a simple Upload File/View File/Delete File panel. It has 3 buttons. 1. Upload - Only visible when no file is stored permissions are correct via isVisible() override. 2. View File - Only visible when a file is already stored via isVisible() override. 3. Delete File - Only visible when a file is already stored permissions are correct via isVisible() override. When I upload a file, the upload button is hidden, the view and delete buttons are visible. However, if I hit back and click upload again I get wicket.WicketRuntimeException: Submit Button is not visible. What I'd like to do is say a file is already uploaded and ignore their file (I think). For remove I'd say No file to remove. Etc. Or just do nothing and render the current display. Maybe if it threw a named exception? Or do I need to use state changes explicitly and call setVisible so that it rolls the page back to that state. Using setVisible is much less convenient that using isVisible for this kind of logic. Thanks! --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=3Dlnkkid=3D110944bid=3D241720dat= =3D121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user problem with approach like that in this case is that when you go back the u= pload button should indeed be hidden because youve already uploaded a file.= so in your case it would be better to call setvisible isntead of overridin= g isvisible because your condition does not work well across requests. brbr-Igorbrbrbrdivspan class=3Dgmail_quoteOn 3/22/06, b cl= ass=3Dgmail_sendernameRobert McClay/b lt;a href=3Dmailto:montecrist= [EMAIL PROTECTED][EMAIL PROTECTED]/agt; wrote:/spanblockquote cla= ss=3Dgmail_quote style=3Dborder-left: 1px solid rgb(204, 204, 204); marg= in: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; I'm writing a simple Upload File/View File/Delete File panel. It has 3 butt= ons.brbr1. Upload - Only visible when no file is stored amp; permissio= ns arebrcorrect via isVisible() override.br2. View File - Only visible = when a file is already stored via brisVisible() override.br3. Delete File - Only visible when a file is a= lready stored amp;brpermissions are correct via isVisible() override.br= brWhen I upload a file, the upload button is hidden, the view and delete brbuttons are visible. However, if I hit back and click upload again Ibr= get quot;wicket.WicketRuntimeException: Submit Button is not visiblequot= ;. WhatbrI'd like to do is say a file is already uploaded and ignore thei= r file br(I think). For remove I'd say quot;No file to removequot;. Etc. Or ju= st dobrnothing and render the current display. Maybe if it threw a named= brexception?brbrOr do I need to use state changes explicitly and call = setVisible so brthat it rolls the page back to that state. Using setVisible is muchbr= less convenient that using isVisible for this kind of logic.brbrThanks!= brbrbrbrbr--- brThis SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uagebrthat extends applications into web and mobile media. Attend the liv= e webcastbrand join the prime developer group breaking into this new codi= ng territory! bra href=3Dhttp://sel.as-us.falkag.net/sel?cmd=3Dlnkamp;kid=3D110944a= mp;bid=3D241720amp;dat=3D121642http://sel.as-us.falkag.net/sel?cmd=3Dlnk= amp;kid=3D110944amp;bid=3D241720amp;dat=3D121642/abr= ___ brWicket-user mailing listbra href=3Dmailto:[EMAIL PROTECTED] orge.netWicket-user@lists.sourceforge.net/abra href=3Dhttps://lists= .sourceforge.net/lists/listinfo
[Wicket-user] Upload, multipart form, Resin
Resin has an option that handles parsing multipart forms automatically. http://www.caucho.com/products/resin/ref/app-config.xtp#multipart-form ...an uploaded file with a form name of foo, the parameter value contains the path name to a temporary file containing the uploaded file. foo.filename contains the uploaded filename, and foo.content-type contains the content-type of the uploaded file. To use this option with Wicket, my workaround was to remove final/private from Form.handleMultiPart() and override it to return true. I then use a custom FileUploadField that gets the file information from the parameters instead of the built-in-wicket multipart form handling. Rob --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Upload, multipart form, Resin
Specific to the Resin container I think. It handles multipart forms automatically and puts the file path in the request parameters. So the form needs to be specified as multipart/form-data but Wicket shouldn't handle it as a multipart form. A less intrusive fix to get it working is I explicitly specific enctype=multipart/form-data in the markup and I override Form.onComponentTag, call its super, and then call setMultiPart(false) so wicket doesn't handle it as a multipart form. On 2006-03-21 10:26:54 -0700, Eelco Hillenius [EMAIL PROTECTED] said: Is this specific to Resin, or is it something more general? Eelco On 3/21/06, Robert McClay [EMAIL PROTECTED] wrote: Resin has an option that handles parsing multipart forms automatically. http://www.caucho.com/products/resin/ref/app-config.xtp#multipart-form ...an uploaded file with a form name of foo, the parameter value contains the path name to a temporary file containing the uploaded file. foo.filename contains the uploaded filename, and foo.content-type contains the content-type of the uploaded file. To use this option with Wicket, my workaround was to remove final/private from Form.handleMultiPart() and override it to return true. I then use a custom FileUploadField that gets the file information from the parameters instead of the built-in-wicket multipart form handling. Rob --- This SF.Net email is sponsored by xPML, a groundbreaking scripting langua ge that extends applications into web and mobile media. Attend the live webc ast and join the prime developer group breaking into this new coding territor y! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat =121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Porting to 1.2 -- using getSession().invalidate()
In 1.1, given a runtime exception of type SecurityException, I'd forward to a special error page that then calls getSession().invalidate() to log the user out. The special error page would render and then the session would be invalidated, causing additional clicks to forward to the login page. In 1.2 my page no longer renders -- it jumps straight to the Page Expired page if I call getSession().invalidate(). I'm using the default render strategy. Is there a preferred way to implement this type of behavior in 1.2? I want to invalidate the session so that the user can't repeatedly request resources that throw SecurityExceptions, but I'd like a page to be rendered prior to the session being invalidated. Thanks. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Page Versioning Problem
I'm using Wicket 1.1. I have a page with 1 constructor (no default constructor): public ChoiceListDetailPage(final Page backPage, final ChoiceList detail) I construct and then go to the page from a bookmarkable list page. The new page doesn't handle versioning correctly though. It is the same as its parent page but it isn't bookmarkable. It contains a ListView that needs to be versioned, but even though I say listView.setVersioned(true) the version number for the list is never incremented. The listview's model is a LoadableDetachableModel generated from database records fresh each time. Any ideas? Why does it work on a bookmarkable page but not on one that isn't? Thanks. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Page Versioning Problem
My mistake, my listview was accidentally in a form, which caused the issue. All is resolved. Thanks. On 2006-02-25 15:33:16 -0700, Johan Compagner [EMAIL PROTECTED] said: first of all a page has a version number not the listview. And when must the version be bumped up one? When the model of the listview changes? See the modelChanging can modelChanged() events. That will up the version number. johan On 2/25/06, Robert McClay [EMAIL PROTECTED] wrote: I'm using Wicket 1.1. I have a page with 1 constructor (no default constructor): public ChoiceListDetailPage(final Page backPage, final ChoiceList detail) I construct and then go to the page from a bookmarkable list page. The new page doesn't handle versioning correctly though. It is the same as its parent page but it isn't bookmarkable. It contains a ListView that needs to be versioned, but even though I say listView.setVersioned(true) the version number for the list is never incremented. The listview's model is a LoadableDetachableModel generated from database records fresh each time. Any ideas? Why does it work on a bookmarkable page but not on one that isn't? Thanks. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=3Dlnkkid=3D110944bid=3D241720dat= =3D121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user first of all a page has a version number not the listview.brAnd when must= the version be bumped up one?brWhen the model of the listview changes?b= rSee the modelChanging can modelChanged() events. That will up the version= number. brbrjohanbrbrbrdivspan class=3Dgmail_quoteOn 2/25/06, b cl= ass=3Dgmail_sendernameRobert McClay/b lt;a href=3Dmailto:montecrist= [EMAIL PROTECTED][EMAIL PROTECTED]/agt; wrote:/spanblockquote cla= ss=3Dgmail_quote style=3Dborder-left: 1px solid rgb(204, 204, 204); marg= in: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; I'm using Wicket 1.1. I have a page with 1 constructor (no defaultbrconst= ructor):brbrpublic ChoiceListDetailPage(final Page backPage, final Choi= ceList detail)brbrI construct and then go to the page from a bookmarkab= le list page. The brnew page doesn't handle versioning correctly though. It is the same as= brits parent page but it isn't bookmarkable. It contains a ListView thatb= rneeds to be versioned, but even though I saybrlistView.setVersioned (true) the version number for the list is neverbrincremented. The listvie= w's model is a LoadableDetachableModelbrgenerated from database records f= resh each time.brbrAny ideas? Why does it work on a bookmarkable page b= ut not on one that isn't? brbrThanks.brbrbrbrbr= ---brThis SF.Net email is sponsored by xPML, a groundbreaking= scripting languagebrthat extends applications into web and mobile media.= Attend the live webcast brand join the prime developer group breaking into this new coding territ= ory!bra href=3Dhttp://sel.as-us.falkag.net/sel?cmd=3Dlnkamp;kid=3D1109= 44amp;bid=3D241720amp;dat=3D121642http://sel.as-us.falkag.net/sel?cmd= =3Dlnkamp;kid=3D110944amp;bid=3D241720amp;dat=3D121642 /abr___brWicket-user mail= ing listbra href=3Dmailto:Wicket-user@lists.sourceforge.net;Wicket-use= [EMAIL PROTECTED]/abra href=3Dhttps://lists.sourceforge.net/lis= ts/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user/abr/blockquot= e/divbr --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues
I haven't tried it with 1.2 yet, but will. Thanks. On 2006-01-28 12:30:43 -0700, Eelco Hillenius [EMAIL PROTECTED] said: It's sounds really nasty. Sorry we haven't been able to help you with it directly. Did you test it with the current version of 1.2 at all? It would certainly be reasuring if that is fixed in that version. Eelco On 1/28/06, Robert McClay [EMAIL PROTECTED] wrote: I modified my copy of DatePicker.java and DatePicker.html to reference resources (images, javascript, and css) from the web server directly and everything works great now. Hopefully I can throw it out when 1.2 is released. It appears that IE / https / wicket combination causes some threads to get stuck when lots of images are requested simultaneously. Has anyone else experienced this? On 2006-01-27 12:57:11 -0700, Martijn Dashorst [EMAIL PROTECTED] said: Can you see the requests stalling in the server logs? As for 1.2: the resource requests will not pass a blocking section. Thi s is hard to achieve in Wicket 1.1, which is one of the reasons we (mainly E elco ) replaced the internal request processing in Wicket 1.2 Martijn --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues
I modified my copy of DatePicker.java and DatePicker.html to reference resources (images, javascript, and css) from the web server directly and everything works great now. Hopefully I can throw it out when 1.2 is released. It appears that IE / https / wicket combination causes some threads to get stuck when lots of images are requested simultaneously. Has anyone else experienced this? On 2006-01-27 12:57:11 -0700, Martijn Dashorst [EMAIL PROTECTED] said: Can you see the requests stalling in the server logs? As for 1.2: the resource requests will not pass a blocking section. This is hard to achieve in Wicket 1.1, which is one of the reasons we (mainly Eelco= ) replaced the internal request processing in Wicket 1.2 Martijn --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues
Users of our https site using IE 6 have reported that pages that use a DatePicker seem to stall on downloading the images for the datepicker. I've verified and it happens when the images aren't in the browser cache -- sometimes it takes forever to download the images. Haven't noticed the same behavior when not using https with IE, and of course Safari and Firefox work well. When the datepicker is stalled downloading the images, and I click on another page in the app, it behaves as if it is blocked and doesn't respond to my session until all of the images datepicker images have finished downloading (which can take forever). Does 1.1.1 or 1.2 allow static image resources or .css files to be requested by the browser without synchronization/blocking? I've also noticed that IE will request the images again if I mouseover the datepicker window if they haven't downloaded yet, adding to the delay. Of course, the problem can only be replicated under IE -- maybe it requests all of the images at once and causes some sort of strange blocking phenomenon? Any ideas? Does serving up static resources / images in a package cause the session to block? If so, does it need to? Thanks. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues
When the session times out I can get a boat load of these exceptions (1 per stalled thread I assume), which leads me to believe the thread stalls when the resource is requested, if they're all requested simultaneously. I'm going to hunt for a quick way to adjust DatePicker to get its resources directly from the web server as opposed to going through a PackageResource. Thanks. == Exception Data == java.lang.IllegalStateException: Can't call removeAttribute(String) when session is no longer valid. at com.caucho.http.session.SessionImpl.removeAttribute(SessionImpl.java:389) at wicket.protocol.http.WebSession.removeAttribute(WebSession.java:188) at wicket.Session.touch(Session.java:804) at wicket.Page.doRender(Page.java:225) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:218) at wicket.RequestCycle.redirectToExceptionErrorPage(RequestCycle.java:847) at wicket.RequestCycle.internalOnRuntimeException(RequestCycle.java:745) at wicket.RequestCycle.request(RequestCycle.java:428) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:197) at javax.servlet.http.HttpServlet.service(HttpServlet.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96) at com.bci.car.servlets.gzip.GzipFilter.doFilter(GzipFilter.java:127) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:595) On 2006-01-27 12:57:11 -0700, Martijn Dashorst [EMAIL PROTECTED] said: Can you see the requests stalling in the server logs? As for 1.2: the resource requests will not pass a blocking section. This is hard to achieve in Wicket 1.1, which is one of the reasons we (mainly Eelco= ) replaced the internal request processing in Wicket 1.2 Martijn On 1/27/06, Robert McClay [EMAIL PROTECTED] wrote: Users of our https site using IE 6 have reported that pages that use a DatePicker seem to stall on downloading the images for the datepicker. I've verified and it happens when the images aren't in the browser cache -- sometimes it takes forever to download the images. Haven't noticed the same behavior when not using https with IE, and of course Safari and Firefox work well. When the datepicker is stalled downloading the images, and I click on another page in the app, it behaves as if it is blocked and doesn't respond to my session until all of the images datepicker images have finished downloading (which can take forever). Does 1.1.1 or 1.2 allow static image resources or .css files to be requested by the browser without synchronization/blocking? I've also noticed that IE will request the images again if I mouseover the datepicker window if they haven't downloaded yet, adding to the delay. Of course, the problem can only be replicated under IE -- maybe it requests all of the images at once and causes some sort of strange blocking phenomenon? Any ideas? Does serving up static resources / images in a package cause the session to block? If so, does it need to? Thanks. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=3Dlnkkid=3D103432bid=3D230486dat= =3D121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] No version manager available exception instead of Page Expired on second click to versioned page
In Wicket 1.1 if the session expires and you click on a versioned page, the first time it will take you to the Page Expired page. If you then hit back and click the link again, it'll throw an exception. Is that a bug? java.lang.IllegalStateException: No version manager available to retrieve requested versionNumber 2 at wicket.Page.getVersion(Page.java:387) at wicket.Session.getPage(Session.java:271) at wicket.protocol.http.WebRequestCycle.callComponentListener(WebRequestCycle.java:425) at wicket.protocol.http.WebRequestCycle.parseRequest(WebRequestCycle.java:140) at wicket.RequestCycle.request(RequestCycle.java:418) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:197) at javax.servlet.http.HttpServlet.service(HttpServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96) at com.bci.car.servlets.gzip.GzipFilter.doFilter(GzipFilter.java:127) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:613) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Security / Page Access / Page Construction / IAuthorizationStrategy
I would like to enable page level security in my application. I don't want my page to be constructed unless a certain security requirement is met as at present I do a lot of data loading / etc in page constructors (as featured in the wicket examples). It seems a new security policy is in the works to handle this -- IAuthorizationStrategy. In the meantime, what would be a good way to prevent a bookmarkable page from being constructed? Should I provide a new IPageFactory implementation that checks the session for authorization prior to returning a new page, and perhaps swap the page to a denied access or login page if access isn't available? Or should I check out the latest CVS sources and try IAuthorization strategy if it is implemented? Thanks. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Servlet forward to a JSP
I'm exploring the possibility of integrating Wicket into a JSP application. Is it possible to tell Wicket to do a servlet forward to a JSP? I would like to add a few request attributes and then forward to a JSP. The reason I'd like to do a forward VS include is I need to be able to populate request attributes prior to the JSP running. The login page is currently implemented in JSP. Another option would be to refactor the login page, but I'm curious if it is feasibile to attempt the former as I want to use as much of the existing system as possible. Thanks. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Servlet forward to a JSP
If I come up with anything useful I'd be happy to contribute. The JSP I need to forward to requires request attributes, so I don't think the wicket.markup.html.include.Include component will work as from what I understand it is a separate request whose output is then included into the markup? In this case, the result of RedirectPage would be the same as it is a fresh browser request and I need to populate a request with request.setAttribute() and have the JSP be able to retrieve the request attributes. What I'm looking for is a way in Wicket to tell it to finish its processing, not output any markup, and then forward the request to another servlet, not include or redirect. Thanks. On 2005-11-06 15:38:06 -0700, Eelco Hillenius [EMAIL PROTECTED] said: Sure. Use wicket.markup.html.pages.RedirectPage for server-side redirecting to a non-wicket locations. If you want to inlcude things likes JSP pages into Wicket pages, you can use the wicket.markup.html.include.Include component. The latter is a bit rough, so if you need better support on that one, please contribute ;) Eelco On 11/6/05, Robert McClay [EMAIL PROTECTED] wrote: I'm exploring the possibility of integrating Wicket into a JSP application. Is it possible to tell Wicket to do a servlet forward to a JSP? I would like to add a few request attributes and then forward to a JSP. The reason I'd like to do a forward VS include is I need to be able to populate request attributes prior to the JSP running. The login page is currently implemented in JSP. Another option would be to refactor the login page, but I'm curious if it is feasibile to attempt the former as I want to use as much of the existing system as possible. Thanks. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Downl oad it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Multiple checkboxes, table columns how-to in Wicket?
Within a form I'm using a detachable model for a ListView that contains business objects loaded directly via JDBC, each of which has a selected flag, rendered in the ListItem as a checkbox. However, when I get to onSubmit in the form, the model is still detached, and therefore the state hasn't been transferred from the form to the model. Therefore, when it renders, it reattaches but the model hasn't changed. What is the best way to fix this? In onSubmit I'd like to delete the records. The reason I use a detachable model is I want each render to have fresh results from the database via JDBC, but perhaps is there is better way? I haven't set optimizedItemRemoval to true because I don't need anything to be validated. Thanks On 2005-08-16 23:48:08 -0600, Eelco Hillenius [EMAIL PROTECTED] said: Note that if you are using detachable models (e.g. your list), if you don't do anything in the form's submit method (like persisting your changes), the next time the list renders it will use the same old value, which could give you the idea nothing happened. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user