That way it is only used to format the string to the screen.The dateformatter is used to get the format out and _javascript_ dateformat is generated based on thatThat dateformatter should also be used by the textfield itself to handle the formatting both ways.
So override the getConverter() of the
The input elements look like this:
div class=formDiv
input class=button type=image
src=img/button_spara.gif wicket:id=save value=Spara
title=Spara/
input class=button type=image
src=img/button_avbryt.gif wicket:id=cancel value=Avbryt
title=Avbryt/
Hi,
I never had any problem using the ListViews and i
use it extensively in my project.
So i would say no no for any API breakages.
If repeaters are better solutions i am for
promoting that.
thanks
Dipu
- Original Message -
From: "Eelco Hillenius" [EMAIL PROTECTED]
To:
* Eelco Hillenius:
It's an optimization.
So you confirm that PageLink is not optimized for stateless
webapps.
Reading the PageLink code, I wonder why setResponsePage(Page) is used instead
of setResponsePage(Class):
public void onClick()
{
// Set page source's
ahh see the code: // Don't touch any wicket:id component if (tag.getId() != null) { return tag; }So in that case you have to do it yourself.Maybe we could make this configurable or something
johanOn 8/11/06, Mats Norén [EMAIL PROTECTED] wrote:
The input elements look like this:div
Hi there,
Recently, I bought a web space from JavaServletHosting and tring to deploy
my wicket application to my web space. However, after deploying my
application, it didn't work well. The problem is although the context root
of my application is something like http://my_web_space/;, the
No, I don't depend on any external libs, but some polishing is definatelly needed. The .js is well done (not tested in Safari yet, would be grateful if someone can try it), but I think the wicket code can be done better (although I don't have an idea how). I was hoping that any of you guys can
We could change that a bit.But only if the pagelink was not created with an page instance alreadyBecause if you use the contructor:new PageLink(xx, myPageInstance)then we really need to serve that page instance..
Maybe if we added a method to IPageLink so that we can ask what it really has (the
read the classes from /servlet? what does that mean?But what do you see in the browser? not the /servlet ?You can configure the context root in your application.. see IApplicationSetings.setContextPath()
johanOn 8/11/06, itsliang [EMAIL PROTECTED] wrote:
Hi there,Recently, I bought a web space
What about this:
Index: wicket/src/java/wicket/markup/html/link/PageLink.java
===
--- wicket/src/java/wicket/markup/html/link/PageLink.java (revision 6861)
+++ wicket/src/java/wicket/markup/html/link/PageLink.java
On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:
ahh see the code:
// Don't touch any wicket:id component
if (tag.getId() != null)
{
return tag;
}
So in that case you have to do it yourself.
That explains it! Thanks.
So how does it normally
All, This small problem annoys us very long time:When I first reach http://mycompany.com, with normal configuration, wecheck if user login or not and throw RestartResponseAtInterceptPageException(
IndexPage.class)to redirect user to Login page.This work perfectly but the URL become unstable link
I haven't tried it, but I wonder if something like
mountBookmarkablePage(/login, LoginPage.class);
in your Application instance would give what you want? Note, it's
probably a bad idea to try duplicate 'real' pages/folders such as
/ or /app!
Having said that though, I'd have thought youd be
Well, I'm using the wicket.extensions.markup.html.repeater.data.table
packages and wicket.extensions.markup.html.repeater.data.DataView but
that's because I got familiar with them via phonebook I'm getting
the data I'm showing from a DB, whereas I've not done very much at all
with ListViews, so
Hi Elco,
Problem was with the PopupSettings
This is how i haddefined the the
PopupSettings
PopupSettings popupsettings = new
PopupSettings();
popupSettings.setHeight(500);
popupSettings.setWidth(500);
popupSettings.setWindowName("name");
Changed it to
PopupSettings popupSettings = new
Mounting like Gwyn proposed doesn't work either.The problem is that we always redirect to an instance because of the pagemap method: final void redirectToInterceptPage(final Page page) { // Get the request cycle
final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL
you can use i guess public final void appendMarkupFilter(final IMarkupFilter filter) of MarkupParserBut juergen just changes some of that code i believe so maybe he can tell you the best solution now.johan
On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote:
On 8/11/06, Mats Norén [EMAIL PROTECTED]
In 2.0 it looks like
Settings.java
public IMarkupParserFactory getMarkupParserFactory()
{
if (this.markupParserFactory == null)
{
this.markupParserFactory = new
MarkupParserFactory(application)
{
ok, i think I got i now. If using pull models with a dynamic ListView
within a form, we have to override getListItemModel() and return a
slightly more sophisticated model. This makes sense. But could it be
possible to consolidate these a bit then. What if ListView would have a
new constructor new
This would be very good too.
Joni
On Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote:
it does work really differnet then wat we do now.
And with a panel it looks maybe nice. But it is a but more blown up
code.
Personally i like this then better:
IFormValidator
{
validate(Form)
Stupid question, but how do override the settings.java?
On 8/11/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
In 2.0 it looks like
Settings.java
public IMarkupParserFactory getMarkupParserFactory()
{
if (this.markupParserFactory == null)
{
And probably more elegant that providing automatic cleaning of old
IFormValidators.
Joni
On Fri, 2006-08-11 at 15:13 +0300, Joni Freeman wrote:
This would be very good too.
Joni
On Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote:
it does work really differnet then wat we do now.
Thanks for fast reply!If this is feasible I will create a RFE for this change. hope we'll have this feature next release :-)On 8/11/06, Johan Compagner
[EMAIL PROTECTED] wrote:
Mounting like Gwyn proposed doesn't work either.The problem is that we always redirect to an instance because of the
Disregard my last post. :)
/Mats
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application
MyApplication.java
private Settings getSettings()
{
if (!settingsAccessible)
{
throw new WicketRuntimeException(
Use Application.init() method for
configuring your application object);
Hmm..didn't work out as I expected. Isn't Settings.java final in 1.2.1?
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
I finally find what caused the problem: I knew that for the example to
work as standalone, one must call setOutputMarkup(true) on the ListView
container. What I did not know is that if the example is embeded in an
Ajax TabbedPanel, the Form used to update the ListView must also have
I'm sorry if I come across as a little bit stupid here but the way I
understood it was that getSettings() in Application is deprecated and
shouldn't be used?
And from what class should I derive MySettings? I mean since Settings is final.
I thought I would supply my own IMarkupSettings but since
Hi,
I was curious to see how many instance of components were created, so I
just added a counter to a panel. I appears that when I load the page for
the first time in Firefox, the panel component is created twice. (I
would have guess once...)
In IE6, in the same situation (server restarted),
* Johan Compagner:
Maybe we should also make redirecting to a class:
final void redirectToInterceptPage(final Class pageClass)
{
// Get the request cycle
final RequestCycle cycle = RequestCycle.get();
// The intercept continuation URL should be saved exactly
I'm not sure I understand what's going on. Could you provide a test-case
or a quick start application?
-Matej
Pierre-Yves Saumont wrote:
Hi,
I was curious to see how many instance of components were created, so I
just added a counter to a panel. I appears that when I load the page for
Has there been any changes between 1.2 and 1.2.1 when it comes to
handling objects that are not serializable?
In my migration from 1.2 to 1.2.1 I suddenly got this exception:
WicketMessage: Internal error cloning object. Make sure all dependent
objects implement Serializable. Class:
Are you sure ShowDetailedPlanPage is Serializable?
Juergen
On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote:
Has there been any changes between 1.2 and 1.2.1 when it comes to
handling objects that are not serializable?
In my migration from 1.2 to 1.2.1 I suddenly got this exception:
Solution found.
Within the newRequestCycleProcessor() method of the
MyAuthenticatedWebApplication class I caught the exception thrown by the
IRequestTarget respond method.
protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new DefaultWebRequestCycleProcessor() {
Well, I guess it isn't but it worked under 1.2 prior to the release.
The only change in my application is that I've switched from 1.2 SVN
(don't know the exact repository version) to 1.2.1.
Is 1.2 more lenient?
/Mats
-
1.2.1 only has bug fixes. May be you the check the mail archive. I
remember this problem has been discussed before.
Juergen
On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote:
Well, I guess it isn't but it worked under 1.2 prior to the release.
The only change in my application is that I've
I tried to make a simple test case, but it does not show this problem.
My first guess is that it has something to do with caching, since my
apps loads many elements from various places (images, css, scipts,
images from css, images from scripts and even an html file loaded from
within a script
IE usually uses many more concurrent connections to grab details and if you
map the servlet to /* it could be this...
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von Pierre-Yves Saumont
Gesendet: Freitag, 11. August 2006 16:46
An:
in application.init() call getDebugSettings().setSerializeSessionAttributes(false);this feature defaults to on in devel mode and off in prod mode - before it was triggered by having your logger set to debug on a certain package which was a bit too ugly.
-IgorOn 8/11/06, Juergen Donnerstag [EMAIL
I think you didn't enable the logging debug property or somethingIf you didn't have that in 1.2 then we didn't test itnow the check property: if (Application.get().getDebugSettings().getSerializeSessionAttributes())
and i think that property is default true in development mode.But you just should
Is the page detached when we do that???the call comes from Session.touch(Page) (i have the same problem now in 2.0 with the second level cache)Because the page is detached only as the last thing when the RequestTarget.detach
is called.But touch is called much earlier...johanOn 8/11/06, Igor
No we are marking the PageMap as dirtyand that is the case:interceptContinuationURL = cycle.getRequest().getURL();that field of pagemap is updated...johan
On 8/11/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
* Johan Compagner: Maybe we should also make redirecting to a class:final void
Form.clearInput clears the Raw data that all formcomponents have.But not the model data. So yes you need to update the model data of your form.Easiest way to me looks like having a shared (compound) model in the form
that is shared for all the form componentsand if you want to clear it. set a new
Please add a RFE if you can.johanOn 8/11/06, Joni Freeman [EMAIL PROTECTED] wrote:
This would be very good too.JoniOn Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote: it does work really differnet then wat we do now. And with a panel it looks maybe nice. But it is a but more blown up
code.
can wicket do something to improve this?On 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
I finally find what caused the problem: I knew that for the example towork as standalone, one must call setOutputMarkup(true) on the ListViewcontainer. What I did not know is that if the example is
Doesn't somehow a redirect happen? which version are you using? Does the url change in FF ?(does a thing like wicket-0 appear in the url)johanOn 8/11/06,
Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
Hi,I was curious to see how many instance of components were created, so Ijust added a counter to
i dont know, i just replaced the logging level check with a setting.-IgorOn 8/11/06, Johan Compagner
[EMAIL PROTECTED] wrote:Is the page detached when we do that???
the call comes from Session.touch(Page) (i have the same problem now in 2.0 with the second level cache)Because the page is detached
ah, so when i propose it it sucks : http://www.nabble.com/form.onsubmit-vs-button.onsubmit-tf1977859.html#a5426708but when you do it its a please add an rfe? :)
-IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:
Please add a RFE if you can.johanOn 8/11/06, Joni Freeman
[EMAIL PROTECTED]
yes, we can ditch : as the default separator and use something else like an underscore.-IgorOn 8/11/06, Johan Compagner
[EMAIL PROTECTED] wrote:can wicket do something to improve this?
On 8/11/06, Pierre-Yves Saumont
[EMAIL PROTECTED] wrote:
I finally find what caused the problem: I knew that
Do you mean that the form values should not be processed? In this
case you should use a CancelButton:
See http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_submit_buttons_in_form
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/
* Johan Compagner:
Please make a RFE
I created a patch because I need it too:
See
http://sourceforge.net/tracker/index.php?func=detailaid=1538810group_id=119783atid=684977
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/
No, I mean that after submiting the form, a component in the same page
is updated through Ajax. The form itself is updated from the XML data
received as a response to the Ajax call. So I want to clear the form
data so that the form is automatically reset.
Pierre-Yves
Jean-Baptiste Quenot a
After searching the documentation, I realized I should not have called
super() in my page constructor. By removing this, I made things a little
better :
In Firefox, it works smoothly. One instance is created on the first
access. One instance is created again each time I relaod the page (using
try the latest code from WICKET_1_2 branch-IgorOn 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
After searching the documentation, I realized I should not have calledsuper() in my page constructor. By removing this, I made things a little
better :In Firefox, it works smoothly. One instance
Ah, that's the problem. It's wicket multi window support that causes you
trouble.
First, i guess you are using 1.2, or am I wrong? 1.2.1 should fix the
continuous parameters wicket-x increasing (e.g from wicket-1 to wicket-18.
However, you can still experience creating page twice, e.g. if you
I am using 1.2.1. Igor suggested to use the latest code from WICKET_1_2
branch and I will try that.
Anyway, although I do not yet understand exactly how things work, I
realize I was trying to do something quite stupid, as the page I tested
was the first of the application. By inserting a home
Yes, I have build an application which will (someday) be released in
production on www.nlgis.nl, I'm waiting for the customer to set up a
meeting for deployment with the hosting party (currently it is
accessible through it's test-environment on
http://ip042.niwi.knaw.nl:9099/hgin/app, you can
Hrm, yes. Thanks Dipu for finding that. I made some improvements to
PopupSettings to guard for such problems. Probably not fire proof, but
better.
Cheers,
Eelco
On 8/11/06, Dipu [EMAIL PROTECTED] wrote:
Hi Elco,
Problem was with the PopupSettings
This is how i had defined the the
Funny to see that map without Flevoland (the province where I
partially grew up). Is that due to the fact that that land exists for
only some 50 years?
Eelco
On 8/11/06, Dave Schoorl [EMAIL PROTECTED] wrote:
Yes, I have build an application which will (someday) be released in
production on
Hello,
I am trying to customize an AjaxSubmitButton. If a certain condition is
detected in the onSubmit handler, it should trigger my own Javascript
function. I have tried to do this :
onSubmit(AjaxRequestTarget target, Form form) {
if (condition) {
you are using that api completely inside out. you override getajaxcalldecorator() and make it return one that decorates the script.if you want some _javascript_ to execute after the ajax response you can also add it into the target
target.appendjavascript(foo)-IgorOn 8/11/06, Pierre-Yves Saumont
Yes, the demo map and data are from 1899, so no Flevoland yet. But in
1899 however, Flevoland was already born in the minds of some engineers
(http://www.pagowirense.nl/wr-ges6a.asp -- sorry guys, webpage is in Dutch).
Groetjes,
Dave
Eelco Hillenius wrote:
Funny to see that map without
well... if you are using 1.2.1 and the page keeps redirecting, something
is wrong. Maybe window.name doesn't always work as expected?
-Matej
Pierre-Yves Saumont wrote:
I am using 1.2.1. Igor suggested to use the latest code from WICKET_1_2
branch and I will try that.
Anyway, although I do
Thanks Igor !
Igor Vaynberg a écrit :
you are using that api completely inside out. you override
getajaxcalldecorator() and make it return one that decorates the script.
if you want some javascript to execute after the ajax response you can
also add it into the target
no dont say that! ive got big plans for window.name thing!-IgorOn 8/11/06, Matej Knopp
[EMAIL PROTECTED] wrote:well... if you are using 1.2.1 and the page keeps redirecting, something
is wrong. Maybe window.name doesn't always work as expected?-MatejPierre-Yves Saumont wrote: I am using 1.2.1.
Hi, I've downloaded the phonebook example app and noticed that when you add a contact it does not refresh the unique last names list, this is because the ListContacts page is saved in a EditPage instance so one can go back to this page. How can this be fixed?Thanks,Jaime.P.S. The application is
I could not make this work. I tried to override
protected Component newSelectionComponent()
and did:
new AjaxFormComponentUpdatingBehavior(onsubtreemodified){..}
I tried a few variations and none of my effort was able to invoke any kind
of event when the palette's content changed. Any ideas?
is that the same??We are here just talking about IFormValidators that can be in the hierachy of the Formthat will be looked up when a submit happens.. or am i missing something?johan
On 8/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
ah, so when i propose it it sucks :
well, i mentioned so we can additionally have IFormValidationAware { void onValidate(); } that works just like the IFormSubmitAware i proposed which is identical to what we are talking about here :)
-IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:
is that the same??We are here just
Hi,
I was trying to create a DataTable that allowed row selection, by adding
a AjaxEventBehavior to the Item of a DataTable.This works fine with
Firefox 1.5, but I'm having problems with IE6. The onEvent() method
gets called when the user clicks a row in the table, but calling
I had similar problem too. In my application, both TR and TD tags do not work properly in IE with ajax. though I didn't have time to investigate this problem at that time...On 8/12/06,
Lorin Metzger [EMAIL PROTECTED] wrote:
Hi,I was trying to create a DataTable that allowed row selection, by
Hi all, Is there any way to stop AjaxSelfUpdatingTimerBehavior programmatically ?I am writting a small chat app and require to stop self updating to reduce server load when user is idle. I check AbstractAjaxTimerBehavior but both updateInterval and response(target) are final...
Is it possible to
Hi there,
I've got a problem when I using BookmarkablePageLink. I wrote a very simple
example to try out BookmarkablePageLink. In exmaple, you can find three web
pages. In each web page, there are two links that can be used to link to the
other two pages. And I only mount my second page as a
73 matches
Mail list logo