Re: drag and drop
Yep! I abandoned it because I hat to remove all Droppables associated with my component before any AJAX round trip that updated the component. This was a nightmare because that component could be embedded into others components that would refresh using AJAX, so the whole setting was very fragile... So, I switched to YUI and the problem was gone. Ernesto On Thu, Mar 19, 2009 at 10:19 PM, Stefan Lindner lind...@visionet.dewrote: It is still there. I had massive problems with updating dropable items in a table with ajax. -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Donnerstag, 19. März 2009 21:31 An: users@wicket.apache.org Betreff: Re: drag and drop I would use YUI drag and drop instead of scriptaculous. I was using scriptaculous for that purpose, I just implemented a table with draggable columns, but I had some issues with AJAX updates on IE: after first page reload draggables stoped to work because dropables had to be removed/recreated. There was a thread on this list, long time ago, explaining this issue. Meanwhile I don't know if this is still an issue with newer version of scriptacoplus Think it is stil there http://wiki.github.com/madrobby/scriptaculous/droppables See Removing DroppablesBut maybe this is not an issue for your use case. Switching to YUI made acomplishing the task a lot easier. There is already some code for YUI drag-drop at YUI integration. Best, Ernesto On Thu, Mar 19, 2009 at 9:24 AM, tbt nadeesh...@yahoo.com wrote: Hi I am a newbie to wicket and I want to create a page where images can be dragged and dropped. I had a look at wicketstuff-scriptaculous and downloaded the jar file but it is not compatible with wicket 1.3.2. Can someone provide me the link so that I can download the jar file straight away which is compatible with the wicket version that I am using. Any suggestions as to how this should be implemented using wicket is also welcome. eg: wicket-dojo, wicket-jquery, wicket-prototype etc Thanks -- View this message in context: http://www.nabble.com/drag-and-drop-tp22595081p22595081.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Update DropDownChoice with ModalWindow
It's definitely not a hashCode/equals problem, because when the page is rendered, the initial value of the dropDown is set correctly from the PropertyModel. After coming back from the modal window the DropDownChoice can't set the new value ... asfernandes wrote: Looks like lack of hashCode/equals implementation for the type used. I suffered from exactly problem as you initially described... But in my case, however, equals() was implemented to always return false, and DropDownChoice calls it. Perhaps, your problem is different, but I don't know if it can happen due to different instances of objects created by LoadableDetachableModel so you had to correctly override this method, or is a totally different thing... Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p22615156.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamic Tabbedpanel Page
Thanks for the replay but i didn't understand all. OK i will make super class for all panels and provide a model to get the values but i didn't get how to solve the problem with declaring a mark-up file for each panel i am not very good in wicket and maybe i am missing something Anton Veretennikov wrote: All tabs may be instances of the same class. If you can make it universal - make a loop of your fields (and of markup) and provide a model for them that will look for exact fields for values. -- Tony On Thu, Mar 19, 2009 at 9:34 PM, dyolf.knip manig...@gmail.com wrote: HI, I have a object with many properties(fields) which i want to display in my page. I want to organize them in tabs for clarity i look the examples for Tabbed Panel but they all are too static. If you want to add new tab you have to add pageName$panelName mark-up file for each new tab. What is the best way to develop my page so the adding of new fields in each tab and new tabs to be as dynamically as possible. -- View this message in context: http://www.nabble.com/Dynamic-Tabbedpanel-Page-tp22601006p22601006.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Dynamic-Tabbedpanel-Page-tp22601006p22616331.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
inmethod datagrid: how to contribute?
We have been using the inmethod datagrid in our latest project. (1.4 SNAPSHOT from wicketstuff-core) We have some bugs (or issues, at least) to report and might have some contributions. I don't see a Jira project on the wicketstuff jira nor is there info on the wicketstuff wiki. Is there a way to contribute or communicate with the maintainers? Will
Re: inmethod datagrid: how to contribute?
Hi, there isn't Jira project on Wicketstuff for it because I'm unable to connect to Wicket stuff (some firewall issue). Maybe it will help when Johan (finally) moves Wicketstuff... Johan? -Matej On Fri, Mar 20, 2009 at 12:14 PM, Will Jaynes w...@jaynes.org wrote: We have been using the inmethod datagrid in our latest project. (1.4 SNAPSHOT from wicketstuff-core) We have some bugs (or issues, at least) to report and might have some contributions. I don't see a Jira project on the wicketstuff jira nor is there info on the wicketstuff wiki. Is there a way to contribute or communicate with the maintainers? Will - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior Once
Thank you very much, Kevin May I ask why isTemporary is not working? Heidi On Thu, Mar 19, 2009 at 11:10 PM, Kevin Logue ke...@viableoptions.ie wrote: If you just want to stop AjaxSelfUpdatingTimerBehavior after a particular event(or one call even), you could always call the stop method on the AjaxSelfUpdatingTimerBehavior. No idea if this is the best practice but it's worked for me. Kevin Heidi Burn wrote: Hi, guys, I code AjaxSelfUpdatingTimerBehavior with isTemporary() {return true;}. After being called once I get ERROR - RequestCycle - java.lang.NullPointerException at org.apache.wicket.request. target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1236) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1315) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1414) at org.apache.wicket.RequestCycle.request(RequestCycle.java:542) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289) What is my problem? Please, help me. Heidi - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ Information from ESET NOD32 Antivirus, version of virus signature database 3948 (20090319) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
struts token like approach in wicket
in struts we group pages using token , how to do a similar functionality in wicket , my pages areupdating workflow , so when page is submitted my workflow moves to next step ,but hitting the browsers back button will bring the same page ,if user resubmits the page things will go wrong how to handle this in wicket ? -- View this message in context: http://www.nabble.com/struts-token-like-approach-in-wicket-tp22620395p22620395.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: How can I share text resources with multiple web applications?
It's a *wicket* archetype that uses Maven as a build tool. But if it *breaks* the assumptions made by all other plugins used by Maven as a build tool, is it then not an archetype that *abuses* Maven as a build tool? :) What other contexts would you want to use this *wicket* archetype that does not involve Maven? If none, why should it not create a project structure that Maven likes? Yes, you can override *anything* in Maven if you want to, but *do* you really want to? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket WebBeans Project...
+1 for wicket-candi :)
Re: How can I share text resources with multiple web applications?
There is no sane reason why anyone would put the html, js, css and properties resources in any place except *next* to the corresponding.java file. Your .java file can not function without the .html file. Your component will fail if the .properties file is not available. When the js file can't be found your component is useless. Wicket goes beyond the call of duty to provide developers with the means to encapsulate your components, bringing Object Oriented design and programming to the web tier. Moving the necessary resources outside the package folder into a separate directory structure breaks this encapsulation is definitely not the Wicket Way (tm). The Wicket archetype is to make building Wicket applications easier, not to make the life of maven easier. Martijn On Fri, Mar 20, 2009 at 2:35 PM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: It's a *wicket* archetype that uses Maven as a build tool. But if it *breaks* the assumptions made by all other plugins used by Maven as a build tool, is it then not an archetype that *abuses* Maven as a build tool? :) What other contexts would you want to use this *wicket* archetype that does not involve Maven? If none, why should it not create a project structure that Maven likes? Yes, you can override *anything* in Maven if you want to, but *do* you really want to? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: How can I share text resources with multiple web applications?
There is no sane reason why anyone would put the html, js, css and properties resources in any place except *next* to the corresponding.java file. Your .java file can not function without the .html file. Your component will fail if the .properties file is not available. When the js file can't be found your component is useless. Correct for the *runtime* view of files, and a Maven build will combine the packages in src/main/java and src/main/resources so that the two are merged. What Maven likes, however is that at *coding* and *building* time that the Java source files, and their related resources, are in different root folders. The main reasons I have seen for this is resource filtering and support for multiple resource folders (sharing resources between projects for instance). Wicket goes beyond the call of duty to provide developers with the means to encapsulate your components, bringing Object Oriented design and programming to the web tier. Yes, but that's salesman talk. :) And is not at all affected by Maven's preferences. Moving the necessary resources outside the package folder into a separate directory structure breaks this encapsulation is definitely not the Wicket Way (tm). It retains the package structure, but the packages start out in two (or more) different root folders when coding, being merged in the build process. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
On Fri, Mar 20, 2009 at 9:35 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: But if it *breaks* the assumptions made by all other plugins used by Maven as a build tool, is it then not an archetype that *abuses* Maven as a build tool? :) It also *fixes* it by using a resource declaration. If the maven community didn't want to allow folks to change where their resources were located, they wouldn't have put that feature into the POM. If the other plugins are *assuming* rather than referring to the resources settings in the pom, then they're written poorly. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DropDownChoice confusion!
Heya, I'm trying to figure out the best way of handling drop down choices. It seems a bit overcomplicated and I'm not sure we're using them in the correct way?!! The database function to retrieve my data will be: ListFixedCharges listFc = enquiryController.getAvailableFixedCharges(); So I now have a list of primitive hibernate objects with lots of getters and setters. I want my dropdownchoice to use more than one field from my original FixedCharges list for the description, so the text in the description field is... fixedCharges.getDescription() + - + fixedCharges.getValue(); The key value I want returned though, is the unique key from that table/object - fixedCharges.getFChargeCode(); I've already worked out a couple of ways to do it, but I don't like either of them!! My first way was to iterate through the fixedcharges list and create a DropDownItem array before adding it to the form. This seems an unnecessary iteration and I'd quite like to have the full fixedCharge object back when the form is submitted (which this method prevents - I have to go and reselect it from the database). My second way was to try to use a separate custom IChoiceRenderer class, but I don't really like this method either, it seems very complex and difficult to extend to a general case scenario. I don't really want to have bazillions of IChoiceRenderer implementations one for every class I want a drop down list on. Maybe I could have an implementation of the IChoiceRenderer as an unnamed inner class (which would be best I think) but I can't figure out how you do this. What's the best way to do it? It must be a reasonably common problem. Cheers! -- View this message in context: http://www.nabble.com/DropDownChoice-confusion%21-tp22621465p22621465.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Portlets in WebLogic Portal?
Just another follow-up to this earlier post. If anyone has had any success getting Wicket portlets to work in WebLogic Portal (or knows if that is even possible), please let me know. Thanks! -- View this message in context: http://www.nabble.com/Wicket-Portlets-in-WebLogic-Portal--tp22605855p22621574.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice confusion!
have you considered the use of a Renderer in the dropdownChoice? DropDownChoice(java.lang.String id, IModel model, java.util.List data, IChoiceRenderer renderer) FixedCharges selected=new FixedCharges(); DropdownChoice drop=new DropdownChoice(YourId,new CompoundPropertyModel(selected),listFc ,new ChoiceRenderer(YourDisplayExpression,YourIdExpression)); Cheers 2009/3/20 Bigcalm jon.dan...@intercity-comms.com Heya, I'm trying to figure out the best way of handling drop down choices. It seems a bit overcomplicated and I'm not sure we're using them in the correct way?!! The database function to retrieve my data will be: ListFixedCharges listFc = enquiryController.getAvailableFixedCharges(); So I now have a list of primitive hibernate objects with lots of getters and setters. I want my dropdownchoice to use more than one field from my original FixedCharges list for the description, so the text in the description field is... fixedCharges.getDescription() + - + fixedCharges.getValue(); The key value I want returned though, is the unique key from that table/object - fixedCharges.getFChargeCode(); I've already worked out a couple of ways to do it, but I don't like either of them!! My first way was to iterate through the fixedcharges list and create a DropDownItem array before adding it to the form. This seems an unnecessary iteration and I'd quite like to have the full fixedCharge object back when the form is submitted (which this method prevents - I have to go and reselect it from the database). My second way was to try to use a separate custom IChoiceRenderer class, but I don't really like this method either, it seems very complex and difficult to extend to a general case scenario. I don't really want to have bazillions of IChoiceRenderer implementations one for every class I want a drop down list on. Maybe I could have an implementation of the IChoiceRenderer as an unnamed inner class (which would be best I think) but I can't figure out how you do this. What's the best way to do it? It must be a reasonably common problem. Cheers! -- View this message in context: http://www.nabble.com/DropDownChoice-confusion%21-tp22621465p22621465.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice confusion!
Do you have a base class for your hibernate entities? If so, you could create a default renderer that uses the id value from that base class. Also, you could just make sure you have a toString() implemented for stuff you want to go in the drop downs. On Fri, Mar 20, 2009 at 10:32 AM, Bigcalm jon.dan...@intercity-comms.com wrote: Heya, I'm trying to figure out the best way of handling drop down choices. It seems a bit overcomplicated and I'm not sure we're using them in the correct way?!! The database function to retrieve my data will be: ListFixedCharges listFc = enquiryController.getAvailableFixedCharges(); So I now have a list of primitive hibernate objects with lots of getters and setters. I want my dropdownchoice to use more than one field from my original FixedCharges list for the description, so the text in the description field is... fixedCharges.getDescription() + - + fixedCharges.getValue(); The key value I want returned though, is the unique key from that table/object - fixedCharges.getFChargeCode(); I've already worked out a couple of ways to do it, but I don't like either of them!! My first way was to iterate through the fixedcharges list and create a DropDownItem array before adding it to the form. This seems an unnecessary iteration and I'd quite like to have the full fixedCharge object back when the form is submitted (which this method prevents - I have to go and reselect it from the database). My second way was to try to use a separate custom IChoiceRenderer class, but I don't really like this method either, it seems very complex and difficult to extend to a general case scenario. I don't really want to have bazillions of IChoiceRenderer implementations one for every class I want a drop down list on. Maybe I could have an implementation of the IChoiceRenderer as an unnamed inner class (which would be best I think) but I can't figure out how you do this. What's the best way to do it? It must be a reasonably common problem. Cheers! -- View this message in context: http://www.nabble.com/DropDownChoice-confusion%21-tp22621465p22621465.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxTabbedPanel and javascript.
Im missing something here. I have a AjaxTabbedPanel which happens to contain 3 Tabs. In one of the tabs theres a snippet of script tags info (for google adsense ). When i click on the one the tabs, they switch fine. However, the tab with the javascipt Ad NO longer displays the ad, in fact with firefox it jumps to a blank screen !! Im totally sure im missing something with the ajax and embedding script code, but im stumped as to what. If i use the regular TabbedPanel everything is fine (although rather slow). This weirdness seems to happen with every ajax request that contains any javascript actions (even tooltips) - so im sure it must be a common problem. I know theres the target.appendJavascript, but for the example of google ads, what does one append and how does that ajax call operate here. i have a headache ... -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-and-javascript.-tp22621635p22621635.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice confusion!
Or, another way, IChoiceRendererFixedCharges cr = new IChoiceRendererFixedCharges(){ public Object getDisplayValue(FixedCharges fixedCharges) { return fixedCharges.getDescription() + - + fixedCharges.getValue(); } public String getIdValue(FixedCharges fixedCharges, int index) { return fixedCharges.getValue(); } }; On Fri, Mar 20, 2009 at 10:32 AM, Bigcalm jon.dan...@intercity-comms.comwrote: Heya, I'm trying to figure out the best way of handling drop down choices. It seems a bit overcomplicated and I'm not sure we're using them in the correct way?!! The database function to retrieve my data will be: ListFixedCharges listFc = enquiryController.getAvailableFixedCharges(); So I now have a list of primitive hibernate objects with lots of getters and setters. I want my dropdownchoice to use more than one field from my original FixedCharges list for the description, so the text in the description field is... fixedCharges.getDescription() + - + fixedCharges.getValue(); The key value I want returned though, is the unique key from that table/object - fixedCharges.getFChargeCode(); I've already worked out a couple of ways to do it, but I don't like either of them!! My first way was to iterate through the fixedcharges list and create a DropDownItem array before adding it to the form. This seems an unnecessary iteration and I'd quite like to have the full fixedCharge object back when the form is submitted (which this method prevents - I have to go and reselect it from the database). My second way was to try to use a separate custom IChoiceRenderer class, but I don't really like this method either, it seems very complex and difficult to extend to a general case scenario. I don't really want to have bazillions of IChoiceRenderer implementations one for every class I want a drop down list on. Maybe I could have an implementation of the IChoiceRenderer as an unnamed inner class (which would be best I think) but I can't figure out how you do this. What's the best way to do it? It must be a reasonably common problem. Cheers! -- View this message in context: http://www.nabble.com/DropDownChoice-confusion%21-tp22621465p22621465.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice confusion!
Excellent - thankyou all for your responses! I've gone for an inner class in the end and it's all nice and simple and easy to understand, here's my snippet List ebillingCharges = enquiryController.getAvailableFixedCharges(C, E, ); DropDownChoice charges = new DropDownChoice( fixedChargesChoice, new PropertyModel(this, selected), ebillingCharges, new IChoiceRendererFixedCharges(){ @Override public Object getDisplayValue(FixedCharges fixedCharges) { return fixedCharges.getDescription() + - + fixedCharges.getValue(); } public String getIdValue(FixedCharges fixedCharges, int index) { return fixedCharges.getFchargeCode(); } }); form.add(charges); --- Many thanks for all your help! -- View this message in context: http://www.nabble.com/DropDownChoice-confusion%21-tp22621465p22621756.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket-security SVN?
Does anybody know why I can't connect to the wicket-security SVN repository? When I try to connect to it I get the message: Error validating location: org.tigris.subversion.javahl.ClientException: Bad URL passed to RA layer svn: URL 'https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples' non-existent in revision 4621 '' Keep location anyway? Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-security SVN?
You can just paste the url in your browser and see if it exists. http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security is the location for wicket-security afaik. Martijn On Fri, Mar 20, 2009 at 4:07 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Does anybody know why I can't connect to the wicket-security SVN repository? When I try to connect to it I get the message: Error validating location: org.tigris.subversion.javahl.ClientException: Bad URL passed to RA layer svn: URL 'https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples' non-existent in revision 4621 '' Keep location anyway? Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
chuckle, semantics :) However as a long time maven user, I expect it to do one thing and it does another. I prefer my content separate and so I don't use the archetype because it takes too long to fix the module and remove all the un-needed additions than it does to just create the module by hand. As I said before, maybe it should be optional. - Brill On 19-Mar-09, at 11:52 PM, Jeremy Thomerson wrote: It's a *wicket* archetype that uses Maven as a build tool. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Mar 19, 2009 at 8:30 PM, Brill Pappin br...@pappin.ca wrote: It's a Maven archetype is it not? - Brill On 19-Mar-09, at 3:22 PM, Jeremy Thomerson wrote: On the subject of the archetype though, it *should* be doing the maven standard thing by default... maybe offering you a choice but the default should be into the resources directory. Why should the *wicket* archetype be doing the *maven* standard thing? This is the wicket standard way of doing things, which means that for the wicket archetype, it is the correct way. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-security SVN?
A typo in the wicket-security website then. It should have been wicket-security/examples instead of wicket-security-examples. Thanks! Martijn Dashorst wrote: You can just paste the url in your browser and see if it exists. http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security is the location for wicket-security afaik. Martijn On Fri, Mar 20, 2009 at 4:07 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Does anybody know why I can't connect to the wicket-security SVN repository? When I try to connect to it I get the message: Error validating location: org.tigris.subversion.javahl.ClientException: Bad URL passed to RA layer svn: URL 'https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples' non-existent in revision 4621 '' Keep location anyway? Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.21/2014 - Release Date: 03/20/09 06:59:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
I love the use of the package structure to keep the file together, However I don't think we're talking about moving the HTML to a different structure, they are all still in the same package (although I've come across cases where I *do* need it outside the package structure for political and/or functional reasons). What we're talking about is putting the resource where a Maven user *expects* them. As I said several posts ago, I don't think its wrong that they be in src/main/java even if they are not java, but it's not standard Maven and I don't want them there for that reason and other sane reasons that have already been mentioned (and likely a few not mentioned). The archetype is a Maven archetype for generating a Wicket project stub in a Maven build environment. It's default operation should be to put resources where a Maven user expects them to be. It should not be adding a bunch of crap to my build just so it can place its resources in src/main/java instead of src/main/resources... at least not without me telling it that I want to use a non-standard project structure. Heck, I'd be happy if the option was at least there even if it was not the default option! - Brill On 20-Mar-09, at 10:06 AM, Martijn Dashorst wrote: There is no sane reason why anyone would put the html, js, css and properties resources in any place except *next* to the corresponding.java file. Your .java file can not function without the .html file. Your component will fail if the .properties file is not available. When the js file can't be found your component is useless. Wicket goes beyond the call of duty to provide developers with the means to encapsulate your components, bringing Object Oriented design and programming to the web tier. Moving the necessary resources outside the package folder into a separate directory structure breaks this encapsulation is definitely not the Wicket Way (tm). The Wicket archetype is to make building Wicket applications easier, not to make the life of maven easier. Martijn On Fri, Mar 20, 2009 at 2:35 PM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: It's a *wicket* archetype that uses Maven as a build tool. But if it *breaks* the assumptions made by all other plugins used by Maven as a build tool, is it then not an archetype that *abuses* Maven as a build tool? :) What other contexts would you want to use this *wicket* archetype that does not involve Maven? If none, why should it not create a project structure that Maven likes? Yes, you can override *anything* in Maven if you want to, but *do* you really want to? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
But thats not a fix, thats adding crap to my build I don't want or need. Maven allows you to do things like that, because frankly no one would use it if it didn't... have you ever tried to port a legacy app to Maven? There is no assumption here. See: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html Anyway, I didn't mean to start a war here... the poor guy asked a simple question which I responded to with a standard answer for how Maven works. (hmm... did the archetype confuse some new Wicket user again?) - Brill On 20-Mar-09, at 10:27 AM, James Carman wrote: On Fri, Mar 20, 2009 at 9:35 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: But if it *breaks* the assumptions made by all other plugins used by Maven as a build tool, is it then not an archetype that *abuses* Maven as a build tool? :) It also *fixes* it by using a resource declaration. If the maven community didn't want to allow folks to change where their resources were located, they wouldn't have put that feature into the POM. If the other plugins are *assuming* rather than referring to the resources settings in the pom, then they're written poorly. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
It's not forcing you to put your stuff there. It merely *also* allows you to put it there. It's also easy to remove (perhaps we could add a comment saying to remove it if they want). On Fri, Mar 20, 2009 at 11:31 AM, Brill Pappin br...@pappin.ca wrote: I love the use of the package structure to keep the file together, However I don't think we're talking about moving the HTML to a different structure, they are all still in the same package (although I've come across cases where I *do* need it outside the package structure for political and/or functional reasons). What we're talking about is putting the resource where a Maven user *expects* them. As I said several posts ago, I don't think its wrong that they be in src/main/java even if they are not java, but it's not standard Maven and I don't want them there for that reason and other sane reasons that have already been mentioned (and likely a few not mentioned). The archetype is a Maven archetype for generating a Wicket project stub in a Maven build environment. It's default operation should be to put resources where a Maven user expects them to be. It should not be adding a bunch of crap to my build just so it can place its resources in src/main/java instead of src/main/resources... at least not without me telling it that I want to use a non-standard project structure. Heck, I'd be happy if the option was at least there even if it was not the default option! - Brill On 20-Mar-09, at 10:06 AM, Martijn Dashorst wrote: There is no sane reason why anyone would put the html, js, css and properties resources in any place except *next* to the corresponding.java file. Your .java file can not function without the .html file. Your component will fail if the .properties file is not available. When the js file can't be found your component is useless. Wicket goes beyond the call of duty to provide developers with the means to encapsulate your components, bringing Object Oriented design and programming to the web tier. Moving the necessary resources outside the package folder into a separate directory structure breaks this encapsulation is definitely not the Wicket Way (tm). The Wicket archetype is to make building Wicket applications easier, not to make the life of maven easier. Martijn On Fri, Mar 20, 2009 at 2:35 PM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: It's a *wicket* archetype that uses Maven as a build tool. But if it *breaks* the assumptions made by all other plugins used by Maven as a build tool, is it then not an archetype that *abuses* Maven as a build tool? :) What other contexts would you want to use this *wicket* archetype that does not involve Maven? If none, why should it not create a project structure that Maven likes? Yes, you can override *anything* in Maven if you want to, but *do* you really want to? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
I don't want that. If someone is anal about what maven is expecting, then it is their problem. I am in the business of making the best wicket development experience, from a Wicket perspective. We're using maven as a tool, we're not in the business of supplying maven with new users. Putting all resources that belong to a component in the same physical folder as the component .java file is a best practice for Wicket users, even newbies. Doing it in any other way is opening the door to the nine hells of Maven usage and resource location. I really don't want the archetype to do anything else than it currently does, nor document such a way. The Official Wicket Way (tm) is to put all source files relating to a single unit of work in one package, in the same physical folder. If you decide to do it otherwise, it is not The Official Wicket Way. Feel free to disagree, but do it somewhere else, and in your own private projects. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: struts token like approach in wicket
search this list for SecureForm, it shows how to implement the token pattern -igor On Fri, Mar 20, 2009 at 6:34 AM, fachhoch fachh...@gmail.com wrote: in struts we group pages using token , how to do a similar functionality in wicket , my pages are updating workflow , so when page is submitted my workflow moves to next step ,but hitting the browsers back button will bring the same page ,if user resubmits the page things will go wrong how to handle this in wicket ? -- View this message in context: http://www.nabble.com/struts-token-like-approach-in-wicket-tp22620395p22620395.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior Once
because if you do not stop the behavior it will generate a callback on the client for itself, but when istemporary() is true after it generated the callback it will be removed. so now the callback points to something that is not there. it should be ok to use istemporary() but you also have to call stop() -igor On Fri, Mar 20, 2009 at 5:49 AM, Heidi Burn heidi.b...@gmail.com wrote: Thank you very much, Kevin May I ask why isTemporary is not working? Heidi On Thu, Mar 19, 2009 at 11:10 PM, Kevin Logue ke...@viableoptions.ie wrote: If you just want to stop AjaxSelfUpdatingTimerBehavior after a particular event(or one call even), you could always call the stop method on the AjaxSelfUpdatingTimerBehavior. No idea if this is the best practice but it's worked for me. Kevin Heidi Burn wrote: Hi, guys, I code AjaxSelfUpdatingTimerBehavior with isTemporary() {return true;}. After being called once I get ERROR - RequestCycle - java.lang.NullPointerException at org.apache.wicket.request. target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1236) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1315) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1414) at org.apache.wicket.RequestCycle.request(RequestCycle.java:542) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289) What is my problem? Please, help me. Heidi - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ Information from ESET NOD32 Antivirus, version of virus signature database 3948 (20090319) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
+1. Wicket IMHO does it the right way for its particular situation. Wicket differs from most Java project by the sheer number of resources and by their 1:1 correspondence with Java classes. Maven, I think, is optimized more for the more common case where a project has only a handful of resources that are not tightly bound to particular classes. jk On Fri, Mar 20, 2009 at 04:51:38PM +0100, Martijn Dashorst wrote: I don't want that. If someone is anal about what maven is expecting, then it is their problem. I am in the business of making the best wicket development experience, from a Wicket perspective. We're using maven as a tool, we're not in the business of supplying maven with new users. Putting all resources that belong to a component in the same physical folder as the component .java file is a best practice for Wicket users, even newbies. Doing it in any other way is opening the door to the nine hells of Maven usage and resource location. I really don't want the archetype to do anything else than it currently does, nor document such a way. The Official Wicket Way (tm) is to put all source files relating to a single unit of work in one package, in the same physical folder. If you decide to do it otherwise, it is not The Official Wicket Way. Feel free to disagree, but do it somewhere else, and in your own private projects. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
The ServerSide Java Symposium
Is anyone in Vegas? Want to nab a beer? Cheers, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: The ServerSide Java Symposium
http://javasymposium.techtarget.com/html/frameworks.html#ALombardiWicket On Fri, Mar 20, 2009 at 9:44 AM, Scott Swank scott.sw...@gmail.com wrote: Is anyone in Vegas? Want to nab a beer? Cheers, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: The ServerSide Java Symposium
Send him a tweet: http://twitter.com/kinabalu Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Fri, Mar 20, 2009 at 12:49 PM, Scott Swank scott.sw...@gmail.com wrote: http://javasymposium.techtarget.com/html/frameworks.html#ALombardiWicket On Fri, Mar 20, 2009 at 9:44 AM, Scott Swank scott.sw...@gmail.com wrote: Is anyone in Vegas? Want to nab a beer? Cheers, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Diference between model's
I'm starting on wicket and I don't underdestand diferences between LoadableDetachableModel and DetachableModel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket based social apps, forums, wall-to-wall (facebook-style), live chat, etc.
Martijn, Thanks for the feedback and I will look into your suggestions further. If I build social features into my site, it probably would be good to support the OpenSocial specification. However, as far as I can tell, both shindig and the facebook examples aren't really what I'm looking for. At the simplest level, I need a forum on my site and was looking to see if a wicket one existed. I'm starting to get the feeling that it doesn't exist right now and that integrating JForum and dealing with single sign on issues would be the best approach without building my own. Thanks again, Tauren On Wed, Mar 18, 2009 at 12:07 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc shindig is an open social container, maybe that is easy to integrate? And there are several facebook examples on the wiki. Martijn On Wed, Mar 18, 2009 at 1:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any existing open source projects that could help reduce the effort of integrating social communication features into a site? I've read through the archives and noticed several conversations about building a wicket-based forum. I believe Uwe started a google code project, but it looks like it hasn't really gone anywhere. Nino asked about integrating JForum and Toto had some suggestions for him. But I didn't find much else. Are there any wicket-specific forums out there? Would it be best to just use JForum? What about Facebook style profile feeds, wall-to-wall type of communication? Or live chat, either Facebook style, Live Person style, or otherwise? Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket based social apps, forums, wall-to-wall (facebook-style), live chat, etc.
Of course there's the guesstbook example in wicket examples :) Martijn On 3/20/09, Tauren Mills tau...@groovee.com wrote: Martijn, Thanks for the feedback and I will look into your suggestions further. If I build social features into my site, it probably would be good to support the OpenSocial specification. However, as far as I can tell, both shindig and the facebook examples aren't really what I'm looking for. At the simplest level, I need a forum on my site and was looking to see if a wicket one existed. I'm starting to get the feeling that it doesn't exist right now and that integrating JForum and dealing with single sign on issues would be the best approach without building my own. Thanks again, Tauren On Wed, Mar 18, 2009 at 12:07 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc shindig is an open social container, maybe that is easy to integrate? And there are several facebook examples on the wiki. Martijn On Wed, Mar 18, 2009 at 1:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any existing open source projects that could help reduce the effort of integrating social communication features into a site? I've read through the archives and noticed several conversations about building a wicket-based forum. I believe Uwe started a google code project, but it looks like it hasn't really gone anywhere. Nino asked about integrating JForum and Toto had some suggestions for him. But I didn't find much else. Are there any wicket-specific forums out there? Would it be best to just use JForum? What about Facebook style profile feeds, wall-to-wall type of communication? Or live chat, either Facebook style, Live Person style, or otherwise? Thanks, Tauren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
users@wicket.apache.org
I've created a Wicket project using the Maven archetype provided at: http://wicket.apache.org/quickstart.html I've created a class inherited from a Wicket Component. I've created a JUnit4 testcase subclass to unit test my class. It just news up an instance of my Component-derived class, and calls methods on it. When I attempt from Eclipse to run my testcase, I get a an exception: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main How can I set up my eclipse and maven environments so that I can run testcases, from within eclipse and as part of the maven build process? Has someone created a Junit Testcase subclass that handles setting up Wicket? Thanks, Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: users@wicket.apache.org
See WicketTester. It handles all of that for you and gives you a lot of extra abilities to test Wicket components, pages, etc. Also covered in Wicket in Action, as well as this page appearing when you Google wicket unit test: http://cwiki.apache.org/WICKET/unit-test.html -- Jeremy Thomerson http://www.wickettraining.com On Fri, Mar 20, 2009 at 1:23 PM, T P D li...@diffenbach.org wrote: I've created a Wicket project using the Maven archetype provided at: http://wicket.apache.org/quickstart.html I've created a class inherited from a Wicket Component. I've created a JUnit4 testcase subclass to unit test my class. It just news up an instance of my Component-derived class, and calls methods on it. When I attempt from Eclipse to run my testcase, I get a an exception: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main How can I set up my eclipse and maven environments so that I can run testcases, from within eclipse and as part of the maven build process? Has someone created a Junit Testcase subclass that handles setting up Wicket? Thanks, Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable testability - RepeatingView.childIdCounter not reset after a page refresh
I solved it as follows: dataTable.setItemReuseStrategy(new ReuseIfModelsEqualStrategy()); This will prevent the table from creating new items over and over again, even if they represent the same object. See the javadoc for ReuseIfModelsEqualStrategy. helmers wrote: I have a page with a DefaultDataTable containing an AjaxFallbackLink in one of its columns. When the page is rendered for the first time, the link in row 1 has component id path table:rows:1:cells:3:cell. When I click this link while Ajax is disabled, the page is refreshed, and now the link in row 1 (which is still displaying exactly the same item) has changed to table:rows:3:cells:3:cell (my table has 2 rows, hence the row id increase from 1 to 3). In my data table tests I would like to refer to data table rows and cells by their component id paths (see DataTablePageTest.java). Currently my tests are not very robust, because the component id paths of the DataTable rows and cells vary over time and depend on the page size and number of items displayed (if page size = 2, after a click, row id 1 has suddenly become 1 + 2 = 3). The reason that in case of no ajax the row ids increase, is that on a page refresh the DataGridView.onPopulate() is called, and if you look in RefreshingView.onPopulate() - newItemFactory() you will see that a new child id is retrieved for every item. Because childIdCounter is a private field of RepeatingView, and the counter is never reset to 0, my row #1 has suddenly become row #3. -- View this message in context: http://www.nabble.com/DataTable-testability---RepeatingView.childIdCounter-not-reset-after--a-page-refresh-tp22568486p22626268.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Just a little thank you
Hallo, I just wanted to say a little thank you. I have a lot of gratitude towards people who made this framework and to the whole community. It is really pleasure to work with such nice and well thought framework, I really enjoy it. After spending some years with PHP, now, after a year and a half with wicket I see there is no way back. In this case I do not fear being dogmatic. Wicket, the only way :). Really, thank you. Vitek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Just a little thank you
once you go wicket you never go back... :-) I also want to adhere to the thanks for this great framework and all your help. f(t) On Fri, Mar 20, 2009 at 4:33 PM, Vit Rozkovec rozkovec...@email.cz wrote: Hallo, I just wanted to say a little thank you. I have a lot of gratitude towards people who made this framework and to the whole community. It is really pleasure to work with such nice and well thought framework, I really enjoy it. After spending some years with PHP, now, after a year and a half with wicket I see there is no way back. In this case I do not fear being dogmatic. Wicket, the only way :). Really, thank you. Vitek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Making wicket work with Dynamically created html
I see this question has been posted before and searched around but I have not seen any conclusive solution. I am totally new to Wicket... We have a dynamic xml that contains UI and data elements (text, radio, checkbox etc) which we need to convert to html and then submit users selections etc. Basically a survey type of xml. I understood that I have to use Panels, Repeaters and also implement IMarkupResourceStreamProvider to provide my own html converted from xml via xsl. How do I then map my html to panels which wicket wants ? If there is a template/example that would help. I also read about wicket-qti which exactly addresses this kind of issue - is that available ? Appreciate help! vasya
Re: Extensible wicket application
Hi Daniel, I found some time to get it working! The key to the problem was http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html So, if you synchronize the projects com.antilia.wstarter com.antilia.wstarter.demo exports them to you bridge it should work. I attach copy of bridge.zip, containing a bridge folder, which is working for me. If you unzip it to your tomcat webapps, restart tomcat and go to http://localhost:8080/bridge/demo-app/ Then you should see the example working. Best, Ernesto On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Right click - Export - Plugin development - Deployable plug-ins and fragments Have a nice day :) On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time for trying this out myself... Best, Ernesto On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Yes, that's exactly what I did :) I checked out the bundles, then exported them from eclipse. And then installed those bundles along with javax.servlet into the bridge application, bud I got the error when I tried to install wstarter-demo. Thanks a lot! On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I couldn't try today to build the example using servlet bridge, to busy over here;-), let me see if I can find some time tomorrow to get it working. But normally what I would do is use eclipse for development and then export the jar to a bridge/plugins for deployment... Did you read this page http://www.eclipse.org/equinox/server/http_in_container.php Best, Ernesto On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those bundles (*wstarter*)... Did you tried running them with eclipse and the starter demo contains? Ernesto On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My bundles are: idState Bundle 0ACTIVE org.eclipse.osgi_3.3.0.200704022148 Fragments=12 1ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 2ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 3ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 4ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148 5ACTIVE http_console_1.0.0 6ACTIVE javax.servlet_2.4.0.200903171653 9ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148 11ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 12RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0 Master=0 13RESOLVED org.eclipse.osgi.services_3.1.100.200704022148 16ACTIVE com.antilia.wstarter_1.0.0 17RESOLVEDcom.antilia.wstarter.demo_1.0.0 do you have any clue? :) big thanks for your help! On Fri, Mar 13, 2009 at 11:30 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the underlaying http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on the bridge war then you will be able to run your wicket application on any server. That is, if you mount the bridge servlet at *bridge*, then accessing the URL localhost:8080/bridge/demo-app should re-direct you to the previous wicket application. Of course, this is just the big picture, and you will have to figure out the (sometime nasty) details by yourself. So in development you can use eclipse and for
Re: Extensible wicket application
One more thing. As far as I remember the servlet bridge makes a 'work copy' of the plugins folder if you see you make changes, export the plugins, and changes do not 'propagate' to the application, try deleting works/Catalina folder. On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, I found some time to get it working! The key to the problem was http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html So, if you synchronize the projects com.antilia.wstarter com.antilia.wstarter.demo exports them to you bridge it should work. I attach copy of bridge.zip, containing a bridge folder, which is working for me. If you unzip it to your tomcat webapps, restart tomcat and go to http://localhost:8080/bridge/demo-app/ Then you should see the example working. Best, Ernesto On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Right click - Export - Plugin development - Deployable plug-ins and fragments Have a nice day :) On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time for trying this out myself... Best, Ernesto On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Yes, that's exactly what I did :) I checked out the bundles, then exported them from eclipse. And then installed those bundles along with javax.servlet into the bridge application, bud I got the error when I tried to install wstarter-demo. Thanks a lot! On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I couldn't try today to build the example using servlet bridge, to busy over here;-), let me see if I can find some time tomorrow to get it working. But normally what I would do is use eclipse for development and then export the jar to a bridge/plugins for deployment... Did you read this page http://www.eclipse.org/equinox/server/http_in_container.php Best, Ernesto On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those bundles (*wstarter*)... Did you tried running them with eclipse and the starter demo contains? Ernesto On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My bundles are: idState Bundle 0ACTIVE org.eclipse.osgi_3.3.0.200704022148 Fragments=12 1ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 2ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 3ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 4ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148 5ACTIVE http_console_1.0.0 6ACTIVE javax.servlet_2.4.0.200903171653 9ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148 11ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 12RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0 Master=0 13RESOLVED org.eclipse.osgi.services_3.1.100.200704022148 16ACTIVE com.antilia.wstarter_1.0.0 17RESOLVEDcom.antilia.wstarter.demo_1.0.0 do you have any clue? :) big thanks for your help! On Fri, Mar 13, 2009 at 11:30 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the underlaying http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on the bridge war then you will be able to run your wicket application on any server. That is, if you mount the bridge servlet at *bridge*,
Re: Just a little thank you
Me too taha On Sat, Mar 21, 2009 at 1:26 AM, Francisco Diaz Trepat - gmail francisco.diaztre...@gmail.com wrote: once you go wicket you never go back... :-) I also want to adhere to the thanks for this great framework and all your help. f(t) On Fri, Mar 20, 2009 at 4:33 PM, Vit Rozkovec rozkovec...@email.cz wrote: Hallo, I just wanted to say a little thank you. I have a lot of gratitude towards people who made this framework and to the whole community. It is really pleasure to work with such nice and well thought framework, I really enjoy it. After spending some years with PHP, now, after a year and a half with wicket I see there is no way back. In this case I do not fear being dogmatic. Wicket, the only way :). Really, thank you. Vitek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
On 20-Mar-09, at 11:51 AM, Martijn Dashorst wrote: I don't want that. If someone is anal about what maven is expecting, then it is their problem. I am in the business of making the best wicket development experience, from a Wicket perspective. We're using maven as a tool, we're not in the business of supplying maven with new users. I'm using Wicket as a tool as well, there is no difference in the semantics and Maven is not in the business of supplying Wicket with new users, so what exactly is your point in the above paragraph? Putting all resources that belong to a component in the same physical folder as the component .java file is a best practice for Wicket users, even newbies. Doing it in any other way is opening the door to the nine hells of Maven usage and resource location. I don't disagree that its a useful pattern, however what are the nine hells of Maven usage and resource location? The whole point of src/ main/resoruces is that you always know where the resources are! Like I said, there is no reason to get upset about it, I don't use the archetype because I don't want it to do all the extra stuff it does, that I then have to clean up. In fact there have been several instances where having the resources and java separate has been helpful to me and the folks I work with. If an example is needed, the case were the HTML must be delivered to non programmers and then reintegrated is a good one. Most of us don't work alone and the fact of the matter is that you very often have different people that have to work separately on the same project. Having the separate folders for the parts made that situation easy to handle. It really doesn't matter much in a modern development environment like Eclipse... the view to the project is that they are in the same place, because they are in the same package. Even the Wicket Bench plugin (when it worked) didn't care if they were physically separated in the filesystem. I really don't want the archetype to do anything else than it currently does, nor document such a way. The Official Wicket Way (tm) is to put all source files relating to a single unit of work in one package, in the same physical folder. If you decide to do it otherwise, it is not The Official Wicket Way. Feel free to disagree, but do it somewhere else, and in your own private projects. Cut the crap Martijin. What kind of a silly thing is that to say? Times and technology change... how are the users of wicket going to decide how it should be changed to make it better unless they can talk about it, or even argue about it? I have the right to discuss or argue a point in the public user list, and in the spirit that this software is developed and released, even if you don't like it. Now, lets be clear in what I have said: - At no point did I ask that it be changed. If I had there would be an issue in Jira to go with it. - I did say that I didn't want to use it that way and thought the way it worked was backward (and took longer to fix than it was worth). - I said I though the default should be the other way, and that the archetype could do with the option to do the maven standard thing or the wicket thing. - I also said that my statements where my opinion. - and i said that I did not think that having the html and source in the same physical place was necessarily wrong and that it is a useful pattern that i use myself. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
Now there is a sensible argument! I've been thinking of doing that exact thing for clarity as the project gets big, where the integral HTML files that have a 1:1 relationship to the code stay in the src/main/java and the other resources that are *not* required for operation (like the property files) to be in the src/main/resources directory. I'm thinking that it is a bit more true to the component per package type of pattern rather than the function per package that is common in Java. However I have found it useful sometimes to have the html in a separate place, such as in passing it around outside the scope of the code to non-programmers. I won't lose any sleep over it though, its six of one and half a dozen of the other. - Brill BTW - I don't think we need to vote on anything ;) at least I wasn't calling for a vote... On 20-Mar-09, at 12:17 PM, John Krasnay wrote: +1. Wicket IMHO does it the right way for its particular situation. Wicket differs from most Java project by the sheer number of resources and by their 1:1 correspondence with Java classes. Maven, I think, is optimized more for the more common case where a project has only a handful of resources that are not tightly bound to particular classes. jk On Fri, Mar 20, 2009 at 04:51:38PM +0100, Martijn Dashorst wrote: I don't want that. If someone is anal about what maven is expecting, then it is their problem. I am in the business of making the best wicket development experience, from a Wicket perspective. We're using maven as a tool, we're not in the business of supplying maven with new users. Putting all resources that belong to a component in the same physical folder as the component .java file is a best practice for Wicket users, even newbies. Doing it in any other way is opening the door to the nine hells of Maven usage and resource location. I really don't want the archetype to do anything else than it currently does, nor document such a way. The Official Wicket Way (tm) is to put all source files relating to a single unit of work in one package, in the same physical folder. If you decide to do it otherwise, it is not The Official Wicket Way. Feel free to disagree, but do it somewhere else, and in your own private projects. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
On Sat, Mar 21, 2009 at 1:15 AM, Brill Pappin br...@pappin.ca wrote: In fact there have been several instances where having the resources and java separate has been helpful to me and the folks I work with. If an example is needed, the case were the HTML must be delivered to non programmers and then reintegrated is a good one. Most of us don't work alone and the fact of the matter is that you very often have different people that have to work separately on the same project. Having the separate folders for the parts made that situation easy to handle. In that situation, you're probably a little too advanced to be using a quickstart for your project anyway (you may have started with one, but you seem to have evolved). The quickstart is intended to get folks up and running quickly. In your situation, you would be dealing with a well-established project if you're passing HTML templates back and forth between designers and coders. That's not a situation where you'd likely to be still using a quickstart. Hopefully you've got someone on staff (which I believe you do, considering your experience) who could guide the other folks on how your project is to be structured (where things go and what not). Again, I understand where you come from when you say that it's confusing that the resources aren't in the default location. Maven folks like things done the maven way (and I'm a maven folk). I'm not trying to argue really. It really doesn't make one hill of beans to me either way. I like the fact that the quickstart allows me to put my resources beside my java code or in the src/main/resources directory. For those that don't, they can put their resources in the normal place. The quickstart allows both. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making wicket work with Dynamically created html
Hmm... what about a custom locator/loader that simply gave back the html version of the XML when wicket asked for it? You could even insert the wicket id attributes into the stream if your XML knew about them, then allow Wicket to go through its normal process. I don't think anything here will be exactly what you need but take a look at: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html http://cwiki.apache.org/WICKET/custom-resource-paths.html There are a few pointers that will help you understand what's going on under the covers, and give you ideas on how your issue might be handled. - Brill On 20-Mar-09, at 4:56 PM, Vasu Srinivasan wrote: I see this question has been posted before and searched around but I have not seen any conclusive solution. I am totally new to Wicket... We have a dynamic xml that contains UI and data elements (text, radio, checkbox etc) which we need to convert to html and then submit users selections etc. Basically a survey type of xml. I understood that I have to use Panels, Repeaters and also implement IMarkupResourceStreamProvider to provide my own html converted from xml via xsl. How do I then map my html to panels which wicket wants ? If there is a template/example that would help. I also read about wicket-qti which exactly addresses this kind of issue - is that available ? Appreciate help! vasya - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
Re: The quickstart allows both. Does it? I missed that feature but it would be very handy! The only doc I see is the one at: http://wicket.apache.org/quickstart.html What options do i pass to get it to do that? and yes in that case it's an established project... I think this thread has gotten a bit emotional and mixed up with several different discussions (which is likely my doing). - Brill On 21-Mar-09, at 1:29 AM, James Carman wrote: On Sat, Mar 21, 2009 at 1:15 AM, Brill Pappin br...@pappin.ca wrote: In fact there have been several instances where having the resources and java separate has been helpful to me and the folks I work with. If an example is needed, the case were the HTML must be delivered to non programmers and then reintegrated is a good one. Most of us don't work alone and the fact of the matter is that you very often have different people that have to work separately on the same project. Having the separate folders for the parts made that situation easy to handle. In that situation, you're probably a little too advanced to be using a quickstart for your project anyway (you may have started with one, but you seem to have evolved). The quickstart is intended to get folks up and running quickly. In your situation, you would be dealing with a well-established project if you're passing HTML templates back and forth between designers and coders. That's not a situation where you'd likely to be still using a quickstart. Hopefully you've got someone on staff (which I believe you do, considering your experience) who could guide the other folks on how your project is to be structured (where things go and what not). Again, I understand where you come from when you say that it's confusing that the resources aren't in the default location. Maven folks like things done the maven way (and I'm a maven folk). I'm not trying to argue really. It really doesn't make one hill of beans to me either way. I like the fact that the quickstart allows me to put my resources beside my java code or in the src/main/resources directory. For those that don't, they can put their resources in the normal place. The quickstart allows both. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making wicket work with Dynamically created html
Hi Vasya, How do I then map my html to panels which wicket wants ? If there is a template/example that would help. take a look at the wicket-velocity project where velocity templates are used for components. That should be similar to what you want. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Diference between model's
I'm likely not the correct person to answer this clearly, but I'm sure someone will correct me if I get it wrong :) Essentially the Loadable version has the load() method which is called when the model must be initialized from some other source (as in from a database when you always want the data refreshed). so, a LoadableDetachableModel is just an implementation of a DetachableModel that makes reinitializing the data easier. - Brill On 20-Mar-09, at 1:03 PM, Matías Tito wrote: I'm starting on wicket and I don't underdestand diferences between LoadableDetachableModel and DetachableModel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
On Sat, Mar 21, 2009 at 1:35 AM, Brill Pappin br...@pappin.ca wrote: Re: The quickstart allows both. Does it? I missed that feature but it would be very handy! Sure! Take a look at a generated quickstart. There's a src/main/resources directory with a log4j.properties file in there (which gets copied over to the target/classes directory). So, it doesn't obliterate the maven way of doing things. It just augments it. and yes in that case it's an established project... I think this thread has gotten a bit emotional and mixed up with several different discussions (which is likely my doing). Heh, no worries. We all seem to get worked up when discussing how things *should* be done. :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Diference between model's
There's no such thing as DetachableModel (it's not in the API). All models are detachable (meaning they implement IDetachable). The IDetachable interface allows for objects to clean up after themselves. By default, all models have that opportunity (for some, you have to make sure you call the detach method, though). On Sat, Mar 21, 2009 at 1:41 AM, Brill Pappin br...@pappin.ca wrote: I'm likely not the correct person to answer this clearly, but I'm sure someone will correct me if I get it wrong :) Essentially the Loadable version has the load() method which is called when the model must be initialized from some other source (as in from a database when you always want the data refreshed). so, a LoadableDetachableModel is just an implementation of a DetachableModel that makes reinitializing the data easier. - Brill On 20-Mar-09, at 1:03 PM, Matías Tito wrote: I'm starting on wicket and I don't underdestand diferences between LoadableDetachableModel and DetachableModel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why are we top-posting...
A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can I share text resources with multiple web applications?
Ahh... yes of course. I was hoping for a switch that would put the html there as well, and not include the extra resource config :) Oh well... its not too big a deal. - Brill On 21-Mar-09, at 1:44 AM, James Carman wrote: On Sat, Mar 21, 2009 at 1:35 AM, Brill Pappin br...@pappin.ca wrote: Re: The quickstart allows both. Does it? I missed that feature but it would be very handy! Sure! Take a look at a generated quickstart. There's a src/main/resources directory with a log4j.properties file in there (which gets copied over to the target/classes directory). So, it doesn't obliterate the maven way of doing things. It just augments it. and yes in that case it's an established project... I think this thread has gotten a bit emotional and mixed up with several different discussions (which is likely my doing). Heh, no worries. We all seem to get worked up when discussing how things *should* be done. :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org