How to replace panelA with panelB using AjaxLink in panelA
My use case can best be described as making wicket-phonebook work within a single tab of a tabbed panel using AjaxLink for create, edit, and delete. Thus, I have a page that contains a TabbedPanel. One tab of TabbedPanel contains ContactListPanel. ContactListPanel contains createContact link and a DataTable DataTable contains rows of data with editContact and deleteContact links. Clicking on one of those links should replace ContactListPanel with ContactEditPanel or ContactDeletePanel. I want the edit and delete functions to still be within the tabbed interface, not on separate pages. I think this is close, but am not sure what is wrong: private void addCreateLink() { add(new AjaxLink(createLink) { @Override public void onClick(AjaxRequestTarget target) { Panel panel = new ContactEditPanel(panel, new Model(new Contact())); panel.setOutputMarkupId(true); getParent().replaceWith(panel); target.addComponent(panel); } }); } What is the proper way to replace the containing panel from a control within that panel? I found similar questions posted on this list, but I haven't got any of those solutions to work for me. Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Phone book example
that is not the svn url for wicket-stuff repo, see sf.net project site -igor On 8/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I am new to Wicket and java and am trying to get the phone book example to at https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/ and get BAD GATEWAY. Where can I get it? Many thanks Jim This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. ** BNP Paribas Private Bank London Branch is authorised by CECEI AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Securities Services London Branch is authorised by CECEI AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Fund Services UK Limited is authorised and regulated by the Financial Services Authority
Re: Empty CSS
IResourceSettings.setDisableGZipCompression() is not available in the version of Wicket that I'm using (1.2.6). We didn't provide compression of resources in Wicket, so it's correct that setting doesn't exist. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax submit form with empty file input
no, ajax submits do not support multipart forms. -igor On 8/13/07, Carlos Pita [EMAIL PROTECTED] wrote: Hi all, is it possible to ajax submit a form that has a file input between its fields, even if this input is always empty at the time of submission? For example, the following example throws a 'ServletRequest does not contain multipart content' exception when clicking the ajaxSubmit button, even if form.setMultiPart(false). Form form = new Form(form); form.add (new TextField(text, new PropertyModel(this, text))); form.add(new FileUploadField(file)); form.add(new AjaxButton(ajaxSubmit, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { } }); The fact is that I will upload images using another, hidden and not nested, form with an iframe as its target, so the above form will never be submitted with a non-empty file input. How can I do this? Thank you in advance Carlos
Re: RequestDispather.forward()
I didn't know you could still use the servlet in 1.3. As it turns out, switching to using the servlet did fix the problem. I don't know if that's a problem with the filter or with the way I had things set up. The downside, I've now discovered, is that after doing the forward the app now thinks it's running under the servlet/jsp app's path and not the wicket path, which is causing its own issues. I think I'd almost rather accomplish this using a redirect instead; however our reverse proxy seems to have issues with redirects. I already had to switch to one pass rendering because of it. Maybe one of these days someone will actually figure out that issue and fix it. Too bad I don't have access to it. If you want something done right...or at all sometimes...you have to do it yourself. :) If only I had time to convert the whole app over to wicket now; but I don't. But enough venting on the mailing list. Thanks for the help, Eelco. Joel Eelco Hillenius wrote: Would the fact that wicket now uses a filter instead of a servlet have an effect on trying to forward a request. I'm trying to forward a request from the jsp/servlet portion of our app to a bookmarkable wicket page using RequestDispatcher.forward(), but no matter what sort of path I send it, I get a null value when trying to create my RequestDispatcher object. My wicket filter is mapped to /wicket/*, and as an experiment I tried to forward to my app's home page. I tried passing /wicket/, wicket/, and even /wicket (which shouldn't work), an neither case allowed me to create a RequestDispatcher (using request.getRequestDispatcher()). If I simply pass / id does forward to my app's welcome page, and I think even passing a path for my servlet (where the forward is occuring--or trying to at least) is recognized; but I can't get it to recognize the wicket app. I tried including dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher in the filter-mapping of my web.xml, since it looked like that might solve it, but no luck. It would be nice if I could find some way to redirect from the old servlet back to wicket, but I haven't figured it out yet. I've started experimenting with response.senRedirect(), but so far that's not looking promising either. Why won't my app server recognize my wicket path? Thanks. Joel P.S. If someone tells me they think it's oc4j again (my app server) I think I may cry. lol No idea. You can still use a servlet with Wicket 1.3 if you want to test whether that makes the difference (sounds very unlikely to me, but if you test it you can make sure) and if you think it might be oc4j, you can simply test it with another servlet container and see whether the same problem exists. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/RequestDispather.forward%28%29-tf4251039.html#a12130211 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Still need a little help putting hyperlinks in a CheckBox's label
Thanks very much for your help. I tried this and it looks correct on the page. However, there are two problems that I still need help with. PROBLEM 1 -- Requiredness message is wrong Submitting the form results in: field 'cb' is required The requiredness message needs to be: field 'I agree to the Terms of Use and the Submission Policy' is required PROBLEM 2 -- Hyperlink click issue: Clicking either hyperlink inadvertently checks and unchecks the checkbox I think the label I agree to the Terms of Use and the Submission Policy needs to be a label in the Wicket sense of a labeled field so the requiredness message shows up correctly...It should not be an HTML label element because that means clicking a hyperlink checks/ unchecks the box. I'm just not sure how to go about this. Thanks again for any help, Justin On Aug 10, 2007, at 11:04 AM, Igor Vaynberg wrote: final CheckBox cb=new CheckBox(cb); cb.setOutputMarkupId(true); WebMarkupContainer label=new WebMarkupContainer(label) { oncomponenttag(tag) { tag.put(for, cb.getMarkupId()); } label.add(new PageLink(terms, TermsPage.class)); label.add(new PageLink(policy, PolicyPage.class)); input type=checkbox wicket:id=cb/label wicket:id=labelagree to the a wicket:id=termsterms of use/a and a wicket:id=policysubmission policy/a/label -igor On 8/10/07, Justin Morgan (Logic Sector) [EMAIL PROTECTED] wrote: Hi, I asked this question before but didn't really understand the response. I need to create a CheckBox at the bottom of a form (ordinarily this is easy enough). The tricky part is that the check box's label will contain two hyperlinks that correspond to the underlined text in the example below: [x] I agree to the _Terms_of_Use_ and the _Submission_Policy_ In the markup I could place the CheckBox labeled with I agree to the, then place a terms of use Link, then a Label (and the), then another submission policy Link. That would solve my problem except the CheckBox is *required*. The requiredness error message would say something like: field 'I agree to the' is required and obviously that's not ideal for users. Since Wicket is all about OOP, should I create a subclass of CheckBox? What's the best approach? If there are any examples similar to this, I'd greatly appreciate hearing about it. Thanks for any help, Justin On Jun 12, 2007, at 11:56 PM, Timo Rantalaiho wrote: On Tue, 12 Jun 2007, Justin Morgan (Logic Sector) wrote: My question is: How to I create a label that displays an error message correctly, yet also contains hyperlinks within the label? Make it a WebMarkupContainer that has the logic and necessary child components. - Timo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Replacing panels inside a ModalWindow
Does this happen in all browsers? -Matej On 8/13/07, al que [EMAIL PROTECTED] wrote: Hello Sean, thanks for your suggestion. I have upgraded to 1.3.0-SNAPSHOT but i still have the same problem :(. Alina. --- Sean Sullivan [EMAIL PROTECTED] wrote: Did you say that you are using wicket-1.3.0-incubating-SNAPSHOT? That is probably an old jar. (Wicket is no longer in incubation) Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Border and Template
Yes, this technique works perfectly, I found it recently myself. Sample may be found here: http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/library See class 'Home.java' and it's parent class. Regards Dariusz Wojtas igor.vaynberg wrote: set the border as transparent, override istransparentresolver() { return true; } then you can add directly to the page even though in markup it is inside the border. -igor On 8/12/07, Joe Toth [EMAIL PROTECTED] wrote: I have a couple of WebPages that I reused for different applications, but they need to have different Borders for each application. Using 1.3 - Currently I create an abstract WebPage that all my pages extend, plus I create a Border for these commonly shared pages. So, I have to maintain the same 'template' in 2 places because add() is now a final method. The only solution I came up with to combine the Border and the WebPage template is to go back into all the pages that extend the template and create an borderAdd() method and use that instead of the default add(). Any thoughts? Suggestions? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Border-and-Template-tf4258051.html#a12132544 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Replacing panels inside a ModalWindow
I need a quickstart that can be use to reproduce the problem to be able to help here. -Matej On 8/13/07, al que [EMAIL PROTECTED] wrote: Hello Matej, i have tested the application in Iceweasel 2.0, IE 6.0, Opera 9.22 and Konqueror 3.5.5 and i had problems with all these browsers when trying to use the modal window. With Iceweasel and IE the problem is the same as i explained earlier. In konqueror it seems that i cant get to open a modal window with a page as content (but if the content is a panel instead of a page it does open). With Opera the modal window just displays a blank page from the beginning. Thanks, Alina. --- Matej Knopp [EMAIL PROTECTED] wrote: Does this happen in all browsers? -Matej Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Submit button issue in wicket-phonebook
Hi Martijn, When I was looking at the diffs, it looked like it went from a Button to a Link during your commit. But I certainly could have messed up. Tauren On 8/13/07, Martijn Dashorst [EMAIL PROTECTED] wrote: According to the revision log, I had nothing to do with this... My commit only moved the projects from a branch to trunk. Martijn On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Well, it looks like it was done on 4/19/2007 by dashorst. Is this message enough, or should I submit a jira? Should I switch it back to Button for my application, or is there a way to get Link to set a value if used with input type=button markup? Tauren On 8/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: looks like someone changed it from a Button to a Link. the Button uses its model to set the value attr, the link obviously doesnt. so see svn history and who made the change, and then bug that person on the list :) -igor On 8/12/07, Tauren Mills [EMAIL PROTECTED] wrote: When running wicket-phonebook, both the Confirm and Cancel buttons on the delete contact page say Confirm Query when rendered on a web page. Is this a bug in Link when it is used with an input type=button? Or is there a bug in wicket-phonebook? private void addConfimButton() { /* * notice in mark-up this link is attached to input type='button'/ * tag, the link is smart enough to know to generate an onclick instead * of href */ add(new Link(confirm, new ResourceModel(confirm)) { @Override public void onClick() { final Contact deleted = getContact(); contactDao.delete(deleted.getId()); String msg = MapVariableInterpolator.interpolate(getLocalizer() .getString(status.deleted, this), new MicroMap( name, deleted.getFullName ())); getSession().info(msg); setResponsePage( DeleteContactPage.this.backPage); } }); } Thanks, Tauren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxTabbedPanel Problem
I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sharing a context menu across components
what i am suggesting is this: if you only want to have a single instance of behavior per table, yet have onclick react per row you need to have some javascript on the clientside that can tell what row is clicked by appending something meaningful to the behavior's callback url. you do not need this when you use an instance of behavior per row - because wicket already builds the unique name that can identify that row/behavior for you - which is the component path of the component that contains the behavior. -igor On 8/13/07, Kirk Israel [EMAIL PROTECTED] wrote: I guess I'm not understanding what you're suggesting. I've added a ContextMenuBehavior to the dataTableComponent row. Inside the ContextMenuComponent that is also on the page, there is an AjaxLink anonymous inner class. that overrides onClick(AjaxRequestTarget pRequestTarget) But the result of getPath() always has the same problem, even when I do ContextMenuComponent.this.getPath(). The Behavior isn't in the path, because it's not part of the nesting hierarchy. It stands outside and connects, and as you can see below the path says dataTableComponent:campaignContextMenuComponent - the fact that behaviors have been added to the dataTableComponent's rows doesn't matter to the path, at least in the straight forward way I've made the contextMenuComponent. (Just to make sure I wasn't missing something obvious, I tried adding the contextMenuComponent to the Behavior rather than to the dataTableComponent, but of course there is no .add(Component) for behaviors, so the concept didn't make sense.. you can add a behavior to a component but not vice versa) What am I not getting here? Is there some other kind of special menu item class I need to use that would capture the path of the behavior that invoked it?( Because right now it's just a component that happens to be showing up and relocated because of the behavior i added to the rowitem.) Is there some sort of way of jamming the behavior into the path, besides the fact that the behavior is added to the appropriate rowitem? On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: see component.getpath() -igor On 8/13/07, Kirk Israel [EMAIL PROTECTED] wrote: Where can I retrieve that path? Each row is generating a unique behavior object instance, but in the onClick for one of the menu items, code like this.getRequest().getPath(); (which, through some documentation surfing and trial and error seemed the only thing close to what you were talking about) comes back with 1:campaignManagerViewContainer:dataTableComponent:campaignContextMenuComponent:contextmenuNewLink with no mention of the behavior that is connecting dataTableComponent and campaignContextMenuComponent Is there another object that would be carrying more meaningful request path info, or is my only hope to start hacking in the javascript? I really hate breaking the abstraction layer Wicket provides by putting so much in javascript, and the path to even do so isn't clear to me. On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the first one is internal to wicket - because the behavior is unique it gets an internal unique path in wicket, so you dont need to worry about it. so basically your onclick handler for the menuitem has a 1-1 link to the onclick handler of the behavior. if you want one behavior then you have many menuitems onclicks linking to a single behavior onclick. so you need to map somehow - and that is through javascript on clientside. -igor On 8/13/07, Kirk Israel [EMAIL PROTECTED] wrote: I kind of see what you're getting at, but could you give an example of the syntax for the first one? I already have a unique behavior instance for each row... do I need to add another one? Or is there some way in the onClick code to read what the path of the behavior is? (Actually I might not be thinking of the right use of path) I guess I'm trying to avoid hacking javascript strings if I can, since the link syntax is pretty arcane... On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the event is triggered on clientside, so you need to pass back what item was clicked there. you can either do it by adding a unique behavior - which then has a unique path - which is that id you are passing back. or you need to append some unique id on client side using javascript so it can tell which row was clicked. -igor On 8/13/07, Kirk Israel [EMAIL PROTECTED] wrote: I have a Context Menu Object and Behavior... right now I construct one Context Menu for the whole Data Table (extends AjaxFallbackDefaultDataTable) component that links to it... then on newRowItem() I add a unique ContextMenuBehavior (extends
nuke the sourceforge lists!
Hey Martijn, others, Can we go ahead and remove all users from the sourceforge lists and make sure no-one can every subscribe again? Or is there a better way? Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
you probably have the span/div problem. make sure you do not nest any block level elements like div inside spans -igor On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
A quick fix to this is to wrap your form in this: div style=clear: both form ... /form /div But I think the TabbedPanel CSS should deal with it more elegantly. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, I did some more tests and I just discovered that for me, the HTML is on the page, just not under the tabs like it should be. It is to the far right of the tabs, and I have to scroll right to see it. A scroll bar should appear on the bottom when you go to that tab. If you turn off CSS, the content will show as well. I can't believe I didn't see that sooner... Argh! Anyway, I think there is something wrong with the TabbedPanel CSS, so I created a simple quickstart to illustrate the problem and attached it to a JIRA: https://issues.apache.org/jira/browse/WICKET-844 If I figure out a solution, I'll let you know. Tauren On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you probably have the span/div problem. make sure you do not nest any block level elements like div inside spans -igor On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
There is no such thing as tabbed panel CSS. Tabbed panel doesn't come with any CSS. I put div.tab-panel { clear: left; } to styles.css in wicket examples, just in case someone takes the styles from there. -Matej On 8/14/07, Tauren Mills [EMAIL PROTECTED] wrote: A quick fix to this is to wrap your form in this: div style=clear: both form ... /form /div But I think the TabbedPanel CSS should deal with it more elegantly. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, I did some more tests and I just discovered that for me, the HTML is on the page, just not under the tabs like it should be. It is to the far right of the tabs, and I have to scroll right to see it. A scroll bar should appear on the bottom when you go to that tab. If you turn off CSS, the content will show as well. I can't believe I didn't see that sooner... Argh! Anyway, I think there is something wrong with the TabbedPanel CSS, so I created a simple quickstart to illustrate the problem and attached it to a JIRA: https://issues.apache.org/jira/browse/WICKET-844 If I figure out a solution, I'll let you know. Tauren On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you probably have the span/div problem. make sure you do not nest any block level elements like div inside spans -igor On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTabbedPanel Problem
Matej, Thanks for doing that. That's where I got the css from, and is what I was referring to. Tauren On 8/13/07, Matej Knopp [EMAIL PROTECTED] wrote: There is no such thing as tabbed panel CSS. Tabbed panel doesn't come with any CSS. I put div.tab-panel { clear: left; } to styles.css in wicket examples, just in case someone takes the styles from there. -Matej On 8/14/07, Tauren Mills [EMAIL PROTECTED] wrote: A quick fix to this is to wrap your form in this: div style=clear: both form ... /form /div But I think the TabbedPanel CSS should deal with it more elegantly. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, I did some more tests and I just discovered that for me, the HTML is on the page, just not under the tabs like it should be. It is to the far right of the tabs, and I have to scroll right to see it. A scroll bar should appear on the bottom when you go to that tab. If you turn off CSS, the content will show as well. I can't believe I didn't see that sooner... Argh! Anyway, I think there is something wrong with the TabbedPanel CSS, so I created a simple quickstart to illustrate the problem and attached it to a JIRA: https://issues.apache.org/jira/browse/WICKET-844 If I figure out a solution, I'll let you know. Tauren On 8/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you probably have the span/div problem. make sure you do not nest any block level elements like div inside spans -igor On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, Will you test in IE? The form content shows in IE6, but not in FF2 on WinXP. Tauren On 8/13/07, Tauren Mills [EMAIL PROTECTED] wrote: Eric, After reading your message, I just tested my problem out again. I described my problem in a message last night with the subject How to replace panelA with panelB using AjaxLink in panelA. I'm now thinking that that I did have it working, but that the content is just not showing. I have a form on panelB, and it looks like panelA has been replaced with panelB when I look at the AjaxDebug info. But panelB isn't showing on the page. Note that I'm not using an AjaxTabbedPanel, just a TabbedPanel. But I'm using ajax inside the panel to replace it. Bottom line is that I too am having that same problem. Unfortunately, I don't have a solution. Tauren On 8/13/07, Eric Woerner [EMAIL PROTECTED] wrote: I have a interesting problem with the AjaxTabbedPanel. If one of that tabs has a panel that has forms with in it they are not displayed when you click on that tab. None of the textareas or TextFields will display. Nothing between the form tags will display. Has anyone ever seen this problem? -- View this message in context: http://www.nabble.com/AjaxTabbedPanel-Problem-tf4263456.html#a12133292 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic AJAX Tabs
Opppsss!!! hahaha.. gotta get into that habit, at the moment, the tabs display a unique id just to see if i can get it working. also... I am currently using a list, cause I cant add a AbstractTab to the 'item' in populate item :( final List tabs = new ArrayList(); chatSessionTabs = new RefreshingView(chatSessionTabs, new PropertyModel(HotListTargetPanel.this.getJumbuckSession().getMySessionData(), chatSessions)) { protected Iterator getItemModels() { return new ModelIteratorAdapter(HotListTargetPanel.this.getJumbuckSession().getMySessionData().getChatSessions().iterator()) { protected IModel model(Object object) { return new Model((Serializable) object); } }; } protected void populateItem(Item item) { Label chatSessionTabData = new Label(chatSessionTab, ((Long)item.getModelObject()).toString()); final long tempChatSessionId = (Long)item.getModelObject(); item.add(chatSessionTabData); tabs.add(new AbstractTab(item.getModel()) { public Panel getPanel(String panelId) { return new FlirtTabPanel(panelId, tempChatSessionId); } }); } }; add(chatSessionTabs); if (tabs.size() 0) add(new AjaxTabbedPanel(tabs, tabs)); else add(new Label(tabs, You have no chat sessions)); igor.vaynberg wrote: why dont you paste your code, abstracttab should work just fine, its just a factory for panels. -igor On 8/13/07, Ballist1c [EMAIL PROTECTED] wrote: Hey guys, Right now i have been playing around with the current, ajax tabbs in wicket extensions. What I am trying on now is creating a dynamic number of tabs with multiple components and models within each tab which can change during runtime so it will have Ajax polling for information. I have been using a RefreshingView to manage X number of tabs and it will have AJAX updates performed on the fly for information contain within the tab. I have been trying to use AbstractTab but it doesn't work with RefreshingView because refreshing view populates the tabs at run-time rather then creating the tabs at construction/render. This is my current predicament, and I am looking for a clean solution using current framework classes if possible. THanks hEaps guys LEO! -- View this message in context: http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12136668 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12137077 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic AJAX Tabs
hmm, its still pretty difficult to tell what is going on. how about a quickstart that reproduces the problem. you want to have an ajax tabbed panel where the number of tabs is variable, so when you recalculate the number of tabs why not simply replace the tabbedpanel with a new instance and add the new instance to the ajax target. -igor On 8/13/07, Ballist1c [EMAIL PROTECTED] wrote: Opppsss!!! hahaha.. gotta get into that habit, at the moment, the tabs display a unique id just to see if i can get it working. also... I am currently using a list, cause I cant add a AbstractTab to the 'item' in populate item :( final List tabs = new ArrayList(); chatSessionTabs = new RefreshingView(chatSessionTabs, new PropertyModel(HotListTargetPanel.this.getJumbuckSession ().getMySessionData(), chatSessions)) { protected Iterator getItemModels() { return new ModelIteratorAdapter(HotListTargetPanel.this.getJumbuckSession ().getMySessionData().getChatSessions().iterator()) { protected IModel model(Object object) { return new Model((Serializable) object); } }; } protected void populateItem(Item item) { Label chatSessionTabData = new Label(chatSessionTab, ((Long)item.getModelObject()).toString()); final long tempChatSessionId = (Long)item.getModelObject(); item.add(chatSessionTabData); tabs.add(new AbstractTab(item.getModel()) { public Panel getPanel(String panelId) { return new FlirtTabPanel(panelId, tempChatSessionId); } }); } }; add(chatSessionTabs); if (tabs.size() 0) add(new AjaxTabbedPanel(tabs, tabs)); else add(new Label(tabs, You have no chat sessions)); igor.vaynberg wrote: why dont you paste your code, abstracttab should work just fine, its just a factory for panels. -igor On 8/13/07, Ballist1c [EMAIL PROTECTED] wrote: Hey guys, Right now i have been playing around with the current, ajax tabbs in wicket extensions. What I am trying on now is creating a dynamic number of tabs with multiple components and models within each tab which can change during runtime so it will have Ajax polling for information. I have been using a RefreshingView to manage X number of tabs and it will have AJAX updates performed on the fly for information contain within the tab. I have been trying to use AbstractTab but it doesn't work with RefreshingView because refreshing view populates the tabs at run-time rather then creating the tabs at construction/render. This is my current predicament, and I am looking for a clean solution using current framework classes if possible. THanks hEaps guys LEO! -- View this message in context: http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12136668 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12137077 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic AJAX Tabs
hrmm... i might have to resort to that... I was hoping not to have to access any POJO data directly by the rendering components my aim was to keep all the UI components to only access models only... and keep all the scripting to custom models keeping it transparent from the UI classes. But that venture is starting to really create a bucket load of classes... :S... igor.vaynberg wrote: hmm, its still pretty difficult to tell what is going on. how about a quickstart that reproduces the problem. you want to have an ajax tabbed panel where the number of tabs is variable, so when you recalculate the number of tabs why not simply replace the tabbedpanel with a new instance and add the new instance to the ajax target. -igor On 8/13/07, Ballist1c [EMAIL PROTECTED] wrote: Opppsss!!! hahaha.. gotta get into that habit, at the moment, the tabs display a unique id just to see if i can get it working. also... I am currently using a list, cause I cant add a AbstractTab to the 'item' in populate item :( final List tabs = new ArrayList(); chatSessionTabs = new RefreshingView(chatSessionTabs, new PropertyModel(HotListTargetPanel.this.getJumbuckSession ().getMySessionData(), chatSessions)) { protected Iterator getItemModels() { return new ModelIteratorAdapter(HotListTargetPanel.this.getJumbuckSession ().getMySessionData().getChatSessions().iterator()) { protected IModel model(Object object) { return new Model((Serializable) object); } }; } protected void populateItem(Item item) { Label chatSessionTabData = new Label(chatSessionTab, ((Long)item.getModelObject()).toString()); final long tempChatSessionId = (Long)item.getModelObject(); item.add(chatSessionTabData); tabs.add(new AbstractTab(item.getModel()) { public Panel getPanel(String panelId) { return new FlirtTabPanel(panelId, tempChatSessionId); } }); } }; add(chatSessionTabs); if (tabs.size() 0) add(new AjaxTabbedPanel(tabs, tabs)); else add(new Label(tabs, You have no chat sessions)); igor.vaynberg wrote: why dont you paste your code, abstracttab should work just fine, its just a factory for panels. -igor On 8/13/07, Ballist1c [EMAIL PROTECTED] wrote: Hey guys, Right now i have been playing around with the current, ajax tabbs in wicket extensions. What I am trying on now is creating a dynamic number of tabs with multiple components and models within each tab which can change during runtime so it will have Ajax polling for information. I have been using a RefreshingView to manage X number of tabs and it will have AJAX updates performed on the fly for information contain within the tab. I have been trying to use AbstractTab but it doesn't work with RefreshingView because refreshing view populates the tabs at run-time rather then creating the tabs at construction/render. This is my current predicament, and I am looking for a clean solution using current framework classes if possible. THanks hEaps guys LEO! -- View this message in context: http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12136668 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12137077 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12138522 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Extend Border
Is it possible to extend an extended Border? In my class TemplateBorder extends Border, I need to have both wicket:child / and wicket:body / in order for Wicket to be able to render AccountTemplateBorder, which extends TemplateBorder. But, then the child is rendered either before or after the border body. I need the child to be rendered inside the border body. Is this possible? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]