Re: Question regarding old post (ResultSet and DataTable)

2007-08-23 Thread Ayodeji Aladejebi
create table mybean (id int primary key, name varchar, age int) bla bla bla //make a model class MyBean implements Serializable { private String name; private int age; } //create your idataprovider private class ResultSetDataProvider implements IDataProvider { private Connection c;

Re: Question regarding old post (ResultSet and DataTable)

2007-08-23 Thread Igor Vaynberg
perhaps you can email frank and ask him, it is unfortunate he did not post his code on a wiki page somewhere. http://www.nabble.com/displaying-java.sql.Timestamp-tf1333211.html#a3561689 -igor On 8/22/07, dtoffe [EMAIL PROTECTED] wrote: Uhh, well... yes, you are right. Excuse

{wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-23 Thread Nino Saturnino Martinez Vazquez Wael
Hi I have a page where theres two dropdownchoices and two panels acordingly. when you click dropdown a and select a new item panel a should be updated to the new item, I've used ajaxformComponentupdatingbehavior( have also tried ajaxformsubmittingbehavior). However it seems as the model of

Re: wicket vs tapestry ?

2007-08-23 Thread Eelco Hillenius
But since I'm currently learning, I can't help wondering at each step where the data gets stored magically. Likely that will go away once I know my way around Wicket. It's also not a complaint, just part of getting to know the best way of doing things. I think it's a very good idea you have

Re: DownloadLink hanging

2007-08-23 Thread Thomas Singer
inside shared resource you can simply call Session.get() to get to wicket session. Unfortunately, it looks like this is not possible, because I'm getting following exception: java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle

Re: wicket vs tapestry ?

2007-08-23 Thread Eelco Hillenius
If you're interested, a contribution for the address book example with exPOJO/ JPOX would be more than welcome. Definitely, not a problem. When do you need it by? Whenever you feel like it. Where can I find the spec for the address book app? No spec, only code :)

Re: Wicket Acegi Integration.

2007-08-23 Thread Maurice Marrink
There is no reason why Acegi should not be able to integrate with swarm as long as you just use it for authentication (like wicket-auth-roles does). In fact i think that by following the auth-roles tutorial and replacing the auth-roles components with there swarm counterpart you should be getting

Re: Wicket Acegi Integration.

2007-08-23 Thread Vincenzo Vitale
Ok. Thanks for the clarification... I will let you know how we'll proceed. Ciao, V. On 8/23/07, Maurice Marrink [EMAIL PROTECTED] wrote: There is no reason why Acegi should not be able to integrate with swarm as long as you just use it for authentication (like wicket-auth-roles does). In

Re: {wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-23 Thread Oleg Taranenko
Hello Nino, It seems to be the same issue as i've encountered a week ago. see thread Order-Items master detail page started at 16 august Possible Solution in you case: declare anywhere posible in page private Phone selectedItem; in function protected void onUpdate(AjaxRequestTarget target) {

Re: {wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-23 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, im not using the dataview or iDataprovider, although I have a listview in one of the singlephonecomparepanels. However it seems as theres something about these two issues that match. But the wierd thing are that it never ever picks up the change in the dropdownchoice. I'll try going back

Re: {wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-23 Thread Nino Saturnino Martinez Vazquez Wael
Thats wierd. I've now changed it to not use ajax and are using wantonselectionchangednotifications.. This yields the same result, not working. This is really wierd cant belive that it should not work, some of the processing must be broken by some of the other components I add, are there any

Re: {wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-23 Thread Nino Saturnino Martinez Vazquez Wael
Ok, i've removed all other stuff from the page, error are still there, wierd thing is that the dropdowns are working on the other pages. I guess next step are to create a quickstart and see if it works there.. Should I try with beta 3 or? regards Nino Nino Saturnino Martinez Vazquez Wael

PageStore listener...

2007-08-23 Thread Jan Kriesten
Hi, is there a way to add a listener to PageStore events (storePage/getPage)? I'm still looking for a clean way to re-inject Pages/Components when they are deserialized. This way I could just set some fields transient and have them injected again if necessary. I gave

Re: PageStore listener...

2007-08-23 Thread Matej Knopp
Why can't you just implement read/writeObject on your page/component? -Matej On 8/23/07, Jan Kriesten [EMAIL PROTECTED] wrote: Hi, is there a way to add a listener to PageStore events (storePage/getPage)? I'm still looking for a clean way to re-inject Pages/Components when they are

Re: PageStore listener...

2007-08-23 Thread Johan Compagner
Or make the fields itself not transient, but a proxy that has a transient field and the proxy can deserialize and inject itself again (see wicket-ioc project) johan On 8/23/07, Matej Knopp [EMAIL PROTECTED] wrote: Why can't you just implement read/writeObject on your page/component? -Matej

RE: wicket vs tapestry ? (Back Button Detection-Support)

2007-08-23 Thread William Hoover
Possible starting point for a client solution for back button detection/support: http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html?page=1 -Original Message- From: Matej Knopp [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 6:30 PM To:

Re: PageStore listener...

2007-08-23 Thread Jan Kriesten
hi matej, hi johan, Why can't you just implement read/writeObject on your page/component? that would be an effort... here a listview, there a link and over there another image... that way i loose all the benefits of using injection - i build new logic in the components which i just wanted to

Re: Layout Panel

2007-08-23 Thread Paolo Di Tommaso
Umh .. I think the best things are simple .. Why don't just handle the components position using html or css in your panel? Bye, Paolo On 8/23/07, andrea pantaleoni [EMAIL PROTECTED] wrote: Hi, I have a little problem with Panel In a table I added a Panel Now in this Panel I want to

Re: Layout Panel

2007-08-23 Thread Ernesto Reinaldo Barreiro
What about html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net/; wicket:panel table cellpadding=2 cellspacing=2 tr td bMyDropDown:/b /td td select wicket:id=MyDropDown/select /td /tr tr td

Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel

2007-08-23 Thread Federico Fanton
On Fri, 6 Jul 2007 08:48:56 -0700 Igor Vaynberg [EMAIL PROTECTED] wrote: Thanks for the tip but I absolutly need a compoundPropertyModel. https://issues.apache.org/jira/browse/WICKET-723 I had the same issue, thanks! Now I'm using beta3.. Another question though: I see that

Re: Layout Panel

2007-08-23 Thread Paolo Di Tommaso
I'm still thinking that's a pure html problem, Try with a table like this: table height=100% tr td valign=top wicketcomponentup /td td valign=bottom wicketcomponentdown /td /tr /table Paolo On 8/23/07, andrea pantaleoni [EMAIL PROTECTED] wrote: the reason is that I need to consider the

Constructor of Component not DRY?

2007-08-23 Thread Martin Funk
Hi, doing a little code reading and trying to understand what I read, I came across org.apache.wicket.Component 's constructors. To my eyes the two constructors look very much alike and I wonder why they were not chained like this: public Component(final String id) {

Re: Constructor of Component not DRY?

2007-08-23 Thread Johan Compagner
i think that is grown this way, previously the model constructor did some more i believe Also i don't like this(id,null) because thats just horrible, If you call the constructor with the model then the model shouldn't be null. a nicer way could be public Component(final String id, IModel

Re: Question regarding old post (ResultSet and DataTable)

2007-08-23 Thread dtoffe
Hi !!! Thanks for your reply, this solution is simple, easy to understand and is not hard to code at all. My only objection would be the MyBean class, if I understood it right, the DataProvider is tied to the bean in a way that makes it not reusable: String query = SELECT name, age FROM

Re: POJO Adapter in Wicket

2007-08-23 Thread Igor Vaynberg
i would use the pojos directly and put the presentation stuff into the model -igor On 8/23/07, Vincenzo Vitale [EMAIL PROTECTED] wrote: Hi All, I'm using Wicket (1.3.0 beta2), Hibernate and Spring. In my Wicket project for each POJO of my business model I created an Adapter maintaining

Re: Component Factory and code against interface

2007-08-23 Thread Igor Vaynberg
not really sure what you mean when you say marking components as dirty... have you seen ajaxfallback* components? those will use ajax when its there, and fallback on regular requests when its not. so you dont even need a factory necessarily. -igor On 8/23/07, Sam Hough [EMAIL PROTECTED] wrote:

Re: PageStore listener...

2007-08-23 Thread Igor Vaynberg
On 8/23/07, Jan Kriesten [EMAIL PROTECTED] wrote: hi matej, hi johan, Why can't you just implement read/writeObject on your page/component? that would be an effort... here a listview, there a link and over there another image... that way i loose all the benefits of using injection - i

Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel

2007-08-23 Thread Igor Vaynberg
i dont know if it is by design or not. it makes sense to me that you pass in a model with at least an empty collection, otherwise palette has to create an instance of some collection which isnt as clean. -igor On 8/23/07, Federico Fanton [EMAIL PROTECTED] wrote: On Fri, 6 Jul 2007 08:48:56

Re: Bypass form validation

2007-08-23 Thread Andrew Klochkov
Juan Gabriel Arias wrote: Hi, i have a form, that is submited by different AjaxSubmitLinks. I want that only one (completely identified) of those links triggers a validation. I though two main solutions: - Add validation only to specific components, not to the complete form. (i think is the

Re: Layout Panel

2007-08-23 Thread Igor Vaynberg
only pages/panels/borders have associated markup files by default. -igor On 8/23/07, andrea pantaleoni [EMAIL PROTECTED] wrote: the reason is that I need to consider the panel as a single component which is used inside a listview Anyway you could be right I saw that in wicket you can

Re: Component Factory and code against interface

2007-08-23 Thread Sam Hough
Say my onSubmit handler changes three components, as I understand it, I have to hand code feeding those three components to the AjaxRequestTarget. This seems cumbersome and slightly error prone. I think for our application, if the components kept track of changes, I could automate which

Re: DownloadLink hanging

2007-08-23 Thread Thomas Singer
Should I report a bug in JIRA? -- Best regards, Thomas Singer _ SyntEvo GmbH Brunnfeld 11 83404 Ainring Germany www.syntevo.com Igor Vaynberg wrote: hm, this looks like an old bug. johan didnt we fix this a while ago? -igor On 8/23/07, Thomas Singer [EMAIL PROTECTED] wrote:

Re: wicket vs tapestry ? (Back Button Detection-Support)

2007-08-23 Thread Eelco Hillenius
On 8/23/07, William Hoover [EMAIL PROTECTED] wrote: Possible starting point for a client solution for back button detection/support: http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html?page=1 Thanks for suggesting. We have discussed that and other

Re: Question regarding old post (ResultSet and DataTable)

2007-08-23 Thread dtoffe
Done, I've offered to write some example of use for the wiki or example page. Thanks !! Daniel igor.vaynberg wrote: perhaps you can email frank and ask him, it is unfortunate he did not post his code on a wiki page somewhere.

Re: Component Factory and code against interface

2007-08-23 Thread Igor Vaynberg
On 8/23/07, Sam Hough [EMAIL PROTECTED] wrote: Say my onSubmit handler changes three components, as I understand it, I have to hand code feeding those three components to the AjaxRequestTarget. This seems cumbersome and slightly error prone. I think for our application, if the components

Re: DownloadLink hanging

2007-08-23 Thread Igor Vaynberg
yep -igor On 8/23/07, Thomas Singer [EMAIL PROTECTED] wrote: Should I report a bug in JIRA? -- Best regards, Thomas Singer _ SyntEvo GmbH Brunnfeld 11 83404 Ainring Germany www.syntevo.com Igor Vaynberg wrote: hm, this looks like an old bug. johan didnt we fix this

Re: Can Panel replace itself ?

2007-08-23 Thread Artur W.
Eelco Hillenius wrote: do: TestPanel newOne = new TestPanel(TestPanel.this.getId(), another param); TestPanel.this.replaceWith(newOne); target.addComponent(newOne); I didn't know about replaceWith method. It works great! Thanks a lot!!! Artur -- View

Re: Can Panel replace itself ?

2007-08-23 Thread Igor Vaynberg
c.replacewith(a) is the same as c.getparent().replace(a) -igor On 8/23/07, Artur W. [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: do: TestPanel newOne = new TestPanel(TestPanel.this.getId(), another param); TestPanel.this.replaceWith(newOne);

Re: PageStore listener...

2007-08-23 Thread Jan Kriesten
hi igor, public mypanel extends panel { @SpringBean private Service service; actually, if i use guice-injection @Inject private ContentManager cm; where ContentManager isn't serializable, i get tons of exceptions regarding 'not serializable. so, to me it seems that the proxy-stuff not

Re: PageStore listener...

2007-08-23 Thread Igor Vaynberg
are you using wicket-guice? or just the guice' raw injection? -igor On 8/23/07, Jan Kriesten [EMAIL PROTECTED] wrote: hi igor, public mypanel extends panel { @SpringBean private Service service; actually, if i use guice-injection @Inject private ContentManager cm; where

Re: Constructor of Component not DRY?

2007-08-23 Thread Eelco Hillenius
hmmm... that would go against my taste of chaining from the constructor with the least parameters to the constructor with the most parameters. I'd just tend to chose the constructor with the most complex signature as the default constructor, doing the 'real' construction part of the object

RadioGroup and posted Values

2007-08-23 Thread Jan Kriesten
hi, I'm trying to get the posted value of a RadioGroup (within a converter of a textfield), but i only get the posted string values, not the model values of the radio elements: RadioGroup rg = new RadioGroup( takedown ); add( rg ); rg.add( new Radio( takedownFalse, new Model( false ) ) );

Re: [newb] sorting, paging table

2007-08-23 Thread Igor Vaynberg
On 8/23/07, somethingRandom [EMAIL PROTECTED] wrote: I am trying out wicket, coming from the action-based world, so please bear with me. I made a simple report (we have a backend using spring and hibernate in place). It was very easy to take the ArrayList that hibernate returns to me and

Re: Can Panel replace itself ?

2007-08-23 Thread Igor Vaynberg
does it do that in all browsers? also call view.setreuseitems(true); -igor On 8/23/07, Artur W. [EMAIL PROTECTED] wrote: igor.vaynberg wrote: c.replacewith(a) is the same as c.getparent().replace(a) I want to extend this example and replace the panel but inside the ListView. But

Re: RadioGroup and posted Values

2007-08-23 Thread Igor Vaynberg
hmm, dont know why you would do this inside a converter of another component but you can get to it like this: rg.convert(); rg.getconvertervalue(); -igor On 8/23/07, Jan Kriesten [EMAIL PROTECTED] wrote: hi, I'm trying to get the posted value of a RadioGroup (within a converter of a

Re: Constructor of Component not DRY?

2007-08-23 Thread Igor Vaynberg
just add a private component init(String, IModel) which can assume null arguments do the null checks in the constructor and forward to that method -igor On 8/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote: hmmm... that would go against my taste of chaining from the constructor with the

Re: [newb] sorting, paging table

2007-08-23 Thread somethingRandom
igor.vaynberg wrote: On 8/23/07, somethingRandom [EMAIL PROTECTED] wrote: What's the easiest way to take an arraylist of objects and display them in a sortable, pageable table? class mydataprovider extends sortabledataprovider { abstract List getList(String sortcol, boolean asc) {

Re: creating RSS feeds with Wicket

2007-08-23 Thread Ryan Sonnek
I'm not sure how the wicketstuff licenses work with the apache core, but I've put up documentation on the wicketstuff WIKI and added a link to that from the main wicket wiki for now. On 8/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: why not replace the wiki project with a quickstart tutorial

Re: Question regarding old post (ResultSet and DataTable)

2007-08-23 Thread dtoffe
Hi Ayodeji ! I fully agree with you specially if you have few tables and adhere totally to ORM. But consider what happens when yo have to fill a DataTable with the result of three+ tables joined, with subselects, group by and dinamic where clauses... Would you consider correct to define