Many people expect that is the component is not visible also the
models and the data ias not called or touched. Because there state
cant be resolved correctly.
Als security is depending on it, it can never be that some thing where
security says it is not visible/cant render that is still renders
da
I wouldn't spend too much time worrying about the possibility of a mistake
that big at this point! There are 20 programmers on this project at this
point and almost all of them are architects with many years of experience.
Wicket is being used by many thousands of users on hundreds if not thousand
Hi,
I have a javascript file inside a osgi bundle. ResourceReference is used to
refer to that file.
When running the application, the following exception occurs when the
resourceReference's renderhead method is run.
java.lang.NullPointerException
at org.apache.wicket.SharedResources.resour
Ahh... I was getting worried that it synchronous per page-resource (as
opposed to per client), the last person could be waiting for a while!
So essentially it's single threaded per client (or session) which is pretty
much par for the course, and not a problem that I can see :)
- Brill Pappin
---
On Fri, May 16, 2008 at 7:50 PM, Brill Pappin <[EMAIL PROTECTED]> wrote:
> Does that mean that under heavy load, hitting the index page for instance, I
> can expect clients to block as each request is processed?
Yes, requests to pages/ components that belong to the same pagemap in
a session are ha
Does that mean that under heavy load, hitting the index page for instance, I
can expect clients to block as each request is processed?
Have anyone tested this on a site with heavy traffic?
- Brill
-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16,
by the way, don't forget that behaviors are reusable components too. there
can be advantages to encapsulating your hiding/showing logic in a behavior.
this can actually lead to less of this manual manipulation you're talking
about than the solution you seem to want. and because the logic is
encaps
On Fri, 16 May 2008 21:15:34 +0300, Martin Makundi wrote:
> The benefit in digest is that the user (or another user) cannot
> fabricate it... so easily.
Just send a large random number that is unique on the server. Keep a copy
and compare with what the recipient sends back. Simple - no need for
Hi,
I have 3 nested forms inside main wrapper form. The idea is, each panels
have their own forms, just in case one wanted to use the panels
individually. And when used inside 1 bigger scope page individual forms will
be nested inside the bigger scoped (main form).
I have a submit button on the
Of course there are many good counterarguments to this. There are already a
lot of methods in Component, you can do this without any changes and it may
be confusing to have a concept of hidden on top of the existing visible
concept.
Jonathan Locke wrote:
>
>
> Again, you probably shouldn't be
Again, you probably shouldn't be setting state like this, and you can create
a generic hiding behavior for now that should solve most of your problems.
All that is at stake here is really just convenience, not the programming
model.
On the other hand, this is a very common problem so it might be
On Fri, May 16, 2008 at 7:34 PM, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
>> If you wanted to just a cosmetic, DHTM/CSS "display: none" type of
>> visibility, is there something you can do other than
>> making a new AttributeModifier (with a custom Visibility Model kind of
>> thing) or a SimplleA
Are you thinking about some sort of file upload? It's not at all
clear what you're trying to accomplish.
On Fri, May 16, 2008 at 5:30 PM, James Carman
<[EMAIL PROTECTED]> wrote:
> A directory where? On the client machine? What will you do with that
> directory when you've selected it?
>
> On Fr
A directory where? On the client machine? What will you do with that
directory when you've selected it?
On Fri, May 16, 2008 at 6:55 PM, Oncle Zebulon <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
> I am a newbie with wicket and i would like to know if there is a way to
> select a directory in a
> If you wanted to just a cosmetic, DHTM/CSS "display: none" type of
> visibility, is there something you can do other than
> making a new AttributeModifier (with a custom Visibility Model kind of
> thing) or a SimplleAttributeModifier with a CSS
> "display:none" String there?
Well, if the compone
You should use isVisible when possible. The notion of component's visibility
has to do with whether the component renderers or not. So yes, the list will
be reconstructed from scratch. If you're doing something Ajaxy, this might
not be what you want.
I personally wish that the Ajax implementation
Hi everybody,
I am a newbie with wicket and i would like to know if there is a way to
select a directory in a textfield ? I know that with the input tag
(type=file), it's not possible, but maybe with wicket...?
any ideas ?
--
View this message in context:
http://www.nabble.com/Select-a-director
If I have a component with a nested ListView, and I make the parent
component go away for a bit with setVisible, the List will be
reconstructed from scratch?
Is the understanding that for Wicket "Invisible" means "the component
objects (Labels, etc) have Gone Away"?
What are the advantages of tha
there are basically two things that you need no matter what web
framework you are integrating with:
1) a way to lookup your dao singleton
you can do this with servletcontextlistener, a lazy init static lookup
on the dao itself, keep it in some other singleton like the wicket
application subclass
Yeah, that's the easy fix I mentioned, and it indeed fixes the problem.
jk
On Fri, May 16, 2008 at 01:43:07PM -0400, Ryan Gravener wrote:
> You can place
> getMarkupSettings().setStripWicketTags(true); into your Application.init().
> I believe these are automatically stripped when you are in depl
There doesn't seem to be one recommended way to inject/use JPA-based
utility archives in Wicket. It looks as though most of it is based
around Spring, which is fine, yet adds another app layer.
I've generated a tiny Derby db using the JPA facilities provided by
MyEclipse.
The sources can
Hello,
yes you can create an activation column that
stores a hash value that is created by UUID or MD5.
Then send this data in an activation url to the user email.
The url can be mounted (nice url) to a Page, which gets
the PageParameters. Then you can validate the hash value.
MYoung wrote:
>
The page does a pretty good job explaining how the .properties work.
If you have global properties, you want them to go in your
MyApplication.properties file which sits right along MyApplication.java.
For cases where you only need specific properties for a component, place the
properties file with
That works. Thanks Matej!
Matej Knopp-2 wrote:
>
> setVisible is possible, but you have to call
> setOutputMarkupPlaceholderTag(true) on it.
>
> -Matej
>
> On Fri, May 16, 2008 at 6:44 PM, nitinkc <[EMAIL PROTECTED]> wrote:
>>
>> Currently the DataGrid outputs a datatable with column headers
Awesome, that works! I forgot that you can always get the request
from that ThreadLocal. Thanks a ton Gerolf, this doesn't seem too
hacky.
--
Sam Barnum
360 Works
On May 15, 2008, at 10:58 AM, Gerolf Seitz wrote:
On Thu, May 15, 2008 at 6:25 PM, Sam Barnum <[EMAIL PROTECTED]> wrote:
*
Hello,
I am using Wicket 1.3.3 with SWARM 1.3.0.
I have pages with a common layout (secure and not secure).
I can login and see the secure pages. Now I want to achieve
to be automaticaly redirected to "user home" when a user is
accessing the domain and logged in before...
I think I have to add a
The benefit in digest is that the user (or another user) cannot
fabricate it... so easily.
**
Martin
2008/5/16 Matthew Young <[EMAIL PROTECTED]>:
> What is the advantage of using message digest over uuid? Isn't message
> digest not guaranteed to be unique where as UUID is always unique?
>
> On T
What is the advantage of using message digest over uuid? Isn't message
digest not guaranteed to be unique where as UUID is always unique?
On Thu, May 15, 2008 at 7:39 PM, Martin Makundi <
[EMAIL PROTECTED]> wrote:
> You could also just use a md5 hashkey with content specific to the account:
>
>
>You may also want to have a enum/int to represent what kind of token it is.
New user, new email, forgot password, etc..
To have a field in the user-account table to store this value? Or do you
mean to send this as part of the activation URL?
And what is the purpose to have this?
On Thu, May 15
You can place
getMarkupSettings().setStripWicketTags(true); into your Application.init().
I believe these are automatically stripped when you are in deployment mode.
On Fri, May 16, 2008 at 1:33 PM, John Krasnay <[EMAIL PROTECTED]> wrote:
> I've just noticed a specific problem with Wicket tags in
I've just noticed a specific problem with Wicket tags interfering with
IE6. I have a page that uses the jqModal plugin for jQuery to display a
popup div. It works fine on FF, but on IE6 the overlay (the
semi-transparent div that blocks out the rest of the page while the
popup is active) pushes the
Hi,
I want to know what are the different approaches that I can take in Wicket
to solve this simple problem.
Consider there are two radio buttons and they both have corresponding text
fields in front of them.
I want to enable /disable the other text fields when the radio button is
selected.
--
Override the isVisible method of your component for which you do not want to
render.
@Override
boolean isVisible() {
return dp.size()!=0;
}
On Fri, May 16, 2008 at 12:44 PM, nitinkc <[EMAIL PROTECTED]> wrote:
>
> Currently the DataGrid outputs a datatable with column headers and a
> messa
setVisible is possible, but you have to call
setOutputMarkupPlaceholderTag(true) on it.
-Matej
On Fri, May 16, 2008 at 6:44 PM, nitinkc <[EMAIL PROTECTED]> wrote:
>
> Currently the DataGrid outputs a datatable with column headers and a message
> 'No Records Found' if the datalist is empty. Does a
Currently the DataGrid outputs a datatable with column headers and a message
'No Records Found' if the datalist is empty. Does anyone know if it is
possible to render the datatable only if the list is not empty? Setting the
visibility to 'false' is not an option as the markup is not rendered in th
Hi, are there zip files of each example available at wicketstuff? Some
examples have many files, including configuration files (.properties, .xml)
It would be helpful to see how all these file should be organized ideally
(directory hierarchy).
Sorry if I've missed it.
--
View this message in cont
i don't know if we're talking about the same thing :-).
what i'm talking about is to serve static files that reside outside the
webapp context. e.g. after a fileupload by a user using a webform the file
gets saved to somewhere on the harddisk where it's not gonna be replaced on
redeploy.
what i
Hi, I am very interested in form validation as shown in the FormInput example
at wicketstuff (http://wicketstuff.org/wicket13/forminput/)
I also came upon this page
(http://cwiki.apache.org/WICKET/form-validation-messages.html) in the wicket
reference website.
- This last web page reads "Some kno
It is valid to have a value on a checbox/radio
http://www.w3.org/TR/html401/interact/forms.html#h-17.4
I agree that the name of the interface needs to be addressed. The
concept is what I was attempting to convey.
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Frid
afaik value is not used in checkbox or radio, not even sure that its
valid to have it.
iidentfierrenderer is a bad name since the id isnt actually rendered...
-igor
On Fri, May 16, 2008 at 9:07 AM, Hoover, William <[EMAIL PROTECTED]> wrote:
> It could be left as is and use the display value as
It could be left as is and use the display value as expected (i.e.
).
Another option would be to have an identifier renderer:
public interface IChoiceRenderer extends IIdentifierRenderer
{
Object getDisplayValue(Object object);
}
public interface IIdentifierRenderer extends IClusterable
if you use an ldm in choice/choicegroup then you should have instance
equality available since you will probably load the objects from the
same place, so during request processing they are consistent.
as far as choicerenderer, i dont think thats a good idea, what do you
do with getdisplayvalue()?
when the components are first created there are no request parameters,
they load their model object and initialize themselves to that.
-igor
On Fri, May 16, 2008 at 8:25 AM, Till Wenzinger <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> In my application, the check boxes are selected by default. Accord
I agree, but there are some cases where it will not be possible to
implement equals/hashcode on the model object.
I would be more of a proponent to have as much consistency across
components as possible- which would mean that ICoiceRenderer would be
available, but not enforced, in any component th
Hi,
In my application, the check boxes are selected by default. According to my
understanding, this loss of default settings is unexpected.
I mentioned the following Check code:
if (group.hasRawInput())
{
final String[] input = group.getInputAsAr
they are in the same package
-igor
On Fri, May 16, 2008 at 8:05 AM, Till Wenzinger <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> According to the source code of Wicket 1.3.3,
> Check#onComponentTag(ComponentTag) performs the following:
>
>
>
>CheckGroup group = (CheckGroup)findParent(Chec
you need to set proper caching headers and have your servlet implement
an efficient HEAD support.
-igor
On Fri, May 16, 2008 at 7:43 AM, Mathias P.W Nilsson
<[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have placed all my images in a folder outside my web application container
> to preserve the image
then use loadable detachable models that will ensure instance
equality. we can let the group take a comparator, but its yet another
complication. i see it as a reasonable enough requirement that objects
properly implement equals and hashcode.
-igor
On Fri, May 16, 2008 at 7:58 AM, Hoover, William
i think that is intended. going back is like cancelling the current
screen. if that was changed thenyou would have to have a valid current
screen before you could go back, which is not something a user would
expect imho.
-igor
On Fri, May 16, 2008 at 7:47 AM, Till Wenzinger <[EMAIL PROTECTED]> w
Hi,
According to the source code of Wicket 1.3.3,
Check#onComponentTag(ComponentTag) performs the following:
CheckGroup group = (CheckGroup)findParent(CheckGroup.class);
...
if (group.wantOnSelectionChangedNotifications())
{
...
}
The CheckGroup met
see AjaxFormComponentUpdatingBehavior.
2008/5/16 Oliver Mahnke <[EMAIL PROTECTED]>:
> Hi, i am new to wicket and have a question:
>
> is it possible to access the input-value of a textfield embedded in a form
> via ajax before the form is submitted?
>
> I have a second textfield which should disp
Really for now I do this for url
FileResourceServlet?fileResourceId=101
Else I need to do this.
FileResourceServlet?path=very...veryvery.long...pathforthefile
How do you know wich file to fetch?
--
View this message in context:
http://www.nabble.com/Image-from-resource
Hi, i am new to wicket and have a question:
is it possible to access the input-value of a textfield embedded in a
form via ajax before the form is submitted?
I have a second textfield which should display the input-value of the
first when the focus leaves tf one.
Therefore i connected the m
yes, that will work in my example, but what if MyObjectOption is not
part of my namespace?
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 10:14 AM
To: users@wicket.apache.org
Subject: Re: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice
why
why do you make a request to the database?
in our app, we use a servletfilter to get the resources from harddisk ...
without hitting the wicket filter
Mathias P.W Nilsson wrote:
>
> Hi!
>
> I have placed all my images in a folder outside my web application
> container to preserve the images
Hi,
In the second step of a Wizard, I am loosing selections of a CheckGroup if I
am going back to the first step using the Previous Button and return using
the Next Button. Consider the following code:
public class CheckBug extends WebPage
{
public CheckBug() {
final Wizard wizard =
Hi!
I have placed all my images in a folder outside my web application container
to preserve the images when I deploy.
My problem now is that to get an image I go thru my FileResourceServlet and
writes the image.
In every request to my FileResourceServlet I make a request to the database
to get
Unfortunately that's not how it works now. So if you have ajax
application and don't want to get weird problems on back button the
only way now is to send the no-store header.
-Matej
On Fri, May 16, 2008 at 3:15 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> i think that is more a problem of th
why dont you just implement equals/hashcode on MyObjectOption???
-igor
On Fri, May 16, 2008 at 5:14 AM, Hoover, William <[EMAIL PROTECTED]> wrote:
> Here is an example of what I'm referring to:
>
> class MyObject {
>private Long id;
>private MyObjectOption myObjectOption;
>
>
I was unclear with the class.
I use PagingNavigation with my dataProvider but it's still to slow. Must be
something else.
--
View this message in context:
http://www.nabble.com/PagingNavigator-faster-paging-tp17272873p17274937.html
Sent from the Wicket - User mailing list archive at Nabble.com
Yes, I use the page navigator.
--
View this message in context:
http://www.nabble.com/PagingNavigator-faster-paging-tp17272873p17274891.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe
You can use PagingNavigation to page trough everything in the DB:
http://www.wicketstuff.org/wicket13/repeater/;jsessionid=1A8942B5B6C08E39348C4E8923DB32CB?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.PagingPage
That way you don't get everything from the database all the time.
G
Thanks!
I used this but I don't think it is any faster
class ItemProvider implements IDataProvider{
private static final long serialVersionUID = 1L;
public Iterator iterator(int first, int count) {
return getItemDao().getItems(getFilters(),
i think that is more a problem of the browser and i think that will be fixed
hopefully
the browser should always go to the latest dom it came from, not the file in
the cache..
johan
On Fri, May 16, 2008 at 2:18 PM, gumnaam23 <[EMAIL PROTECTED]> wrote:
>
> I guess you are right. But in an Ajax w
I guess you are right. But in an Ajax world, there really is no other way
around the problem, is there ?
Johan Compagner wrote:
>
> no i am against no-store as default.
>
> back button should be quick. If the line is a bit slow then users get very
> very very (i would) annoyed
> if the back b
Here is an example of what I'm referring to:
class MyObject {
private Long id;
private MyObjectOption myObjectOption;
public MyObject(final Long id){
setId(id);
...
}
...
}
class MyObjectOption {
private Long id;
Don't use the PageableListView, but use DataView with an IDataProvider.
Martijn
On 5/16/08, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I'm using a Pageable List view to list my items. The problem is that it is
> to slow when there are many items
>
> In the database I have 2000
Ì am not sure about Pagenavigator (is this an existing Wicket class? I can't
find it).
We have implemented what you describe using DataView and by implementing the
IDataProvider to do the call to Hibernate with the given first and count
passed in the method *Iterator iterator(int first, int count)
Hi!
I'm using a Pageable List view to list my items. The problem is that it is
to slow when there are many items
In the database I have 2000 items and when I hit all of them the rendering
is slow. This is because of translating, calculating and so on. To solve
this I would like to do something l
Thanks Jeremy that worked great
--
View this message in context:
http://www.nabble.com/chaning-background-tp17268044p17272824.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAI
You do not need a hidden form parameter, wicket automatically resolves
the form input with the component on the server side.
On submit the model of the component is loaded and set with the new
input. If you use a model such as LoadableDetachableModel, that knows
how to get the latest object from th
I just started learning Wicket. I have some experience with JSP+Spring.
In Spring, based on a hidden id parameter from a form, I can use
formBackingObject method to load the object. Spring combines a user's
input in the form with the loaded object to form the latest version of this
object and th
no i am against no-store as default.
back button should be quick. If the line is a bit slow then users get very
very very (i would) annoyed
if the back button takes a while because it connects back to the server.
A back button shouldnt do that. I know we in wicket wants it to do it but
from an en
Mount your page using HybridUrlCodingStrategy.
-Matej
On Fri, May 16, 2008 at 11:01 AM, gumnaam23 <[EMAIL PROTECTED]> wrote:
>
> Adding "no-store" to the "Cache-Control" header did the trick.
>
> According to Page.setHeaders() javadoc , Wicket already adds cache related
> headers
> response.setHe
Adding "no-store" to the "Cache-Control" header did the trick.
According to Page.setHeaders() javadoc , Wicket already adds cache related
headers
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache, max-age=0, must-revalidate")
Is there any particular reason w
http://www.google.com/search?q=remove+wicket+attribute+markup
On 5/16/08, Milan Křápek <[EMAIL PROTECTED]> wrote:
> Yeah, thanks a lot that was the thing I was searching for. But there is one
> more problem.
> When I do that this way, I get on the output something like:
>
>
>
> Is there any w
The full stack trace would be helpful
Martijn
On 5/16/08, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote:
>
> I have this page class. When submitting the form via the AjaxButton I get a
> null pointer exception.
> It passes the instanceof in onSubmit but all data is null. I dont get this.
> In
Hi guys,
Within a certain page that was invoked with PageParameters, I tried
retrieving the absolute path to the URL for another page. However the
getRequestCycle().urlFor(Class clazz, PageParameters pageParameters) method
returned to me something like "../../verify/code/1234/agent/5678" with cod
I use getModel() it's an error. I have tried with getModelObject as well.
--
View this message in context:
http://www.nabble.com/Null-pointer-I-don%27t-understand-tp17269836p17269846.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
I have this page class. When submitting the form via the AjaxButton I get a
null pointer exception.
It passes the instanceof in onSubmit but all data is null. I dont get this.
In the LoadableDetachable model I do new CartItem and when displaying the
page the first time I see the drop down choice c
Yeah, thanks a lot that was the thing I was searching for. But there is one
more problem.
When I do that this way, I get on the output something like:
Is there any way to remove wicket:id attribute from the output code?
-
To
Has this fix been confirmed to help? If so, I'm +1 for releasing 1.3.4
Martijn
On 5/16/08, Johan Compagner <[EMAIL PROTECTED]> wrote:
> Or get the snapshot build from or wicketstuff maven repo
>
>
> On 5/16/08, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > Chris,
> >
> > If you read the thre
Like i said: details i am blissfully unaware of :)
Thanks for clearing that up Johan.
Maurice
On Fri, May 16, 2008 at 8:53 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> It is not sync around session, for one thing the wicket Sessio object
> is not thread safe.. Same for shared resources those
83 matches
Mail list logo