AutoLinkResolver WARNINGS
Hi,I have my markups in another folder and am mounting static pages via a generic template (so I don't have to use a new class for every static page). The Static pages are in a Common template, that uses a common menu to navigate and uses to get the correct link from Wicket. Works great; except I see the following in the log, which concerns me. I'd like to suppress the cause of the log: WARN - AutoLinkResolver - Did not find corresponding java class: com.mysite.site.pages.templates.static_page_name Code: == In my extension of "WebApplication.init()" I have: mount(new MixedParamUrlCodingStrategy( "/static", GenericStaticPage.class, new String[]{"pageId"} )); I also have getResourceSettings().setResourceStreamLocator with the following: (to direct the location to the markup files: standard stuff) public ResourceStreamLocator getFileResourceStreamLocator(final ServletContext sc) { final IResourceStreamLocator defaultLocator = super.getResourceSettings().getResourceStreamLocator(); return new ResourceStreamLocator(){ @Override public IResourceStream locate(final Class clazz, final String path) { String derivedPath = "/html" + path.replaceFirst("com/mysite/site/pages", ""); //TODO: Cleanup! try { URL url = sc.getResource(derivedPath); if (url != null) { log.debug("[getFileResourceStreamLocator.locate] derivedPath = " + derivedPath); return new UrlResourceStream(url); } } catch(MalformedURLException e) { } log.debug("[getFileResourceStreamLocator.locate] default path = " + path); return defaultLocator.locate(clazz, path); //Use default locator } }; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoLinkResolver-WARNINGS-tp2332181p2332181.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: AutoCompleteTextField: converter seems to be ignored
> However, wicket never calls the getConverter() method and simply uses > SomePOJO.toString() to retrieve the text for the choices. What am I > doing wrong? One possibility is that in all the nested classes in the typical Wicket source file you have added the method to the wrong class. Try adding @Override to indicate that you intend to override a superclass method, and see if the compiler or IDE complains. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: POST request comes as GET in wicket
Hi! You may look at Apache Wiki, for example, https://cwiki.apache.org/WICKET/render-strategies.html. PRG (post-> redirect -> get) - the default request processing strategy in the Wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-request-comes-as-GET-in-wicket-tp2331840p2332091.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: Sort column header for PageableListView
Hi! Like this? https://cwiki.apache.org/confluence/display/WICKET/Simple+Sortable+DataTable+Example Best Regards, Anton Hi All, My project is already developed in Wicket framework. In which PageableListView is used to display number of records with pagination. Further i have to make this list sortable on clicking its column header. I could find examples given for DataTable to sort, but can anybody give me sample code for PageableListView to sort by column header click. I will be thankful.. Deepa.. . - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Sort column header for PageableListView
Hi All, My project is already developed in Wicket framework. In which PageableListView is used to display number of records with pagination. Further i have to make this list sortable on clicking its column header. I could find examples given for DataTable to sort, but can anybody give me sample code for PageableListView to sort by column header click. I will be thankful.. Deepa.. . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sort-column-header-for-PageableListView-tp2331423p2331423.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
Checkout this thread http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-Websphere-6-1-td2309401.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331731.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
POST request comes as GET in wicket
I post using the following form http://x.x.x.x/rootContext/subcontext";> But when I look up in wicket through ((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getMethod(), the request comes as "GET" and the parameter list is also zero. I am new to Wicket, so obviously missing something very simple and basic. Can someone provide some pointers? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-request-comes-as-GET-in-wicket-tp2331840p2331840.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
AutoCompleteTextField: converter seems to be ignored
Hi, I'm using AutoCompleteTextFiled with Wicket 1.4.9. My model is a POJO that is specified as a generic: searchTextField = new AutoCompleteTextField(... Therefore I return an Iterator of such POJOs with: protected Iterator getChoices(String input) { I'm trying to customize the text displayed (which defaults to SomePOJO.toString()) using a converter: public IConverter getConverter(Class type) { System.err.println("Looking up converter for: " + type.getCanonicalName()); if (SomePOJO.class.isAssignableFrom(type)) { return new IConverter() { ... However, wicket never calls the getConverter() method and simply uses SomePOJO.toString() to retrieve the text for the choices. What am I doing wrong? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
You'd think with all of the open source code out there that actually does work they could figure it out. :) On Thu, Aug 19, 2010 at 3:15 PM, Igor Vaynberg wrote: > im going to guess its only websphere, it has pretty horrific support > for filters. at least that is what ive gathered from watching this > list for years. one thing to try is to switch to WicketServlet. > > -igor > > On Thu, Aug 19, 2010 at 11:51 AM, James Carman > wrote: >> This only happens in WebSphere? What about using a Jetty Start.java >> testing application? >> >> On Thu, Aug 19, 2010 at 1:33 PM, shetc wrote: >>> >>> I tried that as well Igor but still getting the 404 error. Can you advise me >>> on where I can try and trace >>> the root cause of the issue? >>> -- >>> View this message in context: >>> http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331608.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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
im going to guess its only websphere, it has pretty horrific support for filters. at least that is what ive gathered from watching this list for years. one thing to try is to switch to WicketServlet. -igor On Thu, Aug 19, 2010 at 11:51 AM, James Carman wrote: > This only happens in WebSphere? What about using a Jetty Start.java > testing application? > > On Thu, Aug 19, 2010 at 1:33 PM, shetc wrote: >> >> I tried that as well Igor but still getting the 404 error. Can you advise me >> on where I can try and trace >> the root cause of the issue? >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331608.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
Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
This only happens in WebSphere? What about using a Jetty Start.java testing application? On Thu, Aug 19, 2010 at 1:33 PM, shetc wrote: > > I tried that as well Igor but still getting the 404 error. Can you advise me > on where I can try and trace > the root cause of the issue? > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331608.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
WebRequestCodingStrategy may be a good place to start -igor On Thu, Aug 19, 2010 at 10:33 AM, shetc wrote: > > I tried that as well Igor but still getting the 404 error. Can you advise me > on where I can try and trace > the root cause of the issue? > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331608.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
I tried that as well Igor but still getting the 404 error. Can you advise me on where I can try and trace the root cause of the issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331608.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: RadioGroup/Radio runtime exception
Hi, I'm also seeing time to time this exception with 1.4.8, the only difference is, that I'm using the radiogroup within a wizard. (the wizard buttons are Ajax buttons). Any thoughts, how could this happen? Thanks, Peter 2010-08-19 16:40 keltezéssel, Grafas írta: > > Hi all, > we are using Wicket 1.3.5 and from time to time we keep getting > WicketRuntimeException: > submitted http post value [radio-31045] for RadioGroup component > [31:contentcontainer:requestEditForm:currencySelectionPanel:currencySelectionForm:sellBuy] > is illegal because it does not contain relative path to a Radio componnet. > Due to this the RadioGroup component cannot resolve the selected Radio > component pointed to by the illegal value. A possible reason is that > componment hierarchy changed between rendering and form submission. > at > org.apache.wicket.markup.html.form.RadioGroup.convertValue(RadioGroup.java:117) > at > org.apache.wicket.markup.html.form.FormComponent.convertInput(FormComponent.java:1189) > at > org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1093) > at > org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior.respond(AjaxFormChoiceComponentUpdatingBehavior.java:164) > at > org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297) > at > org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) > at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175) > > I can't get exactly why I'm getting it and I can't reproduce it. The panel > is where these radio buttons are is updated by ajax quite a lot. In fact > every second. Cant this be the problem? > Here is part of code with radio buttons: > > RadioGroup operation = new RadioGroup("sellBuy"); > operation.setRequired(true); > currencyForm.add(operation); > > Radio buyActionRadio = new Radio("actionBUY", new > Model(Operation.BUY)); > buyActionRadio.setMarkupId("actionBUY"); > buyActionRadio.setOutputMarkupId(true); > operation.add(buyActionRadio); > operation.add(new Label("actionBUYLabel", new > StringResourceModel("buyCurrency", null, "buyCurrency"))); > > Radio sellActionRadio = new Radio("actionSELL", new > Model(Operation.SELL)); > sellActionRadio.setMarkupId("actionSELL"); > sellActionRadio.setOutputMarkupId(true); > operation.add(sellActionRadio); > operation.add(new Label("actionSELLLabel", new > StringResourceModel("sellCurrency", null, "sellCurrency"))); > > WebMarkupContainer amountCurrencyCont = new > WebMarkupContainer("amountCurrencyCont"); > currencyForm.add(amountCurrencyCont); > > final Label shownActionLabel = new Label("shownActionLabel", new > StringResourceModel("${sellBuy}", model, "")); > shownActionLabel.setOutputMarkupId(true); > amountCurrencyCont.add(shownActionLabel); > operation.add(new AjaxFormChoiceComponentUpdatingBehavior() { > protected void onUpdate(AjaxRequestTarget target) { > > deal.setSellAmountFixed(!deal.isSellAmountFixed()); > target.addComponent(shownActionLabel); > recalculateAmountAndProfit(); > fireChange(target); > currencyForm.process(); > } > }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
you should try also adding /app/* to the filterMappingUrlPattern parameter of the wicket filter -igor On Thu, Aug 19, 2010 at 7:10 AM, shetc wrote: > > Hi All, > > I'm still having this issue where I can't use a filter pattern as follow: > > > WicketFilter > /app/* > > > I simplified my test application so it creates a HomePage with a Link -- > click on the link and the app redirects to AnotherPage. It uses a plain > WebApplication rather than AuthenticatedWebApplication. > > Entering the URLhttps://localsecure.spherion.com/MyWeb/app/ > works fine and takes me to the HomePage. > > However, when I click on the Link, I get a 404 error and URL is > https://localsecure.spherion.com/MyWeb/?wicket:bookmarkablePage=:com.wicket.AnotherPage > You can see that the filterPath app/ was dropped from the URL. > > Can someone please help me by suggesting where to track this issue within > the Wicket code. > I would really appreciate it! > > Thanks, > Steve > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331241.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: dynamically adding validators to TextFields in a ListView
setreuseitems(true) on the listview, its in the javadoc -igor On Thu, Aug 19, 2010 at 8:17 AM, Warren Bell wrote: > I have that working ok, but I am trying to add an atribute to the > TextField when it is invalid. The problem is that a new TextField is > created when the page is rerendered. I have a workaround, but it is > ugly. Any sugestions? > > -Original Message- > From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] > Sent: Wednesday, August 18, 2010 10:40 PM > To: users@wicket.apache.org > Subject: Re: dynamically adding validators to TextFields in a ListView > > whatever is creating the textfield should add the appropriate validator > > -igor > > On Wed, Aug 18, 2010 at 10:01 PM, Warren Bell > wrote: >> I have a ListView that adds one TextField to each ListItem. These >> TextFields need to have different types of validators added to them >> depending on a condition. One TextField in the first ListItem may need > >> an email validator while the TextField in the next ListItem may need a > >> number range validator and so on. >> >> What is the best way to do this type of validation? >> >> Warren >> >> > > - > 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: dynamically adding validators to TextFields in a ListView
I have that working ok, but I am trying to add an atribute to the TextField when it is invalid. The problem is that a new TextField is created when the page is rerendered. I have a workaround, but it is ugly. Any sugestions? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, August 18, 2010 10:40 PM To: users@wicket.apache.org Subject: Re: dynamically adding validators to TextFields in a ListView whatever is creating the textfield should add the appropriate validator -igor On Wed, Aug 18, 2010 at 10:01 PM, Warren Bell wrote: > I have a ListView that adds one TextField to each ListItem. These > TextFields need to have different types of validators added to them > depending on a condition. One TextField in the first ListItem may need > an email validator while the TextField in the next ListItem may need a > number range validator and so on. > > What is the best way to do this type of validation? > > Warren > > - 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: AbstractDefaultAjaxBehavior - Could not find root element
Some additional info;rmation; this error occurs with the mozilla firefox 3.6.8 while the same code works with the internet explorer 8. Now I'm really confused... I works also with chrome v5 and opera 10.10 Thierry Peng schrieb: Hello I have a resourcelink where I need to add an ajaxcallback to recalculate and update the current panel. I added an AbstractDefaultAjaxBehavior to that link with the callback, but the respond method was never invoked. In the wicket ajax debug i saw the following input: *INFO: *Using XMLHttpRequest transport *INFO: * *INFO: *Initiating Ajax GET request on ?wicket:interface=:0:middle:link::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&foo=bar&random=0.6376184095942993 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: *Wicket.Ajax.Call.failure: Error while parsing response: Could not find root element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... behavior: final AbstractDefaultAjaxBehavior behave =new AbstractDefaultAjaxBehavior() { @Override protected void respond(AjaxRequestTarget arg0) { log.debug("respond called"); repaint(); arg0.addComponent(self); } @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); log.debug("on componenttag called"); String javascript = "wicketAjaxGet('" + getCallbackUrl() + "&foo=bar', function() { }, function() { });"; tag.put("onClick", javascript); } }; resourcelink: add(link = new ResourceLink("link", new DynamicWebResource() { @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.setAttachmentHeader("auszug.zip"); } @Override protected ResourceState getResourceState() { return new ResourceState() { byte[] data; @Override public byte[] getData() { if (data == null) { try { data = builderservice.getDataAsZip(rawdata); log.debug("length of data: "+data.length); } catch (SystemException e) { log.fatal("systemexception occured", e); } } return data; } @Override public String getContentType() { return "application/zip"; } }; } }) ); link.add(new Label("label", new ResourceModel("middle.mailbox.download.all"))); link.add(behave); html (as it appears in the browser): href="?wicket:interface=:0:middle:link::IResourceListener:: http://localhost:8080/postfach/?wicket:interface=:0:middle:link::IResourceListener::>" onclick="wicketAjaxGet('?wicket:interface=:0:middle:link::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true', function() { }, function() { });">Alle Dokumente herunterladen Any ideas to how to solve this problem? greetings thierry - 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: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1
Hi All, I'm still having this issue where I can't use a filter pattern as follow: WicketFilter /app/* I simplified my test application so it creates a HomePage with a Link -- click on the link and the app redirects to AnotherPage. It uses a plain WebApplication rather than AuthenticatedWebApplication. Entering the URLhttps://localsecure.spherion.com/MyWeb/app/ works fine and takes me to the HomePage. However, when I click on the Link, I get a 404 error and URL is https://localsecure.spherion.com/MyWeb/?wicket:bookmarkablePage=:com.wicket.AnotherPage You can see that the filterPath app/ was dropped from the URL. Can someone please help me by suggesting where to track this issue within the Wicket code. I would really appreciate it! Thanks, Steve -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-pattern-app-does-not-work-for-Wicket-1-4-6-and-WebSphere-6-1-tp1891723p2331241.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: AutoCompleteTextField
Matthias Keller schrieb: Use: AutoCompleteSettings settings = new AutoCompleteSettings(); settings.setShowListOnEmptyInput(true); settings.setShowListOnFocusGain(true); // and possibly other settings as needed And then specify those settings in the constructor.. Thanks! Works like a charm. I didn't even think about using AutoCompleteSettings... Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField
I get it now ! try checking this ! http://wicket.apache.org/apidocs/1.4/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.html Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-tp2331099p2331152.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 enable/disable submit button while customer working on form?
Hi! You just change internal state of delete button to invisible. But it seems that you forgot to refresh the entire form or just _delete_button component with AjaxRequestTarget (every components that should be refreshed by AJAX must have markup ID and should be added to AjaxRequestTarget object instance). I mean you need to do something like: _delete_button.setOutputMarkupId(true); //or form.setOutputMarkupId(true); form.add(new AjaxButton("submit") { @Override public void onError(AjaxRequestTarget target, Form form) { if (target != null) { target.add(_delete_button); // or target.add(form); } } }); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/can-I-enable-disable-submit-button-while-customer-working-on-form-tp2330227p2331151.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: AutoCompleteTextField
On 2010-08-19 15:00, Patrick Petermair wrote: armandoxxx schrieb: You need to be able to select multiple items from autocomplete dropdown list with just DOWN key ??? No, I want to select a single item - but out of a list of all the items. Take the example at: www.wicket-library.com/wicket-examples/ajax/autocomplete The user starts typing "a" and the AutoCompleteTextField suggests the values Algeria, Austria, Australia, etc. In my usecase, the user wants to press the down key and be presented with a list of all the countries so that he can navigate through them with the up & down keys. Let's say a user has 100 possible choices .. then it makes sense to type in the first few letters until he is down to probably 5 choices or so. But another user may have only 3 possible choices. For him it would be better to just use the down key right away and select the value he wants instead of having him type a letter first.. Wouldn't it be enough to just let the list show on focus and on empty input? Use: AutoCompleteSettings settings = new AutoCompleteSettings(); settings.setShowListOnEmptyInput(true); settings.setShowListOnFocusGain(true); // and possibly other settings as needed And then specify those settings in the constructor.. Matt smime.p7s Description: S/MIME Cryptographic Signature
Re: AutoCompleteTextField
armandoxxx schrieb: You need to be able to select multiple items from autocomplete dropdown list with just DOWN key ??? No, I want to select a single item - but out of a list of all the items. Take the example at: www.wicket-library.com/wicket-examples/ajax/autocomplete The user starts typing "a" and the AutoCompleteTextField suggests the values Algeria, Austria, Australia, etc. In my usecase, the user wants to press the down key and be presented with a list of all the countries so that he can navigate through them with the up & down keys. Let's say a user has 100 possible choices .. then it makes sense to type in the first few letters until he is down to probably 5 choices or so. But another user may have only 3 possible choices. For him it would be better to just use the down key right away and select the value he wants instead of having him type a letter first.. Cheers, Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField
You need to be able to select multiple items from autocomplete dropdown list with just DOWN key ??? why do you need this kind of behavior ? King regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-tp2331099p2331117.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
AutoCompleteTextField
Hi! Is it possible to get the AutoCompleteTextField to return a list of all available choices when the user presses the downward key? I tried to return an iterator for the full list when the input of getChoices(String input) is empty, but this only works when the user presses the space key. When the user presses the downward key, nothing happpens. Thanks, Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AbstractDefaultAjaxBehavior - Could not find root element
Hello I have a resourcelink where I need to add an ajaxcallback to recalculate and update the current panel. I added an AbstractDefaultAjaxBehavior to that link with the callback, but the respond method was never invoked. In the wicket ajax debug i saw the following input: *INFO: *Using XMLHttpRequest transport *INFO: * *INFO: *Initiating Ajax GET request on ?wicket:interface=:0:middle:link::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&foo=bar&random=0.6376184095942993 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: *Wicket.Ajax.Call.failure: Error while parsing response: Could not find root element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... behavior: final AbstractDefaultAjaxBehavior behave =new AbstractDefaultAjaxBehavior() { @Override protected void respond(AjaxRequestTarget arg0) { log.debug("respond called"); repaint(); arg0.addComponent(self); } @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); log.debug("on componenttag called"); String javascript = "wicketAjaxGet('" + getCallbackUrl() + "&foo=bar', function() { }, function() { });"; tag.put("onClick", javascript); } }; resourcelink: add(link = new ResourceLink("link", new DynamicWebResource() { @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.setAttachmentHeader("auszug.zip"); } @Override protected ResourceState getResourceState() { return new ResourceState() { byte[] data; @Override public byte[] getData() { if (data == null) { try { data = builderservice.getDataAsZip(rawdata); log.debug("length of data: "+data.length); } catch (SystemException e) { log.fatal("systemexception occured", e); } } return data; } @Override public String getContentType() { return "application/zip"; } }; } }) ); link.add(new Label("label", new ResourceModel("middle.mailbox.download.all"))); link.add(behave); html (as it appears in the browser): http://localhost:8080/postfach/?wicket:interface=:0:middle:link::IResourceListener::>" onclick="wicketAjaxGet('?wicket:interface=:0:middle:link::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true', function() { }, function() { });">Alle Dokumente herunterladen Any ideas to how to solve this problem? greetings thierry - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: possible bug?
There is JIRA issue for the problem https://issues.apache.org/jira/browse/WICKET-2933 https://issues.apache.org/jira/browse/WICKET-2933 Igor I believe what you wrote works fine for single form. But when the page contains nested forms the outer form still finds component - inner form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/possible-bug-tp1894220p2330830.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: Problem AjaxFormChoiceComponentUpdatingBehavior & IE7
I think you should create Form component and attach RadioChoice instance to in. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-AjaxFormChoiceComponentUpdatingBehavior-IE7-tp2330305p2330741.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