Hello,
I have one server path folder. It contains .xls files. I want to check what
are the current updated xls file. and insert that xls file name into db.
for eg.
i have a folder FOLDER1, It contains sales.xls, report.xls. If I change and
save this file. Our program(file watcher) have to know
I have an index page where I want to include a SignIn panel. So I do
this for the page:
public class IndexPage extends WebPage {
private static final long serialVersionUID = 1L;
public IndexPage() {
this(null);
}
/**
* Constructor tha
Hi,
when a Session-Timeout occurs, the following Exception is thrown when the user
gets active again:
---8<---
2007-09-03 16:41:26,316 ERROR [org.apache.wicket.RequestCycle ] -
Cannot find the rendered page in session [pagemap=nu
ll,componentPath=10,versionNumber=0]
org.apache.wick
Ah yes, you're right. Sorry 'bout that.
Matej Knopp wrote:
This would be wrong, as during constructor the component is not yet added to
any parent.
-Matej
On 9/3/07, Matthijs Wensveen <[EMAIL PROTECTED]> wrote:
Or maybe:
public AjaxButton(String id)
{
this(id, getForm());
On 9/3/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> great igor, thanks
>
> On 9/4/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
> > its actualy simple what I am asking
> >
> > There is Link and there is ExternalLink
> >
> > ExternalLink takes you out of Wicket
> >
> > Link process inte
great igor, thanks
On 9/4/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
> its actualy simple what I am asking
>
> There is Link and there is ExternalLink
>
> ExternalLink takes you out of Wicket
>
> Link process internal wicket based actions and moves to another wicket
> page
>
>
> My Banner
its actualy simple what I am asking
There is Link and there is ExternalLink
ExternalLink takes you out of Wicket
Link process internal wicket based actions and moves to another wicket page
My Banner points to an external link, however I want to register a click
count on that banner before navi
add(new link("ad") { onclick() {
count++;
getrequestcycle().setrequesttarget(new redirectrquesttarget(url));
}
-igor
On 9/3/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
> I am writing a simple ad system where i only decide the external link to
> navigate to dynamically from the server
Can you post some code? It's hard to understand what you're asking...
On Tue, 2007-09-04 at 05:05 +0100, Ayodeji Aladejebi wrote:
> I am writing a simple ad system where i only decide the external link to
> navigate to dynamically from the server
>
> this is getting complicated from simple wi
I am writing a simple ad system where i only decide the external link to
navigate to dynamically from the server
this is getting complicated from simple wicket components.
I need to register the click count on that banner before navigating to the
external link
can someone help me with a way of o
abstractpageableview caches the size() of the list - which can lead to this.
try with latest trunk, i believe i just fixed it.
-igor
On 9/3/07, J2EEKevinLIu Liu <[EMAIL PROTECTED]> wrote:
>
> public class SortableUserDataProvider extends SortableDataProvider {
> private static final long ser
Jira issue filed: https://issues.apache.org/jira/browse/WICKET-922
Well, I'm just looking at the Form class. I can't say for sure if there
are any other problem areas or not, at this point I'm just mentioning
what's causing a compile error for me.
If we change Button to IFormSubmittingComponent,
public class SortableUserDataProvider extends SortableDataProvider {
private static final long serialVersionUID = 295668074163742165L;
public SortableUserDataProvider() {
setSort("id", true);
}
public Iterator iterator(int first, int count) {
DetachedCriteria criteria = queryFor
go to quickstart dir and run "mvn package", that will create a war you can
deploy on any servlet container.
-igor
On 9/3/07, Ghodmode <[EMAIL PROTECTED]> wrote:
>
> On 9/4/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > make sure your wicket-1.3.0-beta3 jar is good, looks like tomcat has a
On 9/4/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> make sure your wicket-1.3.0-beta3 jar is good, looks like tomcat has a
> problem opening it and finding the webapp calss.
The JAR file is good. I was able to compile against it and look at it and
unzip it to look at the files and confirm th
make sure your wicket-1.3.0-beta3 jar is good, looks like tomcat has a
problem opening it and finding the webapp calss.
also on a related note hellowicket.html should be in the same dir as
hellowicket.java
if you cant get it to work i strongly recommend creating an app using our
maven2 quickstart
I'm having a problem deploying a Wicket application, so I create a basic
HelloWicket app and I'm still getting the problem:
java.lang.NoClassDefFoundError:
org/apache/wicket/protocol/http/WebApplication
Apache Tomcat 6.0.14
Java 1.6.0_02-b05
Wicket 1.3.0-beta3
I think that this is a Tomcat probl
To those of you that received my email about the tube strike in London, I can
confirm that our event will go ahead as planned (see below); thanks to those
of you that already replied saying they can still make it.
Anyone else that would like to join us on Wednesday evening can still
register at
On 9/3/07, Cristi Manole <[EMAIL PROTECTED]> wrote:
> I don't know why, but it works out of the box :)
>
> The only problem was that i was making this call
> mountBookmarkablePage("/index.html", Home.class);
>
> in the home application init.
>
> I moved it in another application (that takes care of
Hello,
I don't know if this is the right place to submit this and if it isn't i'm
really sorry... please let me know...
When I click to maximize the dojo floating pane (not modal), it moves to the
top of the browser's client window and resizes to something less than what it
was originally. Ho
I don't know why, but it works out of the box :)
The only problem was that i was making this call
mountBookmarkablePage("/index.html", Home.class);
in the home application init.
I moved it in another application (that takes care of signin) and it all the
"applications" work like a charm. I hav
> Thanks for the support and ideas.
> But for the record:
> Overriding getLocale() would surely work, but sounds like even worse
> of a hack than setLocale(_)
No, if you override it, it will *always* return the value you provide.
The locale member obviously wouldn't be use unless you yourself use
On 9/3/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > I use wicket 1.2 for now.
>
> Yeah, unfortunately it doesn't work for 1.2. It's one of the
> improvements for 1.3.
We'll upgrade for the next release once this one is out...
> But either override getLocale in your session, or set it using
> java.lang.IllegalStateException: Request processing executed 100 steps, which
> means it is probably in an infinite loop.
This was fixed *after* beta 3 came out: an exception during error
handling could result in a cycle.
Eelco
-
On 9/3/07, Cristi Manole <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to make WebSession as a singleton available to all wicket
> applications in order to provide single sign on.
That won't work just like that. If you want a wicket session object
that is shared amongst all Wicket applicatio
Hello,
I'm trying to make WebSession as a singleton available to all wicket
applications in order to provide single sign on.
Authorisation is being performed with Spring JDBC.
The problem is this:
SEVERE: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException:
> I use wicket 1.2 for now.
Yeah, unfortunately it doesn't work for 1.2. It's one of the
improvements for 1.3.
But either override getLocale in your session, or set it using a
custom session factory.
Eelco
-
To unsubscribe, e-m
On 9/3/07, Alex Shneyderman <[EMAIL PROTECTED]> wrote:
> I am looking at the source of org.apache.wicket.protocol.http.WicketFilter
> and see this in the init method:
>
> ...
>
> final ClassLoader previousClassLoader =
> Thread.currentThread().getContextClassLoader();
>
Never mind, figured it out.
On 9/3/07, Alex Shneyderman <[EMAIL PROTECTED]> wrote:
> I am looking at the source of org.apache.wicket.protocol.http.WicketFilter
> and see this in the init method:
>
> ...
>
> final ClassLoader previousClassLoader =
> Thread.currentThread().getContex
> igor.vaynberg wrote:
> >
> > On 8/23/07, Sam Hough <[EMAIL PROTECTED]> wrote:
> >
> >> heh, there is nothing that automatically marks components as dirty()
> >> because
> >> wicket doesnt know what you do inside your components. wicket is
> >> unmanaged.
> >
> If I do Component.setVersioned(true)
I am looking at the source of org.apache.wicket.protocol.http.WicketFilter
and see this in the init method:
...
final ClassLoader previousClassLoader =
Thread.currentThread().getContextClassLoader();
final ClassLoader newClassLoader = getClassLoader();
On 9/1/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> Well, I certainly didn't want to reinvent the wheel. But all existing
> solutions I was able to find either relied on a third part library
> (shrinksafe) or had license not compatible with ASL. So I just wrote a
> simple stripper. I think it still
> I use a other approach for the same goal (http optimization), to avoid
> minification and compression at run-time do it at compile-time.
But if you do it at run-time once and cache the results (like we do)
you can keep things a lot simpler and automatic.
Eelco
On 9/3/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> Also, for what it's worth, the current wicket JavascriptStripper breaks on
> my app. I'm using prototype and scriptaculous, and when I enable the
> current wicket compression, my app no longer works. I get javascript errors
> left and right.
>
>
Most of the "good" minification libraries do more than just stripping
comments. usual features include:
* strip comments
* rename local variables to save space (ex: myLocalVariable becomes a)
* collapse string concatination. this is a nice performance enhancement
that will change multiline/verbos
D'oh. Ignore the javascript. I was testing sometning and it would seem I
forgot to remove it all before uploading the quickstart.
Is there a way I can register my error as a regular validation error from
the onSubmit()? Or somehow deactivate the validation behaviour until after
the submission
Yeah, we strip commends, there are tools that can also reduce things like
local variable names, etc.
-Matej
On 9/3/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> well yeah, but we _already_ strip comments, that is why i was wondering
> what
> the point of a plugin-minification would be.
>
> -ig
Hi,
there are multiple problems with your code. First you have
document.getElementById('a').
In your page's header. That's a javascript error (trailing .).
Also you've attached validating behavior in onblur. That's the behavior that
clears feedback from your panel. Your problem is
sounds like you are reusing the model instances? if you do not want the
change to propogate then simply clone the model before passing it on to a
child
so instead of
class mypanel extends panel {
public mypanel(id, model) {
add(new dropdownchoice("id", _model_, ...
do
add(new dropd
well yeah, but we _already_ strip comments, that is why i was wondering what
the point of a plugin-minification would be.
-igor
On 9/3/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Well, I don't find it surprising. Lot of javascript code are comments, and
> if you strip them out, you have less
* mperham:
>
> It's hackish but this modified selectMultiple works for me:
>
> public void selectMultiple(String formComponentId, int[] indexes)
> {
> checkClosed();
>
> // This is a hack to get Palette selection working with
> FormTester.
>
* oliver.henlich:
>
> Hi Jean-Baptiste, just wondering if you got a chance to look at this?
Hi Oliver,
I have identified the bug thanks to your stacktrace, and it would
be great if you could file an issue on JIRA.
Something like: ExceptionErrorPage only works with WebResponse
Thanks in advance
Hello,
I'm having some trouble with FeedbackPanel. I have an ajax validated form and
submit button. Whenever a component looses focus it and the others are
validated and if there are errors these are displayed in the single
feedbackpanel abover the form. This works fine however I have a problem
Can you please provide more code and entire stacktrace?
-Matej
On 9/3/07, Ian Godman <[EMAIL PROTECTED]> wrote:
>
> Wicket version is 1.3 beta 2
>
> - Original Message
> From: Matej Knopp <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Monday, 3 September, 2007 3:31:18 PM
> Sub
Wicket version is 1.3 beta 2
- Original Message
From: Matej Knopp <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Monday, 3 September, 2007 3:31:18 PM
Subject: Re: How to exclude from model update
What wicket version are you using?
-Matej
On 9/3/07, Ian Godman <[EMAIL PROTECTED]>
Yeah, but this way you are treating only effect. I think the error shouldn't
happen in a first place.
-Matej
On 9/3/07, Sam Hough <[EMAIL PROTECTED]> wrote:
>
>
> You could give it a dummy IModel of just new Model()...
>
>
> Ian Godman wrote:
> >
> > Hi
> >
> > I have a little problem with an A
You could give it a dummy IModel of just new Model()...
Ian Godman wrote:
>
> Hi
>
> I have a little problem with an AJAX submit button.
>
> The template is:
>
>
> In the java this is:
> add( new AjaxSubmitLink("AddButton-link"){
> private static final l
What wicket version are you using?
-Matej
On 9/3/07, Ian Godman <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have a little problem with an AJAX submit button.
>
> The template is:
>
>
> In the java this is:
> add( new AjaxSubmitLink("AddButton-link"){
> private st
Hi
I have a little problem with an AJAX submit button.
The template is:
In the java this is:
add( new AjaxSubmitLink("AddButton-link"){
private static final long serialVersionUID = 1L;
@Override
public void onSubmit(AjaxReques
* Carlos Pita:
> That is the customary message the reloading servlet shows after
> reloading any changes. What is new is the output from the weaver
> above it. I guess the reloading classloader has to reinstantiate
> itself in order to load new versions of the same old classes,
> and this is
Hi,
I'll try to have a look to that ASAP, could you please open an issue for
that : http://wicketstuff.org/jira
Cheers,
--
Vincent
Thies Edeling wrote:
Using the DojoDatePicker widget from wicketstuff-dojo (1.3.0-beta)
gives a dojo warning:
DEBUG: DEPRECATED: dojo.widget.Manager.getImple
If you need to access your component's parent in a safe way, the first
method when you can do that is onBeforeRender().
-Matej
On 9/3/07, Sam Hough <[EMAIL PROTECTED]> wrote:
>
>
> Would that not be too soon? The Button could not have been added to a form
> yet?
>
> My particular use case is that
* wicket user:
>
> I'm trying to test a form submission with SubmitLink, test code below:
>
> tester.setParameterForNextRequest("numberChangeForm:numberToChangeTo",
> numberToChangeTo);
>
> reset(smsServiceMock);
> smsServiceMock.sendActivationSms(isA(Subscriber.class));
Would that not be too soon? The Button could not have been added to a form
yet?
My particular use case is that I have a chunk of code that returns a tree of
components that may not yet be attached to a page/form...
Matthijs Wensveen-2 wrote:
>
> Or maybe:
>
> public AjaxButton(String id)
>
This would be wrong, as during constructor the component is not yet added to
any parent.
-Matej
On 9/3/07, Matthijs Wensveen <[EMAIL PROTECTED]> wrote:
>
> Or maybe:
>
> public AjaxButton(String id)
> {
> this(id, getForm());
> }
>
>
> This could work the same for AjaxFallbackButt
Or maybe:
public AjaxButton(String id)
{
this(id, getForm());
}
This could work the same for AjaxFallbackButton.
Matthijs
Johan Compagner wrote:
It is needed i guess if we say that the method
protected abstract void onSubmit(AjaxRequestTarget ajaxrequesttarget, Form
form1);
nee
* Kirk Israel:
> Q. a. Why isn't this stuff documented in more depth? b. And why don't
> people answer every stupid little question I have.
> A. a. Wicketstuff-Dojo is still a fairly young project with people who
> are currently more into coding it for more functionality than
> documenting. You'r
The intent was that not all kind of components could be a button because of
the single inheritance that java gives us
But like Matej said, everywhere we do an instance check of button we should
change that to do it on IFormSubmittingComponent
johan
On 9/3/07, David Leangen <[EMAIL PROTECTED]> wr
with 1.2 you can have your session factory and after you created the session
call setLocale
On 9/3/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
>
> On 8/22/07, Nino Saturnino Martinez Vazquez Wael
> <[EMAIL PROTECTED]> wrote:
> > There are some different approaches you could use...
> >
> > But why
There seems to be something wrong with your setup,
The method looks like this
return
(File)((WebApplication)Application.get()).getServletContext().getAttribute(
"javax.servlet.context.tempdir");
If there was no application attached to current thread, you'd get different
exception
igor.vaynberg wrote:
>
> On 8/23/07, Sam Hough <[EMAIL PROTECTED]> wrote:
>
>> heh, there is nothing that automatically marks components as dirty()
>> because
>> wicket doesnt know what you do inside your components. wicket is
>> unmanaged.
>
If I do Component.setVersioned(true) and hook in my
Why don't you just:
@Override
public Locale getLocale()
{
return Locale.ENGLISH;
}
?
> -Original Message-
> From: Gabor Szokoli [mailto:[EMAIL PROTECTED]
> Sent: 3 September 2007 21:04
> To: users@wicket.apache.org
> Subject: Re: How to set wicket's locale?
>
>
> On 8/22/07, N
* Tauren Mills:
> Can someone explain how to use pickwick from wicketstuff?
>
> I checked out pickwick from wicketstuff trunk and did a mvn install
> eclipse:eclipse. Had to turn off tests as they were failing. And I
> had to download and install wicketstuff-dojo-1.3.0-SNAPSHOT manually
> as mvn
Hi Iulian,
I just want to check if there is any progress with this issue? Did you find
anything?
Benjamin
2007/8/21, Iulian Costan <[EMAIL PROTECTED]>:
>
> hey guys,
>
> i am supposed to be the maintainer of tinymce module but lately i didnt
> put
> much effort into it.
> let me take a look and
When using webapp as embedded in jetty (without 'web.xml') I had a NPE
when passing from beta2 to beta3...
Later I downloaded the sources of beta3 and I think that problem lies
in: DiskPageStore-getDefaultFileStoreFolder()
which returns null...
___
L'email
Thanks all for your help. It works now like a charm and the own filter in
front of an regular download feels very elegant.
--
Cheers,
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
On 8/22/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> There are some different approaches you could use...
>
> But why not make a parent page class where you do it in? And then
> inherit from that? Or just use a custom session which does it by it
> self(check out the quickst
Hi,
I'm implementing some Behaviors in a complex page which contains many panels
and components most of them nasted.
Exactly now, I'm adding a behavior to a button to change the model of the
entire component
Then I want that the component reload the model and performe the changings
Inside a Aj
Hi,
I use a other approach for the same goal (http optimization), to avoid
minification and compression at run-time do it at compile-time.
It's what I try do, :
* I first implement the yuicompressor-maven-plugin.
* now I need to develop the ResourceSelector that choose the rigth file to
return
Well, I don't find it surprising. Lot of javascript code are comments, and
if you strip them out, you have less content to compress, thus the numbers
are smaller. You can set as high compression as you want, but the comments
still make difference. (Not so much for whitespaces imho)
-Matej
On 9/3/
This needs to be sorted out. Can you please add JIRA entry? Actually, is
there any other place where this causes problems apart from
form.setDefaultButton?
-Matej
On 9/3/07, David Leangen <[EMAIL PROTECTED]> wrote:
>
>
> Been trying to update to 1.3 and encountered some problems with
> SubmitLink
It is needed i guess if we say that the method
protected abstract void onSubmit(AjaxRequestTarget ajaxrequesttarget, Form
form1);
needs a form parameter that can't be null
Also i see something strange in the AjaxButton because if you dont give the
form then the form parameter
can be null:
publi
Since neither AjaxButton or Button require Form in the constructor why does
AjaxFallbackButton? Seems a shame to make it required if not really
needed...
I'm not quite clear from the source or comments what the difference is in
AjaxButton between the behaviour from the two different constructors.
73 matches
Mail list logo