Wicket will not force any method or framework down your throat, wicket
is a web framework. It's completely up to yourself to decide which way
you want to go.. Its probably why you get so differentiated answers.
Whether you use spring or databinder or something else is up to you.
regards Nino
look in jira as I wrote..
http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1-strict.dtd
MYoung wrote:
...place the following in your HTML template...
html xmlns:wicket=http://wicket.sourceforge.net/;
xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
Hi wjser,
I'm frustrated, because i didn't any answer to my question. I
searched the
wicket documentation and the web, but found no information.
since Wicket is a Web-Application-Framework many believe, that it
should focus on especially that area.
Wicket provides very good tools to do
Perhaps this examples can help you:
http://wicketstuff.org/wicket13/repeater/;jsessionid=685F6D6B394FDC490370784672E4A8C0?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.FormPage
Daniel
dtoffe wrote:
If I understand you correctly, what you want to do is something
Hi Per,
did you try using a wicket.markup.html.basic.MultiLineLabel?
If your tree nodes have more than one component, encapsulate them into
a Panel and return instances of that from
BaseTree.newNodeComponent(String id, IModel model).
Cheers,
Thomas
If I understand you correctly, what you want to do is something alike to
editing an MSAccess table, not even using JDBC or SQL, just messing with the
raw data, is this correct ?? I don't think you can do this with Wicket, and
even if possible, I don't believe this to be a good practice.
Well, I wanne build a Survey-System!
Now there're some Questions in the Survey-System, and will default some
answer-item for user to choice!
following is the example of Question
1,It's the weather good today?(A.B.C. would be radio)
A.yes, Sunny
B.no, Rainy
C.so so
I think all the component
You could use an AjaxFallbackButton on your form, eg:
AjaxFallbackButton a = new AjaxFallbackButton(id, form)
{
@Override
protected void onSubmit(AjaxRequestTarget target, Form
form)
{
google is your friend
http://www.stardeveloper.com/articles/display.html?article=2003090401page=1
-igor
On Fri, Feb 22, 2008 at 1:22 AM, wjser [EMAIL PROTECTED] wrote:
I just want to communicate with a database (i.e. Mysql) like fetching data
from the DBMS and insert/update datasets. I
i do know how to handle JDBC. The problem is that i don't know how to use
JDBC inside Wicket.
I think that i have to implement IDataProvider wich would fetch the data
from the database, but i don't know how to do this. I also don't know how to
insert data into the database which come from a
http://wicketstuff.org/wicket13/repeater
Kind regards
Florian Sperber
wjser schrieb:
i do know how to handle JDBC. The problem is that i don't know how to use
JDBC inside Wicket.
I think that i have to implement IDataProvider wich would fetch the data
from the database, but i don't know how
class mypopupcloselink extends popupcloselink {
oncomponenttag(tag) {
super.oncomponenttag(tag);
tag.put(onclick,window.parent.refresh(););
}
}
Thanks :) Why didn't I think of this.. arghfl :)
-- Edvin
-
To
I just want to communicate with a database (i.e. Mysql) like fetching data
from the DBMS and insert/update datasets. I have/want to use JDBC and SQL
for fetching and inserting the data into the database.
I don't know how to do this.
Florian Sperber wrote:
Hi wjser,
I'm frustrated,
[EMAIL PROTECTED] wrote:
i do know how to handle JDBC. The problem is that i don't know how to
use JDBC inside Wicket. I think that i have to implement
IDataProvider wich would fetch the data from the database, but i
don't know how to do this. I also don't
know how to
insert data into the
So lets decide for a day soon? Next week?
I have an additional idea for topics:
Wicket contribs finding them(wiki)? Using them(wicketstuff maven repo)...
Constructing your own contrib?
And my personal idea, wicket-spring-jpa maven archetype. Now I havent
done anything on this yet. But maybe
repeater / listview.. And panels with form components.
I actually started a survey thing some time ago.. The hard part is if
you want to have paths/trackbacks...
regards Nino.
laiqinyi wrote:
Well, I wanne build a Survey-System!
Now there're some Questions in the Survey-System, and will
In this case I have to visit different page when browse is chosen. When
I come back form is cleared, isn't it?
- Juha
Igor Vaynberg wrote:
if you are opening everything via ajax why do you need to submit the
entire form? the values are all still there in the browser window...
so dont use
Hi Tom,
I'd suggest not to use Spring to manage panels. You should rather create a
new panel for every page and request. You should use Spring to manage your
services and inject those into your panels.
Best regards, Stefan
Tom John wrote:
Hi,
First of all let me apologise for the
If you're looking for automatic mapping from the database to the web,
you might be better off with something like Ruby on Rails. What I
believe you're asking for is simply outside the scope of Wicket. That
said, there is no magic in Wicket. You access a database as you would in
any other Java
Hi Mead,
I'd say that wicket is a real cool choice to accomplish this (I know what
I'm talking about as I hacked such a tool in PHP years ago in my programming
infancy ;) )
There is no general answer though. But for different question types you
could do
if (type == DROP_DOWN_QUESTION) add(new
Hi,
How is AbortWithHttpStatusException meant to be used? I expected that this
exception would result in a (e.g.) 404 error page to be shown. However, all
I get is an empty page. Any ideas on how I can get a nice, custom error page
to show up?
Cheers, Stefan
btw: i'm using jetty if this is
I've made a webapplication class that extends from
AuthenticatedWebApplication in the wicket-auth-roles project version 1.3.1
I've implemented the needed methods, such as getHomePage, getSignInPageClass
and getWebSessionClass. They all return the appropiate class.
On the homepage i've added the
A few questions:
1) does your session extend AuthenticatedWebSession
2) if so what does your getRoles() method in your web session look like
3) presumably you mean @AuthorizeInstantiation(Roles.USER) - without the
stars?
4) do you manually set any of the options on getSecuritySettings() in your
Guys - thanks for your continued help with this, but I'm still having some
problems with:
Attempt to set model object on null model of component.
I now have some code cut down to the simplest possible example (attempting
to follow the advice given already):
public class
Hi all,
We're getting an OutOfMemoryError (Wicket 1.3.1 on Tomcat 5.5.17 with
Sun JVM 1.5.0_06-b05) in the PageSavingThread occasionally and I was
just wondering if anyone had seen this before. Is it likely just a
side-effect of some other problem in our application? Or is this an
issue
Thanks for the feedback, but i already figured out what i did wrong.
Can somebody get me a brown bag, because i forgot to call super.init() in
the init method of the webapplication class
Ted
2008/2/22, richardwilko [EMAIL PROTECTED]:
A few questions:
1) does your session extend
One thing you might want to consider is that Wicket's form support is
very good at editing beans (stuff with getters/setters) which means
you're going to have to transform data from your JDBC ResultSets into
a Java objects. That sounds a lot like ORM to me and there are great
frameworks out there
Of course I could, but I would like to create dropDownChoice I was
describing.
- Juha
Maurice Marrink wrote:
Can't you use an AjaxSubmitLink?
Maurice
On Thu, Feb 21, 2008 at 12:57 PM, Juha Alatalo
[EMAIL PROTECTED] wrote:
Hi,
I have created a dropDownChoice component where the last
Stefan Fußenegger wrote:
Hi Tom,
I'd suggest not to use Spring to manage panels. You should rather create a
new panel for every page and request. You should use Spring to manage your
services and inject those into your panels.
Best regards, Stefan
Hi Stephan :) (I work with Tom)
Hi all,
I just downloaded Wicket 1.3.1 and now I want to use Ant for building my app
and deploying it to Tomcat. I thought it would be easy to find a good
example of an Ant-based project. But no. Everything seems to be all Maven...
My question is: Is there a good example of an ant-based
Inline answer...
James Carman wrote:
One thing you might want to consider is that Wicket's form support is
very good at editing beans (stuff with getters/setters) which means
you're going to have to transform data from your JDBC ResultSets into
a Java objects. That sounds a lot like ORM to me
Hi all!!!
I have application with 2 pages. First page lists users names and each
element of list is link to second page that shows user details. I want to
have this second page shown in other tab or window. Everything works fine
when I click one user link, detail page is loaded and i can operate
On 2/22/08, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
Inline answer...
James Carman wrote:
One thing you might want to consider is that Wicket's form support is
very good at editing beans (stuff with getters/setters) which means
you're going to have to transform
On Fri, 2008-02-22 at 05:02 -0800, palun wrote:
Hi all,
I just downloaded Wicket 1.3.1 and now I want to use Ant for building my app
and deploying it to Tomcat. I thought it would be easy to find a good
example of an Ant-based project. But no. Everything seems to be all Maven...
My
Guys,
as stated in the migration 1.3 migration guide I'm trying to use the drop-in
replacement for the old (JSCalendar based) DatePicker.
http://cwiki.apache.org/WICKET/migrate-13.html#Migrate-1.3-DatePicker
But the download jar named wicket-contrib-datepicker-1.2.jar still make
references to
James Carman wrote:
On 2/22/08, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
Inline answer...
James Carman wrote:
One thing you might want to consider is that Wicket's form support is
very good at editing beans (stuff with getters/setters) which means
you're going
What do you mean by directly? Do you want to inject the panels rather than
the factories? You could probably try to write your own annotation and use a
custom org.apache.wicket.injection.IFieldValueFactory
Ned Collyer wrote:
Stefan Fußenegger wrote:
Hi Tom,
I'd suggest not to use
On 2/22/08, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
I think the first version probably would be located at wicketstuff. If
devs then say okay, we could then move it to the core project (i think)
or to the place where the other archetypes are.
The only problem with
James Carman wrote:
On 2/22/08, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
I think the first version probably would be located at wicketstuff. If
devs then say okay, we could then move it to the core project (i think)
or to the place where the other archetypes are.
Hi
One thing you can check is if you have any references (instance variables,
possibly implicit) to pages from your component hierarchy. That seems to
cause memory leaks in the serialization. I reported a Jira issue about this
yesterday (https://issues.apache.org/jira/browse/WICKET-1365).
Hi,
We dont use maven for wicket, and use ant, instead. However we are using an
very uncommon app server so our project layout wouldn't really help you.
I don't see why it should be a problem to use ant tho, just make sure you
have the required wicket jars available and compile as normal, im
Thanks Henrik,
We don't store Page references (we use getPage()) except in one case but
that's a reference to the current page. I did come across this
information about a JVM bug:
http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=414ae2ad0e65bfabc12f25012527?bug_id=4879883
It
You can try to see if its any page in particular that causes this. Or of its something general... Also you need to watch out for objects that just keep growing in number..
None of our classes has an unexpected high instance count.
It's a little abstract to use a profiler as it will not give
Well, our application class (derived from
org.apache.wicket.protocol.http.WebApplication) occurs near the top of the
list when sorting by retained size, but our code does not contain dynamic
elements. For me it looks strange, that there exist 3 instances of our
application class (we don't
Thomas Singer wrote:
You can try to see if its any page in particular that causes this. Or
of its something general... Also you need to watch out for objects
that just keep growing in number..
None of our classes has an unexpected high instance count.
Im not sure if youve already done
Right, I did not run JMeter for hours to find our some growing instance
count. Until now I used the heapdump I've got from an OOME on our production
system. Although this does not show the *increasing* instance count, but I
can take a look at the instance count and object size at the time of
If you would like to have custom Http error pages you can update the wicket
filter-mapping in your web.xml to the following (notice the dispatchers):
filter-mapping
filter-nameWicketFilter/filter-name
url-pattern/*/url-pattern
I've did some further investigation and the largest objects seem to be the
settings from org.apache.wicket.Application, particular the markupCache.
Tom
Thomas Singer wrote:
Well, our application class (derived from
org.apache.wicket.protocol.http.WebApplication) occurs near the top of
the
Do you by any chance have an img tag in your html without a src
element or one where src=.
I learned the hardway that this triggers the browser to send a second
request to wicket for the same page.
Maurice
On Fri, Feb 22, 2008 at 2:07 PM, legol [EMAIL PROTECTED] wrote:
Hi all!!!
I have
I have an AutoCompleteTextField which searches for a person object. When a
person is selected from the auto complete, I want to update the panel and
the model with the person’s information. I have tried adding an
AjaxFormComponentUpdatingBehavior, but it gets called twice. Once with the
text
I too am new to Wicket, and wanted to start using it without having to learn
a persistance tool. I have never used a framework before, just JSP and
Servlets. I tried dabbling a little with JPA, but found it confusing -
especially when working with tables whose primary keys have more than one
while wicket has first class support for editing beans, it is by no
means the only way. it is quiet trivial to create a ColumnModel that
is like a property model but reads data from a resultset object and
populates a prepared statement object...
all im saying is that you dont have to box yourself
ok, enter a jira rfe
-igor
On Fri, Feb 22, 2008 at 2:41 AM, Juha Alatalo
[EMAIL PROTECTED] wrote:
In this case I have to visit different page when browse is chosen. When
I come back form is cleared, isn't it?
- Juha
Igor Vaynberg wrote:
if you are opening everything via ajax why
there is wicket-datetime that has a yui datepicker
there is also wicket-stuff-calendar (or something that is
wicket-*-calendar) that uses dhtml gooies datepicker
-igor
On Fri, Feb 22, 2008 at 5:15 AM, Paolo Di Tommaso
[EMAIL PROTECTED] wrote:
Guys,
as stated in the migration 1.3 migration
how big is it? its just a cache of markup files
-igor
On Fri, Feb 22, 2008 at 7:04 AM, Thomas Singer [EMAIL PROTECTED] wrote:
I've did some further investigation and the largest objects seem to be the
settings from org.apache.wicket.Application, particular the markupCache.
Tom
also
protected void onDetach() {
areaModel = null;
}
should be just areaModel.detach();
ondetach() is called every request on the session so you are actually
nulling the model at the end of the request
-igor
On Fri, Feb 22, 2008 at 7:10 AM, Maurice Marrink [EMAIL
Ok, thanks for the quick reply. :-)
https://issues.apache.org/jira/browse/WICKET-1366
Regards,
Sebastiaan
Igor Vaynberg wrote:
looks like a bug in the tree, please file a jira issue
-igor
On Fri, Feb 22, 2008 at 9:57 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
Hi,
I'm trying to have
We have two wicket applications running. The MarkupCache for syntevo.com is
more than 40MB large (retained size in YourKit), the other much less
frequently used 630kB.
Tom
Igor Vaynberg wrote:
how big is it? its just a cache of markup files
-igor
hrm, that seems high (unless you have that many .html files).
We don't have that large or many .html files.
do you
guys have some nonstandard resource finders/markup providers?
Do you mean something like own MarkupFilters? But they only change XmlTags,
they don't generate new ones.
We
i meant something like
IResourceStreamProvider
IMarkupResourceStreamProvider
IMarkupCacheKeyProvider
stuff like that? there has to be a reason why the cache is
growing...or is it hovering around 40 megs?
-igor
On Fri, Feb 22, 2008 at 10:36 AM, Thomas Singer [EMAIL PROTECTED] wrote:
hrm, that
Thomas Singer wrote:
Right, I did not run JMeter for hours to find our some growing
instance count. Until now I used the heapdump I've got from an OOME on
our production system. Although this does not show the *increasing*
instance count, but I can take a look at the instance count and
it would be helpful if you could make a yourkit snapshot. that is what
most of us use
there is also a way to clear the markup cache through jmx, maybe you
can try that and see if it frees that 40mb...
-igor
On Fri, Feb 22, 2008 at 11:38 AM, Thomas Singer [EMAIL PROTECTED] wrote:
IResourceStreamProvider
IMarkupResourceStreamProvider
IMarkupCacheKeyProvider
No, our code does not use such stuff.
there has to be a reason why the cache is
growing...or is it hovering around 40 megs?
I just take a look at a heapdump of 74MB.
Tom
Igor Vaynberg wrote:
i meant something
To help out more, id really need to see some memory line charts, and
test plan.. And code...
regards Nino
Nino Saturnino Martinez Vazquez Wael wrote:
Thomas Singer wrote:
Right, I did not run JMeter for hours to find our some growing
instance count. Until now I used the heapdump I've got
Hi Michal,
could you come up with some code?
mf
2008/2/22, Bushby [EMAIL PROTECTED]:
I have an AutoCompleteTextField which searches for a person object. When
a
person is selected from the auto complete, I want to update the panel and
the model with the person's information. I have tried
I follow this:
http://cwiki.apache.org/confluence/display/WICKET/Use+a+different+extension+for+template+files
added this to MyPage:
@Override
public String getMarkupType() {
return xhtml;
}
and it doesn't work. Firefox wants to download the file instead of showing
the
Now getting much closer - but not 100% there yet.
Code with 3 dropdowns for area / country / region now looks like below.
I don't set the model for the Panel, like:
setModel(((WholSession) Session.get()).getAreaModel());
I have 3 models - one for each dropdown - and
Hi!
Is there a bug in handling the first listView row submitted using
WicketTester/FormTester?
Regardless of the original values displayed on the first row of the
listView, the textField.getConvertedInput() and
checkbox.getConvertedInput() return null and false values at the form
validator,
Ned Collyer wrote:
There are a few ways to approach this, ie, having some class loader which
resolves given string class references, and those strings are wired in
through spring. This works - but feels a bit hacky.
I don't know why you feel this hacky. It looks clean and easy to me:
69 matches
Mail list logo