Re: [Wicket-user] Implementing a PopupPanel
Thanks John. I was suspecting no one to reply to a long mail. Unfortunately, in my case the getTitle() returns a component not the label text. The component returned by the child can either be a "label" or an "image" component. The derived class gets the label text in its constructor which it uses to construct the label but the parent calls getTitle() too soon. As there are 2 components within the parent (title and contents) that the child needs to fill, I could not use markup inheritance. Thanks, Ravi. John Krasnay wrote: One way to solve the "abstract method from the constructor" problem (or more precisely, the "non-final method from the constructor" problem) is to use a Model, e.g... public class PopupPanel extends Panel { public abstract String getTitle(); public PopupPanel(String id) { add(new Label("foo", new AbstractReadOnlyModel() { public Object getObject(Component component) { return getTitle(); } } } } The model's getObject is only called some time after the object has been constructed. jk On Tue, May 29, 2007 at 07:36:59AM -0400, Ravindra Wankar wrote: This looks more like a design question but I think there must be a better, Wicket way. I wrote a PopupPanel that allows you to have a "div" popup in a page by clicking a link. The contents of the div can be static/loaded via Ajax. The popup part with Ajax is working. The link that activates the popup can either have an image or text label. So I have... PopupPanel | abstract getTitle() and getContent() | constructor calls getTitle() and getContents() | -- || LabelLinkedPopupPanelImageLinkedPopupPanel implements getTitle() implements getTitle() To use it, new LabelLinkedPopupPanel(...) and override the getContent() method. I can't get the title to work because of "abstract method from the constructor" problem. My options then are 1. Have a setTitle() and setContent() method that is called by the subclasses but failing to call them won't be caught till runtime. 2. Have PopupPanel constructor take in components for title and content. The sub classes then just act as wrappers. 3. Replace the subclasses with PopupPanelFactory with 2 methods newLabelLinkedPopup() and newImageLinkedPopup. I don't think a border suits this requirement but I'm not sure. Is there a better way? Thanks Ravi - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Implementing a PopupPanel
This looks more like a design question but I think there must be a better, Wicket way. I wrote a PopupPanel that allows you to have a "div" popup in a page by clicking a link. The contents of the div can be static/loaded via Ajax. The popup part with Ajax is working. The link that activates the popup can either have an image or text label. So I have... PopupPanel | abstract getTitle() and getContent() | constructor calls getTitle() and getContents() | -- || LabelLinkedPopupPanelImageLinkedPopupPanel implements getTitle() implements getTitle() To use it, new LabelLinkedPopupPanel(...) and override the getContent() method. I can't get the title to work because of "abstract method from the constructor" problem. My options then are 1. Have a setTitle() and setContent() method that is called by the subclasses but failing to call them won't be caught till runtime. 2. Have PopupPanel constructor take in components for title and content. The sub classes then just act as wrappers. 3. Replace the subclasses with PopupPanelFactory with 2 methods newLabelLinkedPopup() and newImageLinkedPopup. I don't think a border suits this requirement but I'm not sure. Is there a better way? Thanks Ravi - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Creating link with a label
Johan, Martijn, Thanks for the explanation and the solutions. I understand the issues now. Unfortunately for a new comers such as me, the problems are not obvious and we're trying to map all what we've done with the traditional frameworks to Wicket and hence we land up in trouble. e.g I'm used to writing if/else blocks interspersed with html tags. The first time I saw Wicket html I was trying hard to imagine where the conditional logic goes. I'll vote on having a LabelLink as part of wicket itself as I think it will be a very common requirement. Thanks Ravi. Johan Compagner wrote: public abstract class LabelLink extends Link { private IModel labelModel; public LabelLink(String id, IModel linkModel, IModel labelModel) { super(id, linkModel); this.labelModel = labelModel; } protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, labelModel.getObject().toString()); } } maybe we should add this to our classes (core or extentions) so that we don't get this same question over and over again.. johan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Creating link with a label
In a table of contacts I want to make the "Name" a hyperlink to the page that displays details of that contact. So I created a link and wanted to set the label of the link to the name of the contact. I could not find a suitable method on the Link classes. All examples I saw create a panel inside the link tag and then set a label inside the panel. Why is it not possible to call setLabel() directly on a link or is there a way I'm not aware of? Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.
Craig, It's been just over 2 weeks since I've started looking at Wicket. In the past I've had to abandon evaluation of JSF and Struts 2 due to lack of time. I was spending a lot of time writing code to decide if they were the right choice. I could not find "applications" written from where you could learn best practices. There are mostly individual examples for data validation, Ajax, tree table and other such commonly needed components which is good but insufficient. All new frameworks provide all these features so that is no longer the distinguishing factor. In commercial ventures such as mine, I'm expected to demonstrate that any new technology... 1. Will reduce our overheads by providing many out-of-box features that we've had to develop and maintain. Basically I should spend 90% of my time on the core application features and only 10% on enhancing the framework because of special requirements within my application. 2. Developers for which can be either be hired or trained easily and most importantly can be *average*. This means having lot of documentation and not having to go through source code to understand how things work. 3. Is stable (production quality) and its future is bright. So far Wicket looks promising. But it is too early. A PetStore/PetClinic app would have been useful (I am not aware if one exists). - Ravi craigdd wrote: Ravi, I'd be interested in hearing your out come of your evaluation. I'm in a similar boat where my company is looking to move to a new UI framework, their first choice or course is JSF and I'm pushing hard to go the wicket route instead. If I can show them a website like yours and say that it was fairly easy to develop using wicket and you don't need to learn a whole new markup language, ie tablibs, then that just might be the nail in the coffin I need. Thanks Craig RW wrote: It is currently written using a combination of Struts1, WebMacro (templating engine like Velocity), Torque etc. Due to the lack of user interface components in these tools we had to develop a lot of that ourselves. We are evaluating if we can do away with our code with Wicket or if Wicket can at least assist in simplifying our efforts. Besides, how easy and how long will it take to move to Wicket. As our efforts are commercial, we will be heavily penalized for making the wrong choice. - Ravi. craigdd wrote: Hey Ravi, just out of curiosity, is the application you provided a link for written in wicket? -Craig RW wrote: Go to... http://www.celoxis.com/psa/user.do?bxn=umyhome&p_auth_authenticate=true&p_auth_login=mark&p_auth_password=celoxis1 On this page click the "Pick Columns" link in the top right corner of the "My Projects" table. Thanks Ravi Igor Vaynberg wrote: got a screenshot? dont really understand what you are describing. maybe something like our palette component in extensions? -igor On 5/21/07, Ravindra Wankar < [EMAIL PROTECTED] > wrote: In order to allow users to pick columns they wish to see in a table, we open/close a div layer that has 2 selectors to move columns to/from "Available" to "Selected" and a submit/cancel button. We also position this div layer close to the "Pick Columns" link. Is there a component in Wicket I can use to create a similar effect? I've seen the ModalDialog but I'd like a slight variation because the placement of this div layer needs to be controlled + the main window need not be "greyed" out when showing the layer. Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Re: [Wicket-user] SVN access broken?
OK, I was able to get to it using http://svn.apache.org/repos/asf/incubator/wicket/trunk However, there is a failure while running tests for 1.3. From what I see seems like in org.apache.wicket.request.target.coding.UrlMountingTest. Am I the only one seeing this? Thanks Ravi. Ravindra Wankar wrote: > Both, web access and anonymous access do not work for me. > > Web access points to > > http://svn.apache.org/viewvc/incubator/wicket/branches/wicket > > and anonymous access to > > svn checkout > https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket wicket > > > Thanks > Ravi. > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] SVN access broken?
Both, web access and anonymous access do not work for me. Web access points to http://svn.apache.org/viewvc/incubator/wicket/branches/wicket and anonymous access to svn checkout https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket wicket Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.
It is currently written using a combination of Struts1, WebMacro (templating engine like Velocity), Torque etc. Due to the lack of user interface components in these tools we had to develop a lot of that ourselves. We are evaluating if we can do away with our code with Wicket or if Wicket can at least assist in simplifying our efforts. Besides, how easy and how long will it take to move to Wicket. As our efforts are commercial, we will be heavily penalized for making the wrong choice. - Ravi. craigdd wrote: Hey Ravi, just out of curiosity, is the application you provided a link for written in wicket? -Craig RW wrote: Go to... http://www.celoxis.com/psa/user.do?bxn=umyhome&p_auth_authenticate=true&p_auth_login=mark&p_auth_password=celoxis1 On this page click the "Pick Columns" link in the top right corner of the "My Projects" table. Thanks Ravi Igor Vaynberg wrote: got a screenshot? dont really understand what you are describing. maybe something like our palette component in extensions? -igor On 5/21/07, Ravindra Wankar < [EMAIL PROTECTED] > wrote: In order to allow users to pick columns they wish to see in a table, we open/close a div layer that has 2 selectors to move columns to/from "Available" to "Selected" and a submit/cancel button. We also position this div layer close to the "Pick Columns" link. Is there a component in Wicket I can use to create a similar effect? I've seen the ModalDialog but I'd like a slight variation because the placement of this div layer needs to be controlled + the main window need not be "greyed" out when showing the layer. Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.
Thanks. A few things are unclear to me... 1. How do wrap the link that when clicked opens the div with the palette in it? 2. How can I make this "reusable" so that the div can have something other than the palette? 3. We have the _javascript_ to intelligently place the div close to the link. How and where do I call this script? BTW, on the previous link you can see the "My Tasks" section for what I'm trying to achieve with the "Multiple Item Action" using an Ajax enabled pulldown. The behavior is similar except that the div contents are a bunch of links fetched using Ajax. Thanks Ravi. Igor Vaynberg wrote: yep, thats easy. create a div with an absolute position and put a palette [1] component into it [1] http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.PalettePage -igor On 5/21/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: Go to... http://www.celoxis.com/psa/user.do?bxn=umyhome&p_auth_authenticate=true&p_auth_login=mark&p_auth_password=celoxis1 On this page click the "Pick Columns" link in the top right corner of the "My Projects" table. Thanks Ravi Igor Vaynberg wrote: got a screenshot? dont really understand what you are describing. maybe something like our palette component in extensions? -igor On 5/21/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: In order to allow users to pick columns they wish to see in a table, we open/close a div layer that has 2 selectors to move columns to/from "Available" to "Selected" and a submit/cancel button. We also position this div layer close to the "Pick Columns" link. Is there a component in Wicket I can use to create a similar effect? I've seen the ModalDialog but I'd like a slight variation because the placement of this div layer needs to be controlled + the main window need not be "greyed" out when showing the layer. Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.
Go to... http://www.celoxis.com/psa/user.do?bxn=umyhome&p_auth_authenticate=true&p_auth_login=mark&p_auth_password=celoxis1 On this page click the "Pick Columns" link in the top right corner of the "My Projects" table. Thanks Ravi Igor Vaynberg wrote: got a screenshot? dont really understand what you are describing. maybe something like our palette component in extensions? -igor On 5/21/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: In order to allow users to pick columns they wish to see in a table, we open/close a div layer that has 2 selectors to move columns to/from "Available" to "Selected" and a submit/cancel button. We also position this div layer close to the "Pick Columns" link. Is there a component in Wicket I can use to create a similar effect? I've seen the ModalDialog but I'd like a slight variation because the placement of this div layer needs to be controlled + the main window need not be "greyed" out when showing the layer. Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.
In order to allow users to pick columns they wish to see in a table, we open/close a div layer that has 2 selectors to move columns to/from "Available" to "Selected" and a submit/cancel button. We also position this div layer close to the "Pick Columns" link. Is there a component in Wicket I can use to create a similar effect? I've seen the ModalDialog but I'd like a slight variation because the placement of this div layer needs to be controlled + the main window need not be "greyed" out when showing the layer. Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Multiple item actions in table.
When we show a list of items in a table, the first column is a checkbox which allows you to check more than 1 item and then select an action to be performed on them. There is also a check all/uncheck all. How would I do this in Wicket? Thanks Ravi - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Saving user preferences transparently across login sessions
Hello, In our current application, we remember a lot of form parameters, sorting preferences across user sessions by saving them in the database. The implementation is simple and *transparent*; we name these fields (text boxes, select lists, etc.) starting with "saved." and for every request, save the associated key-value pairs from HttpServletRequest in the database. While rendering these fields, we lookup the database for the saved values which are treated as defaults. Question is how to do this in wicket? Thank you. Ravi - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Common table layout for all tables
I think I'm going to have to use Panel instead of Border because it is not just a decoration but placement of multiple components. How do I write a ThreePanelLayout which lays out any 3 panels with the constructor ThreePanelLayout(Panel a, Panel b, Panel c). For obvious reasons I do not want to have the callers to know what they must name their panels. Since I dont know the names of the Panels, how do I write a ThreePanelLayout.html? Thanks Ravi. Igor Vaynberg wrote: depends on how much control you need over the markup that is already in datatable.html. if what is in there doesnt bother you you have a few options border that you put a datatable in, or a panel that adds datatable as a child if you dont like what is inside datatable.html then you simply replace it with whatever you want in your subclass.html. -igor On 5/20/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: Since my eventual objective is to have a Filter that when changed modifies the contents of the table below, would it better to use a border or write my own table markup? I will also be having elements like a legend etc. Thanks Ravi. Igor Vaynberg wrote: you cant do it like that. you would either have to make that title a border that surrounds the datatable, or you have to copy and paste html from defaultdatatable into yours. -igor On 5/20/07, Ravindra Wankar <[EMAIL PROTECTED] > wrote: I decided to write a simple example demonstrating that I can add a Title to the DefaultTable which is shown "above" the toolbars of the DataTable without having to repeat the entire layout of the DataTable.html I wrote a new class DefaultTableWithTitle that extends DefaultDataTable and I wrote a DefaultTableWithTitle.html that adds the Title. Now how do I get the html of the DataTable to show below my title? Thanks Ravi. Igor Vaynberg wrote: no, you do not create many subclasses. see defaultdatatable, how it adds toolbars you can also add arbitrary toolbars. basically this is adding panels into a repeater which gives you the ability to add 0-n panels. alternatively you can add a panel but hide it by calling setvisible(false); or overriding isvisible() -igor On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED] > wrote: Thanks Igor. I'll take a look. With JSP/Templating one writes if/else within the view to change layout. With Wicket, does one have to write separate pages (Java classes) for each? eg. TableWithFilter/TableWithoutFilter cause there is no if/else within the Wicket html. Basically I'm trying to understand how to "think" in Wicket. -- R Igor Vaynberg wrote: see datatable, and its defaultdatatable subclass for inspiration. -igor On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED]> wrote: Our html tables optionally have a title, a help link, a filter for the table, pick columns capability, multiple item action (each row has a checkbox and you can perform a bulk action on multiple rows) and a legend at the bottom of a table (that explains symbols/color codes in the table). With JSP or a templating engine we are able to 1. write a common table layout page where we can write if/else blocks to conditionally include the filter, url etc depending on if it is available. 2. We can also change the layout using divs and css. eg we can decide what we want to border and what not. With Wicket, I'm having a hard time understanding how to do this. I think I need a TablePanel but what next? Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge
Re: [Wicket-user] Common table layout for all tables
Since my eventual objective is to have a Filter that when changed modifies the contents of the table below, would it better to use a border or write my own table markup? I will also be having elements like a legend etc. Thanks Ravi. Igor Vaynberg wrote: you cant do it like that. you would either have to make that title a border that surrounds the datatable, or you have to copy and paste html from defaultdatatable into yours. -igor On 5/20/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: I decided to write a simple example demonstrating that I can add a Title to the DefaultTable which is shown "above" the toolbars of the DataTable without having to repeat the entire layout of the DataTable.html I wrote a new class DefaultTableWithTitle that extends DefaultDataTable and I wrote a DefaultTableWithTitle.html that adds the Title. Now how do I get the html of the DataTable to show below my title? Thanks Ravi. Igor Vaynberg wrote: no, you do not create many subclasses. see defaultdatatable, how it adds toolbars you can also add arbitrary toolbars. basically this is adding panels into a repeater which gives you the ability to add 0-n panels. alternatively you can add a panel but hide it by calling setvisible(false); or overriding isvisible() -igor On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED]> wrote: Thanks Igor. I'll take a look. With JSP/Templating one writes if/else within the view to change layout. With Wicket, does one have to write separate pages (Java classes) for each? eg. TableWithFilter/TableWithoutFilter cause there is no if/else within the Wicket html. Basically I'm trying to understand how to "think" in Wicket. -- R Igor Vaynberg wrote: see datatable, and its defaultdatatable subclass for inspiration. -igor On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED]> wrote: Our html tables optionally have a title, a help link, a filter for the table, pick columns capability, multiple item action (each row has a checkbox and you can perform a bulk action on multiple rows) and a legend at the bottom of a table (that explains symbols/color codes in the table). With JSP or a templating engine we are able to 1. write a common table layout page where we can write if/else blocks to conditionally include the filter, url etc depending on if it is available. 2. We can also change the layout using divs and css. eg we can decide what we want to border and what not. With Wicket, I'm having a hard time understanding how to do this. I think I need a TablePanel but what next? Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -
Re: [Wicket-user] Common table layout for all tables
I decided to write a simple example demonstrating that I can add a Title to the DefaultTable which is shown "above" the toolbars of the DataTable without having to repeat the entire layout of the DataTable.html I wrote a new class DefaultTableWithTitle that extends DefaultDataTable and I wrote a DefaultTableWithTitle.html that adds the Title. Now how do I get the html of the DataTable to show below my title? Thanks Ravi. Igor Vaynberg wrote: no, you do not create many subclasses. see defaultdatatable, how it adds toolbars you can also add arbitrary toolbars. basically this is adding panels into a repeater which gives you the ability to add 0-n panels. alternatively you can add a panel but hide it by calling setvisible(false); or overriding isvisible() -igor On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED]> wrote: Thanks Igor. I'll take a look. With JSP/Templating one writes if/else within the view to change layout. With Wicket, does one have to write separate pages (Java classes) for each? eg. TableWithFilter/TableWithoutFilter cause there is no if/else within the Wicket html. Basically I'm trying to understand how to "think" in Wicket. -- R Igor Vaynberg wrote: see datatable, and its defaultdatatable subclass for inspiration. -igor On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED]> wrote: Our html tables optionally have a title, a help link, a filter for the table, pick columns capability, multiple item action (each row has a checkbox and you can perform a bulk action on multiple rows) and a legend at the bottom of a table (that explains symbols/color codes in the table). With JSP or a templating engine we are able to 1. write a common table layout page where we can write if/else blocks to conditionally include the filter, url etc depending on if it is available. 2. We can also change the layout using divs and css. eg we can decide what we want to border and what not. With Wicket, I'm having a hard time understanding how to do this. I think I need a TablePanel but what next? Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Common table layout for all tables
Thanks Igor. I'll take a look. With JSP/Templating one writes if/else within the view to change layout. With Wicket, does one have to write separate pages (Java classes) for each? eg. TableWithFilter/TableWithoutFilter cause there is no if/else within the Wicket html. Basically I'm trying to understand how to "think" in Wicket. -- R Igor Vaynberg wrote: see datatable, and its defaultdatatable subclass for inspiration. -igor On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED]> wrote: Our html tables optionally have a title, a help link, a filter for the table, pick columns capability, multiple item action (each row has a checkbox and you can perform a bulk action on multiple rows) and a legend at the bottom of a table (that explains symbols/color codes in the table). With JSP or a templating engine we are able to 1. write a common table layout page where we can write if/else blocks to conditionally include the filter, url etc depending on if it is available. 2. We can also change the layout using divs and css. eg we can decide what we want to border and what not. With Wicket, I'm having a hard time understanding how to do this. I think I need a TablePanel but what next? Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Common table layout for all tables
Our html tables optionally have a title, a help link, a filter for the table, pick columns capability, multiple item action (each row has a checkbox and you can perform a bulk action on multiple rows) and a legend at the bottom of a table (that explains symbols/color codes in the table). With JSP or a templating engine we are able to 1. write a common table layout page where we can write if/else blocks to conditionally include the filter, url etc depending on if it is available. 2. We can also change the layout using divs and css. eg we can decide what we want to border and what not. With Wicket, I'm having a hard time understanding how to do this. I think I need a TablePanel but what next? Thanks Ravi. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Filter on non-displayed columns
I've seen a filter example where columns in a table were filterable. Can someone point me to an example or tell me how to have a filter (with columns not related to the table) and that uses a dataprovider at the backend? EXAMPLE: we have a filter that is a drop-down with options describing task statuses as "Started, Starting Today, Starting This Week...". There is no corresponding column for that in the html table. Thanks Ravi - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Continue action after sign in
When a user accesses a page and their session has expired, can we log them in and redirect them to the original page they accessed? If they were submitting a form, will the form be submitted? The concern is that if they had typed a bunch of text into a textarea, we would hate to see them have to type the text all over again. How does one do this? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user