there are two ways to do it
override the wantOnSelectionChangedNotifications of the user dropdown
to return true and override onSelectionChanged to do what you want,
but this will result in server round trips ( refer the java of
DropDownChoice )
or use an AjaxFormComponentUpdatingBehavior on the
Hi,
I have some code that generates a pdf report file (using jasper reports).
This file is stored somewhere in the project.
What I need to do is be able to provide a link which makes that file
available for download when clicked (downloadLink?). How do i do this using
wicket? and are there any
opps, sorry what i meant to write was:
File pdfFile = new File(test.pdf);
But this doesn't really change much and the problem still remains that the
file is empty (whether txt or pdf).
mbelarbi wrote:
Hi,
I have some code that generates a pdf report file (using jasper reports).
This
The file really ought to reside in another location, but anyway...
I think new File(test.pdf) would actually indicate a file named
test.pdf, at the current working directory of the application server.
Output the file's path with getCanoicalPath/getAbsolutePath (or
something along that line)
Sometime ago this was answered on the list but i cannot find it right
now :-)
Maybe the following snippets will help you (it's wicket 1.2.6):
WebResource export = new WebResource() {
private static final long serialVersionUID = 1L;
@Override
public
thanks Kent lai, a system print for the file's getCanoicalPath seemed to show
that the file path i was passing in was incorrect. Now it's resolved.
Thanks
kent lai wrote:
The file really ought to reside in another location, but anyway...
I think new File(test.pdf) would actually indicate
I'm using a DataView-Table with an AjaxPagingNavigator listing 100 items per
page. Each item has an AjaxLink to a detail view. When paging through the
list the memory usage of the IE is increased by about 500 KB per page.
Without the ajax link it's doing well.
AjaxDebugMode is disabled.
Hi,
I have never used jasper reports, but a quick search shows me that you can
also generate the file as a byte[] in memory:
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperExportManager.html#exportReportToPdf(net.sf.jasperreports.engine.JasperPrint)
Class
Hi,
You have written: This causes problems with session
serialization/deserialization in an OSGI environment. I don't know is
it a related problem, but I have the following situation (of course
app is running in OSGi environment):
I have a page with DataView displaying products list with images.
Hi *,
i would like to test (WicketTester) if my modal error window is displayed. I
tried isVisible, but it's always true.
While debugging i saw that if the window has to be displayed, the
contentpanel has a generatedMarkupId 0.
But this property is not accessible.
So how can i know that a
Indeed - See the Wiki for more info, e.g.
http://cwiki.apache.org/WICKET/dropdownchoice-examples.html
/Gwyn
On 26/11/2007, Dipu Seminlal [EMAIL PROTECTED] wrote:
there are two ways to do it
override the wantOnSelectionChangedNotifications of the user dropdown
to return true and override
Yes I agree, I will later move to providing these reports as streams on the
fly instead of storing them, since there will be many many files generated
so storage could be a problem in the long run.
German Morales-2 wrote:
Hi,
I have never used jasper reports, but a quick search shows me
Frank,
I have passed on a link to this thread (and to your blog) to a people I know
who use or are interested in Seam.
Did you start a thread on the Seam forum about your contribution? Could you
please send me the link (a search for Wicket on the JBoss forums didn't
return what I was looking
Does it happen for IE6 only or also for IE7? Can you create a jira
issue and attach a quickstart?
-Matej
On Nov 26, 2007 12:19 PM, picknick [EMAIL PROTECTED] wrote:
I'm using a DataView-Table with an AjaxPagingNavigator listing 100 items per
page. Each item has an AjaxLink to a detail view.
Hi all,
I have this form component :
public class RegistrationForm extends Form {
private final static long serialVersionUID = 1l;
public RegistrationForm(String id, StudentFolder studentFolder) {
super(id, new CompoundPropertyModel(studentFolder));
Add a feedback panel to your page and notice the validation errors.
Martijn
On Nov 26, 2007 2:49 PM, Gervais [EMAIL PROTECTED] wrote:
Hi all,
I have this form component :
public class RegistrationForm extends Form {
private final static long serialVersionUID = 1l;
Hello,
Is it possible to use TabbedPanel from wicket extensions together with the
wicket auth-roles?
Because TabbedPanel contains AbstractTab (which do not extend Component), I
didn't find a way to set the specific roles for each tab.
Thanks !
--
View this message in context:
Hi All
In my form i have added a required text filed for hold a date. My model
object have a setter..
--
add(new RequiredTextField(dateOfBirth, java.util.Date.class));
--
public void setDateOfBirth(Date date) {
this.date = date;
}
public Date getDateOfBirth() {
Yep, I've seen though before.
It's probably a ClassNotFoundException on deserialization which gets
eaten by ObjectInputStream (there's a bug report at Sun for this). To be
sure you can debug trapping on ClassNotFoundException (caught and
uncaught) when this problem occurs.
However, since
Hello,
We run into the good old this page contains both secure and
non-secure items warning on IE 6 when updating
DojoOrderableListContainer components via Ajax.
We're using Dojo packaged with the wicketstuff-dojo
1.3.0-SNAPSHOT, and I understand that it's version 0.4. So
this bug
Marieke Vandamme schrieb:
Hello,
Is it possible to use TabbedPanel from wicket extensions together with the
wicket auth-roles?
Because TabbedPanel contains AbstractTab (which do not extend Component), I
didn't find a way to set the specific roles for each tab.
Thanks !
Hello,
AbstractTab
Hello,
Thanks for the idea, but I already tried that..
The problem is that the panel is only created when the user clicks on the
according tab, which in my case is too late. I don't want the tab to be
printed if the user is not authorized.
Fridolin Jackstadt wrote:
Marieke Vandamme
Am i doing something wrong here? i couldn't find much docs on testing
besides the javadoc and a page on the wiki...
tester = new WicketTester(new MyApplication());
public void testLogin() throws Exception {
tester.startPage(HomePage.class);
Hi Timo
You're right, the code format is horrible, but I had already had the answer
from Florian into the first post (this post is a duplicate caused by
hotmail...),
so I thought that this post was not considered anymore...
Sorry and thanks for the comment :-)
Regards
Rik
Date: Sat, 24 Nov
see DateField in extensions and in wicket-datetime modules, they take
care of this...
-igor
On Nov 26, 2007 6:16 AM, Gervais [EMAIL PROTECTED] wrote:
Hi All
In my form i have added a required text filed for hold a date. My model
object have a setter..
--
add(new
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote:
I don't want the tab to be
printed if the user is not authorized.
so dont add it to the list of itabs you give the panel... ?
-igor
Fridolin Jackstadt wrote:
Marieke Vandamme schrieb:
Hello,
Is it possible to
Hi,
We've got a problem in our application when using the back button.
The click trail goes something like this:
- User clicks on search documents, which is a BookmarkablePageLink
- User enters a couple of criteria and hits the search button =
setResponsePage(SearchDocument.class, params = encoded
Here's the jira issue. Currently i can't say anything about IE7.
https://issues.apache.org/jira/browse/WICKET-1186
https://issues.apache.org/jira/browse/WICKET-1186
Matej Knopp-2 wrote:
Does it happen for IE6 only or also for IE7? Can you create a jira
issue and attach a quickstart?
I'm beginning a new commercial project with a partner that has good chances
of landing some investment funding in the next year. We've set out using
Wicket, JPA, Glassfish, and Netbeans as our toolbox and platform(s) as it
is what we're experienced in and enjoy building applications with. We're
Hello,
since a few days I'm struggling with a problem I didn't find any solution yet.
I have two pages containing some Panels and a BaseTree (I'm using my
own node panel) each. setLinkType(BaseTree.LinkType.REGULAR) is used.
What I want is that the tree is updated every time the page is updated
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote:
Hello,
Thanks for the idea, but I already tried that..
The problem is that the panel is only created when the user clicks on the
according tab, which in my case is too late. I don't want the tab to be
printed if the user is
Dear Friends,
I have a situation where in which I have a FormComponentPanel. This
FormComponentPanel is placed on Form and the Form in turn placed on a Page.
Now when I instantiate the page I set a model on the page using setModel(new
CompoundPropertyModel(myModel)). Further I DO NOT pass
maybe you could team up with the webical team (webical.org).
Gerolf
On Nov 26, 2007 5:25 PM, V. Jenks [EMAIL PROTECTED] wrote:
I'm beginning a new commercial project with a partner that has good
chances
of landing some investment funding in the next year. We've set out using
Wicket,
i'm starting an IT consulting business which will (of course) include lots of
wicket work. i know there are a number of success stories out there and a
few have been sent to mailing lists or published on our wiki or even in
places like eweek magazine... now, it may be that we've already
Hey everyone,
I was wondering if there is a way to specify ModalWindow's initial
positioning. I have left the cookie name as null, so the postion is not
remembered, but I would like to be able to set a nice default. I have
tried postion:absolute, and setting TOP and LEFt, but it always seems
somehow proxy is getting an instance of a class which isn't build for :
at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(
LazyInitProxyFactory.java:402)
at org.apache.wicket.proxy.$Proxy76.searchDocuments(Unknown Source)
at
Hi, i'm a new wicket user, and i'm trying to execute a helloworld exemple
included in a JSP page
My problem is that wicket become a javax.servlet.Filter and not a Servlet in
the 1.3-rc1 version :(
to explain my problem here is some code:
The file web.xml:
Cool. If you go, stop by and say hello to Jonas Bonér. He's giving a
presentation on Terracotta.
I'm thinking that sometime in the first or second week of December
looks pretty good.
--Orion
On Nov 26, 2007, at 1:36 PM, David Sean Taylor wrote:
Thanks.
I am going to be in Amsterdam on
Hi,
there is currently no way to alter the position. It's always centered
first time it shows.
-Matej
On Nov 26, 2007 9:12 PM, Clay Lehman [EMAIL PROTECTED] wrote:
Hey everyone,
I was wondering if there is a way to specify ModalWindow's initial
positioning. I have left the cookie name as
It's hard to tell without any code. Basically, if you have proper
listeners fired in your model the tree should update itself.
Alternatively, you can try calling invalidateAll() in your page
onBeforeRender() (before calling super.onBeforeRender).
Can you post a quickstart?
-Matej
On Nov 26,
All the IDataProvider implementations I have seen use a single POJO. What
about an example with multiple POJOs?
For a single POJO I normally have a DataProvider object that gets data from
my DAO object. For multiple POJOs would it be best to have a DataProvider
object that gets data from a
On Mon, 26 Nov 2007, Jason Anderson wrote:
tester.startPage(HomePage.class);
I'm not sure if it changes anything here, but we've
typically done tester.startPage(new ITestPageSource()...
instead.
from a quick peek thru the code it looks like the request cycle is
detaching the
On Mon, 26 Nov 2007, Franklin Antony wrote:
I have a situation where in which I have a FormComponentPanel. This
FormComponentPanel is placed on Form and the Form in turn placed on a Page.
Now when I instantiate the page I set a model on the page using setModel(new
On Mon, 26 Nov 2007, Seif wrote:
Hi, i'm a new wicket user, and i'm trying to execute a helloworld exemple
included in a JSP page
You might be better off first trying stuff out in a simpler
setting, without the JSP.
My problem is that wicket become a javax.servlet.Filter and not a Servlet in
the form is not ajax, its pretty much a standard form with just login
and password fields and an onsubmit callback to send the page back to
the originally requested url or homepage much like you would find in
the login page included with the wicket-auth-roles classes
i'm not sure that storing the
When im working with datefield,when i do not put a date to a
textfield/datefield input from a datepicker it returns the current
date/time.Now my problem is,I want it to return NULL when there is no or
blank input from a textfield.Thanks a lot
--
View this message in context:
On Mon, 26 Nov 2007, Jason Anderson wrote:
and the code for MockHttpServletResponse:
public void sendRedirect(String location) throws IOException
{
// If the location starts with ../
if (location.startsWith(../))
{
i made a quickstart and attached it to the following issue
https://issues.apache.org/jira/browse/WICKET-1187
thanks for the help
On Nov 26, 2007 8:57 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote:
On Mon, 26 Nov 2007, Jason Anderson wrote:
and the code for MockHttpServletResponse:
On Nov 26, 2007 8:55 PM, freak182 [EMAIL PROTECTED] wrote:
When im working with datefield,when i do not put a date to a
textfield/datefield input from a datepicker it returns the current
date/time.Now my problem is,I want it to return NULL when there is no or
blank input from a
That was my last solution, because i hoped it could be integrated with the
auth-roles so i didn't have to check the role myself. Because if i'm right,
before adding the tab to the list, i check with the role from the user's
session?
igor.vaynberg wrote:
On Nov 26, 2007 6:56 AM, Marieke
On Nov 26, 2007 10:38 PM, Marieke Vandamme [EMAIL PROTECTED] wrote:
That was my last solution, because i hoped it could be integrated with the
auth-roles so i didn't have to check the role myself. Because if i'm right,
before adding the tab to the list, i check with the role from the user's
That won't compile.. I guess because AbstractTab doesn't extends Component..
Eelco Hillenius wrote:
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote:
Hello,
Thanks for the idea, but I already tried that..
The problem is that the panel is only created when the user
I tried that, but it won't compile. Maybe because AbstractTab doesn't extends
Component?
I can't add the @AuthorizeAction to the panel, because the panel is only
created when the specific tab is clicked.
Eelco Hillenius wrote:
On Nov 26, 2007 10:38 PM, Marieke Vandamme [EMAIL PROTECTED]
Eelco Hillenius wrote:
On Nov 13, 2007 3:31 PM, yadubi [EMAIL PROTECTED] wrote:
I have an application which is modeled on ajax SimpleTreePage example.
Navigation is handled by overriding
the onNodeLinkClicked of the LinkTree class.
There are tree levels of nesting in the menu, the second
Hi Dipu,
Could you please tell me what to write in the method
onSelecitionChanged(). It would be easier for me to understand if you
provide the code example. I studied the link
http://cwiki.apache.org/WICKET/dropdownchoice-examples.html but could not
understand it.
thanks
Dipu Seminlal wrote:
I am not really understanding your question? we are not creating any json
object in browser. I believe that 's what we want to do in the normal form
submit create the json object.
This is just a simple example to demonstrate the Ajax round trip. Here
bascially you get the updated data back.
I'm trying to upgrade an application from 1.2.6 to 1.3.0-rc1. I've read the
documentation, upgrade guide and mailing list archives. However, I don't
seem to grasp how to upgrade the following class to 1.3.0:
import org.apache.wicket.Component;
import
57 matches
Mail list logo