Re: Feedback/Error message.
Hi I am trying to build a web application in which i have to display list of items on search... this part has been done but i have to add a errror message in the same page if the search result comes out null... I am using DataView for displaying the results. using condition in java is simple but for the unreachable id that i mention in condition the mark up is not being rendered if the condition is true. any help is well appriciated... Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-Error-message-tp1874404p4666330.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Error search message in same page
Hi I am trying to build a web application in which i have to display list of items on search... this part has been done but i have to add a errror message in the same page if the search result comes out null... I am using DataView for displaying the results. using condition in java is simple but for the unreachable id that i mention in condition the mark up is not being rendered if the condition is true. any help is well appriciated... Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-search-message-in-same-page-tp4666331.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error search message in same page
My Java code: String JOBNUMBER = params.get(jobnumber).toString(); list = DBUtils.retrieveJob(JOBNUMBER); if(list.size() == 0){ */setResponsePage(SearchError.class);/* }else{ final DataView dataView = new DataView(jobs, new ListDataProvider(list)) { @Override protected void populateItem(final Item item) { final MYJobBean job = (MYJobBean) item.getModelObject(); item.add(new Label(label1, job.getJobNumber())); item.add(new Label(label2, job.getJobType())); item.add(new Label(label3, job.getJobClass())); } }; dataView.setItemsPerPage(10); add(dataView); add(new CustomPagingNavigator(navigator, dataView)); And my mark up is : br wicket: extend div wicket:id=navigator/div p class=jobdata_p Job Number /p p class=jobdata_p Job Type /p p class=jobdata_p Job Class /p p class=jobdata_p1 /p p class=jobdata_p1 /p p class=jobdata_p1 /p div wicket:id=navigator/div /wicket: extend I want to replace the setResponsePage(SearchError.class); so that i can get rid of extra page Initially i tried to add extra label in if condition and mark up for that but it did not work. I am new to wicket and havent got hold of it yet Martin Grigorov-4 wrote Hi, What did you try so far ? Martin Grigorov Wicket Training and Consulting On Sat, Jun 21, 2014 at 4:14 PM, K lt; kondetiudaykiran@ gt; wrote: Hi I am trying to build a web application in which i have to display list of items on search... this part has been done but i have to add a errror message in the same page if the search result comes out null... I am using DataView for displaying the results. using condition in java is simple but for the unreachable id that i mention in condition the mark up is not being rendered if the condition is true. any help is well appriciated... Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-search-message-in-same-page-tp4666331.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-search-message-in-same-page-tp4666331p4666354.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error search message in same page
Hi Martin Grogorov thanks a lot for the reply. Now i realize that its simple solution... Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-search-message-in-same-page-tp4666331p4666357.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Custom Pagination
:526) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1436) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1530) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689) at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76) at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112) at org.apache.wicket.Component.internalRenderComponent(Component.java:2551) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1494) at org.apache.wicket.Component.internalRender(Component.java:2381) at org.apache.wicket.Component.render(Component.java:2309) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555) at org.apache.wicket.Page.onRender(Page.java:887) at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142) at org.apache.wicket.Component.internalRender(Component.java:2381) at org.apache.wicket.Component.render(Component.java:2309) at org.apache.wicket.Page.renderPage(Page.java:1024) at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:274) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175) at org.apache.wicket.core.request.handler.RequestSettingRequestHandler.respond(RequestSettingRequestHandler.java:78) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-Pagination-tp4666387.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Custom Pagination
My Mark-up: html xmlns:wicket=http://wicket.apache.org; head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleCustom PagingNavigator/title /head body wicket:panel an wicket:id=first | nbsp; an wicket:id=prev | spa wicket:id=navigator spa wicket:id=page1/spa spa wicket:id=navigation/spa spa wicket:id=of/spa spa wicket:id=total/spa |/spa an wicket:id=next | nbsp; an wicket:id=last /wicket:panel /body /html Note that i changed* newNavigation()* method... Any help is much appreciated...Thanks. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-Pagination-tp4666387p4666389.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Custom Pagination
Hey sven thanks for the reply i have resolve the issue now i have been trying to trying to implement something like (textbox) of (totalnumberofpages) any suggestions on this - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-Pagination-tp4666387p4666397.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Pagination in wicket
Hey there i have been trying to trying to implement something like (textbox) of (totalnumberofpages) any suggestions on this Thanks in advance... - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pagination-in-wicket-tp1878842p4666398.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Pagination in wicket
Hey Jesse Thanks for the response... it works well - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pagination-in-wicket-tp1878842p4666412.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
removing table when the output list is empty in listview/dataview
H2 /p p H3 /p p H4 /p p H5 /p div wicket:id=navigator align=right/div /wicket: extend /body and my page looks like this http://apache-wicket.1842946.n4.nabble.com/file/n429/Capture.png now i dont want to display the second table when it does not have any values... - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/removing-table-when-the-output-list-is-empty-in-listview-dataview-tp429.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: removing table when the output list is empty in listview/dataview
tdx class=data_tdx_data para span1 wicket:id=jobNumberLabel/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=parentJobparentJob/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=jobTypejobType/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=whoSubmittedwhoSubmitted/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=objectTypeobjectType/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=objectNumberobjectNumber/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=objectrxevisionobjectrxevision/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=jobStatusjobStatus/span1 /para /tdx /trx /tablex div wicket:id=navigator align=right/div /wicket: extend tablex class=footer trx tdx width=20%p class=footer_p_left/para/tdx tdx width=69%nbsp;/tdx tdx width=1% valign=top css/Logo.png /tdx tdx width=10% align=left valign=bottomp class=footer_p_rightcopy; 2014 /para/tdx /trx /tablex /body /html Thanks a lot - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/listview-dataview-tp429p4666719.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: removing table when the output list is empty in listview/dataview
tdx class=data_tdx_data para span1 wicket:id=jobNumberLabel/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=parentJobparentJob/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=jobTypejobType/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=whoSubmittedwhoSubmitted/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=objectTypeobjectType/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=objectNumberobjectNumber/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=objectrxevisionobjectrxevision/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=jobStatusjobStatus/span1 /para /tdx /trx /tablex div wicket:id=navigator align=right/div /wicket: extend tablex class=footer trx tdx width=20%p class=footer_p_left/para/tdx tdx width=69%nbsp;/tdx tdx width=1% valign=top css/Logo.png /tdx tdx width=10% align=left valign=bottomp class=footer_p_rightcopy; 2014 /para/tdx /trx /tablex /body /html Thanks a lot - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/listview-dataview-tp429p4666720.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: removing table when the output list is empty in listview/dataview
(); params.add(jobNumber, job.getJobNumber()); setResponsePage(bDetails.class, params); } }; jobNumberLink.add(new Label(jobNumberLabel, job .getJobNumber())); item.add(jobNumberLink); item.add(new Label(parentJob, job.getParentJob())); item.add(new Label(jobType, job.getJobType())); item.add(new Label(whoSubmitted, job.getWhoSubmitted())); item.add(new Label(objectType, job.getObjectType())); item.add(new Label(objectNumber, job.getObjectNumber())); item.add(new Label(objectRevision, job.getObjectRevision())); item.add(new Label(jobStatus, job.getJobStatus())); } }; dataView.setItemsPerPage(12); add(dataView); add(new Label(h1, Job Number)); add(new Label(h2, Parent Job)); add(new Label(h3, Job Type)); add(new Label(h4, Submitted By)); add(new Label(h5, Object Type)); add(new Label(h6, Object Number)); add(new Label(h7, Object Revision)); add(new Label(h8, Job Status)); add(new CustomPagingNavigator(navigator, dataView)); } } - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/listview-dataview-tp429p4666721.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: removing table when the output list is empty in listview/dataview
/tdx tdx class=data_tdx_data para span1 wicket:id=objectrxevisionobjectrxevision/span1 /para /tdx tdx class=data_tdx_data para span1 wicket:id=jobStatusjobStatus/span1 /para /tdx /trx /tablex div wicket:id=navigator align=right/div /wicket: extend tablex class=footer trx tdx width=20%p class=footer_p_left/para/tdx tdx width=69%nbsp;/tdx tdx width=1% valign=top css/Logo.png /tdx tdx width=10% align=left valign=bottomp class=footer_p_rightcopy; 2014 /para/tdx /trx /tablex /body /html Thanks a lot - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/listview-dataview-tp429p4666722.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Table borders in dataview/listview
Hey i have been getting a thick borders in my table at a reguler intervals when i am using listview or dataveiw. I donno if this is an issue related to wicket, still Here is a image http://apache-wicket.1842946.n4.nabble.com/file/n4666732/Capturex.png Thanks in Advance - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Table-borders-in-dataview-listview-tp4666732.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Table borders in dataview/listview
Hey Martin grigorov thanks and about my previous mail i actually wanted you to view my html so i replaced my tags by adding X in the end. if i had pasted the markup directly it was displaying the page. thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Table-borders-in-dataview-listview-tp4666732p4666734.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Table borders in dataview/listview
Hi It is definately html/mozilla issue. If any facing this issue try using Border-Spacing: 0; in CSS instead of Border-Collapse Cheers - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Table-borders-in-dataview-listview-tp4666732p4666739.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
TabbedPanel
Hi I am trying to implement an example for tabbed panel page in wicket but it does not work. I have stripped off few methods that i thought were not necessary for my current scenario. I am not sure if i missed something. Please suggest. Mark-up: Tabbed Panel Page tabbedpanelpage.txt http://apache-wicket.1842946.n4.nabble.com/file/n4668589/tabbedpanelpage.txt Java Code: Tabbed Panel Page tabbedpanelpage(1).txt http://apache-wicket.1842946.n4.nabble.com/file/n4668589/tabbedpanelpage%281%29.txt Mark-up: TabPanel1 (TabPanel2 TabPanel3 are same ) tabpanel1.txt http://apache-wicket.1842946.n4.nabble.com/file/n4668589/tabpanel1.txt My Log: Constructor: AbstractTab : 1 AbstractTab : 2 AbstractTab : 3 getPanel: 1 TabPanel1 my application terminates at this point. Thanks in advance. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-tp4668589.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Title tab in Tabbedpanel
Hi i am workin with tabbedpanel in wicket. i have created a tabbedpanel for my search page http://apache-wicket.1842946.n4.nabble.com/file/n4668837/tabpanel.png My requirement is to create a tabbedpanel of three tabs with title. i am using additional tab (Dummytab in this case) to compensiate for the title. please suggest how to create a title tab. Thanks in advance - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Title-tab-in-Tabbedpanel-tp4668837.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Switching between wicket tabs
Hi I have a similar issue. i am trying to navigate to tab i intend to but issue is i have parameters i need to forward to that tab. can anyone suggest how to handle it. Scenario: i have list of items displaying in tab1 and when i click on the item it has to be redirected to tab3 with the item details (lets say username and password). Thanks in advance K - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p4668862.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
current page highlighting
Hi all i am trying to create dynamic navigation links in which current page link should be highlighted but i am unable to get desired outcome. i am using listview to display my menu items but unable to highlight the current page link. please suggest necessary changes ListHeaderListItems is list of pojo item. my pojo has two fields label(String) and destPage(Class) My Mark-up: Thanks in advance - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/current-page-highlighting-tp4668902.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do I get the current page?
Hi i am working on the same thing and i have not been able to achieve the desired outcome. i would appericiate any suggestions. i have posted complete details here http://apache-wicket.1842946.n4.nabble.com/current-page-highlighting-td4668902.html http://apache-wicket.1842946.n4.nabble.com/current-page-highlighting-td4668902.html Thanks. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-do-I-get-the-current-page-tp1851661p4668903.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do I get the current page?
Hi Aksarben i have a web application in which there are six links in main menu. i want my app to highlight the link that is selected. http://apache-wicket.1842946.n4.nabble.com/file/n4668907/Capture.png My code: ListHeaderListItems is list of pojo item. my pojo has two fields label(String) and destPage(Class) My Mark-up: - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-do-I-get-the-current-page-tp1851661p4668907.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Removing table coloumn headers in wicket pageablelistview when list is empty
Hi all I am using Wicket PageableListView to display a list data. If the data list that is to be displayed inside the table is empty then the table gets rendered with all the column headers and a label in the first. is there a way to remove those column headers and labels. I would also like to know how to add now records found in a column under column headers and labels (similar to DataTable). Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Removing-table-coloumn-headers-in-wicket-pageablelistview-when-list-is-empty-tp4669246.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Removing table coloumn headers in wicket pageablelistview when list is empty
Hi lucast Thanks for the response. i have tried the exact same thing and had success with it. Cheers On Fri, Feb 6, 2015 at 3:13 PM, lucast [via Apache Wicket] ml-node+s1842946n4669328...@n4.nabble.com wrote: Hi K, If you want to hide the headers when the table is empty, you could use wicket:enclosure as suggested on the wicket guide https://wicket.apache.org/guide/guide/single.html#keepControl_9. I have used the PagingPage from Wicket Examples (you can download it from Apache Wicket page) to illustrate this. I don't know how you check if the table is empty. I just went for dataView.getItemCount(). If you want the table with headers hidden, just call dataView.setVisible(false); And on HTML, use wicket:enclosure. Example: wicket:enclosure child='pageable' table cellspacing=0 class=dataview tr thActions/th thID/th thFirst Name/th thLast Name/th thHome Phone/th thCell Phone/th /tr tr wicket:id=pageable tdspan wicket:id=actions[actions]/span/td tdspan wicket:id=contactid[contactid]/span/td tdspan wicket:id=firstname[firstname]/span/td tdspan wicket:id=lastname[lastname]/span/td tdspan wicket:id=homephone[homephone]/span/td tdspan wicket:id=cellphone[cellphone]/span/td /tr /table /wicket:enclosure Note that on wicket:enclosure tag, I had to name the child it was referring to: pageable. Otherwise, it will throw an exception because wicket will not know which element you are referring to, in this case. Let me know if that works, Kind regards, Lucas -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Removing-table-coloumn-headers-in-wicket-pageablelistview-when-list-is-empty-tp4669246p4669328.html To unsubscribe from Removing table coloumn headers in wicket pageablelistview when list is empty, click here http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4669246code=a29uZGV0aXVkYXlraXJhbkBnbWFpbC5jb218NDY2OTI0NnwxMDIzNzI0OTQ1 . NAML http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Removing-table-coloumn-headers-in-wicket-pageablelistview-when-list-is-empty-tp4669246p4669330.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: replacing panels using replaceWith in wicket
Hi i have been strugguling with this for a while. could you please suggest changes. Scenario: when i search for a job, if a job exists job is displayed in this panel and if the job does not exist it is redirected back to the search panel. i am unable to redirect back to the search panel. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replacing-panels-using-replaceWith-in-wicket-tp4669020p4669056.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
replacing panels using replaceWith in wicket
Hi i am trying to navigate between two panels. my code has a condition where if false it has to go back to the actual panel with parameters which in turn prints a error msg in feedbackpanel. i am getting this error when condition is true. Please suggest how to redirect to actual panel. Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replacing-panels-using-replaceWith-in-wicket-tp4669020.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket panel #oninitilize for replacing
Hi i have been strugguling with this for a while. could you please suggest changes. Scenario: when i search for a job, if a job exists job is displayed in this panel and if the job does not exist it is redirected back to the search panel. i am unable to redirect back to the search panel. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket panel #oninitilize for replacing
@sven Thanks for your response 1. i am using nested panels, searchinnerpanel and jobdetailspanel are present in searchbodypanel hence i could not use page to handle the retrival logic. 2. these panels were actually pages hence pageparameters i plan on changing it. - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063p4669067.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: replacing panels using replaceWith in wicket
thanks Sven i wanted to know how to get around it. i got the solution for it. Using #onInitilize() method to add the jobdetails panel and then use the replacewith method. Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replacing-panels-using-replaceWith-in-wicket-tp4669020p4669022.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
passing parameters to wicket panel
firstly wish you all a very happy new year. i am moving my data tables in to a panel from webpage. i was using pageparameters to pass required parameters on clicking the link for retrieving data and displaying it in the next page. now that i have moved those tables in to a panel i am not sure how to forward those parameters in panels. My calling Method: My Panel Constructor: i have tried to replace PageParameters with IModel but it did not work. Please suggest. Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/passing-parameters-to-wicket-panel-tp4668939.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Check Box in pageablelistview
Hey how are the selected records stored and how can i use it. i understand that on form submission these records are submitted but i am not clear on how and where. this is how the page looks like http://apache-wicket.1842946.n4.nabble.com/file/n4670625/1.png Thanks in Advance - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Check-Box-in-pageablelistview-tp4670625.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Check Box in pageablelistview
Hi Martin I am new to wicket so can you please tell me how to use the data stored in checkbox's model. i tried doing that but i have been getting a null pointer exception. Thanks - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Check-Box-in-pageablelistview-tp4670625p4670650.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Check Box in pageablelistview
Hey Martin I got what i was trying to acheive but i am not su7re if it is optimal solution. I created my own Model and added the object to a list when check box is selected. and i called it in my listview if this is not optimal please suggest Thank You - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Check-Box-in-pageablelistview-tp4670625p4670652.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how to get incoming request from external application in wicket.
Hi i am integrating wicket with other application which invokes wicket application. how can i get the request that invokes the wicket application. I need the request to do user validations by retrieving the session and logged in user information. ii have to do it in WebApplication so that i can redirect to relevant pages based on validation result i am using wicket 6.14. thanks in advance - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-incoming-request-from-external-application-in-wicket-tp4676612.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
unable to retrieve HTTPServletRequest parameters
Hi I am trying to retrieve HTTPServletRequest parameters from a incoming request from an external application. i am using HttpServletRequest req = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest(); in my home page, when i try to print the request parameters or getparameternames.size i get null and 0 respectively. i need the parameter values to retrieve the session and logged-in user information of the application that the request is coming from. can anyone point out what is to be done? Thanks in advance - K -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/unable-to-retrieve-HTTPServletRequest-parameters-tp4676661.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problem with IE6 and Wicket DropDownChoice using AjaxSelfUpdatingBehavior
That works fine it only happens on my site. I am assuming you mean this example http://www.wicket-library.com/wicket-examples/ajax/choice.1 igor.vaynberg wrote: can you get the ajax wicket-example with two linked dropdowns to error out on one of your pcs? -igor On 8/15/07, Daryl K [EMAIL PROTECTED] wrote: I am experiencing a problem with IE6 using Wicket AjaxSelfUpdatingBehavior on two DropDownChoice components. When one choice is select in a drop down list the other on updates with choices based on what the user selected from the first box. My problem is for some of are users who run IE6 they receive a JavaScript error object expected when they try to select a choice using the DropDownChoice components. When this error happens the AjaxSelfUpdatingBehavior fails and the DropDownChoice components are empty. This problem is intermittent and does it not affect everyone. I have two PC in my office both running the exact same version of IE6 one PC has this problem the other does not. I have Firefox and Netscape on both PC's and they work fine on both. Has anyone every heard of a problem like this with IE6 and Wicket before? I am running Version 6.0.2900.2180.xpsp_sp2_gdr.0702272254CO on Windows XP Professional with SP2 I am using Wicket version 1.2.6 running on Weblogic 8 Attached are the files for the components that throw the JavaScript error. http://www.nabble.com/file/p12163099/CatRsnPanel.html CatRsnPanel.html http://www.nabble.com/file/p12163099/CatRsnPanel.java CatRsnPanel.java -- View this message in context: http://www.nabble.com/Problem-with-IE6-and-Wicket-DropDownChoice-using-AjaxSelfUpdatingBehavior-tf4273458.html#a12163099 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-IE6-and-Wicket-DropDownChoice-using-AjaxSelfUpdatingBehavior-tf4273458.html#a12165146 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ResourceModel class isn't extensible
Althought it is not final and does not contain final methods it is still not so extensible as expected. The idea is to delegate the real work from AssignmentWrapper back to ResourceModel class, for instance: private class AssignmentWrapper extends AbstractReadOnlyModel implements IWrapModel { private final Component component; public AssignmentWrapper(Component component) { this.component = component; } public void detach() { super.detach(); ResourceModel.this.detach(); } public Object getObject() { return ResourceModel.this.getResourceString(component); } public IModel getWrappedModel() { return ResourceModel.this; } } public class ResourceModel() { public String getResourceString(Component component) { return Application.get().getResourceSettings().getLocalizer().getString(getKey(), component, getDefaultValue(); } the latter use getters instead of access to fields to allow overriding the way how keys are constructed. As the result it won't be difficult to extend ResourceModel to provide localization for bean property names, menu item labels and so forth. Actually it is not so difficult to accomplish the same with my own class but it clutters the code and does not make classes consistent, so I had to replace the use of basic ResourceModel class with my own one. -- View this message in context: http://www.nabble.com/ResourceModel-class-isn%27t-extensible-tp22675204p22675204.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
what is the state of wicket-contrib?
I'm concerned about where I can get wicket-contrib-yui? Sourceforge download page privide several outdated projects and does not provide wicket-contrib-yui at all. -- View this message in context: http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22679385.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: what is the state of wicket-contrib?
Thanks Jeremy. I will have a look at snaphot. But what I'm concerned about ... I would like to include just stable versions of components into my project. Is it possible to find a stable version of yui integration for wicket 1.3.5? Jeremy Thomerson-5 wrote: There is no wicket-contrib project. There is a project that was wicket-contrib-yui. If that's what you need, the source is here: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/ Run these three commands and you'll have it: svn co https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core cd wicketstuff-core mvn clean install Or you can find snapshots here: http://wicketstuff.org/maven/repository/org/wicketstuff/yui/ Or the 1.4-RC2 release in this repo: http://www.wickettraining.com/ws-repo -- Jeremy Thomerson http://www.wickettraining.com On Wed, Mar 25, 2009 at 12:07 PM, Vladimir K koval...@gmail.com wrote: Anyone? Is wicket-contrib a dead project? Vladimir K wrote: I'm concerned about where I can get wicket-contrib-yui? Sourceforge download page privide several outdated projects and does not provide wicket-contrib-yui at all. -- View this message in context: http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22706493.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22707493.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
Switching SecondLevelCacheSessionStore to HttpSessionStore throws ClassCastException
Hi, I encountered java.io.InvalidClassException when trying to change from default SecondLevelCacheSessionStore to HttpSessionStore. The exceptions are shown below: org.apache.wicket.protocol.http.HttpSessionStore cannot be cast to org.apache.wicket.protocol.http.SecondLevelCacheSessionStor e java.lang.ClassCastException: org.apache.wicket.protocol.http.HttpSessionStore cannot be cast to org.apache.wicket.protocol.ht tp.SecondLevelCacheSessionStore at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.getStore(SecondLevelCacheSessi onStore.java:366) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionSto re.java:303) at org.apache.wicket.Session.getPage(Session.java:751) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.cayenne.conf.WebApplicationContextFilter.doFilter(WebApplicationContextFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apaat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) there was an error detaching the request from the session [EMAIL PROTECTED] java.lang.ClassCastException: org.apache.wicket.protocol.http.HttpSessionStore cannot be cast to org.apache.wicket.protocol.ht tp.SecondLevelCacheSessionStore at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.getStore(SecondLevelCacheSessi onStore.java:366) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionSto re.java:332) at org.apache.wicket.Session.requestDetached(Session.java:1370) at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1081) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1367) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.cayenne.conf.WebApplicationContextFilter.doFilter(WebApplicationContextFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) .. --- The code shown below: public class AtsApplication
Re: Switching SecondLevelCacheSessionStore to HttpSessionStore throws ClassCastException
Yes, you were right. I realized there are two users were logon just before I restarted Tomcat. As a result, the browser were trying to load the old sessions from Tomcat. Thanks for your help. Michael - Original Message From: Johan Compagner [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Saturday, July 19, 2008 4:57:40 AM Subject: Re: Switching SecondLevelCacheSessionStore to HttpSessionStore throws ClassCastException Are you sure you dont read in a serializef session from tomcat when you are starting up? If you use a new browser instance so that you really have a new session do you still have this problem? On 7/18/08, Michael K [EMAIL PROTECTED] wrote: Hi, I encountered java.io.InvalidClassException when trying to change from default SecondLevelCacheSessionStore to HttpSessionStore. The exceptions are shown below: org.apache.wicket.protocol.http.HttpSessionStore cannot be cast to org.apache.wicket.protocol.http.SecondLevelCacheSessionStor e java.lang.ClassCastException: org.apache.wicket.protocol.http.HttpSessionStore cannot be cast to org.apache.wicket.protocol.ht tp.SecondLevelCacheSessionStore at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.getStore(SecondLevelCacheSessi onStore.java:366) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionSto re.java:303) at org.apache.wicket.Session.getPage(Session.java:751) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.cayenne.conf.WebApplicationContextFilter.doFilter(WebApplicationContextFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apaat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) there was an error detaching the request from the session [EMAIL PROTECTED] java.lang.ClassCastException: org.apache.wicket.protocol.http.HttpSessionStore cannot be cast to org.apache.wicket.protocol.ht tp.SecondLevelCacheSessionStore at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.getStore(SecondLevelCacheSessi onStore.java:366) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionSto re.java:332) at org.apache.wicket.Session.requestDetached(Session.java:1370) at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1081) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1367) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387
Wicket job opportunity New York City
Hi Wicket Users, Kikin is currently looking for a Java Frontend Developer with a background in Wicket. We are already doing some pretty interesting things with Wicket, using it both for regular website stuff as well as for embedded widgets. It is a great position that allows you to push Wicket to its limit, build up a component library, work with a wide variety of content and also get to work on select middleware pieces. The ideal candidate has a proven track record in developing with Java frontend technologies (including Wicket), strong knowledge of DHTML, DOM, AJAX, Javascript, Browser compatibility and has attention to detail. This is a fulltime position based in SoHo/NYC with competitive pay and benefits. No contractors or recruiters please. For the right candidate we are more than willing to help with relocating to NYC. We are an early stage startup that is developing a new way of web personalization that will turn the industry upside down. We are fully funded and have an experienced team of founders that have multiple successful exits under their belt. While we are still in private beta, our product is already being used by 1 users every day. If you are interested to learn more about this opportunity, please send your resume to jobs at kikin.com. Thanks, Gerald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: defaultFormProcessing is no longer considered when processing multipart form in ajax request
it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - 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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377594.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: defaultFormProcessing is no longer considered when processing multipart form in ajax request
sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - 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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377594.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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377634.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: defaultFormProcessing is no longer considered when processing multipart form in ajax request
done https://issues.apache.org/jira/browse/WICKET-2463 Vladimir K wrote: sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - 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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377594.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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25397125.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: How to redirect from a ModalWindow
Try adding this one to the page markup script language=javascript type=text/javascript jQuery(document).ready(function(){ if (typeof Wicket != 'undefined' Wicket.Window) Wicket.Window.unloadConfirmation = false; }); /script Matthias Keller wrote: Hi Peter You would be right as long as it wasn't for a ModalWindow. When having an open ModalWindow, wicket seems to register an unload javascript event which - when trying to navigate away from the page (be it by following a link, closing the window etc), displays a confirmation message which you have to accept. I need to avoid that message, but the only way to do that probably is by closing that window first so that the javascript event gets unloaded. Matt Peter Ertl wrote: throw new RestartResponseException(OtherPage.class) window.close() is not needed! Am 10.09.2009 um 12:50 schrieb Matthias Keller: OtherPage.class - 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/How-to-redirect-from-a-ModalWindow-tp25381117p25411990.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: defaultFormProcessing is no longer considered when processing multipart form in ajax request
Igor, could you plan it for 1.4.2? Vladimir K wrote: done https://issues.apache.org/jira/browse/WICKET-2463 Vladimir K wrote: sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - 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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377594.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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25463838.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: defaultFormProcessing is no longer considered when processing multipart form in ajax request
Igor, thanks for the fix. I tried to compile against 1.4.2-20090916 and obtained two compilation errors. Now FormComponent does not contain method setPersistent() and Page does not contain method removePersistedFormData(). What API should be used instead? Vladimir K wrote: Igor, could you plan it for 1.4.2? Vladimir K wrote: done https://issues.apache.org/jira/browse/WICKET-2463 Vladimir K wrote: sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - 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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377594.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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25507890.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: defaultFormProcessing is no longer considered when processing multipart form in ajax request
I use 1.4-snapshot from http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.4-SNAPSHOT/ martin-g wrote: You have to use 1.4.x branch. trunk is for 1.5. form persistence is removed only in trunk El vie, 18-09-2009 a las 05:32 -0700, Vladimir K escribió: Igor, thanks for the fix. I tried to compile against 1.4.2-20090916 and obtained two compilation errors. Now FormComponent does not contain method setPersistent() and Page does not contain method removePersistedFormData(). What API should be used instead? Vladimir K wrote: Igor, could you plan it for 1.4.2? Vladimir K wrote: done https://issues.apache.org/jira/browse/WICKET-2463 Vladimir K wrote: sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - 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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377594.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25515394.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: defaultFormProcessing is no longer considered when processing multipart form in ajax request
The latest 1.4 snapshot does not define IComponentBorder interface in addition to disappeared form component persistence. Is it supposed that 1.4.2 breaks compatibility with 1.4.1? I see the only way to check the fix in wicket-ajax.js - mix it into wicket 1.4.1 jar. Vladimir K wrote: I use 1.4-snapshot from http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.4-SNAPSHOT/ Persistence of form components has been removed from 1.4 as well.z martin-g wrote: You have to use 1.4.x branch. trunk is for 1.5. form persistence is removed only in trunk El vie, 18-09-2009 a las 05:32 -0700, Vladimir K escribió: Igor, thanks for the fix. I tried to compile against 1.4.2-20090916 and obtained two compilation errors. Now FormComponent does not contain method setPersistent() and Page does not contain method removePersistedFormData(). What API should be used instead? Vladimir K wrote: Igor, could you plan it for 1.4.2? Vladimir K wrote: done https://issues.apache.org/jira/browse/WICKET-2463 Vladimir K wrote: sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - 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/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25377594.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/defaultFormProcessing-is-no-longer-considered-when-processing--multipart-form-in-ajax-request-tp25376538p25527927.html Sent from the Wicket - User mailing list
Re: defaultFormProcessing is no longer considered when processing multipart form in ajax request
Igor, it seems the 1.4 snapshot in the maven repository still contains 1.5 code. I built wicket from sources locally. When I tested the project against that build I found yet another problem. Attempt to submit the form (no matter what value the default processing flag has) led to response with 404 status. I realized that it was the UploadProgressBar's progressbar.js resource reference whose url was obtained using MixedParamHybridUrlCodingStrategy. I created a demo project and attached it to the following issue: https://issues.apache.org/jira/browse/WICKET-2491 Please have a look. I suppose the problem caused by request context that does not countain mounted part of the page so the url to the resource does not contain the ../../.. part and as the result being applied to the page with context /some/some/some causes 404. igor.vaynberg wrote: the problem is that trunk did not have version numbers updated so it was building as 1.4 for a while. this has been fixed so latest snapshots should be properly built out of branch. -igor On Sat, Sep 19, 2009 at 10:50 PM, Vladimir K koval...@gmail.com wrote: The latest 1.4 snapshot does not define IComponentBorder interface in addition to disappeared form component persistence. Is it supposed that 1.4.2 breaks compatibility with 1.4.1? I see the only way to check the fix in wicket-ajax.js - mix it into wicket 1.4.1 jar. Vladimir K wrote: I use 1.4-snapshot from http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.4-SNAPSHOT/ Persistence of form components has been removed from 1.4 as well.z martin-g wrote: You have to use 1.4.x branch. trunk is for 1.5. form persistence is removed only in trunk El vie, 18-09-2009 a las 05:32 -0700, Vladimir K escribió: Igor, thanks for the fix. I tried to compile against 1.4.2-20090916 and obtained two compilation errors. Now FormComponent does not contain method setPersistent() and Page does not contain method removePersistedFormData(). What API should be used instead? Vladimir K wrote: Igor, could you plan it for 1.4.2? Vladimir K wrote: done https://issues.apache.org/jira/browse/WICKET-2463 Vladimir K wrote: sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit wicket:message=value:command.cancelAction/input /div /form From my perspective the request is submitted very similar to as I remember submitting drop downs many years ago select onchange=this.form.submit(); The request parameters contain the name of the form instead of the name of the button. igor.vaynberg wrote: this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into a hidden iframe so the browser performs the serialization - and that should include the button. what markup is your button attached to? -igor On Wed, Sep 9, 2009 at 8:18 PM, Vladimir Kovalyuk koval...@gmail.com wrote: I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is in the new code in wicket-ajax.js // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { if (this.handleMultipart(form)) { return true; } var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; } return this.request.post(body); }, I believe the problem is caused by handleMultipart(form) invocation. submitForm function accepts submitButton parameter but does not passes it to handleMultipart function. Igor could you clarify that? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wrong path to wicket-event.js resulting in 404 after calling wicket from javascript
I believe the code that causes the problem is # @Override # protected CharSequence getURL() # { # return super.getURL() + String.format(TB_iframe=trueheight=%dwidth=%dmodal=false, getHeight(), getWidth()); # } IFAIK wicket encodes URL parameters in a special form. And the last part is the number of ../ required for prepending the resource urls. In your app it might be zero so wicket do not generate appropriate ../../.. for your app/shop/rozkovec mount string. Vit Rozkovec wrote: Hallo, I came across strange problem I do not know whether it is mine fault or wicket's problem. On a page, there is a widget, which list news records. Each record has an edit and delete link. Edit link opens new dialog in jquery's thickbox window, which is practically IFrame. The code for page, which holds form and which is displayed in the thickbox window: http://pastebin.com/m5ca60e78 The code for a link, which shows the thickbox window with a page in it: http://pastebin.com/m6339b3a En example usage: http://pastebin.com/m768350aa here on line 72 when I do: target.addComponent(ShopNewsWidgetPanel.this.get(news-container)); after ajax refresh of the component, which contains news records, each record containing edit link, there is 404 error found in the Ajax debug window. From firebug console I can find out that if I add a some component (here it is edit link, which is held by news-container), which also contains AbstractDefaultAjaxBehavior, then upon rendering head of the response, there is wrong path to wicket ajax resources: Correct path: http://localhost:8080/cz.madewithlove/app/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js Wrong path after ajax call: http://localhost:8080/cz.madewithlove/app/shop/rozkovec/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js The page is mounted like so: mount(new IndexedHybridUrlCodingStrategy(shop, ShopModulePage.class)); An ajax function, which is called in the page's ajax button onSubmit() method: function thickbox_window_close(url) { tb_remove(); //removes thickbox window // call url of the behavior, this behavior is attached to the link, which opens the page in thickbox window var wcall=wicketAjaxGet(url, null, null, function() {return true;}); return !wcall; } I could solve it by visiting all components of the parent container except behaviors and add them to the ajax request target, but it would be better to not bother about it and just add the parent container. Any pointers? - 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/Wrong-path-to-wicket-event.js-resulting-in-404-after-calling-wicket-from-javascript-tp25678997p25681934.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: Complicated workflows
I tried JBoss JBPM and it worked for complex compound workflows. It also had a eclipse designer plugin that could save the workflow image and provided a class that visualised the current workflow state. It had persistence module that was based on Hibernate. I had just to implement simple UI to present a user with workflows and tasks. I believe user can stay unaware about how complex is the workflow and whether it is compound. Phil Housley wrote: Hello list, I'm currently working on some ideas for building apps with fairly complex workflows. My aim is to find a nice pattern/framework for building apps where each unit of work involves many panels, several forms, lots of decisions and so on. In particular I'm aiming at apps where you need to be very confident about exactly what is happening, so very strict control of actions, being careful of multiple renderings of a page each trying to change the server data, and so on. Also, I'm wondering about some options for declarative building of workflows out of existing tasks. My current design involves running from a special page, which maintains a stack of tasks. One type of task is a Workflow, which can be configured to automatically spawn subtasks as required, based on the result of previous tasks. Another type of task is based on a panel, and is able to cause itself to be rendered. The stack processor makes sure that each task is invoked at the right time, that a task can render if it is at the top of the stack, that only the top of the stack can be invoked from a form and so on. This is working ok for some silly demo cases, but there are various issues. For example, any task that is not also a component cannot access dependency injection, or set error messages and so on. I'm not sure how to get around this at the moment, as I don't want to force every task to be a component, when many will likely have no cause to ever be rendered. So, the reason I'm posting is to ask mainly two things: 1) Is this of interest to anyone else? All the code is my own, so I'll open source it if there seems to be some future in it. 2) If so, does anyone have any comments on my current design? Clearly there are problems with it, but should I carry on trying to find ways to work around them, or does the whole thing sounds like so much crack? Thanks, -- Phil Housley - 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/Complicated-workflows-tp25671027p25682285.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: ProgressBar demo doesn't work for firefox 3.5.3
The UploadProgressBar does not work for me. -- View this message in context: http://www.nabble.com/ProgressBar-demo-doesn%27t-work-for-firefox-3.5.3-tp25717607p25729075.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: Proposal: Fake implementation of AjaxRequestTarget instead of null
Although it is possible I wouldn't recommend authoring certainly different UI basing on the asynchronisity of the request. For instance I experience inconvinience when mistakely opening Outlook Web Access in Firefox instead of MS IE and seeing a bit different non-ajaxy UI. All the handlers of fallback components in my code perform the same logic for ajax and non-ajax requests. The only difference is that I have to tell Wicket what components are invalidated due to changes in data model. I find it to be a good design style. That sort of information is just a garbage for the current Wicket rendering algorithm but thing could be different in the future if you decided to optimize the re-rendering process. From the other hand I would prefer to just call RequestTarget.isAjax() to distinguish what interface I should present to the user in case when it is reasonable different. Checking whether the object is null is much dangerous and non-self-descriptive. IMHO it is no-no design practice. Since the number of fallback components is pretty small it is not difficult to derive from them some project-local components and wrap event handling in a manner I proposed to guard from NPE. But intention was to improve the Wicket API not only for that particular case. igor.vaynberg wrote: On Sat, Oct 24, 2009 at 7:18 AM, Sven Meier s...@meiers.net wrote: I don't think he meant a *complete* no-op request target, just the method addComponent() would be a no-op. The fake request target will rerender the complete page as any other standard request would do. this is not possible. all public contracts of the request target have to be properly implemented. eg if a component was added it should be returned by getcomponents(), also any registered listeners have to be notified, etc. i really dont understand the point of this change. if you have a fake ajaxrequesttarget then the code for a fallback is essentially a noop, so your app is broken in fallback. most of the code i have written that utilizes the fallback functionality looks like this: onclick(target) { if (target==null) { setresponsepage(new editpage(...)); } else { setupInp+laceEditPanel(); } } the workflows are divergent. -igor BTW why don't we get rid of all those AjaxFallback... components and just let *all* Ajax... components support use of a standard HTML request as fallback? Regards Sven Martin Grigorov wrote: I think he meant wasting CPU cycles for constructing your components which will be added to no-op ajaxrequesttarget then you'll have to make check like if (target instanceOf NullAjaxRequestTarget) {return;} which is not better than before El sáb, 24-10-2009 a las 12:18 +0200, Andreas Petersson escribió: I think it absolutely makes sense (for a future release of wicket). having a NullObject instance of AjaxRequestTarget would not waste a lot of cpu cycles at all, at least not how i use it. the only thing i do with the object is call .addComponent() and then refering a already-initialized variable. how likely is it that the object is in fact null? its 5% of users who have javascript disabled. so this would affect only a small amount of requests. from a jvm perspective calling methods with empty bodys very often is not something expensive. they will get inlined by the hotspot compiler and be effectively free. (i am not 100% sure if this also applys to polymorphism chains.) from a clean-code prespective it is often considered a code smell to have a lot of null checks. in your example providing a FakeDatabaseConnection that throws an UnsrupportedOperationException(you have no database!) is better than seeing a null pointer exception. Sounds weird. Why should my component burn cpu cycles to feed a fake ajax target which does nothing at all? I would prefer some null checks in that case. Would you also provide a FakeDatabaseConnection in case you application does not support databases? :-) Am 24.10.2009 um 07:42 schrieb Vladimir Kovalyuk: I believe all those null-checks of request target can be omited in user code if fallback components would provide fake implementation of AjaxRequestTarget instead of passing null. Does it make sense? - 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:
Re: Proposal: Fake implementation of AjaxRequestTarget instead of null
Consistent UI is very important for the user, isn't it? It has nothing in common with my liking. My proposal is about how to make the Wicket user life simpler. Not only by omitting coding null-checks. It is about bugs related to forgotten null-checks. And it is about consistent API. I strive to limit the places where use of instanceof operator is by-design. igor.vaynberg wrote: On Sat, Oct 24, 2009 at 5:23 PM, Vladimir K koval...@gmail.com wrote: Although it is possible I wouldn't recommend authoring certainly different UI basing on the asynchronisity of the request. For instance I experience inconvinience when mistakely opening Outlook Web Access in Firefox instead of MS IE and seeing a bit different non-ajaxy UI. just because something is not to your liking doesnt mean it should not be possible, so modify your proposal accordingly. From the other hand I would prefer to just call RequestTarget.isAjax() to distinguish what interface I should present to the user in case when it is reasonable different. Checking whether the object is null is much dangerous and non-self-descriptive. IMHO it is no-no design practice. in that case it should just be an onclick() inside which you can do: if (requestcycle.getrequesttarget() instanceof ajaxrequesttarget) { } -igor Since the number of fallback components is pretty small it is not difficult to derive from them some project-local components and wrap event handling in a manner I proposed to guard from NPE. But intention was to improve the Wicket API not only for that particular case. igor.vaynberg wrote: On Sat, Oct 24, 2009 at 7:18 AM, Sven Meier s...@meiers.net wrote: I don't think he meant a *complete* no-op request target, just the method addComponent() would be a no-op. The fake request target will rerender the complete page as any other standard request would do. this is not possible. all public contracts of the request target have to be properly implemented. eg if a component was added it should be returned by getcomponents(), also any registered listeners have to be notified, etc. i really dont understand the point of this change. if you have a fake ajaxrequesttarget then the code for a fallback is essentially a noop, so your app is broken in fallback. most of the code i have written that utilizes the fallback functionality looks like this: onclick(target) { if (target==null) { setresponsepage(new editpage(...)); } else { setupInp+laceEditPanel(); } } the workflows are divergent. -igor BTW why don't we get rid of all those AjaxFallback... components and just let *all* Ajax... components support use of a standard HTML request as fallback? Regards Sven Martin Grigorov wrote: I think he meant wasting CPU cycles for constructing your components which will be added to no-op ajaxrequesttarget then you'll have to make check like if (target instanceOf NullAjaxRequestTarget) {return;} which is not better than before El sáb, 24-10-2009 a las 12:18 +0200, Andreas Petersson escribió: I think it absolutely makes sense (for a future release of wicket). having a NullObject instance of AjaxRequestTarget would not waste a lot of cpu cycles at all, at least not how i use it. the only thing i do with the object is call .addComponent() and then refering a already-initialized variable. how likely is it that the object is in fact null? its 5% of users who have javascript disabled. so this would affect only a small amount of requests. from a jvm perspective calling methods with empty bodys very often is not something expensive. they will get inlined by the hotspot compiler and be effectively free. (i am not 100% sure if this also applys to polymorphism chains.) from a clean-code prespective it is often considered a code smell to have a lot of null checks. in your example providing a FakeDatabaseConnection that throws an UnsrupportedOperationException(you have no database!) is better than seeing a null pointer exception. Sounds weird. Why should my component burn cpu cycles to feed a fake ajax target which does nothing at all? I would prefer some null checks in that case. Would you also provide a FakeDatabaseConnection in case you application does not support databases? :-) Am 24.10.2009 um 07:42 schrieb Vladimir Kovalyuk: I believe all those null-checks of request target can be omited in user code if fallback components would provide fake implementation of AjaxRequestTarget instead of passing null. Does it make sense? - 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
Re: Proposal: Fake implementation of AjaxRequestTarget instead of null
I use similar approach and wondering. ... how to make sure that one year later another developer will realize that there is a helper for her convinience? svenmeier wrote: Hi, thinking more about this 'issue' I realized that in these simple cases one can just use a simple helper method: onclick(target) { AjaxHelper.addComponent(componentToReRenderOnAjaxRequest); } It was already discussed how components could automagically be added for re-rendering on each AjaxRequest. Such a feature would make a lot of calls to AjaxRequestTarget#addComponent() obsolete. Regards Sven Vladimir K wrote: Although it is possible I wouldn't recommend authoring certainly different UI basing on the asynchronisity of the request. For instance I experience inconvinience when mistakely opening Outlook Web Access in Firefox instead of MS IE and seeing a bit different non-ajaxy UI. All the handlers of fallback components in my code perform the same logic for ajax and non-ajax requests. The only difference is that I have to tell Wicket what components are invalidated due to changes in data model. I find it to be a good design style. That sort of information is just a garbage for the current Wicket rendering algorithm but thing could be different in the future if you decided to optimize the re-rendering process. From the other hand I would prefer to just call RequestTarget.isAjax() to distinguish what interface I should present to the user in case when it is reasonable different. Checking whether the object is null is much dangerous and non-self-descriptive. IMHO it is no-no design practice. Since the number of fallback components is pretty small it is not difficult to derive from them some project-local components and wrap event handling in a manner I proposed to guard from NPE. But intention was to improve the Wicket API not only for that particular case. igor.vaynberg wrote: On Sat, Oct 24, 2009 at 7:18 AM, Sven Meier s...@meiers.net wrote: I don't think he meant a *complete* no-op request target, just the method addComponent() would be a no-op. The fake request target will rerender the complete page as any other standard request would do. this is not possible. all public contracts of the request target have to be properly implemented. eg if a component was added it should be returned by getcomponents(), also any registered listeners have to be notified, etc. i really dont understand the point of this change. if you have a fake ajaxrequesttarget then the code for a fallback is essentially a noop, so your app is broken in fallback. most of the code i have written that utilizes the fallback functionality looks like this: onclick(target) { if (target==null) { setresponsepage(new editpage(...)); } else { setupInp+laceEditPanel(); } } the workflows are divergent. -igor BTW why don't we get rid of all those AjaxFallback... components and just let *all* Ajax... components support use of a standard HTML request as fallback? Regards Sven Martin Grigorov wrote: I think he meant wasting CPU cycles for constructing your components which will be added to no-op ajaxrequesttarget then you'll have to make check like if (target instanceOf NullAjaxRequestTarget) {return;} which is not better than before El sáb, 24-10-2009 a las 12:18 +0200, Andreas Petersson escribió: I think it absolutely makes sense (for a future release of wicket). having a NullObject instance of AjaxRequestTarget would not waste a lot of cpu cycles at all, at least not how i use it. the only thing i do with the object is call .addComponent() and then refering a already-initialized variable. how likely is it that the object is in fact null? its 5% of users who have javascript disabled. so this would affect only a small amount of requests. from a jvm perspective calling methods with empty bodys very often is not something expensive. they will get inlined by the hotspot compiler and be effectively free. (i am not 100% sure if this also applys to polymorphism chains.) from a clean-code prespective it is often considered a code smell to have a lot of null checks. in your example providing a FakeDatabaseConnection that throws an UnsrupportedOperationException(you have no database!) is better than seeing a null pointer exception. Sounds weird. Why should my component burn cpu cycles to feed a fake ajax target which does nothing at all? I would prefer some null checks in that case. Would you also provide a FakeDatabaseConnection in case you application does not support databases? :-) Am 24.10.2009 um 07:42 schrieb Vladimir Kovalyuk: I believe all those null-checks of request target can be omited in user code if fallback components would provide fake implementation of AjaxRequestTarget instead of passing null. Does it make sense
Re: Wicket Release Plans for 1.5
what about promiced auto-detaching models? may we expect it in 1.5? igor.vaynberg wrote: possibly. i think i would like this release to be as small as possible, centered around the new url stuff. once that is in release 1.5 and put the new ajax support from ng into 1.6. trying to release more and more often instead of taking over a year and a half like we did with 1.4.0 -igor On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen richard.l.al...@gmail.com wrote: Is the Wicket Ajax Next Generation work going into 1.5? Also, is there plans for an event bus, sort of like what you see in Jonathan Locke's 26 wicket tricks source code? I've seen some really nice use of event bus in GWT that I think Wicket could benefit from. -Richard On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote: I'm still eager to make WicketTester a first class citizen. I'm keen on this too -- is there a 'voting' mechanism in the bug tracker for this sort of thing? Cheers, Dave On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26148878.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 Release Plans for 1.5
The best would be short release cycle and very long support cycle. The latter is more important. igor.vaynberg wrote: do you guys want a release cycle that will take a year? the auto-detaching models are perfectly possible now by implementing a IDetachListener and detaching all fields that implement IDetachable via reflection. -igor On Sun, Nov 1, 2009 at 3:05 AM, Vladimir K koval...@gmail.com wrote: what about promiced auto-detaching models? may we expect it in 1.5? igor.vaynberg wrote: possibly. i think i would like this release to be as small as possible, centered around the new url stuff. once that is in release 1.5 and put the new ajax support from ng into 1.6. trying to release more and more often instead of taking over a year and a half like we did with 1.4.0 -igor On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen richard.l.al...@gmail.com wrote: Is the Wicket Ajax Next Generation work going into 1.5? Also, is there plans for an event bus, sort of like what you see in Jonathan Locke's 26 wicket tricks source code? I've seen some really nice use of event bus in GWT that I think Wicket could benefit from. -Richard On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote: I'm still eager to make WicketTester a first class citizen. I'm keen on this too -- is there a 'voting' mechanism in the bug tracker for this sort of thing? Cheers, Dave On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote: Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and pluggability as well as simplification of use to the end user. the other major feature is the markupfragment implementation, which will allow users access to the markup the component is attached to, possibly, at a time earlier then render time. other then that there will probably be smaller features that will not go into 1.4.x because they require an api break. -igor On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote: Besides, it would be very interesting to know what changes and new features are planned. Cheers, Daniel -- View this message in context: http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26148878.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://old.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26157809.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: what is the state of wicket-contrib?
Great! Thanks a lot! Hi I had made a copy for wicket 1.3.5 some time back if it helps ... it is here : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-contrib-yui-1.3.5 -- View this message in context: http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22781007.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: VOTE: Rename Apache Wicket to Apache WicketFX
good joke :) -- View this message in context: http://www.nabble.com/VOTE%3A-Rename-Apache-Wicket-to-Apache-WicketFX-tp22820921p22832563.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: Adding components to Pages based on conditionals
Try EmptyPanel component which is shipped with Wicket. if (condition) add(new YourVisibleComponent(componentId)); else add(new EmptyPanel(componentId)); Do not forget about OOD. You can introduce createYourVisibleComponent() method which creates empty panel in base class and some certain component in derived classes. subbu_tce wrote: Hi, I am a new wicket user. How do we include / exclude content or components in pages based on conditions. What is the equivalent in Wicket to the if tag in the JSTL tag library? The reason i ask this question is because irrespective of whether i add the component in the page, i need to have the markup for the component in the HTML. Thanks in advance for the answers. Thanks, Subbu. -- View this message in context: http://www.nabble.com/Adding-components-to-Pages-based-on-conditionals-tp23091567p23092032.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: Performance Benchmarks
Can wicket help with estimating page size in bytes? (or in cucumbers if the size of a cucumber is defined). I would like to keep pages footprint in session as short as possible. P.S. JSF certainly can be slower than DB, especially when you use Seam and SFSB as a page backing bean. It is easy to understand if you know that you have several approaches to improve DB performance, just hire DBA and understand the lifecycles of your entities and put them into appropriate cache. From the other hand with JSF you just can do NOTHING. Just get rid of JSF (in favor of Wicket for instance). JSF is a perverted framework. It is like Visual Basic for the Java Web applications. It is just for designing hotel booking sites. uwe janner wrote: we did a performance comparison between wicket and jsf in january, and for our usecases wicket was the clear winner (about factor 4). wicket was nearly as fast as our old struts implementation. btw, we used wicket together with seam, which also did not add much to the execution times. uwe. On Mon, Apr 27, 2009 at 3:49 AM, Peter Thomas ptrtho...@gmail.com wrote: LOL at Jeremy's definitive quote :) Coming to original post - Munna: there is some comparative info on performance and memory usage here: http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/ Hope this helps. On Sun, Apr 26, 2009 at 7:26 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Does this count? It's really fast - quote from Jeremy Thomerson in his email written Sunday, April 26. Sorry - couldn't resist a little laugh. I never put much faith in other people's performance benchmarks because they are typically little more than anecdotal evidence of their limited experience with X over Z. But here's my anecdotal benchmark - I've never debugged an application where Wicket was the *slow* part of the application. And I've debugged a lot of Wicket applications. It's always the DB layer. Occasionally something resource intensive in the service layer. But always the DB layer. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Apr 26, 2009 at 8:09 PM, Munna Ramjee munnaram...@gmail.com wrote: Hi All, Are there any performance benchmarks posted anywhere for Wicket? Thanks in advance for the help. Thanks, Munna. - 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/Performance-Benchmarks-tp23248583p23252707.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: DefaultDataTable: How to add a DDChoice to change rows per page
Vit, thanks for pointing the topic. It will come in handy. However I believe it makes sense to have DDC incorporated into navigation toolbar to save space. Vit Rozkovec wrote: Hi, check this out: http://www.nabble.com/nice-small-component-to-share-Toolbar-for-DataTable-to16743136.html Vladimir Kovalyuk wrote: I would like to add some component, say DropDownChoice, to allow user to change default rows per page setting for data table. I've investigated two ways: 1) extend NavigationToolbar or PagingNavigator 2) extends NavigationToolbar to add extra panel right to PagingNavigator Althought it is possible to completely override PagingNavigator component it is not so straightforward as I expected. Please improve DefaultDataTable so it will be capable to change rows per page. I also suggest creating child components in all the non-final components via createXXX methods instead of new keyword in order to simplify overriding. - 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/DefaultDataTable%3A-How-to-add-a-DDChoice-to-change-rows-per-page-tp23244335p23252333.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: Form values lost in combination of Forms plus ModalWindow
Thanks for Martin Makundi suggestion. The following workaround works: Replace your form in ModalWindow with public class ModalWindowFormT extends FormT { public ModalWindowForm(String id) { super(id); } @Override public Form? getRootForm() { Form? form = super.getRootForm(); if ((findParent(ModalWindow.class) != null) (form.findParent(ModalWindow.class) == null)) return this; else return form; } } What is not working is placing modal window form into another page form, even a root form. German Morales-3 wrote: Hi again, jira issue added: https://issues.apache.org/jira/browse/WICKET-1826 I've attached a quickstart project which shows my problem, has detailed explanation, and also proposes 2 solutions (you must uncomment some code to see it working). Of course, the solutions work for my particular case, but as you told me, it is not the way it is supposed to be. Meanwhile (i guess it can take a while until someone looks into it), could you at least tell me if there could be any side effect in overriding isInputNullable for CheckBox, DropDownChoice, and so on? (TextField already does it). Thanks again, German 2008/9/10 Matej Knopp matej.kn...@gmail.com On Wed, Sep 10, 2008 at 10:49 PM, German Morales germanamora...@gmail.com wrote: I don't see any div inside span in my stuff (we have suffered problems with this long ago, and we are more careful lately). Besides that, is it ok that the ModalWindow creates its own div at body level? Isn't that the reason of my problem? That is intentional. I don't think that should cause you the problems. -Matej German 2008/9/10 Matej Knopp matej.kn...@gmail.com Check if your DOM hierarchy is valid, e.g. if you don't have any div tag inside tags. -Matej On Wed, Sep 10, 2008 at 10:08 PM, German Morales germanamora...@gmail.com wrote: I think that we are closer to the problem now... In my case (going back to the original post), the form i'm submitting is inside a ModalWindow. I'm using Firebug to see the generated DOM in runtime, and i find this (extracted...) before calling the ModalWindow: body div here is all my content, even the placeholder for the modal window form here is my root form /div div added by wicket for the ajax debug window /body after calling the modal window: body div here is all my content, even the placeholder for the modal window form here is my root form /div div added by wicket for the ajax debug window div added by modal window on the fly form a second form tag for the form in my modal window /div /body I think that it's ok that the second form is rendered as form, since it does not have another form outside (to be rendered as div). The problem is that ModalWindow inserted a div outside my root form. Therefore Wicket.Form.serialize() must be serializing up to that second form. I'm looking at the live Modal window example http://www.wicket-library.com/wicket-examples/ajax/modal-window.1 and i see that this behavior of adding a separated div at body level is normal, not something strange in my structure. German 2008/9/10 Matej Knopp matej.kn...@gmail.com You are right. It calls Wicket.Form.serialize(form) with the nested form, but the serialize method should find parent with form tag name and serialize that. -Matej On Wed, Sep 10, 2008 at 9:04 PM, German Morales germanamora...@gmail.com wrote: There are no nested form tags, as expected... let me give you more details i'm discovering: The AjaxSubmitLink has something like this... function onclick(event) { var wcall = wicketSubmitFormById( id of my nested form ); return false; } This calls wicketSubmitFormById, no surprises... function wicketSubmitFormById(formId, url, submitButton, successHandler, failureHandler, precondition, channel) { var call = new Wicket.Ajax.Call(url, successHandler, failureHandler, channel); ... return call.submitFormById(formId, submitButton); } which calls submitFormById... submitFormById: function(formId, submitButton) { var form = Wicket.$(formId); ... return this.submitForm(form, submitButton); } which calls submitForm passing my nested form (i'm debugging with Firebug) // Submits a form using ajax. // This method serializes a form and sends it as POST body. submitForm: function(form, submitButton) { var body = function() { var s = Wicket.Form.serialize(form); if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } return s; }
Re: Update DropDownChoice with ModalWindow
The problem is duscussed here http://www.nabble.com/Form-values-lost-in-combination-of-Forms-plus-ModalWindow-td19401595.html#a19401595 http://www.nabble.com/Form-values-lost-in-combination-of-Forms-plus-ModalWindow-td19401595.html#a19401595 Vladimir K wrote: PDiefent, I've came across similar problem. In my case, and what I'm discovered fits your case as well, the following is happening: ... -- View this message in context: http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p23274193.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Update DropDownChoice with ModalWindow
PDiefent, I've came across similar problem. In my case, and what I'm discovered fits your case as well, the following is happening: ModalWindow is component based. It is rendered in two parts. The first part is all you put into your markup. The second part is dynamically built within a separate div within the body tag. Concerning browser's DOM, your form and modal window form are not overlapped. Nothing is passed for DDChoice when modal window form is submitted. Concerning wicket tree your form and modal window form are overlapped (modal form is within). So when wicket is updating formcomponent models (and it starts from the outermost form for some reason), it has to fill DDC, but nothing is passed in request for it. So wicket fills it with null, what explains choose a value message in it. I don't know what is actually wrong - how wicket is processing form or ModalWindow implementation that renders modal window somewhere outside of the place you pointed. It is up to authors to decide. I'm going to investigate workarounds. Will be back if suceed. PDiefent wrote: 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-tp22595072p23273638.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: Possible to retrieve previous page from PageMap
The requirements are inconsistent. It is impossible to bookmark the link today and come to the page tomorrow. Unless it shoud be considered as a long running transaction, in which case only page parameter works. pixologe wrote: In our current case we would need to display a specific info only if the user came from a specific page. We are using BookmarkablePageLink with mounts and are keen on keeping our URLs as clean as possible, thus we would like to avoid passing a page classname around with every request or similar. -- View this message in context: http://www.nabble.com/Possible-to-retrieve-previous-page-from-PageMap-tp20861106p23291877.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: AW: Tabbed Panel with bookmarkable links
But it is also a bug in the TabbedPanel which should work well without tabs. Christian Helmbold-2 wrote: What if you use two different tabbed panels on the same page? Good point! It doesn't work with two panels on the same page! I don't know why and how to fix it. It was a mistake in my test code, that lead to this error. I accidentally added the tabs of my second tabbed panel to the first one. Multiple BookmarkableTabbedPanels work fine now. Regards Christian - 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/Tabbed-Panel-with-bookmarkable-links-tp22418170p23295407.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: ModalWindows...
put the following into the head section of your page: script language=javascript type=text/javascript jQuery(document).ready(function(){ if (typeof Wicket != 'undefined' Wicket.Window) Wicket.Window.unloadConfirmation = false; }); /script I don't like this approach because it violateds incapsulation. It should has been implemented as overridable method of ModalWindow. Vidhya Kailash wrote: 1. How do I disable the popup that comes on click inside the modal window: Are you sure you want to navigate away from this page? -- View this message in context: http://www.nabble.com/ModalWindows...-tp23300556p23309702.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: GWT-like
Igor, I believe it is not so bad idea to embed third-party JS components with ease (those who are capable to wrap existing div tag). 1. Wicket applications can be leveraged by many well designed and tested JS components 2. It reduces hardware requirements and imroves scalability due to smaller number of client-server roundtrips 3. There are the cases where it is better to design component is JS instead of Java, for instance imagine full calendar component (like MS outlook has), dynamic charts (including Gantt), rich text editor and so on. Even any drill-down component (menu, panel) is better to design in JS. Probably wicket should be capable of transferring js-component's client state to backing server-side component when handling the client event. Creating a hidden text input and serializing js-component state to it before submit will work. Just for synchronization. Concerning events it seems we just can use exising behaviors. I believe wicket ui in most cases is as fast as ajaxy js ui because in both cases we have to exchange some packages of data and access the database. And there should be the cases where wicket is faster because it can just apply innerHtml. JS has to parse the response and do something with dom. But there are the cases like tab control as mentioned, where we don't need server roundtrip to switch tabs. From the other hand we probably just need to optimize existing AjaxTabbedPanel to allow the settings on tab (ajax/static). Depending on this setting the appropriate links will be rendered on the tab captions. Concerning GWT ... just have a look at response times of Compiere 3.0 on latest Google Chrome. On my 2.4Ghz desktop it takes about 7 seconds between click on radio-button and see that selection is changed. GWT is out of the scope. igor.vaynberg wrote: dont try to make wicket into gwt. if you want a fat client then use gwt, if you want a server-side app then use wicket. -igor On Wed, Apr 29, 2009 at 8:06 AM, kan kan@gmail.com wrote: Is there any easy way to make wicket applications like GWT? I mean to make a heavy client side, so it will allow easy manage data pre-loading and requests (AJAX too) caching. The aim is to minimize amount of web-server requests. Say, I have several tabs on a page. Some tabs should have all data pre-loaded and switched immediately (no requests to server). Some tabs are big, so they do an AJAX request for data, but only if a tab is opened first time. -- WBR, kan. - 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/GWT-like-tp23299279p23310287.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: ModalWindows...
https://issues.apache.org/jira/browse/WICKET-2249 vote for it nino martinez wael wrote: Very true +1 for adding a overridable method 2009/4/30 Vladimir K koval...@gmail.com: put the following into the head section of your page: script language=javascript type=text/javascript jQuery(document).ready(function(){ if (typeof Wicket != 'undefined' Wicket.Window) Wicket.Window.unloadConfirmation = false; }); /script I don't like this approach because it violateds incapsulation. It should has been implemented as overridable method of ModalWindow. Vidhya Kailash wrote: 1. How do I disable the popup that comes on click inside the modal window: Are you sure you want to navigate away from this page? -- View this message in context: http://www.nabble.com/ModalWindows...-tp23300556p23309702.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/ModalWindows...-tp23300556p23311160.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: confirm leave page when a page contains unsaved data
I think the approach similar to one used in CheckGroup would work. I just wondered if it has already been implemented. Newgro wrote: Vladimir Kovalyuk schrieb: Do wicket has a generic approach to handling the following scenario? 1. user opens a page with details of some entity, for instance a user. 2. user starts to type in fields 3. user clicks some link, then she is informed that the form contains unsaved data and asked to press discard and proceed, save and proceed or cancel. Nope. How should wicket decide on that? It's business logic. And so you have to present the dialog (modal window?) yourself. Alternatively you could an javascript alert. Cheers Per - 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/confirm-leave-page-when-a-page-contains-unsaved-data-tp23312432p23313202.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 Offline Applications
I would install failsafe cluster rather satisfying every client request about offline workability. You may end up implementing all the front-end and middle-end features in offline mode :) I believe offline mode should be used with care. The email applications are by nature offline. If you are certain that what the user does is offline by nature - implement it. If you have concerns that it should be involved into transaction (I mean a bit wider meaning than DB transaction) - implement it online and think about fail-safe servers. Concerning front-end and middle-end, AFAIK, every unit of work is a transaction which is done with multi-level authorization, including business authorization. You either implement all the authorization offline (insecure at all, and impossible in some cases) or defer authorization untill online mode (non-transactional). If a request of some client was satisfied (in offline mode) and then hasn't passed online authorization (for instance it violates some limits which can be thruly calculated on the server side only), you will have to call the client and tell him your appologises (or not directly you, then the bank. but the bank will then call you and tell you something awesome). Or just tell me the name of the bank. I will never become its client :) Carlo Camerino wrote: it's not for the public to use. but rather for people within the banks. internal applications. sometimes central connection is not available. On Fri, May 1, 2009 at 9:37 PM, James Carman jcar...@carmanconsulting.comwrote: Are you sure a banking application would be the right place for a gears-based implementation? Wouldn't it be kinda important to make sure the main server knows where everything is, when money is concerned? On Fri, May 1, 2009 at 4:04 AM, Carlo Camerino cmcamer...@gmail.com wrote: Hi, Is there any project which has Wicket And Google Gears Integration? Wicket has really done a lot of us in speeding up development time. Coming from a struts we saw the power of Wicket in terms its reusability and i've noticed that wicket already did most of the tasks that we would have to manually do using struts application, like session timeouts, redirects, etc One of our main concerns however are that clients are asking for our applications to be available even if the network is down or if the central server is down.. Currently we implemented our applications in a distributed fashion wherein every branch ( Remote Location) has its own server. However, this has implications of cost and administration issues. However, if offline mode is enabled we can just begin syncing right. I think that Wicket WIth Google Gears Application will make it even better . I think this is really a plus when it comes to marketing it to customers. Most of the applications that we create our banking applications and any downtime is costing our clients. Hopefully we can also do this to offload the central servers and to put processing into client machines. One large problem I see though is that most code wil have to be moved to the Browser Layer. I'm thinking of how to create a wicket application which is mostly run by java classes work on the client side. Looks as if there will be a lot of code changes... I'm not really sure if it would be a totally different programming model. Anyone out there tried to integrate Gears And Wicket Carlo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-Offline-Applications-tp23329675p23352910.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 Offline Applications
Agree, I mentioned already it depends on the nature of the application. Anyway unless the bank pays you on time-and-material basis it is risky to implement two modes application (for bank and for dev team). Consider Java Web Start vs Gears. Carlo Camerino wrote: hmm, you have a point here.however, every requirement is different. I know that it may sound weird, but still I believe that it depends on the nature of the application. There are lots of types of applications that banks use. Some I know would have to always have a central server managing it. There are different types of Technical Architectures that we cater for in our applications. There are some applicationms that always require online mode regardless adn there are applications that the user just needs to be able to view customer information ,etc actually it's hard to decide here. on the downside, I heard that GWT consumes a lot of resources on the client side, it's also a consideration. Failsafe servers are of course an option but again, the network is still a factor here. For example a very slow connection to the central server makes my productivity a lot less. Some places suffer from low bandwidth, unreliable networks, etc... I saw the value of distributed or offline applications that uses synchronization. It will be harder for the developers of course sicne they have to cater to two modes. On Sun, May 3, 2009 at 1:55 PM, Vladimir K koval...@gmail.com wrote: I would install failsafe cluster rather satisfying every client request about offline workability. You may end up implementing all the front-end and middle-end features in offline mode :) I believe offline mode should be used with care. The email applications are by nature offline. If you are certain that what the user does is offline by nature - implement it. If you have concerns that it should be involved into transaction (I mean a bit wider meaning than DB transaction) - implement it online and think about fail-safe servers. Concerning front-end and middle-end, AFAIK, every unit of work is a transaction which is done with multi-level authorization, including business authorization. You either implement all the authorization offline (insecure at all, and impossible in some cases) or defer authorization untill online mode (non-transactional). If a request of some client was satisfied (in offline mode) and then hasn't passed online authorization (for instance it violates some limits which can be thruly calculated on the server side only), you will have to call the client and tell him your appologises (or not directly you, then the bank. but the bank will then call you and tell you something awesome). Or just tell me the name of the bank. I will never become its client :) Carlo Camerino wrote: it's not for the public to use. but rather for people within the banks. internal applications. sometimes central connection is not available. On Fri, May 1, 2009 at 9:37 PM, James Carman jcar...@carmanconsulting.comwrote: Are you sure a banking application would be the right place for a gears-based implementation? Wouldn't it be kinda important to make sure the main server knows where everything is, when money is concerned? On Fri, May 1, 2009 at 4:04 AM, Carlo Camerino cmcamer...@gmail.com wrote: Hi, Is there any project which has Wicket And Google Gears Integration? Wicket has really done a lot of us in speeding up development time. Coming from a struts we saw the power of Wicket in terms its reusability and i've noticed that wicket already did most of the tasks that we would have to manually do using struts application, like session timeouts, redirects, etc One of our main concerns however are that clients are asking for our applications to be available even if the network is down or if the central server is down.. Currently we implemented our applications in a distributed fashion wherein every branch ( Remote Location) has its own server. However, this has implications of cost and administration issues. However, if offline mode is enabled we can just begin syncing right. I think that Wicket WIth Google Gears Application will make it even better . I think this is really a plus when it comes to marketing it to customers. Most of the applications that we create our banking applications and any downtime is costing our clients. Hopefully we can also do this to offload the central servers and to put processing into client machines. One large problem I see though is that most code wil have to be moved to the Browser Layer. I'm thinking of how to create a wicket application which is mostly run by java classes work on the client side. Looks as if there will be a lot of code changes... I'm not really sure if it would be a totally different programming model
Re: Editable select
Thanks. I'll try AutoCompleteSettings. James Carman-3 wrote: Perhaps autocomplete? On Thu, May 7, 2009 at 5:55 AM, Vladimir Kovalyuk koval...@gmail.com wrote: Does anybody know any editable select wicket-component that supports attaching 'onchange' AjaxFormComponentUpdatingBehavior? - 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/Editable-select-tp23423534p23426031.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: Add a ui lock page over the page while waiting for response
The following works for me pretty well: http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html Matthias Keller wrote: Hi Thanks for the input. I now used wicketstuff-jquery and wrote a custom behaviour which adds the code to my form. For later reference: public class UIBlockerBehaviour extends JQueryBehavior { private static final ResourceReference BLOCKUI_JS = new CompressedResourceReference(UIBlockerBehaviour.class, jquery.blockUI.js); ... -- View this message in context: http://www.nabble.com/Add-a-ui-lock-page-over-the-page-while-waiting-for-response-tp23407195p23427935.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: How to avoid code duplication on forms?
Factory pattern is about Dependency Inversion Principle. You may use this pattern to avoid dependency to concrete classes. So the best way in your case is having Factory that constructs concrete editors via subclassing. They work best together :) Christian Helmbold-2 wrote: I think the difference between sub classing and static factory methods is a matter of taste in this case. If I have many fields, I'd need many classes for them. So I'd group them in a sub package. In the case of factory methods I'd group the methods to create fields in a class instead of a package. Subclass: 1class UserEmailField extends TextField { 2 public UserEmailField(String id, IModel model) { 3super(id, model); 4setRequired(true); 5add(EmailAddressValidator.getInstance()) 6add(UniqueValidator.unique(SystemUser.class, email)); 7 } 8} Factory method: 1public static TextField emailTextField(String id){ 2return (TextField) new TextField(id) 3.setRequired(true) 4.add(EmailAddressValidator.getInstance()) 5.add(UniqueValidator.unique(SystemUser.class, email)); 6} Your answer shows me, that there is no dramatically simpler way to do this. If you ignore the two lines for factory class declaration factory methods are even a bit shorter. Or is there an advantage of sub classing that I have missed? Regards, Christian - Ursprüngliche Mail Von: Igor Vaynberg igor.vaynb...@gmail.com An: users@wicket.apache.org Gesendet: Freitag, den 8. Mai 2009, 09:08:34 Uhr Betreff: Re: How to avoid code duplication on forms? much simpler class UserEmailField extends TextField { public UserEmailField(String id, IModel model) { super(id, model); add(EmailAddressValidator.getInstance()) add(UniqueValidator.unique(SystemUser.class, email)); } } - 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/How-to-avoid-code-duplication-on-forms--tp23440920p23496309.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: Component creation and initialization
Martijn, here Java is not safe as a language. Yo're able to invoke overrided methods on non-completely constructed objects. from my perspective it is a regular case in Wicket: class SampleComponent extends ... { String parameter; SampleComponent(String id, String parameter) { super(id); this.parameter = parameter; } // method is called from within superconstructor @Override void createAdditionalComponents(RepeatingView rv) { useSomehow(parameter); } } I know two approaches to work around: - onBeforeRender - a closure as a constructor formal parameter. But the latter does not help with built-in components. If Wicket does not help us with adding appropriate method for second-step-initialization it should document it in wiki, javadoc and books dear user, when overriding methods, beware using of yet unassigned constructor parameters. Hmm ... sounds stupid :) Martijn Dashorst wrote: This has been discussed till death previously and we have excluded it from our roadmap. We will never have an init() method for components. Gossling gave us a Constructor to initialize your Objects. Search and read the archives if you want more information on the subject. Martijn On Fri, May 15, 2009 at 12:36 AM, Juan G. Arias juangar...@gmail.com wrote: It would be very nice to add a new phase for component creation, like I said, an init() or createContent(). Is there a JIRA issue for that? If yes, I will vote for it and suggest to change the name to something _not_ related to the rendre phase. Thanks! Juan On Thu, May 14, 2009 at 3:31 PM, Daniel Stoch daniel.st...@gmail.comwrote: I think you can use hasBeenRendered() method instead of custom boolean flag. -- Daniel On 2009-05-14, at 20:15, Jeremy Thomerson wrote: You could probably do it in onBeforeRender - but you would need to keep a boolean flag to check if it's the first render so that you don't recreate them on a second render There was talking of adding an onBeforeFirstRender method, but I don't think it's happened yet - you could look for the method to see if I'm wrong. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- 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 -- View this message in context: http://www.nabble.com/Component-creation-and-initialization-tp23545666p23553458.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: Component creation and initialization
it has just come to my mind I'm afraid Wicket can't guarantee that onBeforeRender would be called in any case. So there could be a case (isVisible() for instance) when onBeforeRender is not called yet but overriding method could read yet-not-completely-initialized object state. Instead of thinking how to work around isVisible() and the other cases why not just add a second-chance method and invoke it in appropriate places. in Component: boolean complete = false; void ensureCompletelyInitialized() { if(!complete){ finalizeCreation(); complete = true; } } void internalBeforeRender() { ensureCompletelyInitialized(); ... } I believe it makes sence. Martijn Dashorst wrote: This has been discussed till death previously and we have excluded it from our roadmap. We will never have an init() method for components. Gossling gave us a Constructor to initialize your Objects. Search and read the archives if you want more information on the subject. Martijn On Fri, May 15, 2009 at 12:36 AM, Juan G. Arias juangar...@gmail.com wrote: It would be very nice to add a new phase for component creation, like I said, an init() or createContent(). Is there a JIRA issue for that? If yes, I will vote for it and suggest to change the name to something _not_ related to the rendre phase. Thanks! Juan On Thu, May 14, 2009 at 3:31 PM, Daniel Stoch daniel.st...@gmail.comwrote: I think you can use hasBeenRendered() method instead of custom boolean flag. -- Daniel On 2009-05-14, at 20:15, Jeremy Thomerson wrote: You could probably do it in onBeforeRender - but you would need to keep a boolean flag to check if it's the first render so that you don't recreate them on a second render There was talking of adding an onBeforeFirstRender method, but I don't think it's happened yet - you could look for the method to see if I'm wrong. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- 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 -- View this message in context: http://www.nabble.com/Component-creation-and-initialization-tp23545666p23553618.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: Component creation and initialization
Jeremy, I can't add another example to mentioned RepeatingView. Concerning RepeatingView... Wicket allow me just one point to subclass parent component markup within wicket:child/ tag. RepeatingView comes in handy. It allows me to reserve some places in base component markup and put something there in subclasssing component markup. I saw examples of that in some projects when studying Wicket. So I just copy the idea without thinking about WHEN to call the overridden method that fills in the RepeatingView instance. It is my fault :) If you add name attribute to wicket:child tag, and multiple wicket:extend name=... tags I would use it instead of RepeatingView. Concerning your post on onBeforeRender ... I didn't say that it is related to class' constructor. Yes it is related to delayed component creation. And the reason why I delay creation is to follow mentioned rule. It is not related to use of models in my case. I delay creation to allow subclassing components to replace some default parts of base component. Probably I'm doing something wrong. Then suggest me how to do it right. For instance I would like to subclass NatigationToolbar in DefaultDataTable. What should I do? Jeremy Thomerson-5 wrote: Do you have any examples of where Wicket calls an overridable method from the constructor of a Wicket class? If so, please file it as a JIRA - that would be a bug. Most java programmers know not to call overridable methods from the constructor as a general rule, although there are times when it could inadvertantly happen - which is why we need bug reports if you see that happening. -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 15, 2009 at 12:01 AM, Vladimir K koval...@gmail.com wrote: Martijn, here Java is not safe as a language. Yo're able to invoke overrided methods on non-completely constructed objects. from my perspective it is a regular case in Wicket: class SampleComponent extends ... { String parameter; SampleComponent(String id, String parameter) { super(id); this.parameter = parameter; } // method is called from within superconstructor �...@override void createAdditionalComponents(RepeatingView rv) { useSomehow(parameter); } } I know two approaches to work around: - onBeforeRender - a closure as a constructor formal parameter. But the latter does not help with built-in components. If Wicket does not help us with adding appropriate method for second-step-initialization it should document it in wiki, javadoc and books dear user, when overriding methods, beware using of yet unassigned constructor parameters. Hmm ... sounds stupid :) Martijn Dashorst wrote: This has been discussed till death previously and we have excluded it from our roadmap. We will never have an init() method for components. Gossling gave us a Constructor to initialize your Objects. Search and read the archives if you want more information on the subject. Martijn On Fri, May 15, 2009 at 12:36 AM, Juan G. Arias juangar...@gmail.com wrote: It would be very nice to add a new phase for component creation, like I said, an init() or createContent(). Is there a JIRA issue for that? If yes, I will vote for it and suggest to change the name to something _not_ related to the rendre phase. Thanks! Juan On Thu, May 14, 2009 at 3:31 PM, Daniel Stoch daniel.st...@gmail.comwrote: I think you can use hasBeenRendered() method instead of custom boolean flag. -- Daniel On 2009-05-14, at 20:15, Jeremy Thomerson wrote: You could probably do it in onBeforeRender - but you would need to keep a boolean flag to check if it's the first render so that you don't recreate them on a second render There was talking of adding an onBeforeFirstRender method, but I don't think it's happened yet - you could look for the method to see if I'm wrong. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- 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 -- View this message in context: http://www.nabble.com/Component-creation-and-initialization-tp23545666p23553458.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: Component creation and initialization
I'm doing just right like you described. Probably I have to pay more attention to your comment about improper use of models. isVisible method should rely only on the component model. I some cases it is easier to delegate some calls to aggregated components. But instead I have to work with component own model itself. Jeremy Thomerson-5 wrote: expose multiple overridable methods that provide the components... i.e.: // I don't have my IDE open, so some method names may be wrong ParentComponent { public void onBeforeRender { if (!hasBeenRendered()) { add(createLeftNavPanel(getModel())); add(createContentPanel(getModel())); add(createTopHeaderPanel(getModel())); } protected Component createContentPanel(IModel model) { // this can be overridden in subclasses return MyDefaultTypeOfContentPanel(model); } } -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 15, 2009 at 12:54 AM, Vladimir K koval...@gmail.com wrote: Jeremy, I can't add another example to mentioned RepeatingView. Concerning RepeatingView... Wicket allow me just one point to subclass parent component markup within wicket:child/ tag. RepeatingView comes in handy. It allows me to reserve some places in base component markup and put something there in subclasssing component markup. I saw examples of that in some projects when studying Wicket. So I just copy the idea without thinking about WHEN to call the overridden method that fills in the RepeatingView instance. It is my fault :) If you add name attribute to wicket:child tag, and multiple wicket:extend name=... tags I would use it instead of RepeatingView. Concerning your post on onBeforeRender ... I didn't say that it is related to class' constructor. Yes it is related to delayed component creation. And the reason why I delay creation is to follow mentioned rule. It is not related to use of models in my case. I delay creation to allow subclassing components to replace some default parts of base component. Probably I'm doing something wrong. Then suggest me how to do it right. For instance I would like to subclass NatigationToolbar in DefaultDataTable. What should I do? Jeremy Thomerson-5 wrote: Do you have any examples of where Wicket calls an overridable method from the constructor of a Wicket class? If so, please file it as a JIRA - that would be a bug. Most java programmers know not to call overridable methods from the constructor as a general rule, although there are times when it could inadvertantly happen - which is why we need bug reports if you see that happening. -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 15, 2009 at 12:01 AM, Vladimir K koval...@gmail.com wrote: Martijn, here Java is not safe as a language. Yo're able to invoke overrided methods on non-completely constructed objects. from my perspective it is a regular case in Wicket: class SampleComponent extends ... { String parameter; SampleComponent(String id, String parameter) { super(id); this.parameter = parameter; } // method is called from within superconstructor �...@override void createAdditionalComponents(RepeatingView rv) { useSomehow(parameter); } } I know two approaches to work around: - onBeforeRender - a closure as a constructor formal parameter. But the latter does not help with built-in components. If Wicket does not help us with adding appropriate method for second-step-initialization it should document it in wiki, javadoc and books dear user, when overriding methods, beware using of yet unassigned constructor parameters. Hmm ... sounds stupid :) Martijn Dashorst wrote: This has been discussed till death previously and we have excluded it from our roadmap. We will never have an init() method for components. Gossling gave us a Constructor to initialize your Objects. Search and read the archives if you want more information on the subject. Martijn On Fri, May 15, 2009 at 12:36 AM, Juan G. Arias juangar...@gmail.com wrote: It would be very nice to add a new phase for component creation, like I said, an init() or createContent(). Is there a JIRA issue for that? If yes, I will vote for it and suggest to change the name to something _not_ related to the rendre phase. Thanks! Juan On Thu, May 14, 2009 at 3:31 PM, Daniel Stoch daniel.st...@gmail.comwrote: I think you can use hasBeenRendered() method instead of custom boolean flag. -- Daniel On 2009-05-14, at 20:15, Jeremy Thomerson wrote: You could probably do it in onBeforeRender - but you would need to keep a boolean flag to check if it's the first render so that you don't recreate them on a second render There was talking of adding an onBeforeFirstRender method, but I don't think it's happened yet - you could look for the method to see if I'm wrong. -- Jeremy Thomerson http
Re: Component creation and initialization
Igor, I didn't mean spreading this approach everywhere :) My intention was to draw your attention on that onBeforeRender probably is a good place to delay construction but should be used with extra care and some sort of simplification (more appropriate method) would be great. You turned it insideout and it does not make sence anymore :) Igor, Jeremy, thanks a lot for your suggestions. I have some food for my brain to think about. igor.vaynberg wrote: by your own argument your own code will have to call your second-chance init constructor before invoking *any* method on the component. so instead of boolean visible=getMyComponent().isvisible(); you will have to now do Component c=getMyComponent(); if (!c.isinitted()) {c.initI(); } boolean visible=c.isvisible(); that init line is now necessary because you *never* know if a component has been initialized, so every access to any component memeber has to be prefixed by that init check. that will be fun! or we can just use constructors since thats what they are designed to do (its in the name) -igor On Thu, May 14, 2009 at 10:21 PM, Vladimir K koval...@gmail.com wrote: it has just come to my mind I'm afraid Wicket can't guarantee that onBeforeRender would be called in any case. So there could be a case (isVisible() for instance) when onBeforeRender is not called yet but overriding method could read yet-not-completely-initialized object state. Instead of thinking how to work around isVisible() and the other cases why not just add a second-chance method and invoke it in appropriate places. in Component: boolean complete = false; void ensureCompletelyInitialized() { if(!complete){ finalizeCreation(); complete = true; } } void internalBeforeRender() { ensureCompletelyInitialized(); ... } I believe it makes sence. Martijn Dashorst wrote: This has been discussed till death previously and we have excluded it from our roadmap. We will never have an init() method for components. Gossling gave us a Constructor to initialize your Objects. Search and read the archives if you want more information on the subject. Martijn On Fri, May 15, 2009 at 12:36 AM, Juan G. Arias juangar...@gmail.com wrote: It would be very nice to add a new phase for component creation, like I said, an init() or createContent(). Is there a JIRA issue for that? If yes, I will vote for it and suggest to change the name to something _not_ related to the rendre phase. Thanks! Juan On Thu, May 14, 2009 at 3:31 PM, Daniel Stoch daniel.st...@gmail.comwrote: I think you can use hasBeenRendered() method instead of custom boolean flag. -- Daniel On 2009-05-14, at 20:15, Jeremy Thomerson wrote: You could probably do it in onBeforeRender - but you would need to keep a boolean flag to check if it's the first render so that you don't recreate them on a second render There was talking of adding an onBeforeFirstRender method, but I don't think it's happened yet - you could look for the method to see if I'm wrong. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- 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 -- View this message in context: http://www.nabble.com/Component-creation-and-initialization-tp23545666p23553618.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/Component-creation-and-initialization-tp23545666p23554417.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: May be useful for projects deciding between JSF and Wicket
Where you were two years ago? :) ptrthomas wrote: Hi, I blogged a fairly large collection of links to discussions about the issues with JSF in general. What prompted me to put this up is that I yet again failed to convince a team at work that Wicket should be chosen over JSF. Frustrating. Hope this proves useful to some, please pass it on to the pointy haired bosses, architecture astronauts, powerpoint consultants etc that you know. DZone link: http://dzone.com/links/jsf_sucks_compendium_of_jsf_rantsreviews.html Thanks, Peter. -- View this message in context: http://www.nabble.com/May-be-useful-for-projects-deciding-between-JSF-and-Wicket-tp23554009p23554709.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: May be useful for projects deciding between JSF and Wicket
even more ... the title sounds a bit vulgarly. But the arrangement of such links has a value itself. Especially for people who hasn't started a project yet. I would sort the list by date descending. The latest articles has more value than older. jeroend-2 wrote: ... The title is subjective at best to start with and to open up with blog entries from 5 years ago is not giving it more credibility. ... regards, jeroen. -- View this message in context: http://www.nabble.com/May-be-useful-for-projects-deciding-between-JSF-and-Wicket-tp23554009p23556062.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: Component creation and initialization
The horse is pretty alive - https://issues.apache.org/jira/browse/WICKET-1134. Jeremy Thomerson-5 wrote: With regards to multiple wicket:extend tags - that is also an old, dead horse that doesn't need to be beat right now. The user list has a lot of discussion on it. The simplest way to allow a child to contribute multiple components to a page is the same as you would do in normal java (which does not allow multiple inheritance) - expose multiple overridable methods that provide the components... i.e.: -- View this message in context: http://www.nabble.com/Component-creation-and-initialization-tp23545666p23557008.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: objectautocomplete on a form with CompoundPropertyModel
Does it perform validation on form submit? nino martinez wael wrote: hmm true, I think it's because it's ajax and actually get set before the form are submited. I agree it would be nice if it acted exactly like normal form, but I guess the way it are now allows much more flexibility, however it should be possible to do the other aswell. regards 2009/5/14 Brill Pappin br...@pappin.ca: I'd actually rather it worked as expected and simply set the object on the model property :) However, it's usable so I'll live with it. - brill On 13-May-09, at 3:10 PM, nino martinez wael wrote: Yeah or just another way of thinking.. :) 2009/5/11 Brill Pappin br...@pappin.ca: Thanks that worked... although its a bit of a pain in the behind :) - Brill Pappin On 11-May-09, at 6:55 AM, nino martinez wael wrote: You do something like this: // compound model private final IModelString cityModel = new PropertyModelString( searchWrapper, cityId); builderCity .updateOnSelectionChange(new ObjectAutoCompleteSelectionChangeListenerString() { public void selectionChanged(AjaxRequestTarget target, IModelString model) { cityModel.setObject(model.getObject()); } }); So it does not update on submit, but instead onSelectionChange of the builder.. 2009/5/11 Brill Pappin br...@pappin.ca: I'm trying to use ObjectAutoComplete from wicketstuff on a form where the model is a CompoundPropertyModel. The auto compete field doesn't seem to be setting its value on the form model at all during a submit. I've looked at the examples for this component and not a single one actually includes the onSubmit implementation. Is there something special i have to do with this component? - Brill Pappin - 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 -- View this message in context: http://www.nabble.com/objectautocomplete-on-a-form-with-CompoundPropertyModel-tp23477130p23582308.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: Component creation and initialization
If the question is ressurecting again and again then it is an evidence that there is something to address and improve. At least Wicket does not have a method with self-documented name which deffers component creation. As the result people have to search (using different words) and they don't satisfy with the result 'cause the topic is still looks open. This list is quite active and I appreciate the answers of core developers. Probably Wicket is so good because in addition to the devotion of talented and capable people to implementation, they do hear what the users say directly, not indirectly via support team. Jeremy Thomerson-5 wrote: I actually had to Google that one. But, yes, that is the general consensus that I've seen. If you wanted to write a page that showed the different ways that you mentioned, that would be fine. It really just depends on if you really need lazy component creation, and then how you want to implement it. -- Jeremy Thomerson http://www.wickettraining.com On Fri, May 15, 2009 at 11:13 AM, Clint Popetz cl...@42lines.net wrote: TMTOWTDI - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Component-creation-and-initialization-tp23545666p23582495.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: SV: Component creation and initialization
From my perspective the isVisible() case deserves generification. I know that there is a task for Wicket 1.5. I mean after that we should write an article in Wiki. Wilhelmsen Tor Iver wrote: Overriding methods like isVisible() is also a form of hack to postpone a property value to a later time (basically the component stops having a real property called visible since the setter modifies a variable that the getter does not care about). -- View this message in context: http://www.nabble.com/Component-creation-and-initialization-tp23545666p23592389.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: Tools for Managing a Wicket Project
Innate markup formatting in WTP is awful. It splits all tags between lines. I searched the web but didn't find information how to configure WTP. I returned back to myeclipse. How could WTP fans be ok with default formatting? Eduardo Nunes wrote: it's very strange, because if I hit ctrl+shift+f in some html code with WTP, the source code will be completely unwell formatted. I will try amateras plugin, thank you On Mon, May 18, 2009 at 9:15 PM, John Armstrong siber...@siberian.org wrote: I always have to do a 'Refresh' when changing the HTML. Its quite painful.. I tend to author the bulk of my html in an external editor that is more suitable to the purpose and fast ( the eclipse validators are painfully slow, particularly in Javascript intensive pages). Then I tweak it in Eclipse and hit F5. A Lot. John- On Mon, May 18, 2009 at 5:03 PM, pete swulius pswul...@gmail.com wrote: It appears that using external html editors causes sync issues. Apparently eclipse doesn't monitor changes to the file system, except to warn you that it's out of sync. I would love the know the truth of it as I could very well be missing something obvious. In fact, I would bet that I am, considering that eclispe is so cool. I am currently using the Amateras plugin: http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor. I have no problems with it, but I use it only for the syntax coloring and the occasional content assist. --pete - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Eduardo S. Nunes http://e-nunes.com.br - 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/Tools-for-Managing-a-Wicket-Project-tp23299396p23611513.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: How to validate unique constraint?
Hibernate Validator is useful for bean validations but it has nothing to do with unique constraint for which you should consult database unless you cache all the instances. I would like to provide user with an early warning that the data it fills in is not unique but I haven't found solution out of the box that uses entity annotations, especially UniqueContraint. Dorothée Giernoth wrote: I would find this very useful! So a contribution to wicket-stuff would be awesome. Thnx. - dg -Ursprüngliche Nachricht- Von: Clint Popetz [mailto:cl...@42lines.net] Gesendet: Dienstag, 19. Mai 2009 13:49 An: users@wicket.apache.org Betreff: Re: How to validate unique constraint? It's relatively straightforward to use the hibernate validator api to apply JPA constraints: import org.hibernate.validator.*; InvalidValue[] invalidValues = new ClassValidator(MyModel.class).getInvalidValues(instanceOfMyModel); This can also be done per-property; see the javadocs. I've done this locally; if folks would find it useful I'll contribute it to wicketstuff. -Clint On Tue, May 19, 2009 at 2:15 AM, Christian Helmbold christian.helmb...@yahoo.de wrote: How can I validate a unique constraint with Wicket? Because only the value of an input field is passed to onValidate(IValidatable validatable), there is no chance to check if this value belongs to a specific object to update or if it would violate a unique constraint when creating a new object. onValidate would need another paremeter for the related object. I see two possibilities: a) Use a form validator and get the related model object from the form. b) Pass the related object to the constructor of the Validator. I'm not sure, if the validator would be recreated any time the model object changes. I would prefer a validator tied to the field and not to the form, because that would be more intuitive. Another idea is to use existing JPA annotations. @Column(unique=true) is already there but not used for validation (outside the database). Perhaps there is a way to use this annotation. I really like the domain level validation of Grails: http://grails.org/doc/1.1/guide/7.%20Validation.html How would you validate a unique constraint with wicket? Thanks in advance Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Clint Popetz http://42lines.net Scalable Web Application Development - 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/How-to-validate-unique-constraint--tp23610946p23629304.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: Tools for Managing a Wicket Project
I installed it on MyEclipse I didn't find how to format the text. Does it capable to format text better than WTP does? Linkan wrote: We use Aptana plugin for eclipse as html editor. If you dont install the full suit its free. //Swanthe Eduardo Nunes wrote: I have just one problem with eclipse, I can't use the HTML formatter, that's very sucks. I tried tidy but it didn't work too. What do you use guys to format html code? On Mon, May 18, 2009 at 2:06 PM, Dane Laverty danelave...@gmail.com wrote: I just wanted to thank Jeremy, Scott, and Linda for recommending Effective Java. I read through the book this week. It's wonderful -- accessible and useful. Now I'm in the process of refactoring my project to start applying the concepts. On Fri, May 1, 2009 at 8:53 AM, Carlo Camerino cmcamer...@gmail.com wrote: we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It was simply amazing with all those plugins. Code Review WIth Trac Is Good. Review Board is also good software but it doesn't suit our programming needs. On Fri, May 1, 2009 at 11:38 PM, Matt Welch matt...@welchkin.net wrote: Tools that our team is using (after some trial and error): IDE - Eclipse/IDEA Source Control - SVN Build - Maven Local Network Maven Repo - Nexus (after a year trying different ones) Build Server - TeamCity, which absolutely rocks (We actually purchased and used Bamboo for 9 months. I can't believe it comes from the same company as JIRA. Bamboo was terrible.) Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not bad, but not fantastic either) Code Review - Code Collaborator (again not bad and I'd rather have it than nothing at all, but could be better) Our QA team has used various testing tools from expensive commercial tools like Mercury (now HP) Quality Center to Selenium. They use Rally for defect management. My highest recommendations are for TeamCity, Nexus, and SVN. -Matt -- View this message in context: http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23647597.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: Time Field
Does anyone know the converter for org.joda.time.Duration? It is not trivial one taking into account the user's locale. -- View this message in context: http://www.nabble.com/Time-Field-tp23930465p23931514.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: how to split application properties file into several properties files
As usual it becomes pretty simple if you know how. in the init method you should add: getResourceSettings().addStringResourceLoader(new ClassStringResourceLoader(YourModule.class)); If ClassStringResourceLoader didn't called base class it would be more efficient implementation. Vladimir K wrote: I would like to split the application properties file into several properties files. I know that I can share resources of base component and page among their descendants and at that I can use package propeties files. I just don't want to go this way because most of messages are organized in different way than components and pages. I wanna just split one file into several distinct files. What is the best way? -- View this message in context: http://www.nabble.com/how-to-split-application-properties-file-into-several-properties--files-tp24121864p24143617.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: How to turn ModalWindow form into multipart form?
yes it do has. near line 1095 of modal.js: Wicket.Window.getMarkup = function(idWindow, idClassElement, idCaption, idContent, idTop, idTopLeft, idTopRight, idLeft, idRight, idBottomLeft, idBottomRight, idBottom, idCaptionText, isFrame) { var s = div class=\wicket-modal\ id=\+idWindow+\ style=\top: 10px; left: 10px; width: 100px;\form style='background-color:transparent;padding:0px;margin:0px;border-width:0px;position:static'+ div id=\+idClassElement+\+ And it seems hacky and buggy. In our case we would use regular submit for FileUploadField instead of ajax if it wasn't hardcoded. Now we need to hack ModalWindow some way. I don't like iframe approach 'cause it forces user to submit twice and regular submit should have worked. If you don't know this very hardcoded form leads to problem reflecting request parameters to form components models because in java we have a stack of forms and submit request contains just data of this particular form. As the result form components of enclosing forms receive empty data and then ... at least unexpected validation problems. There has been a jira issue already that contains workaround description. I have to go right now. I'll find it later. igor.vaynberg wrote: modalwindow has a hardcoded form? On Thu, Jun 25, 2009 at 8:00 AM, Vladimir Kovalyukkoval...@gmail.com wrote: How to turn ModalWindow form into multipart form? The problem is that the markup code for that particular form is hard-coded into modal.js script (surprise!, surprise!). ModalWindow form submission problems han't been fixed yet, I mean rc5 - 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/How-to-turn-ModalWindow-form-into-multipart-form--tp24204896p24216939.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: How to turn ModalWindow form into multipart form?
Eyal, did you mean you have patched wicket.jar with modal.js on your own? I'm going to omit patching wicket.jar. We'll replace ModalWindow with regular page for a while. I don't understand why ModalWindow hasn't been implemented with regular wicket ajax engine. It would be easier to fix something. Matej, are you going to fix ModalWindow somehow to be capable of taking FileUploadField and UploadProgressBar components? egolan74 wrote: we overridden modal.js and changed the appearance of the modal window Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Fri, Jun 26, 2009 at 11:49 AM, Vladimir K koval...@gmail.com wrote: yes it do has. near line 1095 of modal.js: Wicket.Window.getMarkup = function(idWindow, idClassElement, idCaption, idContent, idTop, idTopLeft, idTopRight, idLeft, idRight, idBottomLeft, idBottomRight, idBottom, idCaptionText, isFrame) { var s = div class=\wicket-modal\ id=\+idWindow+\ style=\top: 10px; left: 10px; width: 100px;\form style='background-color:transparent;padding:0px;margin:0px;border-width:0px;position:static'+ div id=\+idClassElement+\+ And it seems hacky and buggy. In our case we would use regular submit for FileUploadField instead of ajax if it wasn't hardcoded. Now we need to hack ModalWindow some way. I don't like iframe approach 'cause it forces user to submit twice at the time when regular submit should have worked. If you don't know this very hardcoded form leads to problem reflecting request parameters to form components models because in java we have a stack of forms and submit request contains just data of this particular form. As the result form components of enclosing forms receive empty data and then ... at least unexpected validation problems. There has been a jira issue already that contains workaround description. I have to go right now. I'll find it later. igor.vaynberg wrote: modalwindow has a hardcoded form? On Thu, Jun 25, 2009 at 8:00 AM, Vladimir Kovalyukkoval...@gmail.com wrote: How to turn ModalWindow form into multipart form? The problem is that the markup code for that particular form is hard-coded into modal.js script (surprise!, surprise!). ModalWindow form submission problems han't been fixed yet, I mean rc5 - 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/How-to-turn-ModalWindow-form-into-multipart-form--tp24204896p24216939.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 - Eyal Golan egola...@gmail.com Visit: JVDrums LinkedIn: LinkedIn -- View this message in context: http://www.nabble.com/How-to-turn-ModalWindow-form-into-multipart-form--tp24204896p24273227.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: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?
From the ajax perspective it should be possible to submit any dom element with its descendants. I believe it is exactly what Wicket ajax submit is doing. IMO forms needed just for regular form submit. We just need to change an implementation to accept a list of dom elements instead of just one. I don't have an opinion about reasons to handle partial form submitting lifecycle on the server side. tleveque wrote: Thanks, but I was not talking about using the submit behavior. I was talking about the way to create my own ajax behavior to send the value of multiple form fields. I think this should be part of Wicket. It is not the first time I encounter this problem. The first time, I found a workaround but this time I am stuck. There should be a simple way to create an ajax behavior that will send the values from the form components we want. Maybe with the option to validate them or not. What do you think? Thierry 2009/7/7 Stefan Malmesjö s.m.mo...@gmail.com I just realized that maybe you need to extend your validators, too, at least if you want your modelobject to be updated. And how you do that on a textfield that is required, I don't really know. Maybe that path is too complicated. /Stefan On 2009-07-06 22:55, Stefan Malmesjö wrote: Could setting visibility for the FeedbackPanel to false until the form has been properly submitted with a press of a submit button work? /Stefan On Mon, Jul 6, 2009 at 8:42 PM, Thierry Leveque tleve...@gmail.commailto: tleve...@gmail.com wrote: Any following on that? Daniel, have you been able to solve your problem? Did you wrote your own behavior? I have the same requirement as you and I am trying to find a quick way to solve my problem. Can someone point me to some examples on how to write my own Ajax behavior? Thanks Thierry On Tue, Jun 2, 2009 at 12:21, Igor Vaynberg igor.vaynb...@gmail.com mailto:igor.vaynb...@gmail.com wrote: well, if you do not want to *submit* the form then dont use ajaxformSUBMITbehavior :) with little work you can roll your own behavior that does a simple ajax get and appends whatever values you need from formcomponents to the url. that way the form is not submitted and you have access to the raw values. -igor On Tue, Jun 2, 2009 at 9:16 AM, dfernandez dfernan...@users.sourceforge.net mailto:dfernan...@users.sourceforge.net wrote: Yes, I know it is tricky, but the fact is I don't think I would really need type conversion in this case. I will try to explain myself. I have the following UI: |OPERATOR |V| |INPUT1=aBc| |INPUT2=DeF | ...being OPERATOR the DropDownChoice, and both INPUT1 and INPUT2 two TextFields (String TextFields, to be precise). Both INPUT1 and INPUT2 are required (when they are visible, of course). When I change the value on OPERATOR, the UI will change, hiding INPUT1 and INPUT2 but showing INPUT3, another TextField which should have the same contents that were on INPUT1 before: |OPERATOR |V| |INPUT3=aBc| The problem is that, when changing OPERATOR, I need to read the value from INPUT1 to set it into INPUT3, but if INPUT2 is empty I will receive a validation message telling me that it is required... which it is, but I just want Wicket to validate that when I want to *really* submit the form, and not now that I am only changing the operator. Thanks. Regards, Daniel. igor.vaynberg wrote: how are you planning on reading the other values? you cannot access the model so you will have to call getinput(), are you also planning on doing type conversion yourself then? -igor 2009/6/2 Daniel Fernández dfernan...@users.sourceforge.net mailto:dfernan...@users.sourceforge.net: Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and from the other fields, and depending on these data, update some other components... but the problem is that AjaxFormSubmitBehavior not only sends the form data, but also *validates it*, which I don't want (I don't want validation messages to appear when changing the value of the drop down). If it where an AjaxButton I would be able to just
Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?
Wicket has strong rules how to handle ajax form submit. Therefore partial form submitting should be handled differently on the server side. Anyway we could handle raw strings or invoke converter ourselves. Vladimir K wrote: From the ajax perspective it should be possible to submit any dom element with its descendants. I believe it is exactly what Wicket ajax submit is doing. IMO forms needed just for regular form submit. We just need to change an implementation to accept a list of dom elements instead of just one. I don't have an opinion about reasons to handle partial form submitting lifecycle on the server side. tleveque wrote: Thanks, but I was not talking about using the submit behavior. I was talking about the way to create my own ajax behavior to send the value of multiple form fields. I think this should be part of Wicket. It is not the first time I encounter this problem. The first time, I found a workaround but this time I am stuck. There should be a simple way to create an ajax behavior that will send the values from the form components we want. Maybe with the option to validate them or not. What do you think? Thierry 2009/7/7 Stefan Malmesjö s.m.mo...@gmail.com I just realized that maybe you need to extend your validators, too, at least if you want your modelobject to be updated. And how you do that on a textfield that is required, I don't really know. Maybe that path is too complicated. /Stefan On 2009-07-06 22:55, Stefan Malmesjö wrote: Could setting visibility for the FeedbackPanel to false until the form has been properly submitted with a press of a submit button work? /Stefan On Mon, Jul 6, 2009 at 8:42 PM, Thierry Leveque tleve...@gmail.commailto: tleve...@gmail.com wrote: Any following on that? Daniel, have you been able to solve your problem? Did you wrote your own behavior? I have the same requirement as you and I am trying to find a quick way to solve my problem. Can someone point me to some examples on how to write my own Ajax behavior? Thanks Thierry On Tue, Jun 2, 2009 at 12:21, Igor Vaynberg igor.vaynb...@gmail.com mailto:igor.vaynb...@gmail.com wrote: well, if you do not want to *submit* the form then dont use ajaxformSUBMITbehavior :) with little work you can roll your own behavior that does a simple ajax get and appends whatever values you need from formcomponents to the url. that way the form is not submitted and you have access to the raw values. -igor On Tue, Jun 2, 2009 at 9:16 AM, dfernandez dfernan...@users.sourceforge.net mailto:dfernan...@users.sourceforge.net wrote: Yes, I know it is tricky, but the fact is I don't think I would really need type conversion in this case. I will try to explain myself. I have the following UI: |OPERATOR |V| |INPUT1=aBc| |INPUT2=DeF | ...being OPERATOR the DropDownChoice, and both INPUT1 and INPUT2 two TextFields (String TextFields, to be precise). Both INPUT1 and INPUT2 are required (when they are visible, of course). When I change the value on OPERATOR, the UI will change, hiding INPUT1 and INPUT2 but showing INPUT3, another TextField which should have the same contents that were on INPUT1 before: |OPERATOR |V| |INPUT3=aBc| The problem is that, when changing OPERATOR, I need to read the value from INPUT1 to set it into INPUT3, but if INPUT2 is empty I will receive a validation message telling me that it is required... which it is, but I just want Wicket to validate that when I want to *really* submit the form, and not now that I am only changing the operator. Thanks. Regards, Daniel. igor.vaynberg wrote: how are you planning on reading the other values? you cannot access the model so you will have to call getinput(), are you also planning on doing type conversion yourself then? -igor 2009/6/2 Daniel Fernández dfernan...@users.sourceforge.net mailto:dfernan...@users.sourceforge.net: Hello, I have a form with a DropDownChoice, on which onchange event I want to update some form components. But I need to read data from other fields of the form for doing so, and so I added an AjaxFormSubmitBehavior to the DropDownChoice. My intention is to read the data from the drop down and from the other fields, and depending on these data, update some other components... but the problem is that AjaxFormSubmitBehavior not only sends the form data
Re: Prefill form not model?
Martin, having read the thread I didn't get why you can not modify the object itself. OSiV shouldn't be the reason because the object should be detached when submitting the form and it should be merged into a brand new hibernate session. Actually I don't see the value of always keeping in mind that the raw input and backed object should have different values until final form submit. If your reusable components can submit form and aren't aware about that you can't reuse them in that sort of form. From my perspective your hack does not seem cleaner. What i'm doing in order to set the default value (for instance today for date picker) is subclassing form component and initialize its model object. It looks shorter and cleaner. MartinM wrote: Typically to prefill a form you have the backing model object have sensible defaults. i.e., a form that edits a person is given a person, and the person object has it's gender set to male as a default - that is reflected in your form when it is rendered. The problem is that it is not a NEW object. It is an old object with proposed new values which the user must SUBMIT in order to be stored into the object etc. otherwise, you could call setModelObject or perhaps setValue? Well.. that will destroy the object state, which is a different hassle. ** Martin -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jul 7, 2009 at 8:57 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! What is the proper way to prefill a wicket form (not poke the model before submit!!!)? I have used a hack: Field rawInputField = FormComponent.class.getDeclaredField(rawInput); rawInputField.setAccessible(true); rawInputField.set(component, description); Is there a better way? ** Martin - 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 -- View this message in context: http://www.nabble.com/Prefill-form-not-model--tp24373824p24386875.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