Hello lars vonk,
yes, I did. Other component is ok, just Panel component cause some
NullException.
did you access SpringContext in Panel, and its that OK?
Thanks for your help.
Best regards,
=== At 2008-03-07, 16:22:58 you wrote: ===
did you inject the CmsFacade in you
Hi Igor,
it is called that way for security reasons, eg so you cannot
click a link that is not visible just because you know its url...
Yes, but shouldn't the visibility be reevaluated anyway after the link
is clicked? The clicking of the link, button, etc. usually changes the
state of
Could you post the code of the panel and the stacktrace of the nullpointer?
On Fri, Mar 7, 2008 at 8:55 AM, Mead [EMAIL PROTECTED] wrote:
well, a Panel Component could not get spring context beans, it got
java.lang.NullPointerException, but a WebPage Component is ok.
I use
[EMAIL PROTECTED] wrote:
Hello lars vonk,
yes, I did. Other component is ok, just Panel component cause some
NullException. did you access SpringContext in Panel, and its that
OK? Thanks for your help.
I do and it works. But I use the Annotation-based approach:
Hello lars vonk,
following is a segment of web.xml
context-param
param-nameapplicationBean/param-name
param-valuewicketApplication/param-value
/context-param
context-param
param-namecontextConfigLocation/param-name
Same here I use the annotation based approach and no problems there.
It should work in your case as well. Are you sure the nullpointer is
because the CmsFacade is null? Or is the nullpoiner in the getSomeBS()
method?
On Fri, Mar 7, 2008 at 9:40 AM, Kai Mütz [EMAIL PROTECTED] wrote:
[EMAIL
Maeder Thomas skrev:
what he should do is follow the delete call with a
listview.detach() call
Probably just being thick here, but how does calling listview.detach()
hide the listview?
The point is not to hide the listview, but to refresh the content. I
think Igor meant model.detach(),
Hello lars vonk,
I find I have two WebApplication: aWebApplication, bWebApplication
and aWebApplication inject the spring context(in the web.xml),
and b havenot inject. but
bWebApplication extends aWebApplication{}
in bWebApplication I call the method following:
aWebApplication app =
Hello All,
If I config the two WebApplication like downstair, It only direct to one
Application, and another WebApplication couldn't be accessed.
servlet
servlet-nameWicketApplication/servlet-name
servlet-class
On Wed, Mar 5, 2008 at 5:01 PM, Erik van Oosten [EMAIL PROTECTED] wrote:
Hi Jörn,
-- Ids
This one of the exceptions in just taking existing HTML. Our designers
also use jquery and solved the problem by using classes. Something like:
class=idCommentForm. For jquery it doesn't matter much,
I have no experience with two WicketApplications. I am not sure if
this is a good idea.
But besides that: I think you need to tell the bApplication it should
use the org.apache.wicket.spring.SpringWebApplicationFactory, the same
way you did with the WicketApplication servlet. Since the
But wasn't hiding the listview the original point of the question?
Thomas
-Original Message-
From: Edvin Syse [mailto:[EMAIL PROTECTED]
Sent: Freitag, 7. März 2008 10:15
To: users@wicket.apache.org
Subject: Re: ListView#isVisible dilemma
Maeder Thomas skrev:
what he should do
Hi everyone,
I'm using an extended PageLink which overrides the isVisible().
Now I want to test it with the wickettester as a PageLink. This gives an
unclear error message: 'unexpected'.
What happens is that the tester tries to get the IPageLink from the PageLink
with reflection, but because
Hi,
I'm trying to mount a form, eg. a login form to /login/, resulting in
something like form action=/login//.
There are a lot of classes related to mounting, though everything I
found so far refers to pages. Just mounting a Form subclass doesn't
yield anything at all.
Thanks for any hints
Jörn
I just heard about a new Wicket presentation that will be held at the
dutch java user group.
Presentation:
http://www.nljug.org/pages/events/content/jspring_2008/sessions/00035/
Program:http://www.nljug.org/pages/events/content/jspring_2008/sessions/?template=showprogram.htmlfs=1
Speaker will be
Yes that's me. You're assumptions are right.
Lars
On Fri, Mar 7, 2008 at 11:45 AM, Maurice Marrink [EMAIL PROTECTED] wrote:
I just heard about a new Wicket presentation that will be held at the
dutch java user group.
Presentation:
On Thursday 06 March 2008 18:59:59 graemer wrote:
So as some of you may know I've been updating the Grails Wicket plug-in.
I didn't know but I tried the plug-in a couple of weeks ago (with help of your
blog) and it worked fine expect that I couldn't make wicket classes reload. I
should look at
How can I get hold of the current request cycle in a subclass of
WebResource?
In
public final class RepositoryFileResource extends WebResource
{
/* ... */
public IResourceStream getResourceStream()
{
RequestCycle cycle = RequestCycle.get();
cycle is null.
P.S. I am
I should add that I want the cycle in order to access the context
of my external content repository. I am setting up this context
as described in http://markmail.org/message/varxr2or2ba6tr7g .
On 07.03.2008, at 12:19, Kaspar Fischer wrote:
How can I get hold of the current request cycle in a
Hi,
What we did is use the spring testing (see
http://static.springframework.org/spring/docs/2.5.x/reference/testing.html)
capabilities for this:
We created an abstract base class that all test cases that need to
test wicket pages or components
@RunWith(SpringJUnit4ClassRunner.class)
I guess you can't. Since you are in the Application init method I
don't think there is a requestcycle available (request cycles
represents the processing of a request).
Lars
On Fri, Mar 7, 2008 at 12:19 PM, Kaspar Fischer [EMAIL PROTECTED] wrote:
How can I get hold of the current request cycle
Hi,
We are using the wicket-auth stuff on our site.
However rather than having a separate page for login we have a modal window
in our page (not a wicket modal window, but a custom one, its basically a
wicket panel in the page).
Is there any way to make my code for popping up the modal execute
On 07.03.2008, at 13:01, lars vonk wrote:
I guess you can't. Since you are in the Application init method I
don't think there is a requestcycle available (request cycles
represents the processing of a request).
I am not trying to get the request cycle inside my application's init(),
but in
But wasn't hiding the listview the original point of the question?
No, hiding was not the issue. The issue was that because the model was
consulted in the isVisible() method of the ListView, the deletion
wouldn't be visible before the page was rerendered using the
page-constructor (hence,
I i know you started the thread, but...from the initial post:
He overrides isVisible on the ListView, and does:
@Override public boolean isVisible() {
return ((List)myModel.getObject()).size() 0;
}
.. so THE LIST WONT BE VISIBLE if the list is empty.
etc...
The CAPITALS are mine.
yes
there is not request cycle when doing resources
why do you need it?
johan
On Fri, Mar 7, 2008 at 1:06 PM, Kaspar Fischer [EMAIL PROTECTED] wrote:
On 07.03.2008, at 13:01, lars vonk wrote:
I guess you can't. Since you are in the Application init method I
don't think there is a
I have a general question on how to wrap transaction boundaries around
requests
to a WebResource. As discussed in the thread
http://markmail.org/message/tbpg65xd5x26v7xf
there are two possible requests: an ordinary web request (with a
RequestCycle)
and a HEAD request (where no
Do you have to have junit.jar in the classpath if you want to use
WicketTester? We are using TestNG here and in a regular TestNG test case
(where the class is annotated with @Test), I get
java.lang.NoClassDefFoundError: junit/framework/AssertionFailedError.
--
View this message in context:
do you need a transaction around the resource when only the
lastModifiedTimeStamp is ask for?
is your resource really cachable?
johan
On Fri, Mar 7, 2008 at 2:15 PM, Kaspar Fischer [EMAIL PROTECTED] wrote:
I have a general question on how to wrap transaction boundaries around
requests
to a
Think out of the box...
Mount a page, and pass the parameters to the form, exact same result as
mapping the form..
regards Nino
Jörn Zaefferer wrote:
Hi,
I'm trying to mount a form, eg. a login form to /login/, resulting in
something like form action=/login//.
There are a lot of classes
Are we talking about the same thing? Your patch removes the trailing /
while in my case without the trailing / the parameters aren't
recognized.
On Thu, Mar 6, 2008 at 6:11 PM, David Leangen [EMAIL PROTECTED] wrote:
I've already filed an issue and submitted a patch for this:
I used AbstractAjaxTimerBehavior as kind of a password protected screen
saver and the following code to get a modal window to open when the page is
loaded. Body is a WebMarkuContainer representing the body tag. I used the
standard Wicket modal window with a Panel.
body.add(new
head request must be really fast because the happen a lot
and you should not be loading so much then
So you just have to see if you can create a resourcestream that only has the
right timestamp
johan
On Fri, Mar 7, 2008 at 12:31 PM, Kaspar Fischer [EMAIL PROTECTED]
wrote:
I should add that
Greetings.
Let me explain: suppose we have a page with few components, where page
itself
can have few different modes - READ-ONLY, EDIT or CREATE mode. When in
EDIT/CREATE mode, we want to let user to change components values. In
READ-ONLY
mode all components should be immutable. What is the best
Johan, thanks a lot for your explanations!
On 07.03.2008, at 15:47, Johan Compagner wrote:
do you need a transaction around the resource when only the
lastModifiedTimeStamp is ask for?
Yes, unfortunately.
is your resource really cachable?
I am writing a WebResource that returns files
i did mean listview.detach(), which will also detach the
model...seemed simpler to me
-igor
On Fri, Mar 7, 2008 at 1:15 AM, Edvin Syse [EMAIL PROTECTED] wrote:
Maeder Thomas skrev:
what he should do is follow the delete call with a
listview.detach() call
Probably just being
Yea, that would work, but its still having to manually intercept every link
that might go to a login protected area. I was wondering if there was any
way to automatically call the 'modal.show(target);' instead of redirecting
to the login page.
Warren Bell wrote:
I used
On Fri, Mar 7, 2008 at 12:31 AM, Maeder Thomas [EMAIL PROTECTED] wrote:
Hi Igor,
it is called that way for security reasons, eg so you cannot
click a link that is not visible just because you know its url...
Yes, but shouldn't the visibility be reevaluated anyway after the link
is
see for example Image
that one can old an Resource directly to make a session relative resource so
yes resources can be serialized
On Fri, Mar 7, 2008 at 5:31 PM, Kaspar Fischer [EMAIL PROTECTED] wrote:
Johan, thanks a lot for your explanations!
On 07.03.2008, at 15:47, Johan Compagner wrote:
I am not that familiar with the Wicket-auth api but i can tell you
that an ajaxpopup is not going to work unless your link is an ajaxlink
to. So you would have to build a custom popup that would show on the
page using a flag (show/hide) and a regular request which means all
your processing logic
2 ideas quicky come to mind:
- use a page global flag indicating the current mode.
Then have every component on the page overwrite there isEnabled
method to use that flag
- build 2 panel one for read and one for edit, add either one
depending on the mode to the page (using one id)
Maurice
On
Thats a good point, I can just subclass AjaxLink, and make sure that it does
a check if the user is logged in before doing the main code, if not then
show my login box, then i can continue on to what the link was actually
supposed to do.
I do agree it would be easier to just redirect to a
Thanks, now I get it.
Probably just being thick here, but how does calling
listview.detach() hide the listview?
it doesnt hide the listview, but it detaches the model. the
problem was:
suppose you have one item in the list
1) check listview visibility - loads the detachable model
i think tester uses junit's asserts, so yes.
-igor
On Fri, Mar 7, 2008 at 6:33 AM, reikje [EMAIL PROTECTED] wrote:
Do you have to have junit.jar in the classpath if you want to use
WicketTester? We are using TestNG here and in a regular TestNG test case
(where the class is annotated with
I was thinking about the move up/move down solutions, but my list is too
large. I have found that with lists more than a few rows tall, the user
starts using the fork to eye technique. For now I am just going to implment
the sort in the db...so each row gets the row's number in a text box and
Hi
Just wonder if there are such a thing(could'nt find it)?
If not would it be okay if I added it?
regards.
--
-Wicket for love
-Jme for fun
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
Checkout the blog tutorial, the unit test part
http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial
Jörn Zaefferer wrote:
Hi,
my wicket applicatin uses the SpringComponentInjector and @SpringBean
annotations, which works great at runtime where the application
context is
Check this out, it uses springcontext... Im in a very pasty mood today:)
http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial
Mead wrote:
well, a Panel Component could not get spring context beans, it got
java.lang.NullPointerException, but a WebPage Component is ok.
I use
hmm what about this one?
http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo
Not sure if its in the scriptaculous integration though..
regards Nino
PS if you want a reload to occur, could'nt just add an onchange/onblur
behavior where you enter the row number? that way if the
Eek I might have been wrong.. Sorry..
Nino Saturnino Martinez Vazquez Wael wrote:
Checkout the blog tutorial, the unit test part
http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial
Jörn Zaefferer wrote:
Hi,
my wicket applicatin uses the SpringComponentInjector and
spring wiki page shows how to set it up...
-igor
On Fri, Mar 7, 2008 at 3:11 AM, Jörn Zaefferer
[EMAIL PROTECTED] wrote:
Hi,
my wicket applicatin uses the SpringComponentInjector and @SpringBean
annotations, which works great at runtime where the application
context is present.
I'd
Eeek 2 secs..
try to add this in your constructor of the panel:
InjectorHolder.getInjector().inject(this);
regards Nino
Nino Saturnino Martinez Vazquez Wael wrote:
Check this out, it uses springcontext... Im in a very pasty mood today:)
No I think its okay:) writing too many mails.. Check it out.. And ask..
Nino Saturnino Martinez Vazquez Wael wrote:
Eek I might have been wrong.. Sorry..
Nino Saturnino Martinez Vazquez Wael wrote:
Checkout the blog tutorial, the unit test part
Take a look at wicket-contrib-yui. There is a context menu (built on top of
YUI) contained in org.wicketstuff.yui.markup.html.menu2.contextMenu
There are some examples in wicketstuff-yui-examples for the Context Menu
(tree and list/data view)
Note: these are SVN projects located at
Hi there,
I am struggling in implementing a (Web)Resource to load a file (not an
image) from an external source. Does anybody have/know of an example
that illustrates
* where/when to open the connection to the DB and start a transaction,
* fetch the file, and
* close the transaction?
I am
Depends on which date the meetup is?
Lars
On Fri, Mar 7, 2008 at 12:25 PM, Johan Compagner [EMAIL PROTECTED] wrote:
translate it to English and do it also on the wicket meeting?
On Fri, Mar 7, 2008 at 11:48 AM, lars vonk [EMAIL PROTECTED] wrote:
Yes that's me. You're assumptions are
Is there a way to programmatically alter the class attribute of the html that
is generated from a PageLink component? I've been looking and haven't been
able to find anything.
Thanks in advance for any assistance.
--
View this message in context:
see (Simple)AttributeModifier
-igor
On Fri, Mar 7, 2008 at 11:30 AM, BretChampoux
[EMAIL PROTECTED] wrote:
Is there a way to programmatically alter the class attribute of the html that
is generated from a PageLink component? I've been looking and haven't been
able to find anything.
Thanks for the reply Doug.
I actually found this project and now have a context menu appearing when
clicking on the id column for a row. Now I just need to make my different
actions actually work and the table refreshed.
Right now I using the TestAction inner class that is in your example. In
I've tried for 1 1/2 days to get this simple Drop Down to work and I'm
feeling stupid. My mom tells me I'm smart.:-(
Everything works fine until I try to save it. I get the following error. I
think it is trying to put the SelectOption object into the Model but I don't
know how to tell it to
Try wicketstuff-rome:
http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-rome/
http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-rome-examples/
On 3/7/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:
Hi
Just wonder if there are
Hi..
I have a image.. in my HTML it is img
src=resources/images/ibFind.gif/.. After wicket, it is img
src=../../../../resources/images/ibFind.gif
But I need to have absolute path instead of ../../../
What should I override? What is responsible to do that replace?
I've already tried to
two problems
1) loadable detachable models do not support the setobject() call,
because they are...loadable. so you should use a different kind of
model.
2) yes, selectoption object will be put into your model, dropdown
choice works like this:
DropDownChoiceT(String id, IModelT model,
use ContextImage class
also current wicket takes over contextroot/resources directory, so you
might want to use something else.
-igor
On Fri, Mar 7, 2008 at 12:43 PM, Renan Camponez [EMAIL PROTECTED] wrote:
Hi..
I have a image.. in my HTML it is img
src=resources/images/ibFind.gif/..
[EMAIL PROTECTED] wrote:
I've tried for 1 1/2 days to get this simple Drop Down to work and I'm
feeling stupid. My mom tells me I'm smart.:-(
Everything works fine until I try to save it. I get the following
error. I
think it is trying to put the SelectOption object into the Model
but I
Igor,
Thanks for quick answer...
My problem is a little more difficult to solve..
The problem is that I have a servlet at /app/mainservlet who handle if all
requests...
If i do a request to wicket Page, it redirects me to wicket servlet.. But my
URL remains the same..
That means that I'm acessing
Are you looking for how to *publish* RSS feeds, or consume them?
the wicketstuff-rome project helps with publishing RSS feeds from
within your application.
If you're looking to consume rss feeds, ROME makes it pretty trivial
to do. Not sure how much value there is for a generic display RSS
so a nonwicket /app/mainservlet servlet redirects to the wicket servlet?
-igor
On Fri, Mar 7, 2008 at 1:05 PM, Renan Camponez [EMAIL PROTECTED] wrote:
Igor,
Thanks for quick answer...
My problem is a little more difficult to solve..
The problem is that I have a servlet at
Exacly..
On Fri, Mar 7, 2008 at 6:34 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
so a nonwicket /app/mainservlet servlet redirects to the wicket servlet?
-igor
On Fri, Mar 7, 2008 at 1:05 PM, Renan Camponez [EMAIL PROTECTED]
wrote:
Igor,
Thanks for quick answer...
My problem is a
The problem is that at wicket 1.2 it works...
Bcs wicket 1.2 use /myapp/wicketservlet/blabla..
On Fri, Mar 7, 2008 at 6:39 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
hrm, dont know if we support that kind of thing, or took it into
consideration while testing.
can you not use wicket as a
wicket 1.3 is not backwards compatible with 1.2
-igor
On Fri, Mar 7, 2008 at 1:45 PM, Renan Camponez [EMAIL PROTECTED] wrote:
The problem is that at wicket 1.2 it works...
Bcs wicket 1.2 use /myapp/wicketservlet/blabla..
On Fri, Mar 7, 2008 at 6:39 PM, Igor Vaynberg [EMAIL PROTECTED]
Thanks for the quick reply. But you answer doesn't make sense to me. Why do
loadable models work for a text field but not a drop down? If I have NY
stored in the database, New York is loaded onto the form but when the form
is submitted the selected value of the drop down is not saved into the
I know that... Thats my problem.. :)
On Fri, Mar 7, 2008 at 6:47 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
wicket 1.3 is not backwards compatible with 1.2
-igor
On Fri, Mar 7, 2008 at 1:45 PM, Renan Camponez [EMAIL PROTECTED]
wrote:
The problem is that at wicket 1.2 it works...
Bcs
Still to be determined but mostlikely candidates are Friday April 4th,
Monday April 7th, Tuesday April 8th.
See
http://cwiki.apache.org/confluence/display/WICKET/Wicket+Community+meetups+-+Amsterdam
Maurice
On Fri, Mar 7, 2008 at 8:28 PM, lars vonk [EMAIL PROTECTED] wrote:
Depends on which
perhaps because your textfield is setting a property of the object
loaded by the model, not the object itself.
-igor
On Fri, Mar 7, 2008 at 1:48 PM, rmattler [EMAIL PROTECTED] wrote:
Thanks for the quick reply. But you answer doesn't make sense to me. Why do
loadable models work for a
It is nice to know I'm not the only one struggling with DropDownChoices. I'm
new to Wicket and I'm pretty far with rebuilding an application we are using
internally. Has anybody proposed an alternative or a wrapper to
DropDownChoices?
Vitaly Tsaplin wrote:
The DropDownBox component
I'm passing a ListDataProvider when creating a DataView that shows rows
of comments. Each comment has a name, a date, and a message. I am
creating the ListDataProvider with an ArrayList, which also has been
sorted with a Comparator on the date.
For whatever reason on the final page my comments
paste your code
-igor
On Fri, Mar 7, 2008 at 2:03 PM, Michael Mehrle [EMAIL PROTECTED] wrote:
I'm passing a ListDataProvider when creating a DataView that shows rows
of comments. Each comment has a name, a date, and a message. I am
creating the ListDataProvider with an ArrayList, which
[EMAIL PROTECTED] wrote:
It is nice to know I'm not the only one struggling with
DropDownChoices. I'm new to Wicket and I'm pretty far with
rebuilding an application we are using internally. Has anybody
proposed an alternative or a wrapper to DropDownChoices?
Have you tried something like:
Thanks for trying but I get:
WicketMessage: No get method defined for class: class java.lang.String
expression: state
Kai Mütz wrote:
[EMAIL PROTECTED] wrote:
It is nice to know I'm not the only one struggling with
DropDownChoices. I'm new to Wicket and I'm pretty far with
rebuilding
That is the library that Ryan had a Wicket wrapper for that I tried and
couldn't get working. The onblur may work. I will have to build a test to
see if it is too much for the feel I am looking for. Thanks everybody for
the great ideas!
Nino.Martinez wrote:
hmm what about this one?
[EMAIL PROTECTED] wrote:
Thanks for trying but I get:
WicketMessage: No get method defined for class: class
java.lang.String expression: state
Have you defined a getter/setter for field state in your vendor class?
-
To
Yes
@Column(name = state, length = 2)
public String getState() {
return this.state;
}
public void setState(String state) {
this.state = state;
}
Kai Mütz wrote:
[EMAIL PROTECTED] wrote:
Thanks for trying but I get:
In the populateItem, you will need to do the following:
contextMenuBehavior.applyAttributes(item, popupMenu, new Model( rowId));
Where rowId is the value you are looking for when the action has been
selected (the targetId in the onClick method)
private class MyAction extends
Okay - some needed input first:
- addComments is called inside the constructor of a Panel.
- FooCommentComparator sorts on a java.util.Date field inside of
FooComment
- FooComment has a user, date, and message field
- For some reason the panel shows the comments sorted by the comment's
message
I dunno.
I thought you were talking about mounted urls, whose urls displays are
rendered by a UrlCodingStrategy. If you're using the
QueryStringUrlCodingStrategy, then my guess is that it's relevant.
If you want to know for sure, try applying the patch to your local wicket,
or maybe try adding
Yep. I have that working just as you described below.
Glad I'm doing it correctly.
Thanks
-Original Message-
From: Doug Leeper [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2008 5:43 PM
To: users@wicket.apache.org
Subject: RE: right click popup context menu
In the
Is it possible to get a resource string from a Localizer that hasn't been
added to a Page yet?
My situation is that I have an object called Role, the role can be setup by
the a client and there are also default roles for all clients that are setup
by the application with a resource key attached
Hello,
If I have the following code:
textField.add(new AbstractAutoCompleteBehavior() {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
protected void onRequest(final String input,
The autocomplete component doesn't use the wicket ajax pipeline so
that ajaxrequesttarget methods will not work for request invoked by
the autocomplete behavior.
-Matej
On Sat, Mar 8, 2008 at 4:50 AM, Andrew Berman [EMAIL PROTECTED] wrote:
Hello,
If I have the following code:
Here's a problem that other people may have encountered. Hopefully
there's a Wicket way to solve it.
The scenario...
I have two forms on my Contact Us page. There is a login form at
the top of the page with a submit button. There's also the contact
form at the bottom of the same page,
But in java.lang.String there is no state property.
You added a list of Strings to the ddc. But you have to add your vendor
objects. The display in ddc will be done by ChoiceRenderer.
Cheers
Per
Am Freitag, 7. März 2008 23:34:35 schrieb rmattler:
Yes
@Column(name = state, length = 2)
92 matches
Mail list logo