Re: Create Datatable with empty columns and rows
I'd recommend using a listview and use CSS to lay it out as you mentioned. A data table is really useful when dealing with columnar data that needs pagination and sorting. On Saturday, May 14, 2011, malebu milton.qura...@gmail.com wrote: http://apache-wicket.1842946.n4.nabble.com/file/n3523546/Screen_shot_2011-05-14_at_9.55.31_PM.png I need to create a table like the attached image. I am not seasoned in wicket. I am not able to analyze where to start. I was able to create a DataTable but could not figure out how to get it started. I get a list of category heads from a table as an object in list i.e. ListCategoryType types = db.getCategoryTypes(); I need to iterate through the list and populate the table with empty column with vertical line background and empty rows after each category display. Any help would be really appreciated. I am currently stuck at this. The code is as follows: html xmlns=http://www.w3.org/1999/xhtml; head /head body table width=100% border=0 cellspacing=3 cellpadding=0 id=category tr td width=296 align=center Category 1 /td td width=23 rowspan=8 align=center background=images/vertical_line_black.pngnbsp;/td td width=374 align=center Category 3 /td td width=27 rowspan=8 align=center background=images/vertical_line_black.pngnbsp;/td td width=515 align=center Category 5 /td /tr tr td align=centerSub category 1/td td align=centerSub category 1/td td align=centerSub category 1/td /tr tr td align=centerSub category 2/td td align=centerSub category 2/td td align=centerSub category 2/td /tr tr td align=centernbsp;/td td align=centernbsp;/td td align=centernbsp;/td /tr tr td align=center Category 2 /td td align=center Category 4 /td td align=center Category 6 /td /tr tr td align=centerSub category 1/td td align=centerSub category 1/td td align=centerSub category 1/td /tr tr td align=centerSub category 2/td td align=centerSub category 2/td td align=centerSub category 2/td /tr tr td align=centernbsp;/td td align=centernbsp;/td td align=centernbsp;/td /tr /table /body /html - -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Create-Datatable-with-empty-columns-and-rows-tp3523546p3523546.html Sent from the Users forum 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: Create Datatable with empty columns and rows
alternatively GridView can create a 3 column layout easily. -igor On Sun, May 15, 2011 at 5:05 AM, Clint Checketts checke...@gmail.com wrote: I'd recommend using a listview and use CSS to lay it out as you mentioned. A data table is really useful when dealing with columnar data that needs pagination and sorting. On Saturday, May 14, 2011, malebu milton.qura...@gmail.com wrote: http://apache-wicket.1842946.n4.nabble.com/file/n3523546/Screen_shot_2011-05-14_at_9.55.31_PM.png I need to create a table like the attached image. I am not seasoned in wicket. I am not able to analyze where to start. I was able to create a DataTable but could not figure out how to get it started. I get a list of category heads from a table as an object in list i.e. ListCategoryType types = db.getCategoryTypes(); I need to iterate through the list and populate the table with empty column with vertical line background and empty rows after each category display. Any help would be really appreciated. I am currently stuck at this. The code is as follows: html xmlns=http://www.w3.org/1999/xhtml; head /head body table width=100% border=0 cellspacing=3 cellpadding=0 id=category tr td width=296 align=center Category 1 /td td width=23 rowspan=8 align=center background=images/vertical_line_black.pngnbsp;/td td width=374 align=center Category 3 /td td width=27 rowspan=8 align=center background=images/vertical_line_black.pngnbsp;/td td width=515 align=center Category 5 /td /tr tr td align=centerSub category 1/td td align=centerSub category 1/td td align=centerSub category 1/td /tr tr td align=centerSub category 2/td td align=centerSub category 2/td td align=centerSub category 2/td /tr tr td align=centernbsp;/td td align=centernbsp;/td td align=centernbsp;/td /tr tr td align=center Category 2 /td td align=center Category 4 /td td align=center Category 6 /td /tr tr td align=centerSub category 1/td td align=centerSub category 1/td td align=centerSub category 1/td /tr tr td align=centerSub category 2/td td align=centerSub category 2/td td align=centerSub category 2/td /tr tr td align=centernbsp;/td td align=centernbsp;/td td align=centernbsp;/td /tr /table /body /html - -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Create-Datatable-with-empty-columns-and-rows-tp3523546p3523546.html Sent from the Users forum 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
Grouping DataView
Dear all, sorry for this newbie question, but I need a component to group Items within a DataView for display. Since I 've been working a lot with Apple's WebObjects and Project WOnder, I am wondering that there might be no component like good old ERXGroupingRepetition out there. Possibly I missed something, but I cannot find something like that on the net. Can you please give me a hint how to solve this problem with Wicket? Best regards - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Create Datatable with empty columns and rows
GridView seems more logical. I will give it a try but what about the vertical line between grids! ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Create-Datatable-with-empty-columns-and-rows-tp3523546p3524463.html Sent from the Users forum 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: Create Datatable with empty columns and rows
each gridview cell can contain a fragment or a panel that contains the header and the list of subcats. -igor On Sun, May 15, 2011 at 8:05 AM, malebu milton.qura...@gmail.com wrote: GridView seems more logical. I will give it a try but what about the vertical line between grids! ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Create-Datatable-with-empty-columns-and-rows-tp3523546p3524463.html Sent from the Users forum 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
Serializing restfb DefaultFacebookclient in a wicket facebook application
I am building a facebook application in wicket using restfb api. After getting the authToken,I do the following in a wicket page: FacebookClient fbclient = new DefaultFacebookClient(authToken); However, I keep receiving the error: Error serializing object class com.mycompany.myApp.page.AppPage I know all model objects need to implement serializable, but DefaultFacebookClient is from restfb. How should I handle this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serializing-restfb-DefaultFacebookclient-in-a-wicket-facebook-application-tp3524700p3524700.html Sent from the Users forum 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
Serializing restfb DefaultFacebookclient in a wicket facebook application
I am building a facebook application in wicket using restfb api. After getting the authToken,I do the following in a wicket page: FacebookClient fbclient = new DefaultFacebookClient(authToken); However, I keep receiving the error: Error serializing object class com.mycompany.myApp.page.AppPage I know all model objects need to implement serializable, but DefaultFacebookClient is from restfb. How should I handle this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serializing-restfb-DefaultFacebookclient-in-a-wicket-facebook-application-tp3524707p3524707.html Sent from the Users forum 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: Serializing restfb DefaultFacebookclient in a wicket facebook application
I assume you create the fbclient within the AppPage class? If so, you'll need to store a serializable value/object in the page (or session) with which you can re-create the FacebookClient. Your authToken variable would be a good starting point, see if that is serializable. If so, store the authToken and re-create the FacebookClient for every request where you need it. Bas Op 15-5-2011 20:58, schreef labano10: I am building a facebook application in wicket using restfb api. After getting the authToken,I do the following in a wicket page: FacebookClient fbclient = new DefaultFacebookClient(authToken); However, I keep receiving the error: Error serializing object class com.mycompany.myApp.page.AppPage I know all model objects need to implement serializable, but DefaultFacebookClient is from restfb. How should I handle this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serializing-restfb-DefaultFacebookclient-in-a-wicket-facebook-application-tp3524707p3524707.html Sent from the Users forum 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: Serializing restfb DefaultFacebookclient in a wicket facebook application
@Sebastian, authToken is basically a string. So you are saying I store it in the wicket session, construct fbclient within session and call like session.getfbclient when I want to use it. Or didn't I get you right? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serializing-restfb-DefaultFacebookclient-in-a-wicket-facebook-application-tp3524700p3524749.html Sent from the Users forum 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: Grouping DataView
Hi Marcus, it is very usual to nestle repeater components to present groups and its details. On Sun, May 15, 2011 at 11:46 AM, Marcus Breier mlist.mbre...@gmx.net wrote: Dear all, sorry for this newbie question, but I need a component to group Items within a DataView for display. Since I 've been working a lot with Apple's WebObjects and Project WOnder, I am wondering that there might be no component like good old ERXGroupingRepetition out there. Possibly I missed something, but I cannot find something like that on the net. Can you please give me a hint how to solve this problem with Wicket? Best regards - 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: CheckGroupSelector - set checked if all Checkboxes are already selected
Since there was no ticket filed yet for this, I created a new one: https://issues.apache.org/jira/browse/WICKET-3718 It contains a patch that adds this feature (I called it auto update) to CheckGroupSelector, and provides select-all components for the other types of checkboxes too. Please have a look at it and let me know whether it's any good :) Carl-Eric www.wicketbuch.de On Thu, 12 May 2011 15:31:16 +0200 Carl-Eric Menzel cmen...@wicketbuch.de wrote: I ran into the same issue some time ago and did some work on (I think) the CheckGroupSelector, as well as Javascript selectors for the other types of checkboxes. I'll see over the weekend whether I can extract all that into a useful patch. Once heapifyman opens the ticket, I'll attach it there. Carl-Eric On Thu, 12 May 2011 15:17:00 +0200 Martin Grigorov mgrigo...@apache.org wrote: It looks like CheckGroupSelector doesn't support that right now. Please file a ticket. Attaching a quickstart will make it easier for us and it will be improved sooner. On Thu, May 12, 2011 at 1:44 PM, heapifyman heapify...@gmail.com wrote: Hello, I have a CheckGroup and the CheckGroupSelector. Everythings working fine so far except for one thing. If I check all checkboxes in the group (manually or through checking the CheckGroupSelector), save this to a database and reload the page, the individual checkboxes are correctly displayed as checked but the CheckGroupSelector is not, i.e.I have to click the CheckGroupSelector twice to uncheck all the individual checkboxes. So how do I let the CheckGroupSelector reflect the current state of the individual checkboxes when the page is loaded? Thanks for any hints - 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: Grouping DataView
Hi Marcus I guess you have already had a look at standard Wicket repeaters: http://wicketstuff.org/wicket14/repeater If no one of them satisfy your needs you can consider to implement a custom table view which reproduces the behavior of ERXGroupingRepetition Dear all, sorry for this newbie question, but I need a component to group Items within a DataView for display. Since I 've been working a lot with Apple's WebObjects and Project WOnder, I am wondering that there might be no component like good old ERXGroupingRepetition out there. Possibly I missed something, but I cannot find something like that on the net. Can you please give me a hint how to solve this problem with Wicket? Best regards - 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
Strange error, cannot modify hierarchy
I am shooting in the dark but I thought I would post the error I am getting. I get this error. Cannot modify component hierarchy after render phase has started. The full stack trace is at the bottom of this post. During the form submission process (user clicks on link) then I get the error above but ONLY when I have a dynamic component with isTransparentResolver = true. If I restructure my hierarchy such that transparentResolver is false then I don't get the same error. Why do you think I get the error? ... final WebMarkupContainer container = new WebMarkupContainer( container ) { public boolean isTransparentResolver() { return false; // true causes error } @Override public boolean isVisible() { return logic(); } }; Cannot modify component hierarchy after render phase has started (page version cant change then anymore) org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) at org.apache.wicket.Component.checkHierarchyChange(Component.java:3598) at org.apache.wicket.Component.modelChanging(Component.java:2260) at org.apache.wicket.Component.setDefaultModelObject(Component.java:3124) at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormCompone nt.java:1168) at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component (Form.java:229) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrde rHelper(FormComponent.java:514) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrde rHelper(FormComponent.java:493) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrde r(FormComponent.java:465) at org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModel s(Form.java:2110) at org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.j ava:2078) at org.apache.wicket.markup.html.form.Form.process(Form.java:1028) at org.apache.wicket.markup.html.form.Form.process(Form.java:955) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:920) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java: 177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDef aultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarge t.processEvents(BehaviorRequestTarget.java:142) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Ab stractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484 ) at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java: 160)
Re: Serializing restfb DefaultFacebookclient in a wicket facebook application
No, since a session will also be serialized at some point, you will have the same problem, only less frequent. What you can do is manage the client per request, either through a custom RequestCycle, or if you use google guice or something similar you can use a request-scoped provider. Either way: simply create the fbclient only once per request. I'm assuming that fbclient has some state which is needed in an interaction with facebook? If not, and construction is lightweight, you could also consider creating a new fbclient whenever you need one. Bas Op 15-5-2011 21:25, schreef labano10: @Sebastian, authToken is basically a string. So you are saying I store it in the wicket session, construct fbclient within session and call like session.getfbclient when I want to use it. Or didn't I get you right? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serializing-restfb-DefaultFacebookclient-in-a-wicket-facebook-application-tp3524700p3524749.html Sent from the Users forum 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: Rendering the page, error some elements are missing
On Fri, May 13, 2011 at 2:10 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = fragment]] 2. [MarkupContainer [Component id = reason]] 3. [MarkupContainer [Component id = submit]] This seems to be saying that submit is in reason, which is in fragment (in your code). But, your markup shows submit outside of fragment. Are you adding two components with the ID submit in your code? Without seeing the full code, there's not much more we can do to help. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: Getting Parameters from URL
Hielke's response is spot-on. The real question is: why do you need to access parameters in your session? At least your example is concerning - it's not typically a good sign to be pulling the User ID from the request (where it looks like you're using it to create a session for a user). -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* On Fri, May 13, 2011 at 2:58 AM, Hielke Hoeve hielke.ho...@topicus.nlwrote: This is because a session is created only once for each user, until it expires ofcourse... If you wish to check url parameters for each request I would suggest you do this in RequestCycle.onBeginRequest(). There is also RequestCylce.onEndRequest() if you need to do anything at the end of the cycle (letting go of variables and what not). If you want to check parameters only for a few pages then you could also choose to use the Page(PageParameters) constructor, wicket will give that constructor a hashmap with all the parameters from the url. Hielke -Original Message- From: drf [mailto:davidrfi...@gmail.com] Sent: donderdag 12 mei 2011 15:49 To: users@wicket.apache.org Subject: Getting Parameters from URL We have code in our session object as follows: public class OurSession extends WebSession { public OurSession(Request request)}{ super(request) // GET PARAMETERS FROM REQUEST userId = request.getParameter(userId); } } This works the first time, so if the url has a parameter of userId=JOHN then this can be picked up in the above code. However, if the application is again requested from the browser (and the session already exists), this code will not get called. What is then the best way to pick up the parameters on the url? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-Parameters-from-URL-t p3517499p3517499.html Sent from the Users forum 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
updating a label's model with ajax
Hi all, I'm looking to change the model of a label when a button is clicked. As of now, I'm using an ajax button and doing target.addComponent(myLabel) inside that button's onclick method. However, the text on the page doesn't change when the button is clicked. This label happens to be hidable, and when i hide it, then reshow it, the label is redisplayed with the new model. I'm doing something wrong. What is going on here? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-a-label-s-model-with-ajax-tp3525221p3525221.html Sent from the Users forum 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