Dont try to do that in a constructor of a page, way better is throwing
an exception
On 10/12/08, Uwe Schäfer <[EMAIL PROTECTED]> wrote:
> Zach Cox schrieb:
>> I need the browser to actually redirect the user to http://othersite.com
>> if
>> they go to http://mysite.com/something, regardless of if
Http session is created, because there are stateful components on that page.
URL of that page is bookmarkable, but the page itself is not stateless
(there is ajax Gmap2 component).
why is session created on the first request? If that page was
stateless there would be no session created...
-Igor
Hi Guys
The store are open again, now with permission from Apache. And yes the
BIB are back:) Please say if there are missing some products or something..
Knock yourself out:
http://www.cafepress.com/apachewicket
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.j
I'm using the wicket distribution for java 1.4 on a Tomcat 4.1.37,
my encoding to ISO-8859-1 is working fine until I submit a form.
The text 'æbleø' is presented fine until I submit, afterwards the encoding
for the entire document is lost and the text becomes 'æbleÃ',
in a BasePage.java that al
Hi!
I have problems with using an AutoCompleteText field.
Loading the choice Objects works fine, but when I select an entry the
ModelObject (using a CompoundPropertyModel) of the Form is not updated.
Calling setModelObject() doesn't seem to have any effect.
Using a DropDownChoice the same way wo
You can search the archives for the answer to this one. Essentially
the model object for autocomplete is just a string.
On 10/13/08, kerim bey <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have problems with using an AutoCompleteText field.
> Loading the choice Objects works fine, but when I select an e
Deleting a file right after a first download also has its problems,
My HP network printer/scanner does that, i can scan to an image, but
firefox displayes then that image and what ever i do then to save it
to disk, i get nothing because FF seems to want to get it again for
saving bu hp doesnt serve
You shouldnt set the response like that i think. Please use the
request setting default encoding. So that wicket also knows what you
are using when the form comes back in (form submit)
Why use that iso encoding, please, all the people of this world, start
using only utf8 everywhere and drop all th
or you can use this one-
http://cwiki.apache.org/confluence/display/WICKET/Autocomplete+using+a+W
icket+model
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Gravener
Sent: Monday, October 13, 2008 9:17 AM
To: users@wicket.apache.org
Subject: Re: For
Dont know about the java doc, but i guess we want to be browser
independend, so that call should result in the same thing no matter
what browser is used.
I find it by the way very strange that you get thr full path, what do
you want with it? And why does IE send it, it shouldnt a website
shouldnt
Hi
I've got a custom validator here which needs to dynamically change some
other input field's value to a new value.
Here's the scenario with two radios and a pulldown:
( ) I don't need anything
( ) I need: [ pulldown with options ]
Now if "I need" is selected, everything works as expected, th
/push
On Friday 19 September 2008 12:10:24 Stefan Lindner wrote:
> Wicket in Action is out, the open issues for 1.4 are constantly decreasing.
> Is a 1.4M4 in sight?
>
> Stefan
i also do it in convertInput(). So even if it should be the wrong place, it
does work, and you are not alone with this solution ;)
On Monday 13 October 2008 15:40:22 kerim bey wrote:
> While debugging I noticed it is a string.
> That's why I'm iterating through the choice objects to get back the
While debugging I noticed it is a string.
That's why I'm iterating through the choice objects to get back the object
represented by the string in the autocomplete and then call setModelObject()
with the one that matches.
I override convertInput() for this but maybe this is the wrong place?
Ry
Right click on that image and click on Copy image and then past it
somewhere like Gimp or Photoshop. :D
Anyway, if you use a LoadableDetachableModel, it is possible and actually,
recommended, to delete the file right after the download. Just make sure it
is not a file that will be download
On Mon, 13 Oct 2008, Matthias Keller wrote:
> Here's the scenario with two radios and a pulldown:
> ( ) I don't need anything
> ( ) I need: [ pulldown with options ]
>
> Now if "I need" is selected, everything works as expected, the pulldown
> value gets stored to the model.
> Now if 'I dont need
I am using
setRedirect(true);
setResponsePage(MyPage.class,pageParameters);
in Mypage how can I retrieve pageParameters ?
--
View this message in context:
http://www.nabble.com/retrieveing-page-parameters-tp19956410p19956410.html
Sent from the Wicket - User mailing list archive at Nabble.com
Still does not work!
When I submit the form the object is null and the amount of is 0 even I
selected an Object and type an valid amount.
I'm not quite shure which components I have to add to the target for
"onchange" Event.
Right now I just added the form-component to the ajax target.
Lutz Mül
Timo Rantalaiho wrote:
On Mon, 13 Oct 2008, Matthias Keller wrote:
Here's the scenario with two radios and a pulldown:
( ) I don't need anything
( ) I need: [ pulldown with options ]
Now if "I need" is selected, everything works as expected, the pulldown
value gets stored to the model.
Now
Hello everyone,
Is it possible to access Jackrabbit API(talking to Alfresco ) thorugh
Apache wicket.
Regards
Vishal
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Am Montag, 13. Oktober 2008 16:53:30 schrieb miro:
> I am using
>
> setRedirect(true);
> setResponsePage(MyPage.class,pageParameters);
>
> in Mypage how can I retrieve pageParameters ?
public MyPage(PageParameters params) not working?
Cheers
Per
--
Implement one-arg constructor:
class MyPage extends WebPage {
public MyPage(PageParameters params) {
super(params);
// here you get the params
}
miro a écrit :
I am using
setRedirect(true);
setResponsePage(MyPage.class,pageParameters);
in Mypage how can I retrieve pageParameters ?
Am Montag, 13. Oktober 2008 11:28:07 schrieb Christian Oldiges:
> Hello!
>
> First here is my setup and the situation in which I discovered the problem
> which might be a bug in FormComponent$MessageSource:
>
> I am using v1.3.4 and I have a problem placing a resource string for a
> customized subc
getPageParameters()? Didn't you look at the API before posting? ;-)
miro wrote:
>
> I am using
>
> setRedirect(true);
> setResponsePage(MyPage.class,pageParameters);
>
> in Mypage how can I retrieve pageParameters ?
>
-
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this me
first thing to get is that each getstring() traverses the hierarchy.
so first we try with id and then without just in case the user forgot.
the problem here is that formcomponents do not provide their own
resource bundles. you need to add an rfe to support this.
traditionally only top-level markup
I tried that , getPageParameters() was returning null .
Michael Sparer wrote:
>
> getPageParameters()? Didn't you look at the API before posting? ;-)
>
>
> miro wrote:
>>
>> I am using
>>
>> setRedirect(true);
>> setResponsePage(MyPage.class,pageParameters);
>>
>> in Mypage how can I retri
then there either weren't any pageparams or you missed to call super(params)
regards,
Michael
miro wrote:
>
> I tried that , getPageParameters() was returning null .
>
> Michael Sparer wrote:
>>
>> getPageParameters()? Didn't you look at the API before posting? ;-)
>>
>>
>> miro wrote:
>>>
where should I call super(params) ?
Michael Sparer wrote:
>
> then there either weren't any pageparams or you missed to call
> super(params)
>
> regards,
> Michael
>
>
> miro wrote:
>>
>> I tried that , getPageParameters() was returning null .
>>
>> Michael Sparer wrote:
>>>
>>> getPagePa
Nayak Vishal wrote:
> Hello everyone,
>
> Is it possible to access Jackrabbit API(talking to Alfresco ) thorugh
> Apache wicket.
>
> Regards
> Vishal
>
Well, I don't know of any out-of-the-box components that integrate Wicket with
JCR (or Jackrabbit in particular), but you can always write your
That really doesnt work, what ever i do in FF i get a 1kb file, the
conten being something like resource not found, somehow FF really
doesnt give you the image out of the cache. (i guess no cache
settings in the headers are done at all by HP)
On 10/13/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wro
Yes i think it is, but i think first a 1.3.x release, my focus last
week was on that
On 9/19/08, Stefan Lindner <[EMAIL PROTECTED]> wrote:
> Wicket in Action is out, the open issues for 1.4 are constantly decreasing.
> Is a 1.4M4 in sight?
>
> Stefan
>
here more description
I have a bookmarkable page and an link to this page .
mountBookmarkablePage("/createStorageLocation",
CreateNewStorageLocation.class);
Now I want to call this page using setResponsePage()
and passing some parameters for which I am doing this
PageParam
in your constructor that has a parameter PageParameters...
miro a écrit :
where should I call super(params) ?
Michael Sparer wrote:
then there either weren't any pageparams or you missed to call
super(params)
regards,
Michael
miro wrote:
I tried that , getPageParameters() was ret
Hi!
Wicket also supports ".xml" files instead of ".properties", so that is not
the problem.
I was able to follow Wicket trying both "X.properties" and "X.xml" for any
location.
So, that is not the problem.
Newgro wrote:
>
> Am Montag, 13. Oktober 2008 11:28:07 schrieb Christian Oldiges:
>> H
Hm, but then the JavaDoc for ComponentStringResourceLoader needs to be
updated, because the following example taken from that JavaDoc clearly
states it will try to lookup "Required" in the "input1.properties" file:
> In addition to the above search order, each key will be pre-pended with
> the
Hehe, yeah I know,
I forgot to mention that I also override init in Application like so:
protected void init() {
this.getMarkupSettings().setDefaultMarkupEncoding("ISO-8859-1");
I guess I'll just have to inform the customer that the chosen framework does
not support latin-1.
On Mon,
request for enhancement. add it to our jria.
-igor
On Mon, Oct 13, 2008 at 8:32 AM, Christian Oldiges <[EMAIL PROTECTED]> wrote:
>
> Hm, but then the JavaDoc for ComponentStringResourceLoader needs to be
> updated, because the following example taken from that JavaDoc clearly
> states it will try
this is right, this is the way it works...
*/cicr/bla* and *?cicr=bla* are just two different ways of passing
attributes... the second is much better, imo
did you only try what i've written to you on your 2nd reply?
miro a écrit :
here more description
I have a bookmarkable page and an li
Hello!
First here is my setup and the situation in which I discovered the problem
which might be a bug in FormComponent$MessageSource:
I am using v1.3.4 and I have a problem placing a resource string for a
customized subclass of CheckBox.
My component tree looks like this:
page.form.main.data
When using the FileUploadField component for uploading files i cannot get the
full path on the client system 'd:\temp\myFile.pdf' instead i only get the
file name 'myFile.pdf'.
According to FileItem.getName() Javadoc i should get the full path name if
the browser supports it. I'm using IE7 and i
I haven't tried what you wrote in second reply , I see the parameters in
url in the first way which i dont want and switch to second way which is
*?cicr=bla* how can I ? ,still getPageParameters returns null ?
Pills wrote:
>
> this is right, this is the way it works...
>
> */cicr/bla* a
* sorry, I would have say "the first is much better", the one with
slashes (/cicr/bla/)
Piller Sébastien a écrit :
this is right, this is the way it works...
*/cicr/bla* and *?cicr=bla* are just two different ways of passing
attributes... the second is much better, imo
did you only try wha
I dont have a constructor with PageParameters.Do I need one? , becasue if itr
appended to the url I can retrieve it from request or getPageParameters()
Pills wrote:
>
> in your constructor that has a parameter PageParameters...
>
>
> miro a écrit :
>> where should I call super(params) ?
>>
Is there a way to switch to the second becasue it is more readable ?
Pills wrote:
>
> * sorry, I would have say "the first is much better", the one with
> slashes (/cicr/bla/)
>
>
> Piller Sébastien a écrit :
>> this is right, this is the way it works...
>>
>> */cicr/bla* and *?cicr=bla* are
Yepp you need one if you want your mounting strategies work ... and for
getPageParameters not returning null ;-)
miro wrote:
>
> I dont have a constructor with PageParameters.Do I need one? , becasue if
> itr appended to the url I can retrieve it from request or
> getPageParameters()
>
> Pi
yes, it's mandatory.
How would wicket build your page without that, to make the parameters
available from everywhere, even from the constructor?
miro a écrit :
I dont have a constructor with PageParameters.Do I need one? , becasue if itr
appended to the url I can retrieve it from request or g
What about trying out first and then ask if something doesn't work as
desired?
miro wrote:
>
> I have a Page which has a form , I assume prepopulating is just
> setting model object to my form which has the same properties as the form
> is this right ?
> Second If I want to change the
jj, you are right. My mistake. I tested this, and jsessionid in bookmarkable
URL never causes page-expired exception.
.
Johan Compagner wrote:
>
> A bookmarkabke url with a jsession id will not give you an page expired.
>
>
--
View this message in context:
http://www.nabble.com/Presen
now are there ways to hide parameters from url ie I want to pass
parameters but wont show them in url ? also I doing a redirect from the
caller.
Michael Sparer wrote:
>
> Yepp you need one if you want your mounting strategies work ... and for
> getPageParameters not returning null ;-)
>
A bookmarkabke url with a jsession id will not give you an page expired.
So if you have only bookmarkable urls in the browser bar but the page
is because of statefull components statefull. Then if a browser does
refresh you get another new page of that bookmarkable page the
jsessionid doesnt reall
yepp, use the setResponsePage(Page page) instead of setResponsePage(Class
pageClass) method - but be aware that the resulting page is bound to the
session and not reusable for other sessions, aka bookmarkable
miro wrote:
>
> now are there ways to hide parameters from url ie I want to pass
I think is better to create a temporary file and set DownloadLink to delete
it after download is complete. I don't think is a good idea to let the user
download directly from the database as you proposed. See, downloads can take
some time and letting that InputStream open, might be a problem. The l
You have simple Behaviors that can alter values through java script in
the browser and you have converters that converts a value at the
server side, validators are ment for validation of a value that is
converted by a convertor not for changing data.
On 10/13/08, Matthias Keller <[EMAIL PROTECTED]
I created a new class Test extending CreateNewStorageLocation (this page
is bookmarked
as mountBookmarkablePage("/createStorageLocation",
CreateNewStorageLocation.class);
just to override a method ,
clicking on a link I call a page which redirects to Test and
wicket creates some new ur
That should work fine then. You shouldnt have to do that in your page configure.
What does the browser page info really give you back? Whay kind of
content type does the page have there?
By the way why does a client care about what content type is used?
(except that he could have a requirement tha
If we would say base class mounted to xxx then also all the subs are
mounted to xxx how on earth do we know then which we should construct
when xxx is hit?
Also if you dont want /xx/yyy/zzz but xx?yyy=zzz then use a different
url encoding because the first on is default look for
QueryXUrlEncod
but if a sub class is the response page and no mount path is found can
wicket use the super class mountpath or is there a way to override some
method in my sub class to return the mount path of base class ?
Johan Compagner wrote:
>
> If we would say base class mounted to xxx then also all
Hi Kenneth
I've seen on some occasions that IE 6 will loose content type if you
specify UTF-8 as I remember it..
And yeah why not use utf-8 ?
Kenneth Holm Nielsen wrote:
Hehe, yeah I know,
I forgot to mention that I also override init in Application like so:
protected void init() {
I'm using the FileUploadField and the name of the field is "image". When the
form model loads, all other form fields appear but the upload field remains
blank. Why is that? Any way around it?
--
View this message in context:
http://www.nabble.com/FileUploadField---value-not-stored-in-session-
On Mon, 13 Oct 2008, Matthias Keller wrote:
> AJAX is not an option, as it is client side.
Sorry, what do you mean exactly? Javax is server-side. But
do you need a pure javascript solution?
> Another scenario would be: User has to enter some data which needs to be
> stored in a certain way. For
On Mon, 13 Oct 2008, V. Jenks wrote:
> I'm using the FileUploadField and the name of the field is "image". When the
> form model loads, all other form fields appear but the upload field remains
> blank. Why is that? Any way around it?
I think that it's a browser security restriction, so that
y
Well I was really grateful for that. I've tried both alternatives and
neither works but I think maybe I just have to fiddle with them a bit. Just
getting back to you before the end of the day.
Thanks for the response.
Randy Hammelman wrote:
>
> This will probably work for you:
>
> Isn't th
Hi:
I've been working with Wicket and Liferay. My end (possibly dream) goal is
to expose a Wicket Panel in a WSRP Consumer Proxy Portlet.
Can I assume that there is no support yet in Wicket (or wicket extensions,
etc) for the required WSRP interfaces "Service Description Interface" and
"Mar
Hello Les,
On Thu, Sep 25, 2008 at 5:11 PM, Les Hazlewood <[EMAIL PROTECTED]>wrote:
> Haha, funny you should ask this - I'm doing it now ;)
Well, it wasn't pure coincidence: I saw your name appearing on the wicket
mailing-list a few weeks ago and I was kinda hoping for this answer ;-)
> I'v
I searched the mailing list for posts about uploading a file with an
AjaxButton. The general meaning ist hat this is not possible in wicket. On post
statet that there might be a solution in wicketstuff (where).
Did anybody solve this problem?
Stefan
Our community has grown quite a bit since Wicket's inception. The core
Wicket team is pretty visible through the various blogs and
meetups—but the community is more! Meet your fellow Wicketeers and
read all about them.
Our first victim is one of Wicket's most visible supporters: Nino
Martinez Wael
No please read my previous mail, i explained there why there cant be 1
mount point to 2 classes
On 10/13/08, miro <[EMAIL PROTECTED]> wrote:
>
> but if a sub class is the response page and no mount path is found
> can
> wicket use the super class mountpath or is there a way to override some
>
Hello,
I'm working on an application that will have a simple Form in front of a
rather complex object graph. I'm using JPA implemented by Hibernate at the
persistence layer.
In an effort to keep things simple I'm using CompoundPropertyModel in the
Form constructor:
Person p = sessio
Hi,
This may be a stupid question - Looking at the
DropDownChoice.getStatelessHint() it returns false if wantOnSelectionChange
is set to true?
Shouldnt it depend on the enclosing form? If the enclosing form is stateless
and only cares about the value thats getting submitted as a result of the
se
Hi Maarten,
So far things are going great - it took almost no time at all to
integrate the two projects, which I consider a reflection of the good
design of both architectures ;)
I have a few classes created that basically recreates the SignIn*
classes in chapter 11 of Wicket In Action to show ho
Use some sort of repeater over your collection, then add the individual form
components inside that.
add(new ListView("phones") {
@Override
protected void populateItem(ListItem item) {
item.setModel(new CompoundPropertyModel(item.getModel()));
In that example, the ID in new TextField("") should be new
TextField("number") - sorry
On Mon, Oct 13, 2008 at 8:42 PM, Jeremy Thomerson <[EMAIL PROTECTED]
> wrote:
> Use some sort of repeater over your collection, then add the individual
> form components inside that.
>
> add(new Lis
I suppose it's because of the stateful URL that the DDC adds to the onchange
JS event that pulls that page back out of memory to update the DDC.
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Oct 13, 2008 at 7:39 PM, Ritesh Trivedi <[EMAIL PROTECTED]>wrote:
>
> Hi,
>
> This may be a
from the log at our production tomcat, we find that there are strange
requests to wicket resources
we do not meet that at our daily development or daily access to our
production site
we have suspected if this is "attack", but this may not be as the frequency
is low,
so is the problem caused by "
Hi, I created a very simple little Wicket application which consisted
of one page and the page relied on session information which was to
persist between requests. My surprise came when I found that
newSession(Request request, Response response) on my WebApplication
class was being called for eve
a stateless page in wicket means that the page does not need to be put into
session. it can be reconstructed from scratch. such pages generally do not
have stateful components (components that provide user with callbacks such
as link and its onclick() or form and its onsubmit()).
so until a statef
Yep, thanks Igor.
On Mon, Oct 13, 2008 at 11:09 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> a stateless page in wicket means that the page does not need to be put into
> session. it can be reconstructed from scratch. such pages generally do not
> have stateful components (components that provid
No problem, I always have time for Wicket things:)
Martijn Dashorst wrote:
Our community has grown quite a bit since Wicket's inception. The core
Wicket team is pretty visible through the various blogs and
meetups—but the community is more! Meet your fellow Wicketeers and
read all about them.
O
Hi
I've been pondering as usually. This time about a wicket gathering, and
it should be something where all could meetup, also from international
places. Ideally all comitters would show up. It should be something that
were held once a year and not in conjunction with something else as I
thin
Are you proposing Wicketstock?
Nino.Martinez wrote:
>
> Hi
>
> I've been pondering as usually. This time about a wicket gathering, and
> it should be something where all could meetup, also from international
> places. Ideally all comitters would show up. It should be something that
> were
Hehe, always the names, Jonathan. But yeah something like it..
Jonathan Locke wrote:
Are you proposing Wicketstock?
Nino.Martinez wrote:
Hi
I've been pondering as usually. This time about a wicket gathering, and
it should be something where all could meetup, also from international
plac
NYC since all the Europeans can probably afford it :)
Ryan Gravener
http://twitter.com/ryangravener
On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:
> Hehe, always the names, Jonathan. But yeah something like it..
>
>
> Jonathan Locke wrote:
>
>
isnt that where you live? :)
-igor
On Mon, Oct 13, 2008 at 11:18 PM, Ryan Gravener <[EMAIL PROTECTED]> wrote:
> NYC since all the Europeans can probably afford it :)
>
>
> Ryan Gravener
> http://twitter.com/ryangravener
>
>
> On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael <
No, I live closer to Philadelphia and was compromising with New York :)
Ryan Gravener
http://twitter.com/ryangravener
On Tue, Oct 14, 2008 at 2:31 AM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:
> isnt that where you live? :)
>
> -igor
>
> On Mon, Oct 13, 2008 at 11:18 PM, Ryan Gravener <[EMAIL PRO
84 matches
Mail list logo