Re: Google Map using Wicket
Thank you for pointing. I found so many other projects which are good ones. But no way to reach these links from wicket site ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Google-Map-using-Wicket-tp4671468p4671476.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
Google Map using Wicket
Hi I found all wicketstuff project related to google map not maintained any more .. When i search forum i saw posts back to 2010, 2009 .. no recent posts on this topic. So I thought of posting one here to check what is the way to go forward for embedding google maps on wicket application. Regards Nazeem -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Google-Map-using-Wicket-tp4671468.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: drop n drop
Thank you for the detail. Will use dnd pointed in the post. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drop-n-drop-tp4665408p4665424.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
drop n drop
Any suggestions for implementing drag and drop. Is there any thing in wicket 6. In our old project on wicket 1.4 we used wicket dnd (code.google.com/p/wicket-dnd/) to implement drag n drop. I dont see that active any more. So what is the best option ? I saw the wicket2-select project by igor using drag n drop to sort the items. Any suggestions from that ? I searched the forum for the key words drag n drop and i dont see any messages posted in the last few months in line to this topic. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drop-n-drop-tp4665408.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: backspace - when not on focus in field
Thanks Niranjan & Swen, I managed to add this js to block backspace when not on focus on form fields. I believe this fix will not be required when we get Wicket 7 ajax history support ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/backspace-when-not-on-focus-in-field-tp4664922p4664932.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
handsontable integration
Has any one tried to use this http://handsontable.com/ for excel like grid editing ? Power users like excel like editing for bulk form processing. So I am trying to integrate some features like this. Any suggestions please ? Rendering i think will not be an issue, how to integrate with model for submit ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/handsontable-integration-tp4664923.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
backspace - when not on focus in field
I use lot of ajax to replace panels on user clicks so that user can drill down deep in to the page view. When using forms if the focus is not on text field or any form fields. hitting backspace takes the user all the way to the main page. How can i prevent this behavior ? naz -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/backspace-when-not-on-focus-in-field-tp4664922.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: double type text field - auto roundsoff
No i don't have any initialised. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628p4664714.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: double type text field - auto roundsoff
Changing the object type to Big Decimal solves this .. Still not clear how.. if any body knows any clue please let me know.. TextField -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628p4664701.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: double type text field - auto roundsoff
Here is the generated html On inspecting the DOM i see the set range text property set to setRangeText : setRangeText() If i remove the on blur event , the value remains as decimal, but I can't do validations without onBlur. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628p4664659.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: double type text field - auto roundsoff
Today i noticed the same behaviour in another text field of type double. But on refresh the issue was not repeating. So.. any clue to trouble shoot this issue in this form ? where it is consistently reproduced. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628p4664650.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: double type text field - auto roundsoff
Hi Sven, I had used in other places, this is not the case. it works perfectly fine. I had tried that break point approach as well before posting, my setter is called with correct value. Only after the refresh or repaint in onBlur.. the value changes in the form itselfto 604. Now when i hit submit the setter is called with 604, because that is what is in field value. But during refresh how it turns from decimal value to 604 ? that s what im not able to trouble shoot. Thank u for ur time. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628p4664631.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
double type text field - auto roundsoff
Hi I am having an issue with the Double text field which when keyed in for eg, 604.43 rounds of to 604. I am using the txField.add(new AjaxFormComponentUpdatingBehavior("onblur") { .. } . Inside this im doing validations, if error or no error I am repaining the text field. When repainting it the values changes from 604.43 to 604. During the on blur event i get the value correctly.. But after the method completes and repainted the value is changed to 604. How to trouble shoot this ? Regards Naz -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628.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 for Hybrid App
My App is not static, I intend build some thing like this.. Phone gap + html + css + JS >> Bundled as Android App / iPhone App To start with need to be online, connect to the server using REST, synchronize the data and store in local db storage via phone gap api's. Now when offline, the App uses local storage DB and when connected to internet it sends all local stored or updated info to server via REST and pulls latest info from server. Do you see any issue with this ? I would love to use Wicket for the front end, but not yet.. Can wicket generate client side stubs like DWR does ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-for-Hybrid-App-tp4657458p4657602.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 for Hybrid App
That sounds interesting.. But im afraid it gets bigger in size, memory etc.. Need to try this.. But for now, I chose jQuery + REST to communicate to server for data and all other html, JS, css etc packaged as phone gap app. So the desktop version of the client is Wicket and mobile version in plain JS, Css,Html. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-for-Hybrid-App-tp4657458p4657546.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 for Hybrid App
Hi Thanks for your input. I understand what you meant, to serve pages from the server directly. So the phone gap will be trying to launch some thing like http://app.company.com/demo/... . I agree, can be done this way. But one important criteria or requirement, is that the app should work offline.. :) In case of offline, the data is to be stored in local phone db (sqllite or session .. ) and then sync back to server. So I can rely on data from the server but not the pages as such.. regards naz. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-for-Hybrid-App-tp4657458p4657461.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 for Hybrid App
Hi, We have a full fledged application running on Wicket + Hibernate + Spring .. Now we are left with no choice but to come up with a mobile version of the same.. But the requirements for mobile are it must have capabilities to scan bar code, take photo and upload, attach documents from mail in mobile, etc.. goes on.. So it has to be native to have these features.. But we want to use the wicket or html / js / css skills to get these app faster. This is when we are looking for hybrid apps and came across platforms like phonegap, apache cordova, etc.. Can wicket be used for hybrid apps ? If so how.. Regards Nazeem -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-for-Hybrid-App-tp4657458.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: reload model on render
Yes I understand your point. But i have to get the object manipulate it then only feed it to the label. In this case i cannot pass the model directly. For this i had to workaround this problem bit differently. I had moved the section to a fragment and then inside onBeforeRender i am reconstructing the fragment by fetching data from db and attaching to the container. This works for me. Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/reload-model-on-render-tp4442813p4443821.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
reload model on render
Hi I have a content area in which I am displaying say PanelA. In PanelA I have a link to navigate to PanelB. When I click that I replace the content area with PanelB. When I construct PanelB i pass the instance PanelA via PanelA.this so that PanelB can show a link to go back to PanelA. When the go back link in panelB is clicked I do a replace content area with the object (instance of panelA) I recieved in the construtor. This works perfectly fine and the to n fro navigation is quick. It does not reload the whole stuff again. Done. But I need to reload some of the data changed in backend when coming from PanelB back to PanelA. Right now the PanelA shows the old data it does not re-load. I tried using the LoadableDetachableModel but that does not get triggered. Any clue please.. -naz -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/reload-model-on-render-tp4442813p4442813.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 appl architecture
This is an interesting article referring to the Linked In tech team experience and how they are addressing using client side template.. http://blogs.developerforce.com/developer-relations/2011/12/thoughts-on-ui-architectures.html Thoughts on UI Architecture In the above article he refers to this https://engineering.linkedin.com/frontend/leaving-jsps-dust-moving-linkedin-dustjs-client-side-templates So, the concept of single json/rest api interface addressing to all type of client (full web based app, mobile version of html app, ios, android, etc). In this case how can I write wicket components to render from jsons ? i believe its not required since its more on the server side, direct pojos should be fine. But at the last he also mentions "Server-side templating should continue to be the default choice for most web applications as it offers many benefits like performance, security etc.". This seemed contradicting to the full details explained. Can any one clarify where does wicket fall in this structure and how we can leverage both (server side templating + client side templating for mobile apps) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-appl-architecture-tp4305917p4322698.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 appl architecture
Russell Pitre wrote > > Separate front-end sounds fine. Use a REST architecture with JSON as the > data exchange format. I'm pretty Spring MVC supports this through the use > Jackson JSON library. Its something to add to your list of possible > options. > Wicket is component based and differs from Spring MVC. So do you mean you are using component based hierarchy for the user interface and spring mvc for the REST services exposed for external communication ? Is it possible ? Arjun Dhar wrote > > JSON Library + CXF wtf! > Arjun, thank you for the input. Will try CXF, I haven't used it so far. Going thru the doc it looks promising with wide support. By the what do you mean by wtf! ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-appl-architecture-tp4305917p4308822.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 appl architecture
Hi I am currently developing an application using Wicket + Spring + Hibernate. So far everything is smooth and I use a lot of Ajax which works perfectly fine. Now I need to provide options for data entry via mobile devices like Andriod (Samsing Tab) + iOS (iPad). My initial plan was to develop web based UI specific to suit these devices so that it reduces the complexity of developing for multiple platform. But now, I need offline usage as the signal strength can vary from place to place, so web based option is ruled out. (not sure if options like gears for offline usage will work in mobile devices). Also I need to use device specific native features like camera to upload photos from the device. So I am planning to develop separate front end for iOS & Andrioid. Is this the right approach ? What will be the communication layer between Server & Mobile applications ? REST ? If not what else. Please suggest. Also advice on the libraries that will help me get there.. regards, nazeem -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-appl-architecture-tp4305917p4305917.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: WebResource in Wicket 1.5
Yes, I am not yet thru with my wicket 1.5 migration. so was changing my 1.4 version and testing the same. I think its some thing to do with apache proxy. If i directly access the :8080/erp it works but when i access thru the apache /erp i face this problem. my apache config - ProxyPass /erp http://127.0.0.1:8080/erp ProxyPassReverse /erp http://127.0.0.1:8080/erp -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebResource-in-Wicket-1-5-tp4106181p4123031.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: WebResource in Wicket 1.5
Thanks Vineet, I managed to change WebResource to ByteArrayResource. But I am stuck with a problem in the url for json constructed. CharSequence dataPath = RequestCycle.get().urlFor(OpenFlashChart.this, IResourceListener.INTERFACE); String url = RequestUtils.toAbsolutePath(dataPath.toString()); When i deploy to my server and access it using the ip address, the json data url was still referring to http://127.0.0.1:8080/erp/app/home/wicket:interface. so the js to embed did not work swfobject.embedSWF('resources/com.company.charts.ForceChartResource/ofc/resr/open-flash-chart.swf','chart8', '100%', '200', '9.0.0', 'expressInstall.swf', {'data-file':'http://127.0.0.1:8080/erp/app/home/wicket:interface/:3:dashboard:layout:lcontent-list:3:lcss-cntr:lcontent:dsb-content:chart::IResourceListener::'}, {} ); RequestUtils.toAbsolutePath is not working as expected ? Any clue ? DEBUG MESSAGES FROM LOG --- data path >> home/wicket:interface/:3:dashboard:layout:lcontent-list:3:lcss-cntr:lcontent:dsb-content:chart::IResourceListener:: req.getRequestURI /erp/app/home req.getRequestURL http://127.0.0.1:8080/erp/app/home req.getContextPath /erp req.getPathInfo /home req.getPathTranslated /home/ec2-user/server/apache-tomcat-7.0.8/webapps/erp/home req.getServletPath /app req.getRemoteHost 127.0.0.1 req.getRemotePort 33230 req.getLocalName() localhost -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebResource-in-Wicket-1-5-tp4106181p4122979.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: duplicate form - js modal window
thank u. will go thru the same. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/duplicate-form-js-modal-window-tp4110289p4118440.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: duplicate form - js modal window
I had worked around the problem by modifying the js to not to duplicate content and instead to remove the original content and show in popup. Later on closing it puts back the content on the same node. But in any case, i would like to know how to convert a component to rendered html string. public String renderToHtmlString(Component c) { System.out.println("> current request cycle : " + getRequestCycle()); Response orgResponse = RequestCycle.get().getResponse(); StringResponse strResponse = new StringResponse(); RequestCycle.get().setResponse(strResponse); try { Page page = c.getPage(); if(page != null) { page.startComponentRender(c); } c.prepareForRender(); c.renderComponent(); if(page != null) { page.endComponentRender(c); } } catch(Exception e) { c.afterRender(); e.printStackTrace(); } RequestCycle.get().setResponse(orgResponse); return strResponse.toString(); } Do u see any problem with this ? Is there any way to render a component without a page ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/duplicate-form-js-modal-window-tp4110289p4118384.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
intercept client request
In the server side, i need to know who is performing this action to do auditing and other related services. So I need to use a thread local variable that will be available at any place in the chain of request until response is sent back. But I do not know how to set this thread local variable at the time of request. I have the current user in session, so i need to get it from session and set it to thread local variable on each request. if possible distinguish and filter only user request actions instead for all css, js request. When i look at the stack trace, when i click a submit link to update employee.. this is the strucutre. I am interested to intercept between this to set the thread local variable. how do i do it ? ForceDAO.updateDO(T) line: 153 EmployeeService.updateEmployee(Employee) line: 43 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 LazyInitProxyFactory$JdkHandler.invoke(Object, Method, Object[]) line: 416 $Proxy38.updateEmployee(Employee) line: not available EmpAddForm$1.onSubmit(AjaxRequestTarget, Form) line: 152 Stack Trace - Thread [btpool0-5] (Suspended (breakpoint at line 43 in CrudInterceptor)) CrudInterceptor.onFlushDirty(Object, Serializable, Object[], Object[], String[], Type[]) line: 43 DefaultFlushEntityEventListener.invokeInterceptor(SessionImplementor, Object, EntityEntry, Object[], EntityPersister) line: 372 DefaultFlushEntityEventListener.handleInterception(FlushEntityEvent) line: 349 DefaultFlushEntityEventListener.scheduleUpdate(FlushEntityEvent) line: 287 DefaultFlushEntityEventListener.onFlushEntity(FlushEntityEvent) line: 155 DefaultFlushEventListener(AbstractFlushingEventListener).flushEntities(FlushEvent) line: 219 DefaultFlushEventListener(AbstractFlushingEventListener).flushEverythingToExecutions(FlushEvent) line: 99 DefaultFlushEventListener.onFlush(FlushEvent) line: 50 SessionImpl.flush() line: 1216 HibernateTemplate(HibernateAccessor).flushIfNecessary(Session, boolean) line: 390 HibernateTemplate.doExecute(HibernateCallback, boolean, boolean) line: 407 HibernateTemplate.executeWithNativeSession(HibernateCallback) line: 374 HibernateTemplate.update(Object, LockMode) line: 705 HibernateTemplate.update(Object) line: 701 ForceDAO.updateDO(T) line: 153 EmployeeService.updateEmployee(Employee) line: 43 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 LazyInitProxyFactory$JdkHandler.invoke(Object, Method, Object[]) line: 416 $Proxy38.updateEmployee(Employee) line: not available EmpAddForm$1.onSubmit(AjaxRequestTarget, Form) line: 152 AjaxSubmitLink$1.onSubmit(AjaxRequestTarget) line: 68 AjaxSubmitLink$1(AjaxFormSubmitBehavior).onEvent(AjaxRequestTarget) line: 143 AjaxSubmitLink$1(AjaxEventBehavior).respond(AjaxRequestTarget) line: 177 AjaxSubmitLink$1(AbstractDefaultAjaxBehavior).onRequest() line: 300 BehaviorRequestTarget.processEvents(RequestCycle) line: 119 ForceWebApplication$2(AbstractRequestCycleProcessor).processEvents(RequestCycle) line: 92 ForceWebRequestCycle(RequestCycle).processEventsAndRespond() line: 1250 ForceWebRequestCycle(RequestCycle).step() line: 1329 ForceWebRequestCycle(RequestCycle).steps() line: 1436 ForceWebRequestCycle(RequestCycle).request() line: 545 ForceWicketFilter(WicketFilter).doGet(HttpServletRequest, HttpServletResponse) line: 484 ForceWicketFilter.doGet(HttpServletRequest, HttpServletResponse) line: 27 ForceWicketFilter(WicketFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 317 ForceWicketFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 21 ServletHandler$CachedChain.doFilter(ServletRequest, ServletResponse) line: 1084 ServletHandler.handle(String, HttpServletRequest, HttpServletResponse, int) line: 360 SecurityHandler.handle(String, HttpServletRequest, HttpServletResponse, int) line: 216 SessionHandler.handle(String, HttpServletRequest, HttpServletResponse, int) line: 181 WebAppContext(ContextHandler).handle(String, Ht
Re: duplicate form - js modal window
Hi [RESUBMITTING AS I HAD TO EDIT] I have a simple form, which works well when embedded in any page. The same content when opened as js popup using javascript the content is duplicated and shown as popup. That means i have two forms in page with the same id, fields, button etc. The java script duplicates the content and shows in modal dialog. As a result the original form in page works whereas the one shown in popup does not work as expected. The form in popup when tried to submit, shows the following in Ajax debug message. Ajax POST stopped because of precondition check, url:?x=LSivuEhoy*0lYZYdkl28r0Tv03L6AnM-uQ1oeRJYX32lx*dhp5v980O2uGjT4de84YNs5nAmYtdaKZrrBJmc65k*0OsItSe57YMJJG8zmSeufYendFBylCR5*40t33QaHq2GavzsnRnN8VKmP04s19B2rKuYIvFi4heVbshvWHrlGfbP*hP2p8NELqZP2550 How do I overcome this ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/duplicate-form-js-modal-window-tp4110289p4110295.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
duplicate form - js modal window
Hi I have a simple form, which works well when embedded in any page. The same content when opened as js popup using javascript the content is duplicated and shown as popup. That means i have two forms in page with the same id, fields, button etc. The java script duplicates the content and shows in modal dialog. How do I overcome this ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/duplicate-form-js-modal-window-tp4110289p4110289.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: repeated PageExpired error
Not able to reproduce in quick start. will try and update ASAP -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/repeated-PageExpired-error-tp4106667p4110276.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
repeated PageExpired error
I am upgrading my application to wicket 1.5 from 1.4, the server starts up well and then when i hit the url my home page, sign in page is called and i can see its getting rendered. But goes back to Page Expired error page. This happens repeatedly. Hence I am not able to proceed with the migration. Any help on this please ? debug log messages attached. http://apache-wicket.1842946.n4.nabble.com/file/n4106667/pageexpired.txt pageexpired.txt -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/repeated-PageExpired-error-tp4106667p4106667.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
WebResource in Wicket 1.5
I have a open flash chart implementation following the link below. https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html But when i upgrade to wicket 1.5 im stuck at this.. In class OpenFlashChart, WebResource jsonResource = new WebResource() { @Override public IResourceStream getResourceStream() { return json; } }; jsonResource.setCacheable(false); ... public void onResourceRequested() { jsonResource.onResourceRequested(); } What is the replacement for this in wicket 1.5 ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebResource-in-Wicket-1-5-tp4106181p4106181.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 - form debug
Wow ! it worked. Thank you so much. So i did not understand the borders well.. :) I am developing a component library on wicket and I enjoy doing it, and it gives great productivity boost to the developers and helps to get the look and feel consistent. Thank you so much for the support. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-form-debug-tp3915041p3915889.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 - form debug
Thanks Igor. I was mislead by seeing the generated html. In the rendered html the textfield is inside, but from the code, I am adding the MyTextField to the border and not to the form. In MyFormBorder I am adding the contents to the form, will this not solve ? form.add(getBodyContainer()); I also tried this, but it gives me error saying name field not found. myFormBorder.getForm().add(ftf); Any other suggestions please. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-form-debug-tp3915041p3915794.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 - form debug
I have simple case, which worked for me in another project but failed in the current one. Both use same set of libraries. I am doing something wrong, could not trace it down. Please help to debug this. I am designing a reusable form & textfield component, which will have provision to show feedback beneath each text field and so on. The problem I am facing is, MyTextField is a border which in turn contains TextField, this text field is set as required = true, when i submit the form, onSubmit from the submit button gets called instead of onError. But if I add a plain raw textfield directly to MyFormBorder it works as expected, i.e onError is called when no value is entered. How do I debug this problem ? Please assist. I am using wicket 1.4.19 Code Below public class MyFormBorder extends Border { FeedbackPanel fbp; Form form; public MyFormBorder(String id, IModel model) { super(id); fbp = new FeedbackPanel("feedback"); fbp.setOutputMarkupId(true); add(fbp); form = new Form("form", model); form.add(getBodyContainer()); add(form); } public void onError(AjaxRequestTarget target, Form form) { if(form.hasFeedbackMessage()) { fbp.info(form.getFeedbackMessage().getMessage().toString()); } target.addComponent(fbp); } public Form getForm() { return form; } } Html - TextField - public class MyTextField extends Border { ComponentFeedbackPanel cfbp; TextField textField; WebMarkupContainer cntr = new WebMarkupContainer("cntr"); public MyTextField(String id, String label, IModel model, boolean required) { super(id); cntr.setOutputMarkupId(true); cntr.add(new Label("label", label)); textField = new TextField("textfield", model); textField.setLabel(new Model(label)); textField.setRequired(required); cntr.add(textField); cfbp = new ComponentFeedbackPanel("cfbp", textField); cfbp.setOutputMarkupId(true); cfbp.setVisible(false); cntr.add(cfbp); cntr.add(getBodyContainer()); add(cntr); } } HTML - I am using these myformborder & mytextfield as below Menu menu = new Menu(); MyFormBorder myFormBorder = new MyFormBorder("ffborder", new Model(menu)); MyTextField ftf = new MyTextField("name", "Menu Name", new PropertyModel(menu, "name"), true); myFormBorder.add(ftf); // Without the following textfield getting directly added, onError is not called for the above text field TextField tf = new TextField("desc", new PropertyModel(menu, "description")); tf.setRequired(true); forceFormBorder.add(tf); AjaxSubmitButton submit = new AjaxSubmitButton("submit", forceFormBorder.getForm()) { @Override protected void onSubmit(AjaxRequestTarget arg0, Form arg1) { System.out.println("onSubmit..."); } @Override protected void onError(AjaxRequestTarget target, Form form) { System.out.println("onError..."); } }; forceFormBorder.add(submit); add(forceFormBorder); HTML - # Submit -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-form-debug-tp3915041p3915041.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: Mouse click position
Yes, I agree it is more of javascript. But in my code I am trying to use only java scripts bundled in wicket. Did not want to add more java script libraries to keep it simple. I use attribute modifier for all dynamic behaviour's, similarly I am trying to open a window popup but instead of positioning in middle, would like to position just next to the mouse click. Any clue to get the mouse click position will be great. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mouse-click-position-tp2543125p2543257.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
Mouse click position
Hi, I would like to show small popup relative to the position of mouse click. Especially when user click a link, I need to show list of options and allow user to click on one of them. For this I need to know the position of the link and mouse click so that I can position the popup accordingly. Please advice how we do this using wicket. Regards. Naz -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mouse-click-position-tp2543125p2543125.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
component .... not found on page
I get the following error on first time i visit the page or panel. But on reload, i.e, reverting back to original url localhost:8080/app everything works normal. SortableDataProvider sdp = new SortableDataProvider(filter.getQuery(), Order.class); sdp.setInitSortBy("ordr.orderId desc"); currentPage = 0; final WebMarkupContainer tcontainer = new WebMarkupContainer("tcontainer"); tcontainer.setOutputMarkupId(true); final DataView dView = new DataView("list", sdp, rowsPerPage) { private static final long serialVersionUID = 0L; @Override protected void populateItem(Item item) { final Order order = item.getModelObject(); item.setModel(new CompoundPropertyModel(order)); int num = currentPage == 0 ? sNo++ : (currentPage * rowsPerPage) + sNo++; item.add(new Label("sNo", new Model(num))); AjaxLink viewDetLnk = new AjaxLink("viewDetail") { private static final long serialVersionUID = -100047462061223L; @Override public void onClick(AjaxRequestTarget target) { try { log.info(">>> "); OrderDetailPanel odp = new OrderDetailPanel(BasePage.CONTENTPANELID, order, OrderListPanel.this); //replacePanel(new EmptyPanel(BasePage.CONTENTPANELID), target); replacePanel(odp, target); } catch(Exception e) { e.printStackTrace(); errorAlert("Error occured : " + e.getMessage() + ",\n please try again ", target); } } /*...@override protected IAjaxCallDecorator getAjaxCallDecorator() { return getIndicator(); }*/ }; viewDetLnk.add(new Label("invoiceNo")); item.add(viewDetLnk); ... html.. S.No: Invoice No ... Actions .. Any clue ? But if I replace the onclick action to just to replace with empty panel everything seems to be normal.. Thanks Cresc..
tabbed pages not panels
Does wicket have inbuilt support for tabbed pages ? not tabbed panels. Please point me to if available -- View this message in context: http://www.nabble.com/tabbed-pages-not-panels-tp17582637p17582637.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]