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;
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
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
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
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
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 :)
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
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
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) {
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
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
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
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
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
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
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:
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
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
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
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
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
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)
{
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
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
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
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:
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
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
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
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
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
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:
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
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.
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
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
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
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);
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
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
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
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 ) ) );
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
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
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
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
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) {
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
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
49 matches
Mail list logo