Re: pivot table in wicket
Why don't you try using jpivot, the front end is done using html and they have css that you can override to suit your needs. This also makes it easy to embed in your wicket pages. Not unless you want to write one from scratch, which I think will be very time consuming. PS: jpivot uses mdx to query the database On Wed, May 2, 2012 at 3:13 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi Has anybody implemented a (simple) pivot table in wicket? How can I store the pivot data (maybe a java library)? I want to create a simple pivot table in wicket with data retrieved from a database query. Any advice is welcome. Thanks, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/pivot-table-in-wicket-tp4603028.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: Captcha regeneration
Here is some code that I think will help remove(image); imagePass = randomString(6, 8); captchaImageResource = new CaptchaImageResource(imagePass); image = new Image(captchaImage, captchaImageResource); add(image); you can have it inside your onClick(AjaxRequestTarget target) {} the key point to note is that you have to remove it first from the component. Regards Kimotho. On Wed, Jun 9, 2010 at 11:14 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi team; I am trying to regenerate a captcha to help users incase the previous one was not very clear. I have tried several things including the code below captchaImg = new CaptchaImageResource(); captcha = new Image(captchaImg, captchaImg); captcha.setOutputMarkupId(true); frmRegistration.add(captcha); frmRegistration.setOutputMarkupId(true); IndicatingAjaxFallbackLinkString lnkTryNewCapcha = new IndicatingAjaxFallbackLinkString(lnkTryNewCapcha) { @Override public void onClick(AjaxRequestTarget target) { captchaImg = new CaptchaImageResource(); captcha.setOutputMarkupId(true); captcha.render(); } }; frmRegistration.add(lnkTryNewCapcha); However i am not successful. Which is the best way to do this. Regards. Josh.
Re: Just launched - www.onmydoorstep.com.au
Very well done, but you can do something about the home page banner like making the images fade into each other better. Regards, Kimotho On Wed, May 19, 2010 at 2:14 AM, Zilvinas Vilutis cika...@gmail.com wrote: Actually you CAN test it locally, just you need to configure that you need this feature in your FB app in FB itself. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Tue, May 18, 2010 at 2:29 PM, Richard Nichols r...@visural.com wrote: I pretty much used the code from https://cwiki.apache.org/WICKET/adding-facebook-connect.html You need to set up the /xd_reciever.htm for it to work correctly (take a look at the facebook connect api docs), either using a Wicket mapped resource, or using a servlet filter to return it. The other trap is that you can't test it locally. I spent an hour trying to debug why it wasn't working - the only reason was the API will not connect from any host other than the one registered in your Facebook App Config. If you try from localhost it just opens your site inside the Facebook login popup - really unhelpful (an error would be nice). If you follow the wiki article though, it should be fairly easy to get going. On 18 May 2010 22:56, Fernando Wermus fernando.wer...@gmail.com wrote: I need a hand with facebook connect and wicket in some weeks. Could you share your wicket facebook code? I imagine it is pretty easy. thanks in advance On Mon, May 17, 2010 at 10:31 PM, Richard Nichols r...@visural.com wrote: Hey all, Just thought fellow Wicketeers might be interested to take a look at a site I have just launched built 100% with Wicket - http://www.onmydoorstep.com.au/ The site is a community portal for people living in Victoria, Australia and displays government data about every suburb, city and town in the state. It also allows users to find government services and business nearby and submit community events/festivals and ask questions of other users. It integrates Wicket with Facebook Connect, Google Maps, Google Charts, Google's Weather API, plus on the backend, warp-persist, Guice and Hibernate/JPA. I also made extensive use of http://code.google.com/p/visural-wicket Anyhow - happy to answer any questions about the above technologies and the experience of building the site with Wicket. Also welcome feedback criticism should you have some :) cheers, Richard. -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Image Upload Using TinyMCE Within Wicket Framework
You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyński mletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Complete stack: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92
Re: Big Problem with TinyMCE
On your AjaxButton add TinyMceAjaxSubmitModifier. Kimotho. On Fri, Apr 30, 2010 at 12:53 AM, Brad Grier brad.gr...@salusnovus.comwrote: I'm trying to use a TinyMCE editor on a form (itself belonging to a panel added to a page via Ajax). The form is submitted via an AjaxButton. From other posts here and elsewhere I found I had to call tinyMCE.triggerSave(true,true); before the submit to get the data into the textarea's model and then tinyMCE.idCounter=0; after the submit. I used an IAjaxCallDecorator to add these functions to the submit button. The problem is that the form only submits with every other press of the button. When it fails, it looks like no script appended after the triggerSave runs. Can anyone help me out? I'm stuck. Thanks, Brad
Re: Image Upload Using TinyMCE Within Wicket Framework
When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟 nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Complete stack: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
Assistance required on WebSessions
Hi guys, I have a method getAllUsers(); that must be called when the session initializes and destroyed (i.e. call clear(); ) when the the user logs out OR the session expires, I need assistance on where to place the two methods ( getAllUsers() and clear() ) in the wicket application, the methods are spring injected. thanks, Kimotho.
Re: DataView disappearing after AJAX update
; @Override public String getObject() { return bean.getCategory(); } @Override public void setObject(String object) { bean.setCategory(object); } },TestBean.CATEGORIES); category.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { dataProvider.setFilter(bean); target.addComponent(toRepaint); } }); form.add(category); form.add(new DataViewTestBean(rows, dataProvider) { private static final long serialVersionUID = 1L; public void populateItem(final ItemTestBean item) { final TestBean user = item.getModelObject(); item.add(new Label(id, user.getName())); } }); } } -- html xmlns:wicket= http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; body wicket:panel div wicket:id=toRepaint form wicket:id=form div Category: select wicket:id=category/select /div table tbody tr wicket:id=rows tdspan wicket:id=id/span/td /tr /tbody /table /form /div /wicket:panel /body /html --- Is something like this what you want to achieve? Ernesto On Thu, Apr 29, 2010 at 2:25 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Just some questions... How does DataView's dataProvider get's affected by the code on onUpdate? Does getDataProvider(params); recreate it? Then the instance stored on DataView is different from the one you retrieve with getDataProvider(params)? Why not implement a SortableDataProvider, keep a local copy of it, pass it to DataView and update it's sort state on the onUpdate method? Ernesto On Thu, Apr 29, 2010 at 1:51 PM, Robert Kimotho kimot...@gmail.com wrote: I have experienced the same issue, the only difference is that when there was no data in the database the dropdown crashed and could not display any values, I'm also using AjaxFormComponentUpdatingBehavior onchange Here is a section of my code:- final WebMarkupContainer commentListContainer = new WebMarkupContainer(commentListContainer); commentListContainer.setOutputMarkupId(true); final DropDownChoiceString cats = new DropDownChoiceString(cat_select, new PropertyModelString(new VComment(), category) , category.getCategoriesByType(vcomment), new ChoiceRendererString()); cats.setOutputMarkupId(true); add(cats); final AbstractDataProviderVComment dataProvider = (VCommentDataProvider) getDataProvider(params); final DataViewVComment commentView = new DataViewVComment(commentList, dataProvider, 10) { @Override protected void populateItem(ItemVComment item) {.} } commentListContainer.add(commentView); cats.add(new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { params.put(cat, cats.getModelObject()); getDataProvider(params); target.addComponent(commentListContainer); target.addComponent(cats); } }); Kimotho. On Thu, Apr 29, 2010 at 12:42 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Can you post the code that was failing somewhere? Maybe someone can spot what is happening;-) Best, Ernesto On Thu, Apr 29, 2010 at 11:21 AM, Reinout van Schouwen rein...@gmail.com wrote: Replying to myself. I've worked around the problem by not using the AJAX method to update my DataView but by reloading the page with different pageparameters after a selection instead. Far from ideal, but the best I could come up with. Alternative solutions still welcome! Op maandag 26-04-2010 om 14:20 uur [tijdzone +0200], schreef Reinout van Schouwen: I'm having trouble figuring out the following problem. I have a div (coupled to a WebMarkupContainer) containing a form and a list. The list is populated with a DataView, which gets its data from a SortableDataProvider that I have implemented according to the repeater examples provided on wicket-library.com. What I want to do is to change the sort order based on a user selection from a DropDownChoice in the form. I've used
Re: DataView disappearing after AJAX update
I have experienced the same issue, the only difference is that when there was no data in the database the dropdown crashed and could not display any values, I'm also using AjaxFormComponentUpdatingBehavior onchange Still trying to find a solution. Kimotho. On Thu, Apr 29, 2010 at 12:21 PM, Reinout van Schouwen rein...@gmail.com wrote: Replying to myself. I've worked around the problem by not using the AJAX method to update my DataView but by reloading the page with different pageparameters after a selection instead. Far from ideal, but the best I could come up with. Alternative solutions still welcome! Op maandag 26-04-2010 om 14:20 uur [tijdzone +0200], schreef Reinout van Schouwen: I'm having trouble figuring out the following problem. I have a div (coupled to a WebMarkupContainer) containing a form and a list. The list is populated with a DataView, which gets its data from a SortableDataProvider that I have implemented according to the repeater examples provided on wicket-library.com. What I want to do is to change the sort order based on a user selection from a DropDownChoice in the form. I've used an AjaxFormComponentUpdatingBehavior to listen to the dropdown's onchange event. In the onUpdate() method I change the sortparam in the dataprovider according to the selection and then add the container div to the AjaxRequestTarget. What I expect to happen is that the DataView updates to reflect the new sort order. What actually happens is that the DataView completely disappears from the page! (The Wicket Ajax Debug window shows me that the spot where the list should be in the HTML within the ajax-response is indeed empty.) I've already set the outputmarkupid and the outputmarkupplaceholdertag properties on the container to true but that makes no difference. Any ideas are appreciated! regards, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataView disappearing after AJAX update
I have experienced the same issue, the only difference is that when there was no data in the database the dropdown crashed and could not display any values, I'm also using AjaxFormComponentUpdatingBehavior onchange Here is a section of my code:- final WebMarkupContainer commentListContainer = new WebMarkupContainer(commentListContainer); commentListContainer.setOutputMarkupId(true); final DropDownChoiceString cats = new DropDownChoiceString(cat_select, new PropertyModelString(new VComment(), category) , category.getCategoriesByType(vcomment), new ChoiceRendererString()); cats.setOutputMarkupId(true); add(cats); final AbstractDataProviderVComment dataProvider = (VCommentDataProvider) getDataProvider(params); final DataViewVComment commentView = new DataViewVComment(commentList, dataProvider, 10) { @Override protected void populateItem(ItemVComment item) {.} } commentListContainer.add(commentView); cats.add(new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { params.put(cat, cats.getModelObject()); getDataProvider(params); target.addComponent(commentListContainer); target.addComponent(cats); } }); Kimotho. On Thu, Apr 29, 2010 at 12:42 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Can you post the code that was failing somewhere? Maybe someone can spot what is happening;-) Best, Ernesto On Thu, Apr 29, 2010 at 11:21 AM, Reinout van Schouwen rein...@gmail.com wrote: Replying to myself. I've worked around the problem by not using the AJAX method to update my DataView but by reloading the page with different pageparameters after a selection instead. Far from ideal, but the best I could come up with. Alternative solutions still welcome! Op maandag 26-04-2010 om 14:20 uur [tijdzone +0200], schreef Reinout van Schouwen: I'm having trouble figuring out the following problem. I have a div (coupled to a WebMarkupContainer) containing a form and a list. The list is populated with a DataView, which gets its data from a SortableDataProvider that I have implemented according to the repeater examples provided on wicket-library.com. What I want to do is to change the sort order based on a user selection from a DropDownChoice in the form. I've used an AjaxFormComponentUpdatingBehavior to listen to the dropdown's onchange event. In the onUpdate() method I change the sortparam in the dataprovider according to the selection and then add the container div to the AjaxRequestTarget. What I expect to happen is that the DataView updates to reflect the new sort order. What actually happens is that the DataView completely disappears from the page! (The Wicket Ajax Debug window shows me that the spot where the list should be in the HTML within the ajax-response is indeed empty.) I've already set the outputmarkupid and the outputmarkupplaceholdertag properties on the container to true but that makes no difference. Any ideas are appreciated! regards, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shadow text on input fields
have you tried:- input type=text name= size= value= your text... onFocus=this.value='' onMouseOver=window.status=' your txt...';return true onMouseOut=window.status='';return true Kimotho, On 4/26/10, Stefan Jozsa stefan_...@yahoo.com wrote: CSS: .inputHint { color: #66; } Java: add(new AttributeModifier(value, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return yourHintText; } })); add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return inputHint; } })); add(new AttributeModifier(onfocus, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return removeInputHint(this,'inputHint');; } })); JS: removeInputHint = function(x, c) { x.setAttribute('value', ''); jQuery(x).removeClass(c); } Stefan - 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
Form submit with tinymce
Hello guys, I'm trying to submit a form (including tinymce content and an emoticon). The problem I'm having is that the emoticon does not get displayed at the destination only some text. does anyone know what to do. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form submit with tinymce
Thanks for the quick reply, I have used firebug to inspect the code, that tinymce saves. here it is :- img title=Cool src=resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif border=0 alt=Cool / the only thing that gets displayed is the title and the alt attributes. I still cannot figure out why the image won't display. On 4/26/10, Steve Swinsburg steve.swinsb...@gmail.com wrote: Whats the raw content behind the text containing the emoticon when you submit? Is the emoticon represented as just a :) for example? If so you'll need to parse the output and render as the images. A graphical editor is just a fancy wrapper around text. cheers, Steve On 26/04/2010, at 10:03 PM, Robert Kimotho wrote: Hello guys, I'm trying to submit a form (including tinymce content and an emoticon). The problem I'm having is that the emoticon does not get displayed at the destination only some text. does anyone know what to do. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownList
Override getDefaultChoice() as in the following code:- @Override protected CharSequence getDefaultChoice(Object selected) { return option value=\\your header/option; } On Wed, Apr 14, 2010 at 3:00 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi team; Please tell me , how do i change the Choose One text on the drop down list to something else? regards; Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajaxfallbackbutton and uploadprogressbar
Hi, I'm using an uploadprogressbar in a form that is being submitted using ajaxfallbackbutton, the following is the code, final Form images = new Form(images_form); images.setMaxSize(Bytes.megabytes(7)); final UploadProgressBar progress = new UploadProgressBar(progress, images); progress.setOutputMarkupPlaceholderTag(true); images.add(progress); add(images); images.add(new AjaxFallbackButton(change_img, images) { ... } this uploads with no errors! but the progress bar doesn't get displayed. what could be the problem. Regards. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org