Hi,
after spending a hard time debugging i found this problem:
i have to pages:
FirstPage.class
SecondPage.class
on FirstPage.class i create a new conversation with "conversation.begin();"
and on FirstPage.class i have a link:
*setResponsePage(SecondPage.class);*
this link results in a new tra
Hi again,
finally i found the last problem bei incident:
I had the beans.xml under WEB-INF and WEB-INF/META-INF as described in the
docs and user forums. But actually it turned out that i had to put it under
classes/META-INF or whatever the class folder is named.
But nevertheless your hints were
Hello François,
thanks for your reply.
yes that are exactly the dependencies that i use.
I found out, that api changed between 1.5 and 1.6..
I checked out wicket examples 1.6 from wicket homepage and now it compiles.
But still I get:
WELD-001408 Unsatisfied dependencies for type [ApplicationCo
Hi Martin,
thanks for your answer!
With the dependencies from your link i now can see log entries of weld. So
now it seems to initialize correctly.
But i have to run it with wicket version 1.5.10 from the examples page?
When i run the examples with wicket 6.11, i get the compile error that
metho
Hello François,
thanks for your reply!
I double checked this.
I have weld-servlet.jar in my classpath. According to the documentation this
is the "ueber"-jar that contains all classes of other jar files. I belive so
because otherwise i get NoClassDef-Errors.
i changed my classpath and removed wic
Hi heapifyman,
thanks for your reply. Yes i read it all. But the blog is from 2011 and is
based on wicket 1.5. I downloaded the libs with maven, but it didn't work
with wicket 6.11. I wanted to use the latest wicket for the new project.
I also tried without seam-wicket in the classpath, but it al
Hi,
after fighting for several days with integrating cdi with wicket (i am
interseted in this conversation scope thing). I ended up with the following
stack trace:
java.lang.IllegalStateException: Context is already active
at
org.jboss.weld.context.AbstractConversationContext.activate(Abs
Now i tried to use multi window support feature of wicket. I think this would
be most elegant solution.
In every page i do:
super(ESSession.get().createAutoPageMap());
And in the application i set:
getPageSettings().setAutomaticMultiWindowSupport(true);
But still the objects are getting detached
Hi,
i have a Wicket Page that opens a modal dialog via javascript. The content
of the modal dialog is again a wicket page that i forward to. The page of
the modal dialog just renders a message and can be closed via javascript.
The url of the target page is calculated as follows:
String url = Requ
found a solution.
Here is a class which can be used for every long running interactions for
which you have an AjaxRequestTarget available.
You can use it instead of AjaxLazyLoadPanel, when creating a new instance of
your class is inappropriate.
I used the concept of callback script in AjaxLazyLoadP
Hi,
i'm using a Table inside an AjaxLazyLoadPanel.
The table should repaint lazy (with busy icon) when i call:
target.addComponent(AjaxLazyLoadPanel.this);
is this possible somehow?
i've read a post that i would have to replace the od AjaxLazyLoadPanel with
a new instance, but this would tota
Thanks for your reply,
there is only one method in class DataTable, but it is not called. Maybe
it's because i work with wicket 1.4.7.
protected Item newRowItem(final String id, int index, final IModel
model)
{
return new Item(id, index, model);
}
--
View this message in context:
http
Thanks for the link!
I think i will give this one a try:
https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Detach-Model-Objects-when-user-leaves-page-tp4649977p4649990.html
Sent from the Users forum mail
Hi Thomas,
thanks for your reply. Data is not that much, but i think it's no good
practice to have data in memory that is not used any more. So i'd like to
have a general solution to this.
Your right, the user could leave the page by any means. But for me it would
be enough to discard the data w
Hi,
i have a list view with content from a "Repository" that is input to a
wicket DataProvider with ModelObject.
I get the content of the repository from a webservice.
I don't want to load the data from the webservice after each request, but
the model gets detached after each request and accordi
Thanks for your reply Martin!
After i declared the commons FileCleaner interface in my web.xml the file
was removed after my session timed out. Obviously i was just to impatient.
It also went through the breakpoint in the reaper thread.
I thin this functionality is enough for my needs.
Thank you
Hi,
I'm using the FileUpload Component. The component creates temporary files
"uploadtmp".
I set some breakpoints to see what happens.
In DiskFileItem i can see that the File is added to the FileCleaner:
FileCleaner.track(tempFile, this);
but the File never gets removed from Disk.
I also a
Hi,
is there a component in wicket which acts like a datepicker but works for
any content? I mean just a box where you can put your custom panels in.
I need an alernative for a DropDown Box because if have about 400 entries.
so i think of a little popup box with paging and filtering elements. I
Thanks Martin for your reply!
So what i understand is:
using:
*@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor()
{
protected IRequestCodingStrategy newRequestCodingStrategy()
{
r
Hi,
i want to encrypt my urls except the bookmarkable ones.
my bookmarkable pages are mounted in the contructor of my Application class.
In my Application class i have this code (copied from wicket wiki page):
@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
Hi Martin,
So there is no "wicket way" at the moment.
Thank you for your answer!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Delete-temporary-files-after-end-of-a-session-tp4438040p4438463.html
Sent from the Users forum mailing list archive at Nabble.com.
-
I'm using FileUpload to upload several files to the server in
"javax.servlet.context.tempdir" or "java.io.tempdir" (i don't want to store
them in the session because of session size) in order to send them via Email
later in the process. So it's some sort of contactor application.
My problem is th
After working successfully with wicket for some time, I'm now trying ot set
up regression tests with fitnesse and the help of WicketTester functionality
or in combination with selenium if functionality of WicketTester does not
fulfill my needs (probably i won't do it with selenium as i already trie
Hello Martin,
thanks for your reply. I solved it with the query parameters. Introducing
AjaxLink would would have been propably to much rework as the paging
component is already somewhat complex and i tried to reuse as much as
possible of the PagingNavigator of wicket-extensions. Maybe next time i
I have created a custom paging component with the help of
"org.apache.wicket.markup.html.navigation.paging.PagingNavigation".
In my PagingNavigator i have paging -links on top and at the bottom of the
DataView.
Now, when the user clicks on a link, i want to recreate the scroll-position
so that th
Hi,
i think have read (hopefully) all the posts about PageExpiredExceptions
(Serializable etc.).
I have a DropDownChoice, that updates a List of Links via Ajax (please see
code below).
After updating the List of Links or clicking on one of the links the *second
time* in IE8 i receive a different
In our application (portal) we have a modal dialog that we have to use. In
this modal dialog we put a page. Because the portal consists of iframes, we
have to use relative urls in the modal dialog. For example instead of:
?wicket:interface=:4:border:_body:dialogContainer:contentPanels:infoTextCont
Problem is solved now:
i extract the application-relative-path with:
String path = Strings.stripJSessionId(request.getRequestURI());
the trick is to overwrite method "onComponentTag(ComponentTag tag)" of class
ResourceLink and prepend the application -relative path so i end up with
e.g.:
/myba
One step further. My original assumption was wrong. It is a problem with
iframes and the configuration of our firewall. But the situation hasn't
improved.
The url of the link is:
?wicket:interface=:85:border:_body:dialogContainer:contentPanels:infoTextContentPanel:externalLinks:0:externalLink::IR
Could also be that it is a problem with iframes, because the Wicket page (in
the modal dialog, which is a div) gets opened in the top iframe with
top.showForm(...).
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/custom-non-wicket-modal-dialog-Problem-with-urls-tp372
Hi,
thank you very much for your answer. It's correct till number 3.
The link in the modal dialog has to be a resourcelink, which loads a pdf
document from the server. I cannot use an external link because there is a
firewall between user and document server (therefore i have to open an
http-conn
Hello everyone,
in our project i have to use our own modal dialog (application is included
in a portal). I have to open the dialog with the help of a javascript
function which is wrapped in a Behaviour. What i am doing now:
- in the constructor of my response page i call the javascript function
Solved the problem. My assumption about the RequestListenerInterface was
wrong. What i am doing now:
In my page i prevent Browser Caching:
protected void configureResponse() {
super.configureResponse();
WebResponse response = getWebRequestCycle().getWebResponse();
I wrote a custom PagingNavigation which renders page links in the form:
[1-5...11-15 *16-20* 21-25...196-200]. The page size is adjustable by a
DropDownChoice.
Everything works fine until i hit the back-button and then click on one of
the links (e.g. 11-15). What happens then is that in class
"Re
34 matches
Mail list logo