Popup new Window after Wizard:onFinish()
Guys, I’m writing a Wizard using DynamicWizardModel such that each step is of DynamicWizardStep kind. Question number 1: I would like to popup a success message to the user (better a new popup window, a small one) after the last step, i.e. overriding the onFinish() Wizard event and then show the Window. But How?? ModalWindow() for example, needs AjaxRequestTarget and submitting the Wizard results in submitting the whole form. I have no an AjaxRequestTarget to hook into. Any idea how can I achieve that? Question number 2: If I fail during the last Wizard step (e.g. after applyState() and call to error(…)) I expect that onFinish() will not be called at all since the form encounter an error and the Wizard indeed stays in its last step giving the user a chance to fix its data. What do I miss here? Thanks a LOT for any input. -- View this message in context: http://www.nabble.com/Popup-new-Window-after-Wizard%3AonFinish%28%29-tp21655026p21655026.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
How to call to a page via JavaScript
Hi, I would like to call to SomePage.html within my wicket project via a java script code. My project contains several pages and the navigation between the pages is done through a drop down menu (each drop down menu appears while hovering a tab-menu-panel). All popup menus are implemented using java script, and when the user clicks on one of the sub menu of the drop down menu I would like to direct him to some of my application page. A code snippet from the js looks like: js_menu_.addMenuItem("MyPageTitle","location=’MyPage.html’"); If I put in the ‘location’ attribute a full URL, for example http://www.google.com then it works. But I would like to refer to an internal pages as I used to do using but the last one is applicable only within html. Any idea how can I work around this? Or, Can I implement a (popup) drop down menu with wicket and listen to events just like it’s a BookmarkablePageLink. THANKS for any input! -- View this message in context: http://www.nabble.com/How-to-call-to-a-page-via-JavaScript-tp21217989p21217989.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: [OT] wicket users around the world
Tel-Aviv, Israel francisco treacy-2 wrote: > > to know a little bit more of our great (and vast) community, i was > just wondering if you're keen on sharing where you come from and/or > where you work with wicket... > > for instance, here argentinian/belgian working with wicket in antibes, > france > > francisco > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21070018.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
Expanding table row - need idea
Hi guys, My goal is to create a table (with few simple columns) such that each row can be expanded (and then collapsed. for example, when the user clicks on a link icon or on a ‘+’ link sign)., this way I can show further details (such that the content of the details span on all columns) Simply – I need some ideas how to implement that. My thoughts are: Creating a “simple” table using ListView. When clicking on the ‘+’ link sign I will instantiate an “ExtendRowPanel” class that will contains the row item details (I can put anything there) and then switching with the visibility of the item (of the panel?) being rendered (within onPopulateItem()) and updating it via Ajax. I tried to implements the above but encountered many problems. I would like to know if I’m in the correct path for my solution and continue with that approach or looking for something else. I looked at the ajax tree table example in wicket stuff using TreeTable & IColumn but it seems to me not compatible since the “design” of the table is done within PropertyRenderableColumn and not via a css file (I noticed that the html contains only the wicket table ID). I prefer defining the table with its columns in the HTML file. I will be grateful for ANY idea (or a link to any sample for such case). BTW: I also looked at the following example http://swik.net/Peter-Thomas/Incremental+Operations/Wicket+and+GWT+compared+with+code/cdpvw http://swik.net/Peter-Thomas/Incremental+Operations/Wicket+and+GWT+compared+with+code/cdpvw but that implementation switches between two panels: the expanded one and the collapsed one. In my case, I need only to add a panel… Simon. -- View this message in context: http://www.nabble.com/Expanding-table-row---need-idea-tp21057904p21057904.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: WebMarkupContainer within WebMarkupContainer not updated when Ajax update
Timo, Thanks a lot for your reply, regarding your answer I’m suspecting that something is probably wrong with the Model of wmc2. I would like please to show how did I implemented the Model of wmc2 and hopefully you’ll notice something wrong over there: final WebMarkupContainer wmc1= new WebMarkupContainer("wmc1"); wmc1.setOutputMarkupId( true ); … WebMarkupContainer wmc2 = new WebMarkupContainer("wmc2", new TrackSummeryModel()); wmc2.setOutputMarkupId( true ); wmc1.add( wmc2 ); wmc2.add( new Label("new", ((ArrayList)wmc2.getModelObject()).get( 4 ).toString()) ); wmc2.add( new Label("running", ((ArrayList)wmc2.getModelObject()).get( 0 ).toString()) ); wmc2.add( new Label("completed", ((ArrayList)wmc2.getModelObject()).get( 3 ).toString()) ); wmc2.add( new Label("success", ((ArrayList)wmc2.getModelObject()).get( 1 ).toString()) ); wmc2.add( new Label("errors", ((ArrayList)wmc2.getModelObject()).get( 2 ).toString()) ); this.add (wmc1); //"this" extends wicket WebPage …and wmc2 Model looks like the following: public class TrackSummeryModel extends AbstractReadOnlyModel { private static final long serialVersionUID = -4460246538584276209L; @Override public Object getObject() { ArrayList result = null; try { result = QueryDB.summerizeTracks(); } catch ( Exception e ) { error( "Error while retrieving Track summery: " + e.getMessage() ); } return result; } } I expect that TrackSummeryModel should be called its getObject() method while need rendering (wmc2 is a child of wmc1 and wmc1 was added to the target of some Ajax component). The TrackSummeryModel:getObject() method is called only 5 times at the construction of the page for each new Label I’m adding and then it stops called for ever (BTW: wmc1 has a DataView component as a child and it refresh via Ajax) BTW: I attached the model’s labels such way since I’m dealing with ArrayList and not a simple POJO. Maybe I must create a POJO class with 5 properties (new, running, etc) ? Another thing: As you suggested, I used the WICKET AJAX DEBUG and I was wondering why wmc1 enclosed within component id while wmc2 not: ...>
WebMarkupContainer within WebMarkupContainer not updated when Ajax update
My WebPage consists of two WebMarkupContainer: one is the parent of the other. The two WebMarkupContainer are encapsulated within a div tag as the following: ... ... ... In Java file, I added wmc2 as a child of wmc1 ("wmc1.add(wmc2)" ) as the following: final WebMarkupContainer wmc1 = new WebMarkupContainer("wmc1"); wmc1.setOutputMarkupId( true ); ... WebMarkupContainer wmc2 = new WebMarkupContainer("wmc2", new SomeInnerModel()); wmc2.setOutputMarkupId( true ); wmc1.add(wmc2); ( The problem: wmc1 is updates while Ajaxing it (wmc1 was added as a target for some ajax component), while wmc2 not!! I thought that wmc2 should be updated too since it is a child of a wmc1. Even if I adding wmc2 to the target of an Ajax component (as done with wmc1) - it is not updated! The model attached to wmc2 is derived from LoadableDetachableModel and implements the load() method. I'm quite frustrated while making some works around that issue. Does Wicket supports that behavior at all? Any idea? THANKS for ADVANCE! -- View this message in context: http://www.nabble.com/WebMarkupContainer-within-WebMarkupContainer-not-updated-when-Ajax-update-tp20796182p20796182.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Label & Link item within a same table cell
I am drawing a table using DataView and implement the populateItem method to add every table row item. One of my table cell should display a simple text OR a link OR both (e.g. the cell will have a text, and a link beneath – both in the same cell) My HTML snippet: …. … [Here should come Text & Link] … My question is how can I insert those two items into one cell? AFAIK, I can add only one wicket:id to a table column and therefore only one Component is attached to it (in the Java code). I have tried to split the cell to two rows (rowspan="2") such that the above part will have the text and the bottom part will have the link, but then I get into undesired UI problems (the border is shown though it is not desirable and the partition of the cell is always fixed – 50-50 for rowspan=2 etc...) Lots of WEB search yields no result (I read Wicket in Action at a whole!) - still can't figure out how to do that! Any idea how can I combine those two items into one table cell ? !Thanks! -- View this message in context: http://www.nabble.com/Label---Link-item-within-a-same-table-cell-tp20718713p20718713.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]