Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread Marat Radchenko
2009/1/20 James Carman :
> A Model is serialized, therefore the object contained within it must
> be serializable.
Uh? What about stateless pages?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff core, archetypes?

2009-01-20 Thread Jonathan Locke


that's too bad. i was hoping nexus was a centralized index of all known
public repos.

your plan makes sense to me. it seems like moving ahead with a wicket
component metadata standard would be a good thing to do in parallel though.

   jon


francisco treacy-2 wrote:
> 
> hi jon,
> 
>> it would be nice to enable other parties to build similar wicket
>> component searching technologies that are not linked to wicket hub
> 
> definitely
> 
>> my simplistic understanding was that nexus could search for jars with
>> certain files in them.
> 
> not unless you extend it
> 
>> it ought to be extended so that it can do that. it would be worth
>> talking to them about our needs to see if they could help us
> 
> i have contacted them: see the thread
> http://nexus.sonatype.org/mailing-list-user-archives.html#nabble-f34835
> 
> basically it is technically possible to do what we need with nexus.
> the problem is that this "wicket-aware extended nexus version" has to
> be installed in every single repo we may want to synchronize with.  so
> once we have done the coding we'll have to contact maven central (and
> other) repo owners. so it boils down to diplomacy rather than
> programming =)
> 
> so: for now i will focus on "submit jar url" support that we will need
> anyway (for non-mavenized wicket components). at the moment this also
> will be useful for components in maven repos. and the day we manage to
> have an automatic 'discovery' process - people won't be required to
> submit wicket-enabled-repo urls anymore.
> 
> how does that sound?
> 
> francisco
> 
> 
> 
> On Sat, Jan 17, 2009 at 10:02 PM, Jonathan Locke
>  wrote:
>>
>>
>> i think maven searching is an ideal way to publish and discover wicket
>> components at
>> present. i never meant to imply that that should be the only way to do
>> this
>> or that the
>> idea of a wicket component jar should be tied to something like a
>> repository
>> or a transport.
>> i also don't think it should be tied to a specific repo of discovered
>> meta
>> information like
>> wicket hub. that creates a centralized architecture and as much as i like
>> the idea of wicket
>> hub a lot, it would be nice to enable other parties to build similar
>> wicket
>> component
>> searching technologies that are not linked to wicket hub. for example,
>> someone could
>> gather wicket components for an IDE plugin, to store in some other type
>> of
>> repository
>> than maven or to create an index for some future google search plugin.
>>
>> my simplistic understanding was that nexus could search for jars with
>> certain files in them.
>> all we need from nexus is the ability to get a list of jar artifacts
>> which
>> contain the file
>> "META-INF/wicket/components.xml" because all such files will be wicket
>> component jars
>> (subject to downloading and parsing, of course). if nexus can't do that,
>> i
>> think that's
>> a flaw in nexus and it ought to be extended so that it can do that. it
>> would
>> be worth
>> talking to them about our needs to see if they could help us. i think
>> that a
>> nexus driven
>> wicket component repository would be beneficial advertising for the nexus
>> project, and
>> it should not be too hard to achieve.
>>
>>  jon
>>
>>
>> francisco treacy-2 wrote:
>>>
 you're certainly free to go in whatever direction you want,
>>>
>>> to be clear, i fully agree on the decentralized model for:
>>> - people and the development of this app, and data contributed by
>>> wicket users: this should be as democratic as possible
>>> - artifacts / components:
>>>
 there may someday be wicket
 components in central or elsewhere, even outside maven repos
 (downloadable via HTTP
 like matej's inmethod stuff was for a while)
>>>
>>> we should support any mavenized or non-mavenized artifacts, wherever
>>> those may live - you're right there (however i thought you said before
>>> you were interested at present only by components delivered by maven).
>>>
 parsing the metadata would be done after you download the artifact that
 you
 found.
>>>
>>> okay, fair enough. i have some doubts though:
>>>
>>> 1. in this scenario, downloading every artifact on earth just to open
>>> it and "see if there's some wicket info inside" is... impossible.
>>>
>>> 2.
 you just need to find the artifact with nexus.
>>>
>>> in your original blog post you say "Basically, I'd like to see us
>>> crawl maven repos looking for JAR'ed Wicket components with a
>>> particular set of meta-data"
>>> i don't see how nexus can help there. let's put another example:
>>>
>>> i create a mootools integration component, i mavenize it with package
>>> name "com.mymootools.wicket" and publish it in central repo.  how does
>>> nexus help in finding that, if it doesn't know anything about
>>> META-INF/*.xml?
>>>
>>> ... *unless* you're planning people to "submit their jar urls to
>>> wickethub". that would be a whole other story. but then again, nexus
>>> would be useless as we will alr

Re: AutoCompleteTextfield - how to populate two input fields

2009-01-20 Thread Toscano

Hello,

I know this message is from long time ago... but actually I'm stuck in a
similar situation... is too much to ask if I can get that code too?
Actually I know is too much to ask, but...

Thanks,
Oskar




Francisco Diaz Trepat - gmail wrote:
> 
> I'm on in.
> I'll send you the samples latter in the day.
> 
> cheers,
> 
> f(t)
> 
> On 10/11/07, German Morales  wrote:
>>
>> Hallo,
>>
>> With some luck you will get the usage examples later. (Francisco?)
>>
>> German
>>
>> It seems that Oliver Lieven wrote:
>> >
>> > Hi German,
>> >
>> > thanks for your offer, would be great if you could send me your code.
>> >
>> > BTW, in the meantime I got my 2nd approach working, too. I've got the
>> two
>> > separate textfields, each of them showing the "zipcode - city"
>> > autocomplete
>> > lists when data is entered. After selecting from the autocomplete list,
>> > both
>> > fields are updated correctly!
>> >
>> > Regards,
>> > Oliver
>> >
>> >
>> >
>> > German Morales wrote:
>> >>
>> >> Hi again,
>> >>
>> >> Yes, we have something similar to what you describe in your point 2.
>> >>
>> >> The only difference is that we have other structure. What we have is
>> the
>> >> following:
>> >>
>> >> -Each locality has an internal ID, a Zip Code, a City and a (swiss)
>> >> kanton.
>> >>
>> >> -in the html we have a Hidden, which stores the internal ID, and 1
>> >> (only)
>> >> TextField, which shows Zip Code + City + Canton (For example: "8052
>> >> Seebach, ZH").
>> >>
>> >> -then we have an extension as you mention (AutoCompleteTextField,
>> >> Renderer, Behavior, JavaScript), which is already working with this
>> >> schema. It also contains many fixes over the original
>> >> autocompletetextfield (perhaps originated from the extra behavior?).
>> >>
>> >> If this approach is good for you, i can send you our version, plus
>> some
>> >> example usages.
>> >>
>> >> Regards,
>> >>
>> >> German
>> >>
>> >>
>> >> It seems that Oliver Lieven wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> thanks for your answer.
>> >>>
>> >>> No, solution didn't work as supposed, mainly because the AutoComplete
>> >>> fills
>> >>> the input field in the browser with the data (in my case either
>> zipcode
>> >>> or
>> >>> city), but doesn't update the model.
>> >>>
>> >>> To update the model I have to attach some Ajax...Behavior, but this
>> is
>> >>> called with the data put into the textfield (i.e. either the selected
>> >>> zipcode put into the zipcode field by the autocomplete, *or* the
>> >>> selected
>> >>> city from the city field). In the Ajax...Behavior's onUpdate()-method
>> >>> neither the city nor the zipcode are enough to determine the value to
>> >>> use
>> >>> to
>> >>> update the related field.
>> >>>
>> >>> So I had two other ideas:
>> >>>
>> >>> 1. in my autocomplete-list I set the "textvalue" to the id of a
>> >>> "zipcode-city" combination. When the user selects from the
>> >>> autocomplete-list, this id is written into the corresponding
>> >>> input-field.
>> >>> The attached AjaxOnChangeBehavior now gets this id, determines the
>> >>> zipcode-city, and updates the city and the zipcode field. This works,
>> >>> but
>> >>> looks a little strange to the user (e.g. selection of "71254
>> Ditzingen"
>> >>> from
>> >>> autocomplete-list writes the id ("1223") into the zipcode-field, this
>> >>> issues
>> >>> the Ajax-call, which updates both fields with the correct data, i.e.
>> >>> zipcode=71254, city=Ditzingen). As I said, works but not pretty.
>> >>>
>> >>> 2. So I'm currently extended the AutoCompleteTextField, ...Renderer,
>> >>> ...Behavior, ..JavaScript to accept a second, "related" field in its
>> >>> constructor. I then attach two attributes to the autocomplete-list
>> >>> entries
>> >>> (say textvalue and textvalue2), and modified the JavaScript to update
>> >>> both
>> >>> fields. This seems to me the best approach to my specific problem,
>> and
>> >>> seems
>> >>> to work as intended.
>> >>>
>> >>> Hope my answer was not to confusing...
>> >>> regards,
>> >>> Oliver
>> >>>
>> >>>
>> >>> German Morales wrote:
>> 
>>  Hi,
>> 
>>  Sorry, i'm a little late with my response.
>>  Did the suggestion by Nino work?
>> 
>>  If it works, i would like to know more details about it.
>> 
>>  If not, we already had a somehow similar problem (Swiss addresses),
>>  and
>>  we
>>  have a different solution already working. Perhaps it can help you
>>  too.
>> 
>>  Regards,
>> 
>>  German
>> 
>> 
>>  It seems that Nino Saturnino Martinez Vazquez Wael wrote:
>> > NP, waiting with excitement to hear if it works:)
>> >
>> > Oliver Lieven wrote:
>> >> Thanks allot for your efforts and detailed answer! Sounds good,
>> I'll
>> >> give it
>> >> a try.
>> >>
>> >>
>> >> Nino.Martinez wrote:
>> >>
>> >>> No what I meant was that when a user selects something in one  of
>> >>> your
>> >>> auto complete fields  they'll automa

Re: Set width of auto complete text field?

2009-01-20 Thread Jeremy Thomerson
Any one?

Thank you,

-- 
Jeremy Thomerson
http://www.wickettraining.com


On Tue, Jan 13, 2009 at 4:01 PM, Jeremy Thomerson  wrote:

> Is there a way to set the width of the popup list of choices for the auto
> compete behavior (auto complete text field)?  I have tried using CSS, but
> the problem is that wicket-autocomplete.js sets the width programmatically,
> which overrides any CSS I use.  I don't see any hooks in the JS file to
> override the JS method and set my own width, etc.  Any ideas?
>
> I did this:
> div.wicket-aa-container, div.wicket-aa {
> width: 450px;
> }
>
> But, it's overridden because of this in wicket-autocomplete.js:
> container.style.width=input.offsetWidth+'px';
>
> Looking at it in Firebug shows that element.style (which is the JS set
> style) is overriding the CSS that I included.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>


Re: AutocompleteTextField and tab key

2009-01-20 Thread Igor Vaynberg
you will probably have to tweak some javascript to get it to do what
you want. you can also create an RFE in jira to make these keys
configurable.

-igor

On Tue, Jan 20, 2009 at 6:48 PM, Toscano  wrote:
>
> Hello,
>
> I'm trying to develop the suggestions gmail uses when inputting one email
> address. So I used one AutocompleteTextField that populates the possible
> values from the database nicely, but I can not make the model changing
> correctly if the users doesn't press the Enter key or click in the option.
>
> For example, I start typing my name: Oskar, when I typed 'Os', the
> autocomplete field founds my name, then I select it with the cursor keys and
> press the tab button for going to the next field in the form, but the model
> is still 'Os', not the complete 'Oskar' name I selected before pressing tab
> key.
>
> If I do the same, but I press 'Enter' instead, then it works nicely.
> --
> View this message in context: 
> http://www.nabble.com/AutocompleteTextField-and-tab-key-tp21576195p21576195.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AutocompleteTextField and tab key

2009-01-20 Thread Toscano

Hello,

I'm trying to develop the suggestions gmail uses when inputting one email
address. So I used one AutocompleteTextField that populates the possible
values from the database nicely, but I can not make the model changing
correctly if the users doesn't press the Enter key or click in the option.

For example, I start typing my name: Oskar, when I typed 'Os', the
autocomplete field founds my name, then I select it with the cursor keys and
press the tab button for going to the next field in the form, but the model
is still 'Os', not the complete 'Oskar' name I selected before pressing tab
key.

If I do the same, but I press 'Enter' instead, then it works nicely.

Thank you always for all your help and time,
Oskar
-- 
View this message in context: 
http://www.nabble.com/AutocompleteTextField-and-tab-key-tp21576199p21576199.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AutocompleteTextField and tab key

2009-01-20 Thread Toscano

Hello,

I'm trying to develop the suggestions gmail uses when inputting one email
address. So I used one AutocompleteTextField that populates the possible
values from the database nicely, but I can not make the model changing
correctly if the users doesn't press the Enter key or click in the option.

For example, I start typing my name: Oskar, when I typed 'Os', the
autocomplete field founds my name, then I select it with the cursor keys and
press the tab button for going to the next field in the form, but the model
is still 'Os', not the complete 'Oskar' name I selected before pressing tab
key.

If I do the same, but I press 'Enter' instead, then it works nicely.
-- 
View this message in context: 
http://www.nabble.com/AutocompleteTextField-and-tab-key-tp21576195p21576195.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket / Spring bean annotations

2009-01-20 Thread Igor Vaynberg
erm. s/with/without/ :)

-igor

On Tue, Jan 20, 2009 at 5:47 PM, Igor Vaynberg  wrote:
> there is a point, however, to passing references to injected
> dependencies into models and dataproviders - something you cannot do
> with wicket's proxy.
>
> -igor
>
> On Tue, Jan 20, 2009 at 4:15 PM, Andrew Humphries (MEL)
>  wrote:
>> Thanks for your quick answer Jeremy.
>>
>>> However, I would ask *why* do this?  If you're passing it to another
>> component, why not just have that component also use an annotation?  I
>> wouldn't
>>> think that passing services around is typically a great use-case.
>>
>> Yes, you're right, theres no point in annotating some components and not
>> others, and then passing around the reference.  I'll stick to doing
>> that, but I was also intersted out of curiosity.
>>
>> Andrew
>>
>> -Original Message-
>> From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
>> Sent: Wednesday, 21 January 2009 11:03 AM
>> To: users@wicket.apache.org
>> Subject: Re: Wicket / Spring bean annotations
>>
>> Although I do not know for sure, I would think not, because my
>> understanding is that a proxy is created that is safe to be serialized.
>>
>> However, I would ask *why* do this?  If you're passing it to another
>> component, why not just have that component also use an annotation?  I
>> wouldn't think that passing services around is typically a great
>> use-case.
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>> On Tue, Jan 20, 2009 at 6:00 PM, Andrew Humphries (MEL) <
>> andrew.humphr...@foxtel.com.au> wrote:
>>
>>> Hi -
>>>
>>> Probably a simple question : We are using Spring with Wicket in our
>>> project.  I have opted for the use of the Spring bean annotations as
>>> described in 'Wicket in Action'.  In the chapter on integrating the
>>> two technologies the book explains that you should use proxies instead
>>
>>> of direct references to Spring beans in your components, so that you
>>> don't end up serializing your whole application context.  It then goes
>>
>>> on to explain the technique of annotating Spring bean references in
>>> your components - which I gather is safe in this regard (else why
>>> would it be recommended).  Is it also safe to pass references to the
>>> Spring beans initialized in one component via an annotation to other
>>> components and set them as members on those other components ?  Or
>>> will this risk app context serialization ?
>>>
>>> Thanks
>>>
>>> Andrew Humphies
>>> Analyst/Programmer
>>>
>>>
>>> This e-mail, and any attachment, is confidential. If you are not the
>>> intended recipient, please delete it from your system, do not use or
>>> disclose the information in any way, and notify the sender
>> immediately.
>>> Any views expressed in this message are those of the individual sender
>>
>>> and may not be the views of FOXTEL, unless specifically stated. No
>>> warranty is made that the e-mail or attachment (s) are free from
>>> computer viruses or other defects.
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket / Spring bean annotations

2009-01-20 Thread Igor Vaynberg
there is a point, however, to passing references to injected
dependencies into models and dataproviders - something you cannot do
with wicket's proxy.

-igor

On Tue, Jan 20, 2009 at 4:15 PM, Andrew Humphries (MEL)
 wrote:
> Thanks for your quick answer Jeremy.
>
>> However, I would ask *why* do this?  If you're passing it to another
> component, why not just have that component also use an annotation?  I
> wouldn't
>> think that passing services around is typically a great use-case.
>
> Yes, you're right, theres no point in annotating some components and not
> others, and then passing around the reference.  I'll stick to doing
> that, but I was also intersted out of curiosity.
>
> Andrew
>
> -Original Message-
> From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
> Sent: Wednesday, 21 January 2009 11:03 AM
> To: users@wicket.apache.org
> Subject: Re: Wicket / Spring bean annotations
>
> Although I do not know for sure, I would think not, because my
> understanding is that a proxy is created that is safe to be serialized.
>
> However, I would ask *why* do this?  If you're passing it to another
> component, why not just have that component also use an annotation?  I
> wouldn't think that passing services around is typically a great
> use-case.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Tue, Jan 20, 2009 at 6:00 PM, Andrew Humphries (MEL) <
> andrew.humphr...@foxtel.com.au> wrote:
>
>> Hi -
>>
>> Probably a simple question : We are using Spring with Wicket in our
>> project.  I have opted for the use of the Spring bean annotations as
>> described in 'Wicket in Action'.  In the chapter on integrating the
>> two technologies the book explains that you should use proxies instead
>
>> of direct references to Spring beans in your components, so that you
>> don't end up serializing your whole application context.  It then goes
>
>> on to explain the technique of annotating Spring bean references in
>> your components - which I gather is safe in this regard (else why
>> would it be recommended).  Is it also safe to pass references to the
>> Spring beans initialized in one component via an annotation to other
>> components and set them as members on those other components ?  Or
>> will this risk app context serialization ?
>>
>> Thanks
>>
>> Andrew Humphies
>> Analyst/Programmer
>>
>>
>> This e-mail, and any attachment, is confidential. If you are not the
>> intended recipient, please delete it from your system, do not use or
>> disclose the information in any way, and notify the sender
> immediately.
>> Any views expressed in this message are those of the individual sender
>
>> and may not be the views of FOXTEL, unless specifically stated. No
>> warranty is made that the e-mail or attachment (s) are free from
>> computer viruses or other defects.
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Submitting form via ajax using wicket tester

2009-01-20 Thread Timo Rantalaiho
On Thu, 25 Dec 2008, John Lasher wrote:
> I'm new to wicket and have been struggling with this problem for a few hours
> now and any help is greatly appreciated. I created a form with ajaxbuttons
> for submit and cancel.
> When I try to submit the form via the FormTester, it does a regular submit
> instead of an ajax submit and hence the call back methods in my ajaxButton,
> the onError and onSubmit are never getting called.
> 
> I have also tried the executeAjaxEvent with "onclick" but this also does not
> seem to be calling the callback methods

executeAjaxEvent should work. You should show more code to
get more help.

Best wishes,
Timo

-- 
Timo Rantalaiho
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to update parent component from a panel?

2009-01-20 Thread Timo Rantalaiho
On Tue, 16 Dec 2008, freak182 wrote:
>   I want to ask if this "events" stuff is already available in wicket 1.3.5
> release? if so, what classes should i look into?

No it's not, but you can just copy its code (or one of the
competing implementations :)) from the patches attached to
the Jira issue.

Probably it will be in some form in Wicket 1.5.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket / Spring bean annotations

2009-01-20 Thread James Carman
However, if you're not writing those other components, you have no
choice.  So, this case does show up.

On Tue, Jan 20, 2009 at 7:15 PM, Andrew Humphries (MEL)
 wrote:
> Thanks for your quick answer Jeremy.
>
>> However, I would ask *why* do this?  If you're passing it to another
> component, why not just have that component also use an annotation?  I
> wouldn't
>> think that passing services around is typically a great use-case.
>
> Yes, you're right, theres no point in annotating some components and not
> others, and then passing around the reference.  I'll stick to doing
> that, but I was also intersted out of curiosity.
>
> Andrew
>
> -Original Message-
> From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
> Sent: Wednesday, 21 January 2009 11:03 AM
> To: users@wicket.apache.org
> Subject: Re: Wicket / Spring bean annotations
>
> Although I do not know for sure, I would think not, because my
> understanding is that a proxy is created that is safe to be serialized.
>
> However, I would ask *why* do this?  If you're passing it to another
> component, why not just have that component also use an annotation?  I
> wouldn't think that passing services around is typically a great
> use-case.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Tue, Jan 20, 2009 at 6:00 PM, Andrew Humphries (MEL) <
> andrew.humphr...@foxtel.com.au> wrote:
>
>> Hi -
>>
>> Probably a simple question : We are using Spring with Wicket in our
>> project.  I have opted for the use of the Spring bean annotations as
>> described in 'Wicket in Action'.  In the chapter on integrating the
>> two technologies the book explains that you should use proxies instead
>
>> of direct references to Spring beans in your components, so that you
>> don't end up serializing your whole application context.  It then goes
>
>> on to explain the technique of annotating Spring bean references in
>> your components - which I gather is safe in this regard (else why
>> would it be recommended).  Is it also safe to pass references to the
>> Spring beans initialized in one component via an annotation to other
>> components and set them as members on those other components ?  Or
>> will this risk app context serialization ?
>>
>> Thanks
>>
>> Andrew Humphies
>> Analyst/Programmer
>>
>>
>> This e-mail, and any attachment, is confidential. If you are not the
>> intended recipient, please delete it from your system, do not use or
>> disclose the information in any way, and notify the sender
> immediately.
>> Any views expressed in this message are those of the individual sender
>
>> and may not be the views of FOXTEL, unless specifically stated. No
>> warranty is made that the e-mail or attachment (s) are free from
>> computer viruses or other defects.
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Wicket / Spring bean annotations

2009-01-20 Thread Andrew Humphries (MEL)
Thanks for your quick answer Jeremy.

> However, I would ask *why* do this?  If you're passing it to another
component, why not just have that component also use an annotation?  I
wouldn't 
> think that passing services around is typically a great use-case.

Yes, you're right, theres no point in annotating some components and not
others, and then passing around the reference.  I'll stick to doing
that, but I was also intersted out of curiosity.

Andrew

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: Wednesday, 21 January 2009 11:03 AM
To: users@wicket.apache.org
Subject: Re: Wicket / Spring bean annotations

Although I do not know for sure, I would think not, because my
understanding is that a proxy is created that is safe to be serialized.

However, I would ask *why* do this?  If you're passing it to another
component, why not just have that component also use an annotation?  I
wouldn't think that passing services around is typically a great
use-case.

--
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Jan 20, 2009 at 6:00 PM, Andrew Humphries (MEL) <
andrew.humphr...@foxtel.com.au> wrote:

> Hi -
>
> Probably a simple question : We are using Spring with Wicket in our 
> project.  I have opted for the use of the Spring bean annotations as 
> described in 'Wicket in Action'.  In the chapter on integrating the 
> two technologies the book explains that you should use proxies instead

> of direct references to Spring beans in your components, so that you 
> don't end up serializing your whole application context.  It then goes

> on to explain the technique of annotating Spring bean references in 
> your components - which I gather is safe in this regard (else why 
> would it be recommended).  Is it also safe to pass references to the 
> Spring beans initialized in one component via an annotation to other 
> components and set them as members on those other components ?  Or 
> will this risk app context serialization ?
>
> Thanks
>
> Andrew Humphies
> Analyst/Programmer
>
>
> This e-mail, and any attachment, is confidential. If you are not the 
> intended recipient, please delete it from your system, do not use or 
> disclose the information in any way, and notify the sender
immediately.
> Any views expressed in this message are those of the individual sender

> and may not be the views of FOXTEL, unless specifically stated. No 
> warranty is made that the e-mail or attachment (s) are free from 
> computer viruses or other defects.
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket / Spring bean annotations

2009-01-20 Thread Jeremy Thomerson
Although I do not know for sure, I would think not, because my understanding
is that a proxy is created that is safe to be serialized.

However, I would ask *why* do this?  If you're passing it to another
component, why not just have that component also use an annotation?  I
wouldn't think that passing services around is typically a great use-case.

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Jan 20, 2009 at 6:00 PM, Andrew Humphries (MEL) <
andrew.humphr...@foxtel.com.au> wrote:

> Hi -
>
> Probably a simple question : We are using Spring with Wicket in our
> project.  I have opted for the use of the Spring bean annotations as
> described in 'Wicket in Action'.  In the chapter on integrating the two
> technologies the book explains that you should use proxies instead of
> direct references to Spring beans in your components, so that you don't
> end up serializing your whole application context.  It then goes on to
> explain the technique of annotating Spring bean references in your
> components - which I gather is safe in this regard (else why would it be
> recommended).  Is it also safe to pass references to the Spring beans
> initialized in one component via an annotation to other components and
> set them as members on those other components ?  Or will this risk app
> context serialization ?
>
> Thanks
>
> Andrew Humphies
> Analyst/Programmer
>
>
> This e-mail, and any attachment, is confidential. If you are not the
> intended recipient, please delete it from your system, do not use or
> disclose the information in any way, and notify the sender immediately.
> Any views expressed in this message are those of the individual sender and
> may not be the views of FOXTEL, unless specifically stated. No warranty is
> made that the e-mail or attachment (s) are free from computer viruses or
> other defects.
>
>


Re: Reloading HeadersToolbar

2009-01-20 Thread Jeremy Thomerson
This is your problem (I think):

In DataTable, when a toolbar is added, it is calling:
toolbar.setRenderBodyOnly(true);
Hence, the error message.

Try seeing if you can add the entire table to the AJAX target (or any outer
container of it) so that the entire thing is repainted.

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Jan 20, 2009 at 4:27 PM, Ryan O'Hara  wrote:

> I've created a customized CnvHeaderToolbar which like HeadersToolbar
> extends AbstractToolbar.  In addition to the header title, I also have
> inserted a triangle image that helps to display sort order and sort order
> direction.  The problem I am having is that I have been unable to figure out
> how to reload CnvHeaderToolbar when an OrderByLink is clicked, so that the
> new sort order triangle image can be displayed.  I've have also created
> custom CnvOrderByBorder and CnvOrderByLink objects.  I have hooked into
> these two classes onClick/onSortChanges, so that I have access to the
> AjaxRequestTarget from CnvOrderByLink in CnvHeaderToolbar.  Below is some
> code:
>
> CnvHeaderToolbar:
>
> protected WebMarkupContainer newSortableHeader(String headerId, String
> property,
>   ISortStateLocator
> locator, PageParameters params, Class page) {
>return new CnvOrderByBorder(headerId, property, locator) {
>
>private static final long serialVersionUID = 1L;
>
>public void onClick() {
>System.out.println("In newSortableHeader: OnClick()");
>((CnvDataTable) getTable()).setHeaderClicked(true);
>}
>
>protected void onSortChanged(AjaxRequestTarget target) {
>System.out.println("In newSortableHeader: OnSortChanged()");
>((CnvDataTable) getTable()).setHeaderClicked(true);
>//target.addComponent();
>}
>};
>
>}
>
> The latest I error I got when trying to reload CnvHeaderToolbar in the
> onSortChanged() method above is:
>
> "Ajax render cannot be called on component that has setRenderBodyOnly
> enabled."
>
> Any advice on how to reload the HeadersToolbar?  The actual sorting is
> working, it's just that the triangle images are not being reloaded.  Any
> help would be greatly appreciated.
>
> Thanks,
> Ryan
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Wicket / Spring bean annotations

2009-01-20 Thread Andrew Humphries (MEL)
Hi - 
 
Probably a simple question : We are using Spring with Wicket in our
project.  I have opted for the use of the Spring bean annotations as
described in 'Wicket in Action'.  In the chapter on integrating the two
technologies the book explains that you should use proxies instead of
direct references to Spring beans in your components, so that you don't
end up serializing your whole application context.  It then goes on to
explain the technique of annotating Spring bean references in your
components - which I gather is safe in this regard (else why would it be
recommended).  Is it also safe to pass references to the Spring beans
initialized in one component via an annotation to other components and
set them as members on those other components ?  Or will this risk app
context serialization ?
 
Thanks 
 
Andrew Humphies
Analyst/Programmer
 

This e-mail, and any attachment, is confidential. If you are not the intended 
recipient, please delete it from your system, do not use or disclose the 
information in any way, and notify the sender immediately.
Any views expressed in this message are those of the individual sender and may 
not be the views of FOXTEL, unless specifically stated. No warranty is made 
that the e-mail or attachment (s) are free from computer viruses or other 
defects.



Reloading HeadersToolbar

2009-01-20 Thread Ryan O'Hara
I've created a customized CnvHeaderToolbar which like HeadersToolbar  
extends AbstractToolbar.  In addition to the header title, I also  
have inserted a triangle image that helps to display sort order and  
sort order direction.  The problem I am having is that I have been  
unable to figure out how to reload CnvHeaderToolbar when an  
OrderByLink is clicked, so that the new sort order triangle image can  
be displayed.  I've have also created custom CnvOrderByBorder and  
CnvOrderByLink objects.  I have hooked into these two classes onClick/ 
onSortChanges, so that I have access to the AjaxRequestTarget from  
CnvOrderByLink in CnvHeaderToolbar.  Below is some code:


CnvHeaderToolbar:

protected WebMarkupContainer newSortableHeader(String headerId,  
String property,
   ISortStateLocator  
locator, PageParameters params, Class page) {

return new CnvOrderByBorder(headerId, property, locator) {

private static final long serialVersionUID = 1L;

public void onClick() {
System.out.println("In newSortableHeader: OnClick()");
((CnvDataTable) getTable()).setHeaderClicked(true);
}

protected void onSortChanged(AjaxRequestTarget target) {
System.out.println("In newSortableHeader:  
OnSortChanged()");

((CnvDataTable) getTable()).setHeaderClicked(true);
//target.addComponent();
}
};

}

The latest I error I got when trying to reload CnvHeaderToolbar in  
the onSortChanged() method above is:


"Ajax render cannot be called on component that has setRenderBodyOnly  
enabled."


Any advice on how to reload the HeadersToolbar?  The actual sorting  
is working, it's just that the triangle images are not being  
reloaded.  Any help would be greatly appreciated.


Thanks,
Ryan


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



UploadProgressBar does not work in Safari browser?

2009-01-20 Thread techisbest

The UploadProgressBar does not seem to update in Safari Ver. 3.1.1 (525.17).

The bar shows up, but it never updates.

It is working in IE and Firefox.

Has anyone else experienced this?
-- 
View this message in context: 
http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p21571997.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RatingPanel which can be extended

2009-01-20 Thread Murat YĆ¼cel
Hi All

I am using RatingPanel and out of the box it is very nice, but not enough
for me.
I want the rating panel to be more modifiable.  For example could the
default
stylesheet appending be done in a better way.

Well now to my actual problem. I want the RatingPanel to be similar to
youtube
rating. It looks very good with the mouseover and mouseout effect when
rating.
Then a label on the right side is changed to whatever the rating means.

I have tried to extend the RatingPanel, but it is not pretty that you have
to create
a whole new RatingStarBar class. But my actual problem is: how can i add
mouseover
and mouseout effect on a star which will then change the label? Can this be
done
in java code or do i need to make javascript function?

Kind regards

/Murat


Re: WicketNotSerializableException

2009-01-20 Thread Igor Vaynberg
On Tue, Jan 20, 2009 at 12:17 PM, Thomas Singer  wrote:
>> as you can see from the stack - when wicket tries to save the page to
>> the diskstore.
>
> And when it will do that?

at the end of request if the page is not stateless.

-igor

>
>> the checker should tell you exactly what field of what class held
>> nonserializable data
>
> I know that, but before fixing anything I'd like to be able to reproduce the
> problem locally.
>
> Tom
>
>
> Igor Vaynberg wrote:
>> On Tue, Jan 20, 2009 at 11:39 AM, Thomas Singer  wrote:
 the checker is always used
>>> When exactly?
>>
>> as you can see from the stack - when wicket tries to save the page to
>> the diskstore.
>>
>> the checker should tell you exactly what field of what class held
>> nonserializable data... what is the full stacktrace?
>>
>> -igor
>>
 is version of jvm the same in prod and dev?
>>> Yes, even the tomcat version is the same.
>>>
>>> Tom
>>>
>>>
>>> Igor Vaynberg wrote:
 what are the higher stack frames?

 the checker is always used so it is interesting you do not get those
 exceptions. is version of jvm the same in prod and dev?

 -igor

 On Mon, Jan 19, 2009 at 11:29 AM, Thomas Singer  wrote:
> The stacktrace is following (using Wicket 1.3.5):
>
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:489)
>>   at 
>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1116)
>>   at 
>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>>   at java.util.ArrayList.writeObject(ArrayList.java:570)
>>   at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
>>   at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>   at java.lang.reflect.Method.invoke(Method.java:597)
>>   at 
>> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
>>   at 
>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
>>   at 
>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>>   at 
>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>   at 
>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:496)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:388)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>   at 
>> org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:678)
>>   at 
>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
>>   at 
>> org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:125)
>>   at 
>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
>>   at 
>> org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1085)
>>   at 
>> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197)
>>   at 
>> org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:810)
>>   at 
>> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
>>   at org.apache.wicket.Session.requestDetached(Session.java:1370)
>>   at org.apache.wicket.RequestCycle.deta

Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread Timo Rantalaiho
On Tue, 20 Jan 2009, Per Newgro wrote:
>super(pId, new Model>(new 
> ArrayList()));

super(pId, new ListModel(new 
ArrayList()));

https://issues.apache.org/jira/browse/WICKET-1745

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketNotSerializableException

2009-01-20 Thread Thomas Singer
> as you can see from the stack - when wicket tries to save the page to
> the diskstore.

And when it will do that?

> the checker should tell you exactly what field of what class held
> nonserializable data

I know that, but before fixing anything I'd like to be able to reproduce the
problem locally.

Tom


Igor Vaynberg wrote:
> On Tue, Jan 20, 2009 at 11:39 AM, Thomas Singer  wrote:
>>> the checker is always used
>> When exactly?
> 
> as you can see from the stack - when wicket tries to save the page to
> the diskstore.
> 
> the checker should tell you exactly what field of what class held
> nonserializable data... what is the full stacktrace?
> 
> -igor
> 
>>> is version of jvm the same in prod and dev?
>> Yes, even the tomcat version is the same.
>>
>> Tom
>>
>>
>> Igor Vaynberg wrote:
>>> what are the higher stack frames?
>>>
>>> the checker is always used so it is interesting you do not get those
>>> exceptions. is version of jvm the same in prod and dev?
>>>
>>> -igor
>>>
>>> On Mon, Jan 19, 2009 at 11:29 AM, Thomas Singer  wrote:
 The stacktrace is following (using Wicket 1.3.5):

>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342)
>   at 
> org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
>   at 
> org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:489)
>   at 
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1116)
>   at 
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>   at java.util.ArrayList.writeObject(ArrayList.java:570)
>   at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
>   at 
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
>   at 
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>   at 
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>   at 
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:496)
>   at 
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>   at 
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:388)
>   at 
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>   at 
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>   at 
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>   at 
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>   at 
> org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:678)
>   at 
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
>   at 
> org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:125)
>   at 
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
>   at 
> org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1085)
>   at 
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197)
>   at 
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:810)
>   at 
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
>   at org.apache.wicket.Session.requestDetached(Session.java:1370)
>   at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1091)
>   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1348)
>   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>   at 
> org.apache.wicket.protocol.

Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread Per Newgro
Sure thats what i've red in the docs to. But i don't see it for my 
special case.

I will get a NoSerializableException if it's not. So where is the problem?

But as i wrote - i can deal with that implementation, if i get out of my 
problem.


Thanks
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketNotSerializableException

2009-01-20 Thread Igor Vaynberg
On Tue, Jan 20, 2009 at 11:39 AM, Thomas Singer  wrote:
>> the checker is always used
>
> When exactly?

as you can see from the stack - when wicket tries to save the page to
the diskstore.

the checker should tell you exactly what field of what class held
nonserializable data... what is the full stacktrace?

-igor

>
>> is version of jvm the same in prod and dev?
>
> Yes, even the tomcat version is the same.
>
> Tom
>
>
> Igor Vaynberg wrote:
>> what are the higher stack frames?
>>
>> the checker is always used so it is interesting you do not get those
>> exceptions. is version of jvm the same in prod and dev?
>>
>> -igor
>>
>> On Mon, Jan 19, 2009 at 11:29 AM, Thomas Singer  wrote:
>>> The stacktrace is following (using Wicket 1.3.5):
>>>
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342)
   at 
 org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
   at 
 org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:489)
   at 
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1116)
   at 
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
   at java.util.ArrayList.writeObject(ArrayList.java:570)
   at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at 
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
   at 
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
   at 
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
   at 
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
   at 
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:496)
   at 
 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
   at 
 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:388)
   at 
 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
   at 
 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
   at 
 org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
   at 
 org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
   at 
 org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:678)
   at 
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
   at 
 org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:125)
   at 
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
   at 
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1085)
   at 
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197)
   at 
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:810)
   at 
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
   at org.apache.wicket.Session.requestDetached(Session.java:1370)
   at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1091)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1348)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
   at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
   at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
 org.apache.catalina.core.StandardWrapperVal

Re: Using AbstractDefaultAjaxBehavior on a Bookmarkable page?

2009-01-20 Thread Igor Vaynberg
sounds about right. attach the quickstart to a jira issue and we will
take a look.

-igor

On Tue, Jan 20, 2009 at 11:35 AM, jWeekend  wrote:
>
> Igor,
>
> I've had a look at Wayne's quickstart.
>
> The problem he hit is that if a page, P,  with a no-args constructor (ie P
> is "bookmarkable") has an AJAX behaviour added to it and P is arrived at via
> a BookmarkablePageLink on some other page, then Wicket can't find that P
> instance in the session to handle any callbacks and delivers the infamous
> "Page Expired" page. If you add the same AJAX behaviour to a label on P,
> then the callback works.
>
> If you change the BookmarkablePageLink to a PageLink things work as
> expected.
>
> It's almost as if, when the the page is created due to a click on a
> BookmarkableLink, Wicket is deciding it only needs to consider the page
> stateful if it contains components that have callbacks/ajax-bahaviours, but
> if there are none, it doesn't bother checking the page object itself for
> such callbacks. Is that what you'd expect?
>
> The result is the same with both 1.3.5 and 1.4-rc1.
>
> See the attached quickstart which is the simplest example I could make to
> demonstrate what Wayne sent me.
>
> Regards - Cemal
> http://www.jWeekend.co.uk jWeekend
>
>
>
> igor.vaynberg wrote:
>>
>> no, it is not normal. please provide a quickstart.
>>
>> -igor
>>
>> On Tue, Jan 20, 2009 at 4:20 AM, Wayne Pope
>>  wrote:
>>> Hi,
>>>
>>> when I use an AbstractDefaultAjaxBehavior on a Bookmarkable page I get a
>>> :
>>>
>>> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
>>> rendered page in session
>>> [pagemap=null,componentPath=37,versionNumber=0]
>>>
>>> However if the AbstractDefaultAjaxBehavior  is on a none nookmarkable
>>> page it works fine.
>>>
>>> Is this normal?
>>>
>>> thanks
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
> http://www.nabble.com/file/p21570037/quickstart.zip quickstart.zip
> --
> View this message in context: 
> http://www.nabble.com/Using-AbstractDefaultAjaxBehavior-on-a-Bookmarkable-page--tp21562119p21570037.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketNotSerializableException

2009-01-20 Thread Thomas Singer
> the checker is always used 

When exactly?

> is version of jvm the same in prod and dev?

Yes, even the tomcat version is the same.

Tom


Igor Vaynberg wrote:
> what are the higher stack frames?
> 
> the checker is always used so it is interesting you do not get those
> exceptions. is version of jvm the same in prod and dev?
> 
> -igor
> 
> On Mon, Jan 19, 2009 at 11:29 AM, Thomas Singer  wrote:
>> The stacktrace is following (using Wicket 1.3.5):
>>
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:489)
>>>   at 
>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1116)
>>>   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>>>   at java.util.ArrayList.writeObject(ArrayList.java:570)
>>>   at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
>>>   at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>   at java.lang.reflect.Method.invoke(Method.java:597)
>>>   at 
>>> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
>>>   at 
>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
>>>   at 
>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>>>   at 
>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>>   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:496)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:388)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533)
>>>   at 
>>> org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:678)
>>>   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
>>>   at 
>>> org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:125)
>>>   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
>>>   at 
>>> org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1085)
>>>   at 
>>> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197)
>>>   at 
>>> org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:810)
>>>   at 
>>> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
>>>   at org.apache.wicket.Session.requestDetached(Session.java:1370)
>>>   at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1091)
>>>   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1348)
>>>   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>>>   at 
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
>>>   at 
>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>>>   at 
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>>   at 
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>>   at 
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
>>>   at 
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>>>   at 
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
>>>   at 
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>   at 
>>> org.apache.catalina.valves.Er

Re: Using AbstractDefaultAjaxBehavior on a Bookmarkable page?

2009-01-20 Thread jWeekend

Igor,

I've had a look at Wayne's quickstart. 

The problem he hit is that if a page, P,  with a no-args constructor (ie P
is "bookmarkable") has an AJAX behaviour added to it and P is arrived at via
a BookmarkablePageLink on some other page, then Wicket can't find that P
instance in the session to handle any callbacks and delivers the infamous
"Page Expired" page. If you add the same AJAX behaviour to a label on P,
then the callback works. 

If you change the BookmarkablePageLink to a PageLink things work as
expected. 

It's almost as if, when the the page is created due to a click on a
BookmarkableLink, Wicket is deciding it only needs to consider the page
stateful if it contains components that have callbacks/ajax-bahaviours, but
if there are none, it doesn't bother checking the page object itself for
such callbacks. Is that what you'd expect?

The result is the same with both 1.3.5 and 1.4-rc1. 

See the attached quickstart which is the simplest example I could make to
demonstrate what Wayne sent me.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 



igor.vaynberg wrote:
> 
> no, it is not normal. please provide a quickstart.
> 
> -igor
> 
> On Tue, Jan 20, 2009 at 4:20 AM, Wayne Pope
>  wrote:
>> Hi,
>>
>> when I use an AbstractDefaultAjaxBehavior on a Bookmarkable page I get a
>> :
>>
>> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
>> rendered page in session
>> [pagemap=null,componentPath=37,versionNumber=0]
>>
>> However if the AbstractDefaultAjaxBehavior  is on a none nookmarkable
>> page it works fine.
>>
>> Is this normal?
>>
>> thanks
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 
http://www.nabble.com/file/p21570037/quickstart.zip quickstart.zip 
-- 
View this message in context: 
http://www.nabble.com/Using-AbstractDefaultAjaxBehavior-on-a-Bookmarkable-page--tp21562119p21570037.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread James Carman
A Model is serialized, therefore the object contained within it must
be serializable.  Perhaps you need a LoadableDetachableModel of some
sort?

On Tue, Jan 20, 2009 at 2:03 PM, Per Newgro  wrote:
> Do you mean that way?
>
> public class MyPanel extends BasePanel> {
>  public MyPanel(String pId) {
>   super(pId, new Model>(new
> ArrayList()));
>  }
> }
>
> That way i get
> Bound mismatch: The type List is not a valid substitute
> for the bounded parameter  of the type Model
>
> What i try is to get a panel with a listview on it to work. The panel is
> autonomic. And all i tried was to assign a model with a data container for
> the items. I can add them by calling a panel method.
>
> List is not extending Serializable - ok. But why do i have to put a
> Serializable into Model. I can deal with that decision because i'm "only" a
> API user. But i would like to get an alternative. But until now i didn't
> found one.
>
> Thanks for your help
> Per
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread Per Newgro

Do you mean that way?

public class MyPanel extends BasePanel> {
 public MyPanel(String pId) {
   super(pId, new Model>(new 
ArrayList()));

 }
}

That way i get
Bound mismatch: The type List is not a valid 
substitute for the bounded parameter  of the 
type Model


What i try is to get a panel with a listview on it to work. The panel is 
autonomic. And all i tried was to assign a model with a data container 
for the items. I can add them by calling a panel method.


List is not extending Serializable - ok. But why do i have to put a 
Serializable into Model. I can deal with that decision because i'm 
"only" a API user. But i would like to get an alternative. But until now 
i didn't found one.


Thanks for your help
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread Matej Knopp
You declare the class with MySerializableClass as generic parameter to
BasePanel, but try to put List in constructor.
That can't work.

Why can't you use List as generic parameter when
extending BasePanel?

-Matej

On Tue, Jan 20, 2009 at 7:22 PM, Per Newgro  wrote:
> BasePanel is
>
> public abstract class BasePanel extends Panel implements IChangeHandler {
>
>   /**
>* Constructor of BasePanel
>* @param pId wicket id of component
>*/
>   public BasePanel(String pId) {
>   super(pId);
>   }
>
>   /**
>* Constructor of BasePanel
>* @param pId wicket id of component
>* @param pModel path to model data
>*/
>   public BasePanel(String pId, IModel pModel) {
>   super(pId, pModel);
>   }
> }
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread Per Newgro

BasePanel is

public abstract class BasePanel extends Panel implements IChangeHandler {

   /**
* Constructor of BasePanel
* @param pId wicket id of component
*/
   public BasePanel(String pId) {
   super(pId);
   }

   /**
* Constructor of BasePanel
* @param pId wicket id of component
* @param pModel path to model data
*/
   public BasePanel(String pId, IModel pModel) {
   super(pId, pModel);
   }
}

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket cannot setValue for the RequiredTextField

2009-01-20 Thread Mo Wu

Dear experts,

I am writing auto-test code for wicket application I developed.
In one webpage, there is one "form", and the "form" contains several
RequiredTextField (e.g. "id" and "alias").
In my test, I try to set the value for the RequiredTextField by doing:

FormTester form = tester.newFormTester("form");
form.setValue("id", "1000");
form.setValue("alias", "alias-1000");

But the value is not set, I also use the following code to confirm it:
assertEquals(form.getTextComponentValue("id"), "1000");
assertEquals(form.getTextComponentValue("alias"), "alias-1000");

I think must be something wrong with it. It works fine if use TextField
instead.

Thanks for your help!

Best regards,

Mo Wu
-- 
View this message in context: 
http://www.nabble.com/Wicket-cannot-setValue-for-the-RequiredTextField-tp21566732p21566732.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using AbstractDefaultAjaxBehavior on a Bookmarkable page?

2009-01-20 Thread jWeekend

Wayne,

The concept behind your site looks interesting - good luck with it. 
I'd like to the see the quickstart as your post wasn't totally clear whether
the page was given the ADAB or the page was given a component which had the
ADAB - either way I didn't replicate the problem. 

Regard - Cemal
http://www.jWeekend.co.uk jWeekend 


Wayne Pope-2 wrote:
> 
> Ok I figured out the issue (I have a quick start if you want)
> 
> The problem occures if you add a AbstractDefaultAjaxBehavior to a
> Page. If its a component it works fine.
> 
> Wayne
> 
> 
> www.glasscubes.com
> 
> On Tue, Jan 20, 2009 at 4:17 PM, Igor Vaynberg 
> wrote:
>> no, it is not normal. please provide a quickstart.
>>
>> -igor
>>
>> On Tue, Jan 20, 2009 at 4:20 AM, Wayne Pope
>>  wrote:
>>> Hi,
>>>
>>> when I use an AbstractDefaultAjaxBehavior on a Bookmarkable page I get a
>>> :
>>>
>>> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
>>> rendered page in session
>>> [pagemap=null,componentPath=37,versionNumber=0]
>>>
>>> However if the AbstractDefaultAjaxBehavior  is on a none nookmarkable
>>> page it works fine.
>>>
>>> Is this normal?
>>>
>>> thanks
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-AbstractDefaultAjaxBehavior-on-a-Bookmarkable-page--tp21562119p21566671.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using AbstractDefaultAjaxBehavior on a Bookmarkable page?

2009-01-20 Thread Wayne Pope
Ok I figured out the issue (I have a quick start if you want)

The problem occures if you add a AbstractDefaultAjaxBehavior to a
Page. If its a component it works fine.

Wayne


www.glasscubes.com

On Tue, Jan 20, 2009 at 4:17 PM, Igor Vaynberg  wrote:
> no, it is not normal. please provide a quickstart.
>
> -igor
>
> On Tue, Jan 20, 2009 at 4:20 AM, Wayne Pope
>  wrote:
>> Hi,
>>
>> when I use an AbstractDefaultAjaxBehavior on a Bookmarkable page I get a :
>>
>> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
>> rendered page in session
>> [pagemap=null,componentPath=37,versionNumber=0]
>>
>> However if the AbstractDefaultAjaxBehavior  is on a none nookmarkable
>> page it works fine.
>>
>> Is this normal?
>>
>> thanks
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using AbstractDefaultAjaxBehavior on a Bookmarkable page?

2009-01-20 Thread Igor Vaynberg
no, it is not normal. please provide a quickstart.

-igor

On Tue, Jan 20, 2009 at 4:20 AM, Wayne Pope
 wrote:
> Hi,
>
> when I use an AbstractDefaultAjaxBehavior on a Bookmarkable page I get a :
>
> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
> rendered page in session
> [pagemap=null,componentPath=37,versionNumber=0]
>
> However if the AbstractDefaultAjaxBehavior  is on a none nookmarkable
> page it works fine.
>
> Is this normal?
>
> thanks
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem with dropdownchoice

2009-01-20 Thread jWeekend

Be careful - that code is becoming very messy. 
It's better to 
http://cwiki.apache.org/WICKET/working-with-wicket-models.html read about
how to use models  rather than invent adhoc and unorthodox methods like
getDevices() that returns one device (rather than a collection containing 0,
1 or more devices) just so you can make this work. 

For your case/code read about CompoundPropertyModel - you have not given
your DDC a model so it is looking up the (containment) hierarchy for a
CompoundPropertyModel and it will try to bind to a "devices" property on
that CompoundPropertyModel's object).

Regards - Cemal
http://www.jWeekend.com jWeekend 





itayke wrote:
> 
> Hi,
> 
> Seem like the problem is solved by adding a "Device" class member and
> these getter and setter to the FormInput class:
> 
>   public Device getDevices(){
>   return new Device();
>   }
>   
>   
>   public void setDevices(Device d){
>   device = d;
>   }
> 
> 
> thanks for your help.
> 
> 
> 
> 
> 
> Alex Objelean wrote:
>> 
>> 
>> Wicket expects that FormInput would have a getter for devices. This
>> happens because you are using CompoundPropertyModel with your
>> formthus the wicket id is automatically used as a propertyModel on
>> the form model object. 
>> 
>> Alex Objelean
>> 
>> 
>> itayke wrote:
>>> 
>>> Hi,
>>> 
>>> I have this problem with my dropdownchoice with results in 
>>> WicketMessage: No get method defined for class: class
>>> screens.CustomerFilters$FormInput expression: devices
>>> 
>>> were the java class has:
>>> 
>>> public CustomerFilters(){
>>> super();
>>> FormInput formInput = new FormInput("Form");
>>> setModel(new CompoundPropertyModel(formInput));
>>> add(formInput);
>>>..
>>> 
>>>  }
>>> 
>>> 
>>> and the form class:
>>> 
>>> public class FormInput extends Form{
>>> 
>>> String deviceID;
>>> 
>>> public FormInput(String id) {
>>> super(id);
>>> 
>>> DropDownChoice ddc = 
>>> new DropDownChoice("devices", 
>>> getDevicesList(), //this will 
>>> return a list of Device POJOs
>>> new IChoiceRenderer() { 
>>> public Object getDisplayValue(Object 
>>> object) { 
>>> return 
>>> ((Device)object).getDeviceName(); 
>>> } 
>>> public String getIdValue(Object object, 
>>> int index) { 
>>> return 
>>> ((Device)object).getDeviceID(); 
>>> } 
>>> }); 
>>> 
>>> add(ddc);
>>> }
>>> 
>>> I also have a simple "Device" POJO class with getters and setters.
>>> The HTML looks like that:
>>> 
>>> ...
>>> 
>>> 
>>> 
>>> Select Device
>>> 
>>> Some device
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ...
>>> 
>>> 
>>> 
>>> Any ideas what i'm doing wrong?
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-dropdownchoice-tp21563513p21565122.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Logging from Wicket alone and together with Spring and Hibernate + my own code

2009-01-20 Thread Erik van Oosten

Hi Kent,

I am using the SLF4j implementation of commons-logging. If you use 
maven2 take a look at this blog article for an pom example that will set 
this up with log4j as logging backend: 
http://day-to-day-stuff.blogspot.com/2007/07/no-more-commons-logging.html.


Below is a more up to date pom extract that also adds a 
java.util.logging to slf4j bridge (you need to call 
SLF4JBridgeHandler.install() at some point during application init).


Regards,
   Erik.

   
   
   
   commons-logging
   commons-logging
   99.0-does-not-exist
   provided
   
   
   
   org.slf4j
   jcl-over-slf4j
   1.5.2
   
   
   
   org.slf4j
   jul-to-slf4j
   1.5.2
   

   
   org.slf4j
   slf4j-api
   1.5.2
   
   
   
   org.slf4j
   slf4j-log4j12
   1.5.2
   
   
   log4j
   log4j
   1.2.14
   
   




Kent Larsson wrote

Hi, I have some questions about logging, more specifically about setting it
up and making sure it works.

The project I'm doing will use Wicket, Spring and Hibernate. I know that
Wicket and Hibernate uses Simple Logging Facade for Java (SL4J) and that
Spring is using the logging component from Apache Commons.

Will they co-exist happily?
I thought I would use log4j together with both SL4J and the logging
component from Apache commons, do you think that's a good idea?

Can I set up them all to output logging data into a common file?
Or should I use separate files?
Or should I store the logging messages in the database? (I'd rather not, as
I find grepping etc on text files quite convenient.)

Not strictly Wicket, but for Spring I guess I need some kind of
configuration file for the Apache Commons logging component as well where I
direct it to use log4j?

When I've set these up I guess to see that everything works I set the
logging level to INFO as it's fairly certain that all three of the
frameworks output some information in that mode? Or is there an even better
way to make sure?

And my last question. In the project I'm starting, do you recommend that I
use SL4J for my own logging purposes? (I thought I would use log4j directly,
but that was before I learned a little bit more about logging and a lot of
respectable libraries seem to choose the path of a bridge/facade for their
logging needs. And if it gets us flexibility without added cost there's no
reason not to do it that way.)

I'm looking forward to hearing more from you about how you are doing your
logging. It's a new area for me which I'm eager to improve myself in.

Best regards, Kent

  

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Logging from Wicket alone and together with Spring and Hibernate + my own code

2009-01-20 Thread Kent Larsson
Hi, I have some questions about logging, more specifically about setting it
up and making sure it works.

The project I'm doing will use Wicket, Spring and Hibernate. I know that
Wicket and Hibernate uses Simple Logging Facade for Java (SL4J) and that
Spring is using the logging component from Apache Commons.

Will they co-exist happily?
I thought I would use log4j together with both SL4J and the logging
component from Apache commons, do you think that's a good idea?

Can I set up them all to output logging data into a common file?
Or should I use separate files?
Or should I store the logging messages in the database? (I'd rather not, as
I find grepping etc on text files quite convenient.)

Not strictly Wicket, but for Spring I guess I need some kind of
configuration file for the Apache Commons logging component as well where I
direct it to use log4j?

When I've set these up I guess to see that everything works I set the
logging level to INFO as it's fairly certain that all three of the
frameworks output some information in that mode? Or is there an even better
way to make sure?

And my last question. In the project I'm starting, do you recommend that I
use SL4J for my own logging purposes? (I thought I would use log4j directly,
but that was before I learned a little bit more about logging and a lot of
respectable libraries seem to choose the path of a bridge/facade for their
logging needs. And if it gets us flexibility without added cost there's no
reason not to do it that way.)

I'm looking forward to hearing more from you about how you are doing your
logging. It's a new area for me which I'm eager to improve myself in.

Best regards, Kent


Re: problem with dropdownchoice

2009-01-20 Thread itayke

Hi,

Seem like the problem is solved by adding a "Device" class member and these
getter and setter to the FormInput class:

public Device getDevices(){
return new Device();
}


public void setDevices(Device d){
device = d;
}


thanks for your help.





Alex Objelean wrote:
> 
> 
> Wicket expects that FormInput would have a getter for devices. This
> happens because you are using CompoundPropertyModel with your formthus
> the wicket id is automatically used as a propertyModel on the form model
> object. 
> 
> Alex Objelean
> 
> 
> itayke wrote:
>> 
>> Hi,
>> 
>> I have this problem with my dropdownchoice with results in 
>> WicketMessage: No get method defined for class: class
>> screens.CustomerFilters$FormInput expression: devices
>> 
>> were the java class has:
>> 
>>  public CustomerFilters(){
>>  super();
>>  FormInput formInput = new FormInput("Form");
>>  setModel(new CompoundPropertyModel(formInput));
>>  add(formInput);
>>..
>> 
>>  }
>> 
>> 
>> and the form class:
>> 
>>  public class FormInput extends Form{
>> 
>>  String deviceID;
>>  
>>  public FormInput(String id) {
>>  super(id);
>>  
>>  DropDownChoice ddc = 
>>  new DropDownChoice("devices", 
>>  getDevicesList(), //this will 
>> return a list of Device POJOs
>>  new IChoiceRenderer() { 
>>  public Object getDisplayValue(Object 
>> object) { 
>>  return 
>> ((Device)object).getDeviceName(); 
>>  } 
>>  public String getIdValue(Object object, 
>> int index) { 
>>  return 
>> ((Device)object).getDeviceID(); 
>>  } 
>>  }); 
>> 
>>  add(ddc);
>>  }
>> 
>> I also have a simple "Device" POJO class with getters and setters.
>> The HTML looks like that:
>> 
>> ...
>> 
>> 
>> 
>> Select Device
>> 
>> Some device
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ...
>> 
>> 
>> 
>> Any ideas what i'm doing wrong?
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-dropdownchoice-tp21563513p21564437.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Getting the Exception from Exception Page (for logging purposes)...

2009-01-20 Thread Graeme Knight

AWESOME! Thanks!


igor.vaynberg wrote:
> 
> you can override requestcycle#onruntimeexception(exception e) and log it
> there.
> 
> -igor
> 
> On Mon, Jan 19, 2009 at 6:40 PM, Graeme Knight 
> wrote:
>>
>> Hi,
>>
>> Is it possible that after setting UnexpectedExceptionDisplay page, you
>> can
>> get the exception that caused this page to be fired up?
>>
>> Cheers, Graeme.
>> --
>> View this message in context:
>> http://www.nabble.com/Getting-the-Exception-from-Exception-Page-%28for-logging-purposes%29...-tp21555998p21555998.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-the-Exception-from-Exception-Page-%28for-logging-purposes%29...-tp21555998p21564064.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem with dropdownchoice

2009-01-20 Thread Dipu
take a look at Wicket Examples -> FormInput

Dipu

On Tue, Jan 20, 2009 at 1:53 PM, itayke  wrote:
>
> Hi,
>
> I have this problem with my dropdownchoice with results in
> WicketMessage: No get method defined for class: class
> screens.CustomerFilters$FormInput expression: devices
>
> were the java class has:
>
>public CustomerFilters(){
>super();
>FormInput formInput = new FormInput("Form");
>setModel(new CompoundPropertyModel(formInput));
>add(formInput);
>   ..
>
> }
>
>
> and the form class:
>
>public class FormInput extends Form{
>
>String deviceID;
>
>public FormInput(String id) {
>super(id);
>
>DropDownChoice ddc =
>new DropDownChoice("devices",
>getDevicesList(), //this will 
> return a list of Device POJOs
>new IChoiceRenderer() {
>public Object getDisplayValue(Object 
> object) {
>return 
> ((Device)object).getDeviceName();
>}
>public String getIdValue(Object 
> object, int index) {
>return 
> ((Device)object).getDeviceID();
>}
>});
>
>add(ddc);
>}
>
> I also have a simple "Device" POJO class with getters and setters.
> The HTML looks like that:
>
> ...
> 
> 
> 
>Select Device
>
>Some device
>
>
> 
> 
> 
> 
>
> ...
>
>
>
> Any ideas what i'm doing wrong?
>
> --
> View this message in context: 
> http://www.nabble.com/problem-with-dropdownchoice-tp21563513p21563513.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem with dropdownchoice

2009-01-20 Thread Alex Objelean


Wicket expects that FormInput would have a getter for devices. This happens
because you are using CompoundPropertyModel with your formthus the
wicket id is automatically used as a propertyModel on the form model object. 

Alex Objelean


itayke wrote:
> 
> Hi,
> 
> I have this problem with my dropdownchoice with results in 
> WicketMessage: No get method defined for class: class
> screens.CustomerFilters$FormInput expression: devices
> 
> were the java class has:
> 
>   public CustomerFilters(){
>   super();
>   FormInput formInput = new FormInput("Form");
>   setModel(new CompoundPropertyModel(formInput));
>   add(formInput);
>..
> 
>  }
> 
> 
> and the form class:
> 
>   public class FormInput extends Form{
> 
>   String deviceID;
>   
>   public FormInput(String id) {
>   super(id);
>   
>   DropDownChoice ddc = 
>   new DropDownChoice("devices", 
>   getDevicesList(), //this will 
> return a list of Device POJOs
>   new IChoiceRenderer() { 
>   public Object getDisplayValue(Object 
> object) { 
>   return 
> ((Device)object).getDeviceName(); 
>   } 
>   public String getIdValue(Object object, 
> int index) { 
>   return 
> ((Device)object).getDeviceID(); 
>   } 
>   }); 
> 
>   add(ddc);
>   }
> 
> I also have a simple "Device" POJO class with getters and setters.
> The HTML looks like that:
> 
> ...
> 
> 
> 
> Select Device
> 
> Some device
> 
> 
> 
> 
> 
> 
> 
> ...
> 
> 
> 
> Any ideas what i'm doing wrong?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-dropdownchoice-tp21563513p21563790.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



problem with dropdownchoice

2009-01-20 Thread itayke

Hi,

I have this problem with my dropdownchoice with results in 
WicketMessage: No get method defined for class: class
screens.CustomerFilters$FormInput expression: devices

were the java class has:

public CustomerFilters(){
super();
FormInput formInput = new FormInput("Form");
setModel(new CompoundPropertyModel(formInput));
add(formInput);
   ..

 }


and the form class:

public class FormInput extends Form{

String deviceID;

public FormInput(String id) {
super(id);

DropDownChoice ddc = 
new DropDownChoice("devices", 
getDevicesList(), //this will 
return a list of Device POJOs
new IChoiceRenderer() { 
public Object getDisplayValue(Object 
object) { 
return 
((Device)object).getDeviceName(); 
} 
public String getIdValue(Object object, 
int index) { 
return 
((Device)object).getDeviceID(); 
} 
}); 

add(ddc);
}

I also have a simple "Device" POJO class with getters and setters.
The HTML looks like that:

...



Select Device

Some device







...



Any ideas what i'm doing wrong?

-- 
View this message in context: 
http://www.nabble.com/problem-with-dropdownchoice-tp21563513p21563513.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem using @SpringBean with Wicket 1.3.5

2009-01-20 Thread Kent Larsson
Thanks Igor!

That helped me.

I wrote this in our internal documentation and I'm including it in case
someone searches for this problem:

A change which is normally done in the conf file catalina.policy is needed.
Ubuntu prefers to split that file into different parts and merge it before
starting the service. If we would edit catalina.policy our changes would be
lost next time the server starts and would never come in effect as that's
when the file is read. Instead we edit
"/etc/tomcat5.5/policy.d/04webapps.policy" and add the following three lines
to it at the end (webcarrot is the web project directory name):

grant codeBase "file:/var/lib/tomcat5.5/webapps/webcarrot/-" {
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

On Mon, Jan 19, 2009 at 9:43 PM, Igor Vaynberg wrote:

> you have to disable the security manager that your servlet container
> is using because it is blocking wicket's reflection calls.
>
> -igor
>
> On Mon, Jan 19, 2009 at 12:30 PM, Kent Larsson 
> https://mail.google.com/mail?view=cm&tf=0&to=kent.lars...@gmail.com>>
> wrote:
> > Hi,
> >
> > I've tried to solve this for several hours now, without success, but then
> > again I'm not that experienced. :-)
> >
> > I have an application with Spring beans which I want to use from Wicket,
> > using @SpringBean. To see that Spring works fine I've tried using my bean
> > without the @SpringBean annotation. By having
> >
> >@Override
> >protected void init() {
> >super.init();
> >ctx = new
> ClassPathXmlApplicationContext("applicationContext.xml");
> >}
> >
> >public UserRegistrationService getUserRegistrationService() {
> >return (UserRegistrationService) BeanFactoryUtils.beanOfType(ctx,
> > UserRegistrationService.class);
> >}
> >
> > In my class which extends WebApplication (my Application class). It works
> > fine that way! So it must have something to do with how I try to use the
> > @SpringBean annotation.
> >
> > First I have
> >
> >@Override
> >protected void init() {
> >super.init();
> >addComponentInstantiationListener(new
> > SpringComponentInjector(this));
> >}
> >
> > In my Application class and in my web.xml I have added
> >
> >
> >contextConfigLocation
> >classpath:applicationContext.xml
> >
> >
> >
> >
> >
> org.springframework.web.context.ContextLoaderListener
> >
> >
> > and in my Page where I try to use the UserRegistrationService I have
> >
> >@SpringBean
> >UserRegistrationService userRegistrationService;
> >
> >/**
> > * Constructor...
> > */
> >public UserRegistrationPage(final PageParameters parameters) {
> >add(new Label("message",
> > userRegistrationService.takeSomeString("hello service") ));
> >}
> >
> > But when I try this I get
> >
> > " WicketMessage: Can't instantiate page using constructor public
> >
> net.mycompany.webcarrot.presentation.pages.UserRegistrationPage(org.apache.wicket.PageParameters)
> > and argument "
> >
> > I have a complete stack trace at pastebin (to not pollute the mail with
> it)
> > http://pastebin.com/f7c12d56c
> >
> > I hope someone more experienced with Wicket than me knows what's going on
> > here. I've tried to solve it for a couple of hours, but I can't find any
> > faults in it (I'm trying to follow the instructions in Wicket in Action).
> >
> > Thank you for your time reading! Any help is HIGHLY appreciated! Have a
> nice
> > day!
> >
> > Best regards, Kent
> >
>
> -
> To unsubscribe, e-mail: 
> users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: 
> users-h...@wicket.apache.org
>
>


Re: Problem using @SpringBean with Wicket 1.3.5

2009-01-20 Thread Kent Larsson
Hi Phillip,

The help I got from Igor Vaynberg solved my problem. It was the security
manager which was restricting my application from using the Reflection API.

I wrote this in our internal documentation:

A change which is normally done in the conf file catalina.policy is needed.
Ubuntu prefers to split that file into different parts and merge it before
starting the service. If we would edit catalina.policy our changes would be
lost next time the server starts and would never come in effect as that's
when the file is read. Instead we edit
"/etc/tomcat5.5/policy.d/04webapps.policy" and add the following three lines
to it at the end (webcarrot is the web project directory name):

grant codeBase "file:/var/lib/tomcat5.5/webapps/webcarrot/-" {
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

I comment your answer below:

On Tue, Jan 20, 2009 at 4:59 AM, Phillip Rhodes
wrote:

> Kent,  I am using 1.3.5 fine with springbean. some differences that I see
> between your/mine is that I have the "protected" modifier.
> Mine:
>@SpringBean(name = "eventService") protected EventService
> eventService;


It works using private too.

As far as the Reflection API is concerned It does not matter. You can read
and change private fields using Reflection as well. It could matter if the
wicket-spring-annot project had made some decision to only support protected
& public modified fields. But I think it's a long shot and the Wicket Wiki
example uses private too: http://cwiki.apache.org/WICKET/spring.html .


> another difference: Try adding a slash to the beginning of your spring path
> classpath:/applicationContext.xml


They don't use any slash in the example in Wicket in Action. But maybe they
both work. At least not using one works.


> Do you have a bean by the name of userRegistrationService" in your spring
> context? In your code, you are just requesting a bean of the type, not by
> id.


No I named it UserRegistrationService (with a capital U). Yes I am
requesting by type, so why would the name matter? (I don't think it does.)


> try doing a ctx.getBean("userRegistrationService") and make sure it's not
> null.


I can get the bean by name using @SpringBean too. I tried changing my bean
definition (so there would be no name-class relation) to:



And then I used it using

@SpringBean(name="getmebymyname")
UserRegistrationService userRegistrationService;

And it worked well.

Thank you for trying to help me though!



> HTH, Phillip
>
> On Jan 19, 2009, at 3:30 PM, Kent Larsson wrote:
>
>  Hi,
>>
>> I've tried to solve this for several hours now, without success, but then
>> again I'm not that experienced. :-)
>>
>> I have an application with Spring beans which I want to use from Wicket,
>> using @SpringBean. To see that Spring works fine I've tried using my bean
>> without the @SpringBean annotation. By having
>>
>>   @Override
>>   protected void init() {
>>   super.init();
>>   ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
>>   }
>>
>>   public UserRegistrationService getUserRegistrationService() {
>>   return (UserRegistrationService) BeanFactoryUtils.beanOfType(ctx,
>> UserRegistrationService.class);
>>   }
>>
>> In my class which extends WebApplication (my Application class). It works
>> fine that way! So it must have something to do with how I try to use the
>> @SpringBean annotation.
>>
>> First I have
>>
>>   @Override
>>   protected void init() {
>>   super.init();
>>   addComponentInstantiationListener(new
>> SpringComponentInjector(this));
>>   }
>>
>> In my Application class and in my web.xml I have added
>>
>>   
>>   contextConfigLocation
>>   classpath:applicationContext.xml
>>   
>>
>>   
>>
>>
>> org.springframework.web.context.ContextLoaderListener
>>   
>>
>> and in my Page where I try to use the UserRegistrationService I have
>>
>>   @SpringBean
>>   UserRegistrationService userRegistrationService;
>>
>>   /**
>>* Constructor...
>>*/
>>   public UserRegistrationPage(final PageParameters parameters) {
>>   add(new Label("message",
>> userRegistrationService.takeSomeString("hello service") ));
>>   }
>>
>> But when I try this I get
>>
>> " WicketMessage: Can't instantiate page using constructor public
>>
>> net.mycompany.webcarrot.presentation.pages.UserRegistrationPage(org.apache.wicket.PageParameters)
>> and argument "
>>
>> I have a complete stack trace at pastebin (to not pollute the mail with
>> it)
>> http://pastebin.com/f7c12d56c
>>
>> I hope someone more experienced with Wicket than me knows what's going on
>> here. I've tried to solve it for a couple of hours, but I can't find any
>> faults in it (I'm trying to follow the instructions in Wicket in Action).
>>
>> Thank you for your time reading! Any help is HIGHLY appreciated! Have a
>> nice
>> day!
>>
>> Best regards, Kent
>>
>
>


Using AbstractDefaultAjaxBehavior on a Bookmarkable page?

2009-01-20 Thread Wayne Pope
Hi,

when I use an AbstractDefaultAjaxBehavior on a Bookmarkable page I get a :

org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=37,versionNumber=0]

However if the AbstractDefaultAjaxBehavior  is on a none nookmarkable
page it works fine.

Is this normal?

thanks

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicketstuff build question

2009-01-20 Thread rossputin

Thanks for your help guys,

all sorted,

Ross


Martin Funk-3 wrote:
> 
> Wicket core corrected a typo in IHeaderResponse which changed the method
> signature.
> So gmap implementing that interface broke.
> I just corrected that, so in the svn repo it should be fine now.
> 
> don't know how fast the build systems catch up on that.
> 
> mf
> 
> 2009/1/19 rossputin 
> 
>>
>> Hi guys.
>>
>> Hoping you can shed some light on this.  I accidentally posted this to
>> the
>> wicketstuff group under nabble, and understand it is best put here in
>> Wicket
>> - User.
>>
>> Recent updates to the wicketstuff-core maven project I use, and
>> wicket-1.4-SNAPSHOT are causing a conflict.  If I build wicketstuff-core
>> against the wicket-1.4-SNAPSHOT from
>> http://svn.apache.org/repos/asf/wicket/trunk there is a problem with the
>> method signature for renderOnEventJavascript for interface
>> org.apache.wicket.markup.html.IHeaderResponse exposed in my gmap2
>> integration.
>>
>> If I use the wicket-1.4-SNAPSHOT as distributed at
>> http://wicketstuff.org/maven/repository the Google Map Integration code
>> works fine, but my ContextImages are broken in the following two ways:
>>
>> 1) The relative path is now wrong... I now need to prepend '../' to my
>> code.. ContextImage editImage = new ContextImage("editImage", new Model
>> ("skin/images/edit.jpg"));
>>
>> 2) For some reason when looking at the path to the image in the
>> browser it is losing the image name part of the path, so I get ..
>> http://localhost:8080/myapp/skin/images/, instead of
>> http://localhost:8080/myapp/skin/images/edit.jpg
>>
>> How is the wicket-1.4-SNAPSHOT distributed by wicketstuff.org different ?
>>
>> Any help would be greatly appreciated,
>>
>> thanks in advance,
>>
>> regards,
>>
>> Ross
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/wicketstuff-build-question-tp21547550p21547550.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicketstuff-build-question-tp21547550p21559726.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicketstuff build question

2009-01-20 Thread Martin Funk
Wicket core corrected a typo in IHeaderResponse which changed the method
signature.
So gmap implementing that interface broke.
I just corrected that, so in the svn repo it should be fine now.

don't know how fast the build systems catch up on that.

mf

2009/1/19 rossputin 

>
> Hi guys.
>
> Hoping you can shed some light on this.  I accidentally posted this to the
> wicketstuff group under nabble, and understand it is best put here in
> Wicket
> - User.
>
> Recent updates to the wicketstuff-core maven project I use, and
> wicket-1.4-SNAPSHOT are causing a conflict.  If I build wicketstuff-core
> against the wicket-1.4-SNAPSHOT from
> http://svn.apache.org/repos/asf/wicket/trunk there is a problem with the
> method signature for renderOnEventJavascript for interface
> org.apache.wicket.markup.html.IHeaderResponse exposed in my gmap2
> integration.
>
> If I use the wicket-1.4-SNAPSHOT as distributed at
> http://wicketstuff.org/maven/repository the Google Map Integration code
> works fine, but my ContextImages are broken in the following two ways:
>
> 1) The relative path is now wrong... I now need to prepend '../' to my
> code.. ContextImage editImage = new ContextImage("editImage", new Model
> ("skin/images/edit.jpg"));
>
> 2) For some reason when looking at the path to the image in the
> browser it is losing the image name part of the path, so I get ..
> http://localhost:8080/myapp/skin/images/, instead of
> http://localhost:8080/myapp/skin/images/edit.jpg
>
> How is the wicket-1.4-SNAPSHOT distributed by wicketstuff.org different ?
>
> Any help would be greatly appreciated,
>
> thanks in advance,
>
> regards,
>
> Ross
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/wicketstuff-build-question-tp21547550p21547550.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>