Thanks a lot, Igor, for detailed explanation. Now I understand.
And 2 more questions:
1. Should I use DataView with DataProvider if I want only to render data
without edit capability?
As I understood I need models in case of update/delete data in list.
2. If I have 2 components on my page:
On Jan 23, 2008 10:35 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:
The use case is that, I have a page that renders a listview, and I need to
add a link that sorts the list when clicked. My listView uses
LoadableDetachableModel that retrieves data using hibernate backend.
In my current app,
So you are worried about double submit, when using backbutton, of the
same page that has invalid data?
But if that happens then the second time has the same error as the first time.
On 1/24/08, Sam Hough [EMAIL PROTECTED] wrote:
Igor,
Am I at least correct that we shouldn't only commit at the
1 you always use models, this has nothing to do with edit or not, it
is the loading.
2 a dataview will do the query again when it renders it self.
On 1/24/08, beam [EMAIL PROTECTED] wrote:
Thanks a lot, Igor, for detailed explanation. Now I understand.
And 2 more questions:
1. Should I use
Hi Stefan,
it was indeed a problem with the models involved there. It looked
fine to me, so I suspected the modal window, and that wiki page I
linked also gave me the impression that there was something with modal
windows in that regard, but I should have checked first in an ordinary
page.
Hm, it seems like i can get the behaviour I expect by overiding the inner
form button's onSubmit method and setting setDefaultFormProcessing(false)
on it as in this code.
public class Test extends WebPage {
public Test() {
MandatoryProductsForm outer = new
Hello Johan,
The simplest case I can think of is the one where the user clicks to create
a new record and I want to put a link in the page to that new record. As I
understand it I need to be careful not to add the link to the page until
after the commit was successful. If there was an error and
so you want to have the commit cylce around the request not the response
(so in onBeforeRender() of a page the commit (or rollback) should be done so
that all the data that is used in the response is valid)
But i guess with a filter (session in view and the sort) around what ever
framework you
Johan,
But isn't wicket _very_ different in that it keeps a representation of the
page on the server? So in frameworks other than Wicket, Echo and Tapestry if
the request cycle fails the page state can't get contaminated?
Cheers
Sam
Johan Compagner wrote:
so you want to have the commit
if the rendering of the page (the response phase) always uses a committed
transaction
then that wouldn't happen
But if a commit fails, shouldn't you report that to the user anyway??
johan
On Jan 24, 2008 10:59 AM, Sam Hough [EMAIL PROTECTED] wrote:
Johan,
But isn't wicket _very_ different
Kent Tong wrote:
gbak1 wrote:
Im a newbie and am having problems with the helloworld example.
I have created an ant script to create an application WAR and I can
deploy this WAR to tomcat (running on fedora7).
After deploy, Tomcat fails to start the application and displays the
hi,
is there any (javascript) event fired when a user hits the browser-back-button?
regards, --- jan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
some have onbeforeunload or something like that
but not all browsers have that. And you dont know if that is caused by back
i guess
On Jan 24, 2008 1:48 PM, Jan Kriesten [EMAIL PROTECTED] wrote:
hi,
is there any (javascript) event fired when a user hits the
browser-back-button?
regards,
As far as I know there is no such event.
Maybe you can try this... Keep a stack of visited pages (e.g. url's) in
your session. Send a onload ajax event including the 'active' page. This
way you notice that the state has been changed and you can take some
action.
Im not sure that the onload
I am not sure which headers would be necesary.
I usually set the set attachment as I said but ONLY FOR FIREFOX. And it
WORKS FINE.
But it is not my intention. My intention is to open the pdf inside the new
created tab in the same browser.
Safari still not working.
f(t)
On Jan 23, 2008 6:29
MMmmm Could it be possible an expiration before the launch of the adobe
reader plugin for the firefox tab?
I'll try it out.
thanks,
f(t)
On Jan 24, 2008 4:54 AM, severian [EMAIL PROTECTED] wrote:
Something like this may work for your DynamicWebResource:
@Override
protected void
In my experience (outside wicket) the content type matters to FF and
Opera, IE mainly looks at the file ending. So make sure you set that
to application/pdf or some similiar. Also, the content-dispostion can
be set to inline instead of attachement
(http://www.ietf.org/rfc/rfc1806.txt) which
Johan, thanks, I'll tryit out and will give a feedback.
f(t)
On Jan 24, 2008 11:08 AM, Johan Maasing [EMAIL PROTECTED] wrote:
In my experience (outside wicket) the content type matters to FF and
Opera, IE mainly looks at the file ending. So make sure you set that
to application/pdf or some
hi johan,
some have onbeforeunload or something like that
but not all browsers have that. And you dont know if that is caused by back
i guess
i'll try 'onload' for the moment and see what will happen...
thanks, --- jan.
I have updated the Safari to the 3.0.4 version and now it works also.
The only one that doesn't work is FireFox so I have the
*attachment*Content-Disposition workarround so that it will download
the file and open
it latter with Adobe Acrobat Reader.
f(t)
On Jan 24, 2008 11:11 AM, Francisco Diaz
Thanks Thomas. I used the SortableDataProvider and it solved my problem. I'm
think hibernate caches it. But you can always use a filter to apply second
level caching using OS Cache or any third party framework. (Although I'm sure
you probably have this already).
Best,
Wen Tong
--
The only
That's correct! Thank you, Martjin!
Best,
Wen Tong
--
The only constant in life is change.
- Original Message
From: Martijn Dashorst [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Wednesday, January 23, 2008 11:06:52 PM
Subject: Re: progress component?
I think you are looking
Johan,
Definitely report the error but just ensure server side state is not updated
(so that if that part of page is resent after the error it doesn't show the
user rubbish). So I think I did have the transaction boundry in the wrong
place (servlet filter).
Presumably if I stick to the rule do
Greetings,
I am new to Wicket and having some trouble binding a Wicket Form
component to an object that does not have a default constructor and
does not follow the javabean pattern. I have read and re-read the
wiki information on models and checked the mailing list archives but
haven't made
29 january at jayway copenhagen office... will we start at 16:00?
Guðmundur Bjarni wrote:
Hey,
Sounds good. Where and when exactly will it be then? :)
regards,
Guðmundur Bjarni Ólafsson
Nino.Martinez wrote:
Cancel previous message. Meeting will be held at same time next week.
Nino
i've begun work on this.. currently its VERY unstable and unrecommended
to use..
Nino Saturnino Martinez Vazquez Wael wrote:
Hi
At some point someone talked about creating something around open
layers. However nothing but the project structure are checked in, so I
guess i'll continue on
On 1/23/08, Tsutomu Yano [EMAIL PROTECTED] wrote:
I understand that the the name Apache Wicket may be under a kind of
protection. So We
will wait your answer about the WICKET logo.
The answer was drumrol silence.
This means that the way I suggested things didn't trigger a negative
OK, I understand that.
We will not use the logo on our website, but only the design.
However, could I use the circle image between 'Apache' and 'Wicket'? Only the
simbol mark, which
do not include the word 'Apache Wicket' and 'example'?
-
Tsutomu YANO
We have a page with a form and the form's onSubmit() method takes a
while. After it is complete the user is re-directed to another page.
We'd like to introduce a nice please wait while we process your
request page in between these pages. If anyone has done this, what
approach has worked well for
Scott Swank wrote:
We have a page with a form and the form's onSubmit() method takes a
while. After it is complete the user is re-directed to another page.
We'd like to introduce a nice please wait while we process your
request page in between these pages. If anyone has done this, what
You could set a flag in the user's session indicating the process is
ongoing, then use a meta refresh to check the status of the flag and respond
accordingly.
On Jan 24, 2008 11:45 AM, Scott Swank [EMAIL PROTECTED] wrote:
We have a page with a form and the form's onSubmit() method takes a
create a bean to represent the form, then in form's onsubmit create
the object and populate it from the bean
-igor
On Jan 24, 2008 8:35 AM, Brad Fritz [EMAIL PROTECTED] wrote:
Greetings,
I am new to Wicket and having some trouble binding a Wicket Form
component to an object that does not
I also suggest playing with Grails a little bit before you proceed
http://grails.org/Quick+Start
No, I do not think that Grails is better than Wicket, but I like the little
conveniences provided by commands like create-domain-class and
create-controller
Konstantin Ignatyev
- Original
So basically we would need to mount each page seperately with a url for it ?
Is there a mechanism with which one can mount a bunch of pages at the same
time, where lets say the page-name itself gets attached to the url (given
for that subset of pages) so as to make the url unique for each page,
Hi Konstantin
This first version will just be like, quickstart just a basic template
with your company name etc...
Im not sure how far we can get using archetypes...
regards Nino
Konstantin Ignatyev wrote:
I also suggest playing with Grails a little bit before you proceed
see PackageRequestTargetUrlCodingStrategy
-igor
On Jan 24, 2008 10:02 AM, mfs [EMAIL PROTECTED] wrote:
So basically we would need to mount each page seperately with a url for it ?
Is there a mechanism with which one can mount a bunch of pages at the same
time, where lets say the page-name
Sweet.
http://wicketstuff.org/wicket13/ajax/lazy-loading.1
I think that we can make something like that work for us.
Thank ya.
On Jan 24, 2008 9:47 AM, Thijs Vonk [EMAIL PROTECTED] wrote:
Scott Swank wrote:
We have a page with a form and the form's onSubmit() method takes a
while. After
I'll try Thijs' suggestion first, but if the unforseen arises I might
try a meta refresh. Thank Nick.
On Jan 24, 2008 9:48 AM, Nick Heudecker [EMAIL PROTECTED] wrote:
You could set a flag in the user's session indicating the process is
ongoing, then use a meta refresh to check the status of
Note that maven archetypes are a bitch to maintain... Mostly because the
code templates are not compiled, so you have to take another step to check
whether it works or not.
Martijn
On 1/24/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:
Hi Konstantin
This first version will
I have a Form component : SomeCheckGroup added to a SomePanel.
For screen arrangement purpose , this SomePanel is not a sub-node of the
Form ,
it's outside of the Form . It looks like this :
OutmostPanel add FormPanel
FormPanel add MainForm
MainForm add other form components
OutmostPanel
As I mentioned before I have added a jode.jar, slfXXXapi.jar and
slfXXXsimple.jar. However the application still fails to start and I am now
getting the following error message in the Tomcat logs:
SERVER: Exception starting filter HelloWorldApplication
java.lang.NoClassDefFoundError:
remove wicket-velocity.jar from the classpath
-igor
On Jan 24, 2008 11:40 AM, gbak1 [EMAIL PROTECTED] wrote:
As I mentioned before I have added a jode.jar, slfXXXapi.jar and
slfXXXsimple.jar. However the application still fails to start and I am now
getting the following error message in
On Tue, 22 Jan 2008, Igor Vaynberg wrote:
a) read javadoc
b) create subclass (1 min)
c) paste example markup from javadoc into subclass.html file (1 min)
c) edit subclass.html
What I do is
a) create Subclass (10 seconds)
b) click to the Superclass in IDE
c) click to Superclass.html that is
However, could I use the circle image between 'Apache' and 'Wicket'? Only the
simbol mark, which
do not include the word 'Apache Wicket' and 'example'?
Oh, sorry. You already have answered this question on your first post...
If you want to go forward quickly, you could use the design,
I think you could get very close by having a basic
wicket-jpa-hibernate-spring thing(it'll mainly be copy pasting and
refactorying), i'll try to see how great database migration are with
this combination..
Konstantin Ignatyev wrote:
I like idea of archetype and have tried creating one awhile
You could try nested forms.
Eelco
On Jan 24, 2008 11:19 AM, smallufo [EMAIL PROTECTED] wrote:
I have a Form component : SomeCheckGroup added to a SomePanel.
For screen arrangement purpose , this SomePanel is not a sub-node of the
Form ,
it's outside of the Form . It looks like this :
I found the required velocity jar file at http://velocity.apache.org website
and have included it in my libs dir.
Tomcat now deploys and starts the application without errors.
However the text in between the span tags does not get replaced with the
text that is in the HelloWorld class.
I checked
Hibernate takes care DB schema (re) definition when its configuration says
hibernate.hbm2ddl.auto=create
so when changes are made to the entity classes H (re)generates database
schema.
- Original Message
From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
To:
wow, all this work...when all you had to do was run mvn war inside the
package folder...
-igor
On Jan 24, 2008 12:30 PM, gbak1 [EMAIL PROTECTED] wrote:
I found the required velocity jar file at http://velocity.apache.org website
and have included it in my libs dir.
Tomcat now deploys and
What about IndicatingAjaxButton?
On Jan 24, 2008 1:16 PM, Scott Swank [EMAIL PROTECTED] wrote:
I'll try Thijs' suggestion first, but if the unforseen arises I might
try a meta refresh. Thank Nick.
On Jan 24, 2008 9:48 AM, Nick Heudecker [EMAIL PROTECTED] wrote:
You could set a flag in the
makes sense...
Just one more thing which i just noticed..not sure if it has got to with the
mounting of urls, but in certain instances i seet he jsession=[id]
postfixed with the urls, but not for all pages, its just random..even at
times it appears for one and at a different time it doesn't. Any
Thanks igor..
Just one more thing which i just noticed..not sure if it has got to with the
mounting of urls...so in certain instances i seet he jsession=[id]
postfixed with the urls, but not for all pages, its just random..even at
times it appears for one and at a different time it doesn't. Any
if you disable cookies it will be appended to every url.
if you use cookies after the first request jsessionid migrates from
urls to a cookie - so you see it on the first request of a new
session, and never again for the duration of that session.
-igor
On Jan 24, 2008 1:10 PM, mfs [EMAIL
why post the same question in two threads? its a lttle obnoxious
-igor
On Jan 24, 2008 1:15 PM, mfs [EMAIL PROTECTED] wrote:
Thanks igor..
Just one more thing which i just noticed..not sure if it has got to with the
mounting of urls...so in certain instances i seet he jsession=[id]
Ok, noted.
Im very busy now with the openlayers thing, so hoping I can start on it
within february...
regards Nino
Martijn Dashorst wrote:
Note that maven archetypes are a bitch to maintain... Mostly because the
code templates are not compiled, so you have to take another step to check
Hi
I have an application where each object can have some files associated
with it that I need to pull from various sources. I have:
/mount/id//thumb.jpg
/mount/id//meta.xml
/mount/id//layer.lyr
...
I followed the 'staticpages' example and am implementing a
UrlCodingStrategy
Hi all,
I have a Form which gets submitted by an AjaxButton. Validation of the
FormComponents is triggered by AjaxFormValidationBehavior.
Both add an AjaxFormSubmitBehavior to the form which bite eachother a
bit. When the form is submitted by the AjaxButton the
AjaxFormValidationBehavior is
Sorry about that...actually mistakenly posted it in the other one and than
had it deleted afterwords before posting it here..
igor.vaynberg wrote:
why post the same question in two threads? its a lttle obnoxious
-igor
On Jan 24, 2008 1:15 PM, mfs [EMAIL PROTECTED] wrote:
Thanks
I have a customer who has requested the ability to view multiple
locales on a page. It looks like I can do this fine with Wicket
through the use of properties files, but what I would like to do is
automatically detect which locales there are properties files for. Is
this possible, and if so,
Hi All,
For some reason, my checkbox doesn't bind to my model. I have a
DataView that contains the Check component, and in my button, onClick, I use
form.getModelObject(), but the objects doesn't get set. (Earlier than this, I
tried AjaxButton and the form.getModelObject() returns an array of
Hi,
I want to display two DataTables on the same page with their own
NavigatorLabel.But in the constructor of the NavigatorLabel class
creates a StringResourceModel with the hardcoded resourceKey
NavigatorLabel.
As I undersdtand it, the .properties file may can localize only one
label
ahh not so scaffold then..
Konstantin Ignatyev wrote:
http://www.hibernate.org/119.html#A10
- Original Message
From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 24, 2008 2:28:11 PM
Subject: Re: wicket maven archettype,
Guys,
When i disable the cookies on my browser (which i havent really played with
before), pretty much every link i click takes me to the Session-Expired
page..something i need to handle/cater too...
I have created my own custom session by overriding newSession as follows
public Session
currently it is not possible. feel free to add an rfe. you can also
roll your own, it is a trivial class...
-igor
On Jan 24, 2008 3:18 PM, Alex Greif [EMAIL PROTECTED] wrote:
Hi,
I want to display two DataTables on the same page with their own
NavigatorLabel.But in the constructor of the
On Thu, 24 Jan 2008, Beyonder Unknown wrote:
For some reason, my checkbox doesn't bind to my model. I have a
DataView that contains the Check component, and in my button, onClick,
I use form.getModelObject(), but the objects doesn't get set. (Earlier
than this, I tried AjaxButton and the
Hi Timo,
Thanks for the insight. I have to use CheckGroup, because i have to provide a
check all/uncheck all checkbox. I got a typo there, the isSelected() is
supposed to be part of Contact. And you're right, the isEmpty() is redundant if
I use the for-each type loop. That's a remnant of the
I think for some reason, when I submit, it overrides the model in the form. and
when I do form.getModelObject() it returns a wrong value. I'm suspecting that
its in the bind part of my populateItem(). I don't know why though.
Best,
Wen Tong
--
The only constant in life is change.
-
Do you use an item reuse strategy for the repeater?
Martijn
On 1/25/08, Beyonder Unknown [EMAIL PROTECTED] wrote:
I think for some reason, when I submit, it overrides the model in the
form. and when I do form.getModelObject() it returns a wrong value. I'm
suspecting that its in the bind part
tbt wrote:
Hi
I tried to add a attribute to a html tag using the wicket:message tag. The
code is as follows
HomePage.html
input type=button class=button wicket:message=value:button.label /
HomePage.properties
button.label=save
This method didnt display the label in the html page. Then in
Cool,
I hope we can get this to a more stable state in the next couple of
days so others can jump in and help out. Is anyone interested? The OL
and GeoServer combo seems to be a very appealing combination for
rolling your own mapping apps.
/peter
On Jan 24, 2008 5:42 PM, Nino Saturnino Martinez
70 matches
Mail list logo