Re: TextField w/ bean as model object?
Iam in hope duke you will share your solution with us ... Want to know it too ;) igor.vaynberg wrote: there are two ways to do this either you do everything in the converter take the string and convert it into the area, if the zip is incorrect throw a conversion exception or you split the two have a converter that converts the string into the area and a validator that makes sure the area is valid -igor On Fri, Mar 12, 2010 at 10:03 AM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: I'd appreciate another pair of eyes on the following: I have a US ZIP Code input text field that I'd like to bind to an Area bean. The idea is that the component would prompt/display for a 5-digit zip code but getModelObject() would return an Area: class ZipInput extends RequiredTextFieldArea; where Area is: class Area{ int zipcode; UsState state; //enum String city; } there is also a AreaService service: //returns true only if zipCode is a valid US zip code boolean isValidZipCode(int zipcode); //return Area bean for given zipCode; throws exception if 'zipCode' isn't a valid US Zip Code Area getArea(int zipCode); The component needs to: - validate that input is present (RequiredValidator?) - convert input from String integer - at some pt call AreaService.isValidZipCode (again, a validation task) - call AreaService.getArea (a conversion task) My main problem is that it seems like AreaService.getArea() should be wrapped into a IConverter, but it, in turn, requires a validation step. However, conversion runs before validation (ie. first I need to convert string-int). So, I guess, I am unsure which of the above should be wrapped into a Converter and which into a Validator (trying to maintain some separation of responsibilities). Should I create a converter that chains StringInt and IntArea conversions? Which would execute AreaService.getArea(zipCode)? thanks -nikita - 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://old.nabble.com/TextField-w--bean-as-model-object--tp27880787p27900904.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: why is hashcode() called on page deserialization?
java.lang.NullPointerException at com.company.project.event.SMSEvent.hashCode(SMSEvent.java:334) This looks a lot like an exception we get in one project as well, where a bean serialized into the DiskPageStore comes back with all properties set to null (including the ones tested for in hashCode() thus the NPE). Could this have happened during serialization, i.e. that the object write operation somehow failed to write any properties? The bean in question does not have any transient fields, and there is no custom object writer or reader. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: why is hashcode() called on page deserialization?
The issue is that the object that hashCode() is called on contains a @Lob object, I think it has to do with it... Regards, -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Monday, March 15, 2010 10:01 AM To: users@wicket.apache.org Subject: SV: why is hashcode() called on page deserialization? java.lang.NullPointerException at com.company.project.event.SMSEvent.hashCode(SMSEvent.java:334) This looks a lot like an exception we get in one project as well, where a bean serialized into the DiskPageStore comes back with all properties set to null (including the ones tested for in hashCode() thus the NPE). Could this have happened during serialization, i.e. that the object write operation somehow failed to write any properties? The bean in question does not have any transient fields, and there is no custom object writer or reader. - Tor Iver - 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
Regarding TreeTable Horizontal Scrollbar
Hi, I am using TreeTable Wicket-1.4.5 component in my application. In my application, TreeTable may have one to many column based on some selection/event. I want Horizontal scrollbar for TreeTable component to see the entire columns when it has many numbers. If it needs customization then please let me know how it can be achieved. Thanks Vikash iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 by Business Today-Mercer Human Resource Consulting-TNS in a cross industry survey of Best Companies to work for in India DISCLAIMER- Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailad...@igate.com and delete this EMAIL including any attachments
Wicket in the industry
Hey community I'm testing / using wicket at the moment and have to convince my company to use the framework. I really enjoy wicket and it's ease of use. Thing is my company has asked me two valid questions which I hope the community can answer. 1. How is wicket's stress load? For example could you use the framework for example as an interface to a banking system that handles hundreds of requests at the same time? 2. And i think this question relates to the first one, is wicket being adopted by big businesses? Do they use it for their web interfaces? If anyone can answer these questions I would appreciate it as I would like to convince them to use this framework.
Re: Regarding TreeTable Horizontal Scrollbar
You can solve this by using CSS. E.g. table trtd div style=width:100%;overflow:auto;white-space:nowrap [content] /div /td/tr /table The trick is overflow:auto that will add scrollbars when needed. overflow-y: scroll; will give you an always visible scrollbar for the y-axis. Hi, I am using TreeTable Wicket-1.4.5 component in my application. In my application, TreeTable may have one to many column based on some selection/event. I want Horizontal scrollbar for TreeTable component to see the entire columns when it has many numbers. If it needs customization then please let me know how it can be achieved.
Re: Wicket with Jquery jqGrid
AFAIK JWeekend has been working on an integration, see demo at [1]. I have been working in another integration which is not (yet) as advanced/complete as JWekeend´s is. You can find the details at [2] Best, Ernesto Refereces, 1-http://labs.jweekend.com/public/ 2-http://code.google.com/p/wijqgrid/ On Sun, Mar 14, 2010 at 11:23 PM, Verma Shalini (HCTM/ETA) shalini.ve...@us.bosch.com wrote: Has anybody tried integrating Jquery jqGRid with wicket? Thanks Shalini
Re: Wicket in the industry
http://www.breakitdownblog.com/apache-wicket-powers-mobile-walmart-com/ On Mon, Mar 15, 2010 at 1:50 PM, Mynhardt Vlok mynhar...@gmail.com wrote: Hey community I'm testing / using wicket at the moment and have to convince my company to use the framework. I really enjoy wicket and it's ease of use. Thing is my company has asked me two valid questions which I hope the community can answer. 1. How is wicket's stress load? For example could you use the framework for example as an interface to a banking system that handles hundreds of requests at the same time? 2. And i think this question relates to the first one, is wicket being adopted by big businesses? Do they use it for their web interfaces? If anyone can answer these questions I would appreciate it as I would like to convince them to use this framework. -- Anantha Kumaran(http://ananthakumaran.github.com)
Re: Looking for a less chatty auto-complete component?
On 03/15/10 02:42, Ben Hutchison wrote: Hi all, We're developing a wicket web-application that makes heavy use of auto-complete text fields populated from slow back-end (mainframe) web services. Concerned that standard auto-complete behavior will be too chatty and result in many calls to slow services, we're keen on an alternative less chatty model: - No autocomplete behavior is triggered until at least N (eg 3) characters have been entered. - When N characters are entered, a query is performed, once. - These results are cached client-side, and subsequent character entry simply narrows the search in the pre-retrieved results. - If any of the first N characters in the string are altered, the cache results are discarded and a new query is performed. All this should be doable with reasonable effort by overriding AutoCompleteTextField's getChoices(). I've never stored things client-side, but I'm sure you can find how to do that in the archives or the wiki. Apart from that, you would do something like that: String prevInput; ListString suggestions; @Override protected IteratorString getChoices(String input) { if (!suggestions.isEmpty() firstNEqual(input, prevInput) // narrow down existing suggestions else if (input.length() = MIN_INPUT_LENGTH) // backend service query, filling suggestions else return Collections.StringemptyList().iterator(); } -- --- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland http://www.uniprot.org --- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Regarding TreeTable Horizontal Scrollbar
Where should I place the contents you have sent me as I tried it at TreeTable html couldn't get the needed output? Please see the below code and let me know where I can modify... Tried for both TreeTable component html web page html. wicket:panel div class=wicket-tree-table div class=header div span wicket:id=sideColumns /span div class=a_ span wicket:id=middleColumns /span /div /div /div /* CSS to add vertical scrollbar */ div style=height: 300px; overflow: auto class=wicket-tree-table-body div wicket:id=i span wicket:id=sideColumns /span div class=a_ span wicket:id=middleColumns /span /div /div /div /div script script=text/javascript wicket:id=attachJavascript /* Will be replaced on runtime; Wicket.TreeTable.attachUpdate(treeTable); */ /script /wicket:panel wicket:fragment wicket:id=fragment span wicket:id=indent/spana wicket:id=link style=span wicket:id=image//a a wicket:id=nodeLink class=node-linkspan class=icon wicket:id=icon/spanspan wicket:id=label/span/a /wicket:fragment -Original Message- From: leo.erlands...@tyringe.com [mailto:leo.erlands...@tyringe.com] Sent: Monday, March 15, 2010 1:56 PM To: users@wicket.apache.org Subject: Re: Regarding TreeTable Horizontal Scrollbar You can solve this by using CSS. E.g. table trtd div style=width:100%;overflow:auto;white-space:nowrap [content] /div /td/tr /table The trick is overflow:auto that will add scrollbars when needed. overflow-y: scroll; will give you an always visible scrollbar for the y-axis. Hi, I am using TreeTable Wicket-1.4.5 component in my application. In my application, TreeTable may have one to many column based on some selection/event. I want Horizontal scrollbar for TreeTable component to see the entire columns when it has many numbers. If it needs customization then please let me know how it can be achieved. iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 by Business Today-Mercer Human Resource Consulting-TNS in a cross industry survey of Best Companies to work for in India DISCLAIMER- Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailad...@igate.com and delete this EMAIL including any attachments
Re: ClassLoader (Serialization?) error
I agree it's not a classloader issue, the classloader is being given a cobbled class name, so it's not its fault it cannot load it. Is it possible that due to some serialization error the class name gets messed with the html markup, so that the class name read in deserialization ends messed up ? I don't see where can this be messing with comments, here is the markup file (the only one with fi usuari in it) html xmlns:wicket wicket:panel head script src=/accesnet/js/modal-message.js type=text/javascript/script /head !-- usuari -- div id=usuari div class=caixaUser div class=userdades span class=waiwicket:message key=userpanel.nomusuari.wai//spanstrongspan wicket:id=nomUsuari/span/strongbr / span class=noPopupa href=# wicket:id=linkEditUsuari wicket:message=title:userpanel.editusuari.titlewicket:message key=userpanel.editusuari.text//a/span span class=noPopupa href=# wicket:id=linkHomeAdmin wicket:message=title:userpanel.homeadmin.titlewicket:message key=userpanel.homeadmin.text//a/span /div div class=sessio spana href=# class=botoE cancela wicket:message=title:userpanel.fisessio.title wicket:id=linkFiSessiowicket:message key=userpanel.desconnecta/span class=waiwicket:message key=userpanel.fisessio.text.wai//span/a/span /div /div /div !-- fi usuari -- /wicket:panel /html Thanks for all your responses ! Xavier 2010/3/14 Jonas barney...@gmail.com As stated in my previous mail, I really doubt this is a classloader issue, since the class name is 'mypackage.MyClass-%20fi%20usuari%20--%3E%20%20%3C' which decodes to 'mypackage.MyClass- fi usuari -- ' which obviously isn't just a class name, but a class name plus some 'garbage', which will make any classloader choke. 2010/3/13 François Meillet fm...@meillet.com: sounds like a classloading effect. Have a look to the classloader hierarchy Here is a good doc: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html Especially this one : Resource Loading Order http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html#wp1097288 François Le 12 mars 2010 à 17:30, Igor Vaynberg a écrit : ive seen this once before on the list. also with weblogic i think. search the list. -igor On Fri, Mar 12, 2010 at 3:16 AM, Xavier López xavil...@gmail.com wrote: Hi, From time to time I see the following error in my deployed application's log. The application is running clustered on Weblogic 9.2 MP3. It seems to be messing up with the classloading of class mypackage.MyClass (this error comes up in many different classes). I can guess from the stack trace that something is going wrong maybe serializing that page, it can be seen that the class name is being messed with some content of the page (div tags, text displayed in the page,...). Has anyone been in this situation before ? Any tip on how to address the issue ? 2010-03-11 22:31:10,506 ERROR ap16_s1_IX_II [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] org.apache.wicket.request.target.resource.SharedResourceRequestTarget 579910|vJS0LZhR01NKqxLWh6QbpWm77g3jHJ96Y4GYV6KB996NfHnHLb5t!-619140133! 1268343057...@192.168.131.142 - unable to lazily register shared resource mypackage.MyClass%20fi%20usuari%20--%3E%20%20%3C/div%3E%3Cdiv%20id= java.lang.ClassNotFoundException: mypackage.MyClass-%20fi%20usuari%20--%3E%20%20%3C at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:289) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:262) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:161) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35) at org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:103) at org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:149) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at
Re: RE: Regarding TreeTable Horizontal Scrollbar
If you want the entire table to be scrollable horizontally you should probably place the CSS attributes on the top CSS class (wicket-tree-table). Search the net for CSS horizontal scoll. There should be loads of examples on how to do this using CSS. http://lmgtfy.com/?q=css horizontal scoll overflow Where should I place the contents you have sent me as I tried it at TreeTable html couldn't get the needed output? Please see the below code and let me know where I can modify... Tried for both TreeTable component html web page html. wicket:panel div class=wicket-tree-table
Re: ClassLoader (Serialization?) error
I guess you use that panel somewhere on a page near a shared resource, maybe for an Image, have you tried debugging the rendering of that page? A side note, probably totally unrelated to your problem: having 'head' tags inside a wicket:panel will probably result in invalid html, you should consider using wicket:head instead (see: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html) cheers, Jonas On Mon, Mar 15, 2010 at 10:11 AM, Xavier López xavil...@gmail.com wrote: I agree it's not a classloader issue, the classloader is being given a cobbled class name, so it's not its fault it cannot load it. Is it possible that due to some serialization error the class name gets messed with the html markup, so that the class name read in deserialization ends messed up ? I don't see where can this be messing with comments, here is the markup file (the only one with fi usuari in it) html xmlns:wicket wicket:panel head script src=/accesnet/js/modal-message.js type=text/javascript/script /head !-- usuari -- div id=usuari div class=caixaUser div class=userdades span class=waiwicket:message key=userpanel.nomusuari.wai//spanstrongspan wicket:id=nomUsuari/span/strongbr / span class=noPopupa href=# wicket:id=linkEditUsuari wicket:message=title:userpanel.editusuari.titlewicket:message key=userpanel.editusuari.text//a/span span class=noPopupa href=# wicket:id=linkHomeAdmin wicket:message=title:userpanel.homeadmin.titlewicket:message key=userpanel.homeadmin.text//a/span /div div class=sessio spana href=# class=botoE cancela wicket:message=title:userpanel.fisessio.title wicket:id=linkFiSessiowicket:message key=userpanel.desconnecta/span class=waiwicket:message key=userpanel.fisessio.text.wai//span/a/span /div /div /div !-- fi usuari -- /wicket:panel /html Thanks for all your responses ! Xavier 2010/3/14 Jonas barney...@gmail.com As stated in my previous mail, I really doubt this is a classloader issue, since the class name is 'mypackage.MyClass-%20fi%20usuari%20--%3E%20%20%3C' which decodes to 'mypackage.MyClass- fi usuari -- ' which obviously isn't just a class name, but a class name plus some 'garbage', which will make any classloader choke. 2010/3/13 François Meillet fm...@meillet.com: sounds like a classloading effect. Have a look to the classloader hierarchy Here is a good doc: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html Especially this one : Resource Loading Order http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html#wp1097288 François Le 12 mars 2010 à 17:30, Igor Vaynberg a écrit : ive seen this once before on the list. also with weblogic i think. search the list. -igor On Fri, Mar 12, 2010 at 3:16 AM, Xavier López xavil...@gmail.com wrote: Hi, From time to time I see the following error in my deployed application's log. The application is running clustered on Weblogic 9.2 MP3. It seems to be messing up with the classloading of class mypackage.MyClass (this error comes up in many different classes). I can guess from the stack trace that something is going wrong maybe serializing that page, it can be seen that the class name is being messed with some content of the page (div tags, text displayed in the page,...). Has anyone been in this situation before ? Any tip on how to address the issue ? 2010-03-11 22:31:10,506 ERROR ap16_s1_IX_II [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] org.apache.wicket.request.target.resource.SharedResourceRequestTarget 579910|vJS0LZhR01NKqxLWh6QbpWm77g3jHJ96Y4GYV6KB996NfHnHLb5t!-619140133! 1268343057...@192.168.131.142 - unable to lazily register shared resource mypackage.MyClass%20fi%20usuari%20--%3E%20%20%3C/div%3E%3Cdiv%20id= java.lang.ClassNotFoundException: mypackage.MyClass-%20fi%20usuari%20--%3E%20%20%3C at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:289) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:262) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:161) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35) at org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:103) at org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:149) at
InMethod Grid: resizing rowcount
The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality to expand the number of rows after an ajax-call that e.g. adds data to the underlying datasource. Is there a way to tell the DataGrid that the underlying datasource may have changed, to the effect that the existing row count is not valid anymore? I.e. like markAllItemsDirty(), but then telling the grid to reload the entire underlying model, including rowcount, instead of only the individual rows? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket feedback
Hi! One more benefit for MashupWebPage is that you can use it for creating tests: public void testSomeFieldComponent() { Page page = new MashupWebPage(); Form form; page.add(form = new MashUpForm(GID)); FormComponent customField; form.add(customField = new CustomFieldToBeTested(GID)); tester.startPage(page); FormTester formtester = tester.newFormTester(form.getPageRelativePath()); formtester.setValue(getRelativePath(form, customField), test-value); formtester.submit(); tester.assertNoErrorMessages(); } No need to hassle to build a dummy page with boring html markup to test a formcomponent. Ofcourse this is just a simple example and more versatile examples can be made. ** Martin 2010/3/10 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! Could you help me with some examples? In what way? Normally you have a panel like this: html button wicket:id=button/ /html class Panel { add(new Button(button)); } You cannot change the panel content flexibly at runtime. Now if you have a MashupContainer you can do: mashupContainer.add(new Button()); mashupContainer.add(new Panel()); if (privileged) { mashupContainer.add(new GoogleMap()); mashupContainer.add(new FacebookWidet()); } Also you can add new components at runtime via ajax just by saying: mashupContainer.add(new PanelAtRuntime()); ajaxRequestTarget.addComponent(mashupContainer); So you can do pretty much anything with it without having to modify HTML at the same time. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: RE: Regarding TreeTable Horizontal Scrollbar
It's true that we can get the horizontal scroll by using CSS but, in case of wicket TreeTable component, it's an issue as because of the wicket component getting prepared at java side and I couldn't find the appropriate place (in both java markup code) to use the CSS attribute. I tried to use CSS horizontal scroll attributes in wicket-tree-table CSS class but it couldn't work. Please let me know the approach if anyone has faced resolve similar kind of issue with TreeTable. Thanks -Original Message- From: leo.erlands...@tyringe.com [mailto:leo.erlands...@tyringe.com] Sent: Monday, March 15, 2010 2:50 PM To: users@wicket.apache.org Subject: Re: RE: Regarding TreeTable Horizontal Scrollbar If you want the entire table to be scrollable horizontally you should probably place the CSS attributes on the top CSS class (wicket-tree-table). Search the net for CSS horizontal scoll. There should be loads of examples on how to do this using CSS. http://lmgtfy.com/?q=css horizontal scoll overflow Where should I place the contents you have sent me as I tried it at TreeTable html couldn't get the needed output? Please see the below code and let me know where I can modify... Tried for both TreeTable component html web page html. wicket:panel div class=wicket-tree-table iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 by Business Today-Mercer Human Resource Consulting-TNS in a cross industry survey of Best Companies to work for in India DISCLAIMER- Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailad...@igate.com and delete this EMAIL including any attachments - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: InMethod Grid: resizing rowcount
Pointbreak schrieb: The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality to expand the number of rows after an ajax-call that e.g. adds data to the underlying datasource. Is there a way to tell the DataGrid that the underlying datasource may have changed, to the effect that the existing row count is not valid anymore? I.e. like markAllItemsDirty(), but then telling the grid to reload the entire underlying model, including rowcount, instead of only the individual rows? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org I tackled a similar problem (an add button for an editable datagrid) the following way: - create a new object with reflection - insert it in the backing list (model) - call update on the grid - add the grid to the requesttarget public class MyDataGrid extends DecoratedDataGrid { protected List rawList; protected final Class modelAsClass; public MyDataGrid(String id, String title, String buttonTitle, List? list, ListIGridColumn columns, final Class? modelAsClass) { super(id, title, buttonTitle, new MyDataProviderAdapter(new ListDataProvider(list)), columns, modelAsClass); log.debug(creating grid for type + modelAsClass.getSimpleName() + no of columns: + columns.size() + size of datalist: + list.size()); this.rawList = list; } @Override protected void onAddRow(AjaxRequestTarget target, Form? form) { Object obj = modelAsClass.newInstance(); rawList.add(obj); log.debug(object of class + modelAsClass.getName() + successfully inserted); update(); target.addComponent(getGrid()); } } This takes place in a custom subclass of the defaultdatagrid. The onAddRow method is called from an ajaxbutton (onsubmit) I hope this helps -- Thierry Peng __ _ / / / / / / / / GLUE Software Engineering AG / / __/ / / / / / __/ Zieglerstr. 34, 3007 Bern, Switzerland / /_/ / /___/ /_/ / /___Phone: +41-(0)31/385 30 34Fax: 30 18 \/_/\/_/___mailto: p...@glue.ch - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: InMethod Grid: resizing rowcount
On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote: Pointbreak schrieb: The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality to expand the number of rows after an ajax-call that e.g. adds data to the underlying datasource. Is there a way to tell the DataGrid that the underlying datasource may have changed, to the effect that the existing row count is not valid anymore? I.e. like markAllItemsDirty(), but then telling the grid to reload the entire underlying model, including rowcount, instead of only the individual rows? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org I tackled a similar problem (an add button for an editable datagrid) the following way: - create a new object with reflection - insert it in the backing list (model) - call update on the grid - add the grid to the requesttarget public class MyDataGrid extends DecoratedDataGrid { protected List rawList; protected final Class modelAsClass; public MyDataGrid(String id, String title, String buttonTitle, List? list, ListIGridColumn columns, final Class? modelAsClass) { super(id, title, buttonTitle, new MyDataProviderAdapter(new ListDataProvider(list)), columns, modelAsClass); log.debug(creating grid for type + modelAsClass.getSimpleName() + no of columns: + columns.size() + size of datalist: + list.size()); this.rawList = list; } @Override protected void onAddRow(AjaxRequestTarget target, Form? form) { Object obj = modelAsClass.newInstance(); rawList.add(obj); log.debug(object of class + modelAsClass.getName() + successfully inserted); update(); target.addComponent(getGrid()); } } This takes place in a custom subclass of the defaultdatagrid. The onAddRow method is called from an ajaxbutton (onsubmit) I hope this helps -- Thierry Peng You must be doing something else in addition to that (or I am missing something). As far as I can see, the DefaultDataGrid class will not ask its model/datasource for a new rowcount when you call update(). Hence the call to update() will not result in the addition of a row to the grid, even though you added the row to your model. Are you sure you are not replacing the entire dataGrid in e.g. your getGrid() call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: InMethod Grid: resizing rowcount
Pointbreak schrieb: On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote: Pointbreak schrieb: The public interface of the inmethod DataGrid/DefaultDataGrid does not seem to provide functionality to expand the number of rows after an ajax-call that e.g. adds data to the underlying datasource. Is there a way to tell the DataGrid that the underlying datasource may have changed, to the effect that the existing row count is not valid anymore? I.e. like markAllItemsDirty(), but then telling the grid to reload the entire underlying model, including rowcount, instead of only the individual rows? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org I tackled a similar problem (an add button for an editable datagrid) the following way: - create a new object with reflection - insert it in the backing list (model) - call update on the grid - add the grid to the requesttarget public class MyDataGrid extends DecoratedDataGrid { protected List rawList; protected final Class modelAsClass; public MyDataGrid(String id, String title, String buttonTitle, List? list, ListIGridColumn columns, final Class? modelAsClass) { super(id, title, buttonTitle, new MyDataProviderAdapter(new ListDataProvider(list)), columns, modelAsClass); log.debug(creating grid for type + modelAsClass.getSimpleName() + no of columns: + columns.size() + size of datalist: + list.size()); this.rawList = list; } @Override protected void onAddRow(AjaxRequestTarget target, Form? form) { Object obj = modelAsClass.newInstance(); rawList.add(obj); log.debug(object of class + modelAsClass.getName() + successfully inserted); update(); target.addComponent(getGrid()); } } This takes place in a custom subclass of the defaultdatagrid. The onAddRow method is called from an ajaxbutton (onsubmit) I hope this helps -- Thierry Peng You must be doing something else in addition to that (or I am missing something). As far as I can see, the DefaultDataGrid class will not ask its model/datasource for a new rowcount when you call update(). Hence the call to update() will not result in the addition of a row to the grid, even though you added the row to your model. Are you sure you are not replacing the entire dataGrid in e.g. your getGrid() call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org nope, there is no magic in the getGrid() method. it only returns the grid. If I read the update() method correctly I may even omit that call. So, the target.addComponent(grid) is sufficient I'm using the inmethod-grid-1.4-rc7 with some extensions. wicket version is 1.4.6 -- Thierry Peng __ _ / / / / / / / / GLUE Software Engineering AG / / __/ / / / / / __/ Zieglerstr. 34, 3007 Bern, Switzerland / /_/ / /___/ /_/ / /___Phone: +41-(0)31/385 30 34Fax: 30 18 \/_/\/_/___mailto: p...@glue.ch - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to delete an item from List view.
Hi, I am also having similar issue, it all the time removes last row. I have attached code. OptionGroupPageForm(String id) { super(id); final MarkupContainer rowPanel = new WebMarkupContainer(rowPanel); rowPanel.setOutputMarkupId(true); add(rowPanel); // List all rows rows.add(new String()); RefreshingView lv = new RefreshingView(rows) { @Override protected IteratorIModel getItemModels() { List models = new ArrayList(); for(int i=0;irows.size();i++){ models.add(new Model( (String) rows.get(i))); } return models.iterator(); //return rows.iterator(); } @Override protected void populateItem(final Item item) { int index = item.getIndex() + 1; item.add(new Label(index, Option+index + .)); TextField text = new TextField(text, item.getModel()); RadioChoice rc = new RadioChoice(status, STATUS); item.add(text); item.add(rc); item.add(new AjaxLink(removeRow) { @Override public void onClick(AjaxRequestTarget target) { if (target != null) { target.addComponent(rowPanel); } } } ); } }; lv.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance()); rowPanel.add(lv); AjaxSubmitLink addLink = new AjaxSubmitLink(addRow, this) { @Override public void onSubmit(AjaxRequestTarget target, Form form) { rows.add(new String()); if (target != null) target.addComponent(rowPanel); } }; addLink.setDefaultFormProcessing(false); add(addLink); } Thanks Prati Johan Compagner wrote: You do use a delete button, so i guess the values are submitted. Then if you store those first in the model objects you won't loose anything johan On Feb 4, 2008 2:35 PM, pnerkar pner...@gmail.com wrote: Hi Johan, Yes that will be quickest solution , But this will clear the fields of all vehicles. -Pnerkar Johan Compagner wrote: wasn't the quickest solution: public void onSubmit() { List vehicles = (List) getParent().getParent().getModelObject(); vehicles.remove(index); listView.removeAll(); } Then if the list itself is stable on the server side (if other persons can also delete or add stuff to that list you really should do it differently) that should work fine. After you alter the listviews model you have to remove all the items so that it will rebuild johan On Feb 1, 2008 12:49 AM, pnerkar pner...@gmail.com wrote: Hi All, I have rendered a list view on a Web Page. vehicle1X vehicle2X vehicle3X when a person click on 'X', that item should be deleted. But I'm facing an issue, when i click on 'X', last item get deleted. Actually when I delete vehicle2 from my list, it deletes vehicle2 but that component is still there. So while rendering it render vehicle1 vehicle2. public void onSubmit() { List vehicles = (List) getParent().getParent().getModelObject(); vehicles.remove(index); } can please help out ?? -- View this message in context: http://www.nabble.com/How-to-delete-an-item-from-List-view.-tp15217608p15217608.html Sent from the Wicket - User mailing list archive at Nabble.com http://nabble.com/http://nabble.com/ . - To unsubscribe,
RE: Wicket in the industry
Hi, I work for a company that develops banking software and we use wicket for our software. Our software runs in house for the banks on their local intranet. We love wicket and its component oriented nature. I have load tested wicket with JMeter and I can't remember the exact measurements but I remember thinking that wicket can handle a few hundred requests in a small amount of time. You may have to load test it for your specific requirements. Hope this helps your confidence in wicket. Thanks, Josh -Original Message- From: Mynhardt Vlok [mailto:mynhar...@gmail.com] Sent: Monday, March 15, 2010 3:21 AM To: users@wicket.apache.org Subject: Wicket in the industry Hey community I'm testing / using wicket at the moment and have to convince my company to use the framework. I really enjoy wicket and it's ease of use. Thing is my company has asked me two valid questions which I hope the community can answer. 1. How is wicket's stress load? For example could you use the framework for example as an interface to a banking system that handles hundreds of requests at the same time? 2. And i think this question relates to the first one, is wicket being adopted by big businesses? Do they use it for their web interfaces? If anyone can answer these questions I would appreciate it as I would like to convince them to use this framework. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Menu other than YUI
Hi, I'm unable to get wicket-datetime DatePicker to work with the YUI menu for wicket 1.4.7. So it's either not upgrade to 1.4.7 or use a menu other than YUI. I noticed that the javascript for YUI in 1.4 was pretty bulky and a significant increase from 1.3 so I'm kind of ok with replacing it. Is anyone using a menu component that allows for submenus other than YUI that works for wicket 1.4? Thanks, Josh
Remove error message for a specific component
Hi, How can I remove error message for a specific component? In the Component.class, it checks that the component is valid the following way: public final boolean hasErrorMessage() { return Session.get().getFeedbackMessages().hasErrorMessageFor(this); } I need to remove error message for specific components to make them valid. Thanks, Anna
Re: Remove error message for a specific component
You can use FormComponent#valid() method to make them valid, an still present the validations messages. On Mon, Mar 15, 2010 at 2:59 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi, How can I remove error message for a specific component? In the Component.class, it checks that the component is valid the following way: public final boolean hasErrorMessage() { return Session.get().getFeedbackMessages().hasErrorMessageFor(this); } I need to remove error message for specific components to make them valid. Thanks, Anna -- Pedro Henrique Oliveira dos Santos
Re: Remove error message for a specific component
getsession().getfeedbackmessages().clear(new ifeedbackmessagefilter() { accept(feedbackmessagefilter f) { f.getreporter()==component; } -igor On Mon, Mar 15, 2010 at 10:59 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, How can I remove error message for a specific component? In the Component.class, it checks that the component is valid the following way: public final boolean hasErrorMessage() { return Session.get().getFeedbackMessages().hasErrorMessageFor(this); } I need to remove error message for specific components to make them valid. Thanks, Anna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket with Jquery jqGrid
Thanks for your reply. Would you be able to tell when are you expecting(tentative date) the integration work to be over? reiern70 wrote: AFAIK JWeekend has been working on an integration, see demo at [1]. I have been working in another integration which is not (yet) as advanced/complete as JWekeend´s is. You can find the details at [2] Best, Ernesto Refereces, 1-http://labs.jweekend.com/public/ 2-http://code.google.com/p/wijqgrid/ On Sun, Mar 14, 2010 at 11:23 PM, Verma Shalini (HCTM/ETA) shalini.ve...@us.bosch.com wrote: Has anybody tried integrating Jquery jqGRid with wicket? Thanks Shalini -- View this message in context: http://old.nabble.com/Wicket-with-Jquery-jqGrid-tp27898644p27908397.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: testing a wicket panel
Add the table to a form. Then create a FormTester. Using formTester set the value of the textfeild autoOne. Then call formTester.submit(); Use Assertion to test the value. ayman elwany wrote: Hi all, I had this AutoCompleteform.html html body wicket:panel tdinput type=text wicket:id=autoOne size=50 //td tdinput type=text wicket:id=autoTwo size=50 //td /wicket:panel /body /html my question : how can i test setting a value in this input textfield autoOne? I only started the panel in the wicket tester : tester.startPanel(new TestPanelSource() { public Panel getTestPanel(String panelId) { return new AutoCompleteform(panelId, inputMap, employer); } }); but I don't know what to do next? -- View this message in context: http://old.nabble.com/testing-a-wicket-panel-tp27894958p27908457.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 session never expires
I once tested when Tomcat sessions actually get expired, and it can be very much longer than the given session-timeout value. Probably if there was active traffic the session would be recycled sooner, but I think if you need accurate timing then you have to implement something yourself rather than depend on the servlet container. Bng Martin Asenov wrote: Hello, everyone! In web.xml, I've set so: session-config session-timeout30/session-timeout /session-config However, the session never expires, and typing the app IP this morning I get in use the very old session from yesterday evening. And I get some hibernate closed connection exceptions... Would someone give a hint? Regards, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Renames my Form id
Hi, I've noticed that wicket is renaming my form id, which has become problematic when our JavaScript developer makes use of the id for some of his behaviors. Is there a way to tell Wicket to preserve the form id in the HTML page? Here's what I'm doing: HTML: form wicket:id=step_1 id=step_1 ... /form Java: final FormQuote form = new FormQuote( step_1, new CompoundPropertyModelQuote( quote ) ); And the resultant HTML file reads as follows: form wicket:id=step_1 id=step__15 method=post action=?wicket:interface=:2:step_1::IFormSubmitListener::div style=display:noneinput type=hidden name=step__15_hf_0 id=step__15_hf_0 //div Thanks in advance for your help! Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Renames my Form id
override http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#getMarkupId() 2010-03-15 20:00 keltezéssel, Steven Haines írta: Hi, I've noticed that wicket is renaming my form id, which has become problematic when our JavaScript developer makes use of the id for some of his behaviors. Is there a way to tell Wicket to preserve the form id in the HTML page? Here's what I'm doing: HTML: form wicket:id=step_1 id=step_1 ... /form Java: final FormQuote form = new FormQuote( step_1, new CompoundPropertyModelQuote( quote ) ); And the resultant HTML file reads as follows: form wicket:id=step_1 id=step__15 method=post action=?wicket:interface=:2:step_1::IFormSubmitListener::div style=display:noneinput type=hidden name=step__15_hf_0 id=step__15_hf_0 //div Thanks in advance for your help! Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Renames my Form id
call form.setmarkupid() -igor On Mon, Mar 15, 2010 at 11:00 AM, Steven Haines lyg...@yahoo.com wrote: Hi, I've noticed that wicket is renaming my form id, which has become problematic when our JavaScript developer makes use of the id for some of his behaviors. Is there a way to tell Wicket to preserve the form id in the HTML page? Here's what I'm doing: HTML: form wicket:id=step_1 id=step_1 ... /form Java: final FormQuote form = new FormQuote( step_1, new CompoundPropertyModelQuote( quote ) ); And the resultant HTML file reads as follows: form wicket:id=step_1 id=step__15 method=post action=?wicket:interface=:2:step_1::IFormSubmitListener::div style=display:noneinput type=hidden name=step__15_hf_0 id=step__15_hf_0 //div Thanks in advance for your help! Steve - 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: Remove error message for a specific component
Thanks I have another question. I use the following code to validate a field onblur event. I have couple of those fields. When the first field is validated, it displays error message for it. But when the second field is invalid, it displays error message for it, and removes error message for the first field. Also once I click submit, it does not show error messages for these fields. field1.add(new AjaxFormComponentUpdatingBehavior(onblur) { private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { Pattern pattern = Pattern.compile([0-9]*); if (data.getField1()!= null !pattern.matcher(data.getField1()).matches()) { error(Field contains invalid characters.); target.addComponent(feedback); field1.add(new SimpleAttributeModifier( class, error)); } else { field1.add(new SimpleAttributeModifier( class, )); } target.addComponent(field1); } }); On Mon, Mar 15, 2010 at 2:25 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: getsession().getfeedbackmessages().clear(new ifeedbackmessagefilter() { accept(feedbackmessagefilter f) { f.getreporter()==component; } -igor On Mon, Mar 15, 2010 at 10:59 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, How can I remove error message for a specific component? In the Component.class, it checks that the component is valid the following way: public final boolean hasErrorMessage() { return Session.get().getFeedbackMessages().hasErrorMessageFor(this); } I need to remove error message for specific components to make them valid. Thanks, Anna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anna Simbirtsev (416) 729-7331
Re: TinyMCE components in WicketStuff
There's already a jira issue from Feb '09: http://wicketstuff.org/jira/browse/WCTINYMCE-6 I can try to put in a patch. My Sourceforge ID is bgoldowsky if you'd like to give me access. Bng Igor Vaynberg wrote: there is a jira instance on wicketstuff where you can report bugs. however, i dont think the project is maintained so most likely no one will pay attention to the jira entry. if you would like to take over the maintenance we can grant you svn access. -igor On Fri, Mar 5, 2010 at 9:13 AM, Boris Goldowsky bgoldow...@cast.org wrote: Just curious, is the TinyMCE wicketstuff project abandoned, or are there plans to update it? It's using a version of TinyMCE from 2008. If we updated it, is there someone that we should send patches to? Boris - 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: TinyMCE components in WicketStuff
you should have svn access -igor On Mon, Mar 15, 2010 at 12:33 PM, Boris Goldowsky bgoldow...@cast.org wrote: There's already a jira issue from Feb '09: http://wicketstuff.org/jira/browse/WCTINYMCE-6 I can try to put in a patch. My Sourceforge ID is bgoldowsky if you'd like to give me access. Bng Igor Vaynberg wrote: there is a jira instance on wicketstuff where you can report bugs. however, i dont think the project is maintained so most likely no one will pay attention to the jira entry. if you would like to take over the maintenance we can grant you svn access. -igor On Fri, Mar 5, 2010 at 9:13 AM, Boris Goldowsky bgoldow...@cast.org wrote: Just curious, is the TinyMCE wicketstuff project abandoned, or are there plans to update it? It's using a version of TinyMCE from 2008. If we updated it, is there someone that we should send patches to? Boris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: datetime and yui clash
In case anyone was wondering, this issue seems to be fixed with the latest snapshot of YUI that was released today. -Original Message- From: Josh Chappelle [mailto:jchappe...@4redi.com] Sent: Friday, March 12, 2010 3:48 PM To: users@wicket.apache.org Subject: RE: datetime and yui clash This issue might be specific to IE8. I can't reproduce it in Chrome. I haven't tried others. Josh -Original Message- From: Josh Chappelle [mailto:jchappe...@4redi.com] Sent: Friday, March 12, 2010 12:36 PM To: users@wicket.apache.org Subject: datetime and yui clash Hi, I am upgrading our software to use wicket 1.4.7 and have run into an issue. We have a wicketstuff-yui menu that is using the 1.4.2 snapshot of yui. Then I have a DatePicker from the wicket-datetime jar added to a DateTextField. When I click the picker icon nothing happens. If I remove the main menu then it works. My guess is that there are some overlapping javascript calls going on with the yui stuff. I tried overriding the includeYUILibraries() method to return false on the DatePicker but this still did not work. Any ideas? Thanks, Josh - 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
Recommend two good complete clean Wicket+Spring+Hibernate apps?
Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
You can try my demo application I used for my Advanced Wicket presentation: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Mon, Mar 15, 2010 at 10:05 PM, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - 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: Recommend two good complete clean Wicket+Spring+Hibernate apps?
Hello James, Thank you! Best, -David --- On Mon, 3/15/10, James Carman jcar...@carmanconsulting.com wrote: From: James Carman jcar...@carmanconsulting.com Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps? To: users@wicket.apache.org Date: Monday, March 15, 2010, 10:09 PM You can try my demo application I used for my Advanced Wicket presentation: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Mon, Mar 15, 2010 at 10:05 PM, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - 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: Recommend two good complete clean Wicket+Spring+Hibernate apps?
James, I just downloaded your application. Do you have any documentation/presentation about this application? Do you happen to have knowledge of another good sample/demo app? Thanks, David --- On Mon, 3/15/10, James Carman jcar...@carmanconsulting.com wrote: From: James Carman jcar...@carmanconsulting.com Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps? To: users@wicket.apache.org Date: Monday, March 15, 2010, 10:09 PM You can try my demo application I used for my Advanced Wicket presentation: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Mon, Mar 15, 2010 at 10:05 PM, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - 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: Recommend two good complete clean Wicket+Spring+Hibernate apps?
On Mon, Mar 15, 2010 at 10:57 PM, David Chang david_q_zh...@yahoo.com wrote: James, I just downloaded your application. Do you have any documentation/presentation about this application? I didn't really have a slide presentation for this talk. I basically just walked through code. I did it as a day in the life of a Wicket programmer where I implemented some user stories on-the-fly. Do you happen to have knowledge of another good sample/demo app? Wicket Iolite (http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite) is another good example, or the example that comes with Wicketopia (work in progress). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
James, the info is fantastic! Many thanks!!! -David --- On Mon, 3/15/10, James Carman jcar...@carmanconsulting.com wrote: From: James Carman jcar...@carmanconsulting.com Subject: Re: Recommend two good complete clean Wicket+Spring+Hibernate apps? To: users@wicket.apache.org Date: Monday, March 15, 2010, 11:02 PM On Mon, Mar 15, 2010 at 10:57 PM, David Chang david_q_zh...@yahoo.com wrote: James, I just downloaded your application. Do you have any documentation/presentation about this application? I didn't really have a slide presentation for this talk. I basically just walked through code. I did it as a day in the life of a Wicket programmer where I implemented some user stories on-the-fly. Do you happen to have knowledge of another good sample/demo app? Wicket Iolite (http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite) is another good example, or the example that comes with Wicketopia (work in progress). - 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: Resource authorisation scenario: dealing with non-application wide permissions
Danielle, I run out into the same problem. Did you solve it? if so, how? thanks in advance On Thu, Feb 11, 2010 at 11:50 PM, Daniele Dellafiore ilde...@gmail.comwrote: Hi. Imagine this scenario: a webapp that allows creation of groups of people. There is the owner, the administrator and the normal user for every group. Like google groups, yahoo groups, facebook groups, a chat... a lot of examples :) If we define permission as string concatenation, I can have group:delete as permission. In this scenario the permission is not application wide, but group specific. Is related to the entity of my domain: Group. Unfortunately I have no idea how to solve my problem in AuthStrategy, where I can just access the user, not his particular Role in the specific group of my webapp, I do not have enough information. I can't know in isActionAuthorized method what is the group to ask authorization access for group.delete permission. If I know which is the group (domain entity) I can ask the user for the role he has in the group, and see if it's role has group.delete permission. Or any similar implementation, the point is that I miss an information. What can be a nice way to solve this problem with Wicket AuthorizationStrategy? I have just read a recent article about how to integrate shiro and wicket: http://blog.tauren.com/2010/01/using-wicket-with-shiro-for.html My point with that solution is that as far as I know, overriding isVisible() is a discouraged practice. More over, the visibility control for authorisation access has better room in the AuthorizationStrategy and if I remember fine, what change is the isVisibilityAllowed(). I can just figure out to to put that information (the role of the subject in the group) in the Action, but I have to learn how. Do you think should be a nice idea? Or maybe I am making my life harder for nothing and setting visibilityAllowed (or even override that method) would be fine enough? I think I can save a lot of ifs or a lot of override if I Can figure out a way to implement it the way I described. I will sleep on this :) -- Daniele Dellafiore http://danieledellafiore.net -- Fernando Wermus. www.linkedin.com/in/fernandowermus