Re: wiQuery components with server side state - live demo
I don't think the project is very active. Started with a bang, but there hasn't been much action lately, or so it seems. On Jun 13, 2010, at 7:42 AM, Thies Edeling wrote: Is this project still alive? The URL below now prompts for a username/password. Thx! On Wed, Mar 10, 2010 at 1:10 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage ) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data transfer? Is XML supported? The grid uses JSON, however this is all internal and transparent to the developer using the grid, so I dont see how supporting XML would be a benefit. It is not possible to construct JSON or XML and feed this into the grid manually, i.e. by telling the grid which url to use. The intended use is the same as with a Wicket DataTable, where an IDataProvider provides an iterator of beans which are rendered as rows in the grid. We use Wicket IConverter to convert each field of the bean to a String, then use a JSON library to construct the JSON response, which is then used in a custom wicket IRequestTarget for JSON. Best, Ernesto On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
No solution in sight yet =/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2253954.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: Wicket Ajax Event on Component with Parameters
Hi Martin, Can you just read the options [1,12,355] on the body of the function you defined and append them to the URL? Ernesto On Mon, Jun 14, 2010 at 8:07 AM, MattyDE ufer.mar...@gmail.com wrote: No solution in sight yet =/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2253954.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Ajax Event on Component with Parameters
Sure i could. But there are more and more complex Parameters as they could be added to an URL ... so i need to Ajax-POST them, instead of GET .. this is my Problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2253965.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: wiQuery components with server side state - live demo
Hi, I have started [1] sometime ago. This Wicket-jqgrid integration already supports many of jqgrid's options and is capable of rendering of Wicket components as grid cells. I'm planning to maintain this project and I'm also willing to let other people to join in if they think (and prove) they can make significant contributions to the project. The project also contains integrations with other jquery plug-ins as well as a prototype of another grid based on jquery (I'm actively improving this component right now as I'm planning to use it for some projects). There is a small demo project [3] you can use to see components in action. Project is fully mavenized so it is very easy to start using it. Best, Ernesto References, [1] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid [2] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/antila-grid [3] - http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/example-war On Mon, Jun 14, 2010 at 8:05 AM, David Leangen wic...@leangen.net wrote: I don't think the project is very active. Started with a bang, but there hasn't been much action lately, or so it seems. On Jun 13, 2010, at 7:42 AM, Thies Edeling wrote: Is this project still alive? The URL below now prompts for a username/password. Thx! On Wed, Mar 10, 2010 at 1:10 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage ) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data transfer? Is XML supported? The grid uses JSON, however this is all internal and transparent to the developer using the grid, so I dont see how supporting XML would be a benefit. It is not possible to construct JSON or XML and feed this into the grid manually, i.e. by telling the grid which url to use. The intended use is the same as with a Wicket DataTable, where an IDataProvider provides an iterator of beans which are rendered as rows in the grid. We use Wicket IConverter to convert each field of the bean to a String, then use a JSON library to construct the JSON response, which is then used in a custom wicket IRequestTarget for JSON. Best, Ernesto On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com - To unsubscribe, e-mail:
Re: wiQuery components with server side state - live demo
Nice! Do you have the example running somewhere so the curious don't need to spend time setting it up? Cheers, =David On Jun 14, 2010, at 3:37 PM, Ernesto Reinaldo Barreiro wrote: Hi, I have started [1] sometime ago. This Wicket-jqgrid integration already supports many of jqgrid's options and is capable of rendering of Wicket components as grid cells. I'm planning to maintain this project and I'm also willing to let other people to join in if they think (and prove) they can make significant contributions to the project. The project also contains integrations with other jquery plug-ins as well as a prototype of another grid based on jquery (I'm actively improving this component right now as I'm planning to use it for some projects). There is a small demo project [3] you can use to see components in action. Project is fully mavenized so it is very easy to start using it. Best, Ernesto References, [1] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid [2] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/antila-grid [3] - http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/example-war On Mon, Jun 14, 2010 at 8:05 AM, David Leangen wic...@leangen.net wrote: I don't think the project is very active. Started with a bang, but there hasn't been much action lately, or so it seems. On Jun 13, 2010, at 7:42 AM, Thies Edeling wrote: Is this project still alive? The URL below now prompts for a username/password. Thx! On Wed, Mar 10, 2010 at 1:10 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage ) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data transfer? Is XML supported? The grid uses JSON, however this is all internal and transparent to the developer using the grid, so I dont see how supporting XML would be a benefit. It is not possible to construct JSON or XML and feed this into the grid manually, i.e. by telling the grid which url to use. The intended use is the same as with a Wicket DataTable, where an IDataProvider provides an iterator of beans which are rendered as rows in the grid. We use Wicket IConverter to convert each field of the bean to a String, then use a JSON library to construct the JSON response, which is then used in a custom wicket IRequestTarget for JSON. Best, Ernesto On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: --
Re: wiQuery components with server side state - live demo
David, Unfortunately not: my free time is very limited and I've tried to use it doing what I need (create new components). But getting a local copy to work should not be that hard. 1- Check out http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins 2- on wiquery-plugins type maven install 3- and then use maven jetty:run on wiquery-plugins/example-war 4- browse at http://localhost:8080/wiquery-plugins/ As said the demo is very small and just contains a few screens but at least it is something to get started with. Best, Ernesto On Mon, Jun 14, 2010 at 8:40 AM, David Leangen wic...@leangen.net wrote: Nice! Do you have the example running somewhere so the curious don't need to spend time setting it up? Cheers, =David On Jun 14, 2010, at 3:37 PM, Ernesto Reinaldo Barreiro wrote: Hi, I have started [1] sometime ago. This Wicket-jqgrid integration already supports many of jqgrid's options and is capable of rendering of Wicket components as grid cells. I'm planning to maintain this project and I'm also willing to let other people to join in if they think (and prove) they can make significant contributions to the project. The project also contains integrations with other jquery plug-ins as well as a prototype of another grid based on jquery (I'm actively improving this component right now as I'm planning to use it for some projects). There is a small demo project [3] you can use to see components in action. Project is fully mavenized so it is very easy to start using it. Best, Ernesto References, [1] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid [2] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/antila-grid [3] - http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/example-war On Mon, Jun 14, 2010 at 8:05 AM, David Leangen wic...@leangen.net wrote: I don't think the project is very active. Started with a bang, but there hasn't been much action lately, or so it seems. On Jun 13, 2010, at 7:42 AM, Thies Edeling wrote: Is this project still alive? The URL below now prompts for a username/password. Thx! On Wed, Mar 10, 2010 at 1:10 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage ) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data transfer? Is XML supported? The grid uses JSON, however this is all internal and transparent to the developer using the grid, so I dont see how supporting XML would be
Re: wiQuery components with server side state - live demo
and David, the project is compatible with wiquery. Best, Ernesto On Mon, Jun 14, 2010 at 9:02 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: David, Unfortunately not: my free time is very limited and I've tried to use it doing what I need (create new components). But getting a local copy to work should not be that hard. 1- Check out http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins 2- on wiquery-plugins type maven install 3- and then use maven jetty:run on wiquery-plugins/example-war 4- browse at http://localhost:8080/wiquery-plugins/ As said the demo is very small and just contains a few screens but at least it is something to get started with. Best, Ernesto On Mon, Jun 14, 2010 at 8:40 AM, David Leangen wic...@leangen.net wrote: Nice! Do you have the example running somewhere so the curious don't need to spend time setting it up? Cheers, =David On Jun 14, 2010, at 3:37 PM, Ernesto Reinaldo Barreiro wrote: Hi, I have started [1] sometime ago. This Wicket-jqgrid integration already supports many of jqgrid's options and is capable of rendering of Wicket components as grid cells. I'm planning to maintain this project and I'm also willing to let other people to join in if they think (and prove) they can make significant contributions to the project. The project also contains integrations with other jquery plug-ins as well as a prototype of another grid based on jquery (I'm actively improving this component right now as I'm planning to use it for some projects). There is a small demo project [3] you can use to see components in action. Project is fully mavenized so it is very easy to start using it. Best, Ernesto References, [1] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid [2] -http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/antila-grid [3] - http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/example-war On Mon, Jun 14, 2010 at 8:05 AM, David Leangen wic...@leangen.net wrote: I don't think the project is very active. Started with a bang, but there hasn't been much action lately, or so it seems. On Jun 13, 2010, at 7:42 AM, Thies Edeling wrote: Is this project still alive? The URL below now prompts for a username/password. Thx! On Wed, Mar 10, 2010 at 1:10 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage ) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data
Re: How to implement tabs without using panels?
Then use fragments. I must not be understanding what you actually want to do or why you're so afraid to break up separate things into separate markup. On Mon, Jun 14, 2010 at 12:02 AM, Alec Swan alecs...@gmail.com wrote: Hello, If I understood your suggestion correctly it involves to markup files: one - for the content area and another one - for the tab content. However, I would like to use a single markup file for the entire page. Did I understand your solution correctly? Thanks On Sun, Jun 13, 2010 at 8:04 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Sun, Jun 13, 2010 at 8:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Just make the content area a panel, add links to each of the tabs, and in the onClick, call replace(...) with the panel that contains the content for that tab. This will make each content area (for each tab) into a panel, but you will not have to modify the markup of the tabs themselves. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com
Re: How to implement tabs without using panels?
Then use fragments. I must not be understanding what you actually want to do or why you're so afraid to break up separate things into separate markup. On Mon, Jun 14, 2010 at 12:02 AM, Alec Swan alecs...@gmail.com wrote: Hello, If I understood your suggestion correctly it involves to markup files: one - for the content area and another one - for the tab content. However, I would like to use a single markup file for the entire page. Did I understand your solution correctly? Thanks On Sun, Jun 13, 2010 at 8:04 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Sun, Jun 13, 2010 at 8:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Just make the content area a panel, add links to each of the tabs, and in the onClick, call replace(...) with the panel that contains the content for that tab. This will make each content area (for each tab) into a panel, but you will not have to modify the markup of the tabs themselves. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com
Re: signout and encryption key in session
please show your signout code On Mon, Jun 14, 2010 at 8:43 AM, fachhoch fachh...@gmail.com wrote: I encode url in wicket suggested way ie using CryptedUrlWebRequestCodingStrategy. this strategy stores encryption key in session so If I signout user and redirect him to a wicket page I get bad padding or encryption related exceptions becasue session is no more and key to decocde and encode url was in session. . is there any way to retain the encryption key and also signout user ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254370.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 -- Jeremy Thomerson http://www.wickettraining.com
Re: How to implement tabs without using panels?
Hi Alec, you can create an wrapper panel, that receive as parameter an component, in your case an fragment, to use in your tabbed panel. Actually I think that will to be more natural if the ITab interface had an getTab method, that return an Component object instead of the getPanel one, since there is no good reason to force users to have the tab content implemented as an Panel. If some one else think this way, I can open on request for. I know that the component name is TabbedPANEL, which implies that it work with panels... So it can to be an reason to create another component? TabbedContents? Ex: public WrapperPanel extends Panel{ public static String WICKET_ID_FOR_WRAPPED_COM =component; public WrapperPanel (wrappedComponent){ add(wrappedComponent); } } On Mon, Jun 14, 2010 at 2:14 AM, Alec Swan alecs...@gmail.com wrote: I wonder if I can use Wicket fragments for this. My page markup will contain a single fragment for the tab content. At runtime I will create multiple Fragment objects - one for each tab, each of which will be mapped to the same fragment section in the markup file. After this I can just swap tab fragments when tabs are selected. I am not sure if it's legal to create multiple Fragment objects that use the same fragment markup. Any thoughts? Thanks On Sun, Jun 13, 2010 at 11:02 PM, Alec Swan alecs...@gmail.com wrote: Hello, If I understood your suggestion correctly it involves to markup files: one - for the content area and another one - for the tab content. However, I would like to use a single markup file for the entire page. Did I understand your solution correctly? Thanks On Sun, Jun 13, 2010 at 8:04 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Sun, Jun 13, 2010 at 8:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Just make the content area a panel, add links to each of the tabs, and in the onClick, call replace(...) with the panel that contains the content for that tab. This will make each content area (for each tab) into a panel, but you will not have to modify the markup of the tabs themselves. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: signout and encryption key in session
here is the code for signout ((AuditWebSession)(Session.get())).signout(); setRedirect(true); throw new RestartResponseException(new AuditWicketApplication.SignInPageHelper().getSignedOutPage()); AuditWebSession is a subclass of AuthenticatedWebSession AuditWicketApplication.SignInPageHelper().getSignedOutPage()return a wicket page class -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254450.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: signout and encryption key in session
Why are you constructing a new page? Just use the page class so that it's a bookmarkable page rather than a session-relative page. On Mon, Jun 14, 2010 at 9:27 AM, fachhoch fachh...@gmail.com wrote: here is the code for signout ((AuditWebSession)(Session.get())).signout(); setRedirect(true); throw new RestartResponseException(new AuditWicketApplication.SignInPageHelper().getSignedOutPage()); AuditWebSession is a subclass of AuthenticatedWebSession AuditWicketApplication.SignInPageHelper().getSignedOutPage()return a wicket page class -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254450.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 -- Jeremy Thomerson http://www.wickettraining.com
Re: DataTable with more than one tr per item
waiting for matej to wrap up a few things, not sure when that will be because he is very busy -igor On Thu, Jun 10, 2010 at 3:45 AM, vladimir.kovalyuk koval...@gmail.com wrote: Igor, Having played with multi-line data tables I realized that there isn't an easy way to extend the basic DataTableT. The multiline data table has a customizable layout where cell has collspans and possibly rowspans. It means that the configuration is not simple list of columns. It makes the implementation to base on repeater different from DataGridView. My understanding now is that multiline datatable should be a completely different class encapsulating DataViewT with customizable item. The only problem is that toolbars cannot be reused. It probably would make sense to patch them after 1.5M1 milestone because the relationships with DataTable are affected. BTW, how 1.5 is going? Looking forward for the new URL handling mechanism. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-with-more-than-one-tr-per-item-tp1887973p2250219.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Errors with rendering feedback labels on a form during unit testing. Works fine when viewed from the browser.
onbeforerender is called before every render, so the second render that is invoked after onsubmit() is running onbeforerender() again and adding duplicate components. your visitor should check if the component it is trying to add already exists using component#get(id) -igor On Thu, Jun 10, 2010 at 9:54 PM, Todd Nine t...@spidertracks.co.nz wrote: Hi all, I'm getting some strange behavior from my tests. I have an abstract class that all ajax feedback forms inherit from. BaseFeedBackForm http://pastebin.com/NWALFWvi I have this test code http://pastebin.com/zZyzG1e6 What's happening is my onBeforeRender of my BaseFeedbackForm is being invoked twice. The first time it is invoked is by this line of code in my test. tester.startPage(HomePage.class); This visits all the form components, and decorates all components except buttons with a FormFeedBacklabel. A label I'm using to display validation errors when the input is incorrect onblur. This works well when the form is created both in my unit test and when rendered via a browser. However, when this is invoked. registerForm.submit(); My page is re-rendered, which is throwing the error org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = registrationPanel]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1739) at org.apache.wicket.Component.onBeforeRender(Component.java:3855) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1727) at org.apache.wicket.Component.onBeforeRender(Component.java:3855) at org.apache.wicket.Page.onBeforeRender(Page.java:1521) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.Component.prepareForRender(Component.java:2225) at org.apache.wicket.Component.prepareForRender(Component.java:2262) at org.apache.wicket.Page.renderPage(Page.java:893) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:524) at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:667) at com.spidertracks.aviator.logbook.HomePageTest.testSignupValid(HomePageTest.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod $1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
Re: signout and encryption key in session
No i am not constructing new page I am just returning the class for that page . I am using public C extends Page RestartResponseException(ClassC pageClass) { RequestCycle.get().setResponsePage(pageClass); } here the code for AuditWicketApplication.SignInPageHelper() public static class SignInPageHelper { ApplicationSettings applicationSettings=SpringApplicationContext.getBean(applicationSettings); public Class? extends WebPage getSignInPage(){ return applicationSettings.getSignInPageClass(); } public Class? extends WebPage getSignedOutPage(){ return applicationSettings.getSingedOutPageClass(); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254482.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: How to implement tabs without using panels?
you can simply use javascript tabs. all js frameworks provide them. -igor On Sun, Jun 13, 2010 at 6:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to implement tabs without using panels?
Pedro, I agree that ITab.getPanel() could just return Component type. Jeremy and Igor, the goal of the project is to automatically generate tabs given tab markup template and a database which provides content for all tabs. Note that the number of tabs can vary depending on the database state. It seems to me that automating this by switching tab components in Wicket is easier than using JavaScript because in Wicket we have direct access to the database and can decide right then how many tabs need to be created. I am planning to try creating and swapping multiple Fragment objects mapped to the same fragment markup (wicket:id=tabTemplateFragment). Please let me know if there is a reason not to do this. Thanks On Mon, Jun 14, 2010 at 8:26 AM, Pedro Santos pedros...@gmail.com wrote: Hi Alec, you can create an wrapper panel, that receive as parameter an component, in your case an fragment, to use in your tabbed panel. Actually I think that will to be more natural if the ITab interface had an getTab method, that return an Component object instead of the getPanel one, since there is no good reason to force users to have the tab content implemented as an Panel. If some one else think this way, I can open on request for. I know that the component name is TabbedPANEL, which implies that it work with panels... So it can to be an reason to create another component? TabbedContents? Ex: public WrapperPanel extends Panel{ public static String WICKET_ID_FOR_WRAPPED_COM =component; public WrapperPanel (wrappedComponent){ add(wrappedComponent); } } On Mon, Jun 14, 2010 at 2:14 AM, Alec Swan alecs...@gmail.com wrote: I wonder if I can use Wicket fragments for this. My page markup will contain a single fragment for the tab content. At runtime I will create multiple Fragment objects - one for each tab, each of which will be mapped to the same fragment section in the markup file. After this I can just swap tab fragments when tabs are selected. I am not sure if it's legal to create multiple Fragment objects that use the same fragment markup. Any thoughts? Thanks On Sun, Jun 13, 2010 at 11:02 PM, Alec Swan alecs...@gmail.com wrote: Hello, If I understood your suggestion correctly it involves to markup files: one - for the content area and another one - for the tab content. However, I would like to use a single markup file for the entire page. Did I understand your solution correctly? Thanks On Sun, Jun 13, 2010 at 8:04 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Sun, Jun 13, 2010 at 8:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Just make the content area a panel, add links to each of the tabs, and in the onClick, call replace(...) with the panel that contains the content for that tab. This will make each content area (for each tab) into a panel, but you will not have to modify the markup of the tabs themselves. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
LegUp - Updated
LegUp [1] has been updated to give you a head start creating projects using various combinations of: Wicket 1.4.9 Guice 2.0 Spring 3.0.1 Warp Persist (latest build, 2.0) JPA 2.0 Hibernate 3.5.1-Final wiQuery 1.0.1 Scala 2.8.0.RC3 Regards - Cemal jWeekend Training, Consulting, Development http://www.jWeekend.com [1] http://jweekend.com/dev/LegUp - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable with more than one tr per item
On Mon, 2010-06-14 at 07:42 -0700, Igor Vaynberg wrote: waiting for matej to wrap up a few things, not sure when that will be because he is very busy Let us know what these things are and we may try to help with patches ;-) -igor On Thu, Jun 10, 2010 at 3:45 AM, vladimir.kovalyuk koval...@gmail.com wrote: Igor, Having played with multi-line data tables I realized that there isn't an easy way to extend the basic DataTableT. The multiline data table has a customizable layout where cell has collspans and possibly rowspans. It means that the configuration is not simple list of columns. It makes the implementation to base on repeater different from DataGridView. My understanding now is that multiline datatable should be a completely different class encapsulating DataViewT with customizable item. The only problem is that toolbars cannot be reused. It probably would make sense to patch them after 1.5M1 milestone because the relationships with DataTable are affected. BTW, how 1.5 is going? Looking forward for the new URL handling mechanism. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-with-more-than-one-tr-per-item-tp1887973p2250219.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to implement tabs without using panels?
I am working with a web designer who delivers a single HTML page which should display a panel with tabs. Simply use javascript With arbitrary number of, loaded from the database at runtime Is preferable to implement an component at server side with the tabs assemble and presentation rules. On Mon, Jun 14, 2010 at 12:16 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you can simply use javascript tabs. all js frameworks provide them. -igor On Sun, Jun 13, 2010 at 6:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: How to implement tabs without using panels?
Pedro, could you clarify your last message? I also came across wicket:container. I don't think it is possible to swap container components at runtime because they don't have HTML ids and hence cannot be reference via AJAX. Is that right? Thanks On Mon, Jun 14, 2010 at 10:11 AM, Pedro Santos pedros...@gmail.com wrote: I am working with a web designer who delivers a single HTML page which should display a panel with tabs. Simply use javascript With arbitrary number of, loaded from the database at runtime Is preferable to implement an component at server side with the tabs assemble and presentation rules. On Mon, Jun 14, 2010 at 12:16 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you can simply use javascript tabs. all js frameworks provide them. -igor On Sun, Jun 13, 2010 at 6:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to implement tabs without using panels?
wicket:container are meant to don't output invalid markup when using repeaters. You can use AjaxTabbedPanel to implement your tabbed panel, and ITab for the complexity of swap your tabs contents... In my last mail I said that is preferably to have you logic that use database info to assemble your tabbed panel in an Wicket component, rather than in javascript. About create an new component TabbedContents, I exaggerated. There is no good reason to create an new type and api for that. If the component initial component design don't solve all user cases, we can always write customizations. Do you considered to use an wrapper panels for your fragments, your write panels for them? On Mon, Jun 14, 2010 at 1:39 PM, Alec Swan alecs...@gmail.com wrote: Pedro, could you clarify your last message? I also came across wicket:container. I don't think it is possible to swap container components at runtime because they don't have HTML ids and hence cannot be reference via AJAX. Is that right? Thanks On Mon, Jun 14, 2010 at 10:11 AM, Pedro Santos pedros...@gmail.com wrote: I am working with a web designer who delivers a single HTML page which should display a panel with tabs. Simply use javascript With arbitrary number of, loaded from the database at runtime Is preferable to implement an component at server side with the tabs assemble and presentation rules. On Mon, Jun 14, 2010 at 12:16 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can simply use javascript tabs. all js frameworks provide them. -igor On Sun, Jun 13, 2010 at 6:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: FileUpload inside two forms
This shouldn't happen. Please submit a quickstart the replicates this error. On Thu, Jun 3, 2010 at 2:11 PM, Josh Chappelle jchappe...@4redi.com wrote: Hi, I have a generic FileUploadModal class that allows the user to upload files as long as it is not being used inside of another form. The FileUploadPanel that is the content of the FileUploadModal contains a Form. So when the modal is used inside a panel that already contains a form I get a 400 error when I click the form submit button. Is there any way to make this work? Thanks, Josh -- Jeremy Thomerson http://www.wickettraining.com
Re: DataTable with more than one tr per item
unfortunately these things are pretty big, namely page locking and versioning :) -igor On Mon, Jun 14, 2010 at 8:58 AM, Martin Grigorov mcgreg...@e-card.bg wrote: On Mon, 2010-06-14 at 07:42 -0700, Igor Vaynberg wrote: waiting for matej to wrap up a few things, not sure when that will be because he is very busy Let us know what these things are and we may try to help with patches ;-) -igor On Thu, Jun 10, 2010 at 3:45 AM, vladimir.kovalyuk koval...@gmail.com wrote: Igor, Having played with multi-line data tables I realized that there isn't an easy way to extend the basic DataTableT. The multiline data table has a customizable layout where cell has collspans and possibly rowspans. It means that the configuration is not simple list of columns. It makes the implementation to base on repeater different from DataGridView. My understanding now is that multiline datatable should be a completely different class encapsulating DataViewT with customizable item. The only problem is that toolbars cannot be reused. It probably would make sense to patch them after 1.5M1 milestone because the relationships with DataTable are affected. BTW, how 1.5 is going? Looking forward for the new URL handling mechanism. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-with-more-than-one-tr-per-item-tp1887973p2250219.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to implement tabs without using panels?
Hello Pedro, I am not sure what you mean by wrapped panels, but I am planning to have a lul/ list and single fragment with wicket:id=tabTemplate on my page. When the user accesses the page the first time, the Page code will populate the list and display the first tab with the content pulled from the database. The code will also keep a reference to that fragment object. When the user selects a different tab, the code will create a new fragment and will swap it with the one from the previous step. The two issues that I am concerned about are: 1. Is it OK to create multiple Fragment objects for the same markup fragment? 2. Is it possible to nest Fragments so that I can support multiple levels of tabs? Thanks, Alec On Mon, Jun 14, 2010 at 11:17 AM, Pedro Santos pedros...@gmail.com wrote: wicket:container are meant to don't output invalid markup when using repeaters. You can use AjaxTabbedPanel to implement your tabbed panel, and ITab for the complexity of swap your tabs contents... In my last mail I said that is preferably to have you logic that use database info to assemble your tabbed panel in an Wicket component, rather than in javascript. About create an new component TabbedContents, I exaggerated. There is no good reason to create an new type and api for that. If the component initial component design don't solve all user cases, we can always write customizations. Do you considered to use an wrapper panels for your fragments, your write panels for them? On Mon, Jun 14, 2010 at 1:39 PM, Alec Swan alecs...@gmail.com wrote: Pedro, could you clarify your last message? I also came across wicket:container. I don't think it is possible to swap container components at runtime because they don't have HTML ids and hence cannot be reference via AJAX. Is that right? Thanks On Mon, Jun 14, 2010 at 10:11 AM, Pedro Santos pedros...@gmail.com wrote: I am working with a web designer who delivers a single HTML page which should display a panel with tabs. Simply use javascript With arbitrary number of, loaded from the database at runtime Is preferable to implement an component at server side with the tabs assemble and presentation rules. On Mon, Jun 14, 2010 at 12:16 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can simply use javascript tabs. all js frameworks provide them. -igor On Sun, Jun 13, 2010 at 6:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to implement tabs without using panels?
1. Is it OK to create multiple Fragment objects for the same markup fragment? yes, the relation is: 1 markup fragment, 1 fragment type, n fragment objects 2. Is it possible to nest Fragments so that I can support multiple levels of tabs? yes, the Fragment extends from Component, and as an Component, it can to be placed where you want. On Mon, Jun 14, 2010 at 4:35 PM, Alec Swan alecs...@gmail.com wrote: Hello Pedro, I am not sure what you mean by wrapped panels, but I am planning to have a lul/ list and single fragment with wicket:id=tabTemplate on my page. When the user accesses the page the first time, the Page code will populate the list and display the first tab with the content pulled from the database. The code will also keep a reference to that fragment object. When the user selects a different tab, the code will create a new fragment and will swap it with the one from the previous step. The two issues that I am concerned about are: 1. Is it OK to create multiple Fragment objects for the same markup fragment? 2. Is it possible to nest Fragments so that I can support multiple levels of tabs? Thanks, Alec On Mon, Jun 14, 2010 at 11:17 AM, Pedro Santos pedros...@gmail.com wrote: wicket:container are meant to don't output invalid markup when using repeaters. You can use AjaxTabbedPanel to implement your tabbed panel, and ITab for the complexity of swap your tabs contents... In my last mail I said that is preferably to have you logic that use database info to assemble your tabbed panel in an Wicket component, rather than in javascript. About create an new component TabbedContents, I exaggerated. There is no good reason to create an new type and api for that. If the component initial component design don't solve all user cases, we can always write customizations. Do you considered to use an wrapper panels for your fragments, your write panels for them? On Mon, Jun 14, 2010 at 1:39 PM, Alec Swan alecs...@gmail.com wrote: Pedro, could you clarify your last message? I also came across wicket:container. I don't think it is possible to swap container components at runtime because they don't have HTML ids and hence cannot be reference via AJAX. Is that right? Thanks On Mon, Jun 14, 2010 at 10:11 AM, Pedro Santos pedros...@gmail.com wrote: I am working with a web designer who delivers a single HTML page which should display a panel with tabs. Simply use javascript With arbitrary number of, loaded from the database at runtime Is preferable to implement an component at server side with the tabs assemble and presentation rules. On Mon, Jun 14, 2010 at 12:16 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can simply use javascript tabs. all js frameworks provide them. -igor On Sun, Jun 13, 2010 at 6:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: Override IAjaxIndicatorAware behavior
See the previous response from Ernesto - he describes very well how to accomplish this. On Thu, Jun 3, 2010 at 1:59 AM, Aurelie Boiteux aboiteux@orange-ftgroup.com wrote: Yes, that's exactly what I did. My problem is that I want that div veil shows up only if an ajax call takes more than 2 seconds to process. If the ajax processing is short (less than 2 seconds), I don't want this div shows up. I don't know how to do it. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Override-IAjaxIndicatorAware-behavior-tp2239813p2241266.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 -- Jeremy Thomerson http://www.wickettraining.com
Re: How to implement tabs without using panels?
yep, javascript tabs do that... -igor On Mon, Jun 14, 2010 at 8:29 AM, Alec Swan alecs...@gmail.com wrote: Pedro, I agree that ITab.getPanel() could just return Component type. Jeremy and Igor, the goal of the project is to automatically generate tabs given tab markup template and a database which provides content for all tabs. Note that the number of tabs can vary depending on the database state. It seems to me that automating this by switching tab components in Wicket is easier than using JavaScript because in Wicket we have direct access to the database and can decide right then how many tabs need to be created. I am planning to try creating and swapping multiple Fragment objects mapped to the same fragment markup (wicket:id=tabTemplateFragment). Please let me know if there is a reason not to do this. Thanks On Mon, Jun 14, 2010 at 8:26 AM, Pedro Santos pedros...@gmail.com wrote: Hi Alec, you can create an wrapper panel, that receive as parameter an component, in your case an fragment, to use in your tabbed panel. Actually I think that will to be more natural if the ITab interface had an getTab method, that return an Component object instead of the getPanel one, since there is no good reason to force users to have the tab content implemented as an Panel. If some one else think this way, I can open on request for. I know that the component name is TabbedPANEL, which implies that it work with panels... So it can to be an reason to create another component? TabbedContents? Ex: public WrapperPanel extends Panel{ public static String WICKET_ID_FOR_WRAPPED_COM =component; public WrapperPanel (wrappedComponent){ add(wrappedComponent); } } On Mon, Jun 14, 2010 at 2:14 AM, Alec Swan alecs...@gmail.com wrote: I wonder if I can use Wicket fragments for this. My page markup will contain a single fragment for the tab content. At runtime I will create multiple Fragment objects - one for each tab, each of which will be mapped to the same fragment section in the markup file. After this I can just swap tab fragments when tabs are selected. I am not sure if it's legal to create multiple Fragment objects that use the same fragment markup. Any thoughts? Thanks On Sun, Jun 13, 2010 at 11:02 PM, Alec Swan alecs...@gmail.com wrote: Hello, If I understood your suggestion correctly it involves to markup files: one - for the content area and another one - for the tab content. However, I would like to use a single markup file for the entire page. Did I understand your solution correctly? Thanks On Sun, Jun 13, 2010 at 8:04 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Sun, Jun 13, 2010 at 8:54 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am working with a web designer who delivers a single HTML page which should display a panel with arbitrary number of tabs. In the HTML the tabbed panel consists of a ul list of links and the content of the first tab. The content for the remaining tabs is loaded from the database at runtime. I know how to implement tabbing using tab swapping or TabbedPanel. However, both of these approaches require a separate panel object and markup for the tabs. Instead, I would like to be able to use the HTML page I received from the designer unmodified. Is there a way to create a WebMarkupContainerWithAssociatedMarkup object which is mapped to a specific element on the page markup? If so, can I implement tabbing by swapping such objects when tabs are clicked? Any ideas would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Just make the content area a panel, add links to each of the tabs, and in the onClick, call replace(...) with the panel that contains the content for that tab. This will make each content area (for each tab) into a panel, but you will not have to modify the markup of the tabs themselves. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to support multiple themes in Wicket application.
Hi all, I would like to support multiple themes in Wicket application like Wordpress, Drupal. Could you please give me suggestion? Thanks and regards, Duy