Re: [Wicket-user] Clueless - Customising Behaviors

2007-07-02 Thread Ballist1c

Thanks Eelco!

just found the src for the latest beta so I can see how the current
AjaxSelfUpdatingTimerBehavior works, ill check out the wicket examples,
should be able to pull it apart in no time.


Eelco Hillenius wrote:
> 
>> At the moment I have been looking for ways to modify the existing
>> AjaxSelfUpdatingTimerBehavior, and i am looking to create my own
>> CustomAjaxSelfUpdatingTimerBehavior that continues to count before the
>> next
>> polling without waiting for the response.
>>
>> i dont know where to start or how to go about it really. I was wondering
>> if
>> anyone knew of any tutorials covering behaviors from the ground up.  I
>> have
>> had a look around and all of the tutorials seem concerned with the API
>> docs
>> and Composite behaviors.
> 
> Please take a good look at the wicket-examples project. It hosts my
> examples concerning behaviors, including AjaxSelfUpdatingTimerBehavior
> and CustomAjaxSelfUpdatingTimerBehavior.
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Clueless---Customising-Behaviors-tf4016423.html#a11406804
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Clueless - Customising Behaviors

2007-07-02 Thread Eelco Hillenius
> At the moment I have been looking for ways to modify the existing
> AjaxSelfUpdatingTimerBehavior, and i am looking to create my own
> CustomAjaxSelfUpdatingTimerBehavior that continues to count before the next
> polling without waiting for the response.
>
> i dont know where to start or how to go about it really. I was wondering if
> anyone knew of any tutorials covering behaviors from the ground up.  I have
> had a look around and all of the tutorials seem concerned with the API docs
> and Composite behaviors.

Please take a good look at the wicket-examples project. It hosts my
examples concerning behaviors, including AjaxSelfUpdatingTimerBehavior
and CustomAjaxSelfUpdatingTimerBehavior.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Clueless - Customising Behaviors

2007-07-02 Thread Ballist1c

Hey guys,

At the moment I have been looking for ways to modify the existing
AjaxSelfUpdatingTimerBehavior, and i am looking to create my own
CustomAjaxSelfUpdatingTimerBehavior that continues to count before the next
polling without waiting for the response.

i dont know where to start or how to go about it really. I was wondering if
anyone knew of any tutorials covering behaviors from the ground up.  I have
had a look around and all of the tutorials seem concerned with the API docs
and Composite behaviors. 

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Clueless---Customising-Behaviors-tf4016423.html#a11406722
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Peter Thomas

On 7/3/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> However, I still would not support setting up Fisheye against an Apache
> SVN without infrastructure's support as they are the ones that would
> have to pick up the pieces if it were to go wrong.

Yeah, that's fair enough :)

Eelco



Raised rfe https://issues.apache.org/jira/browse/WICKET-717
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] A question about DataTable Component.

2007-07-02 Thread Igor Vaynberg

On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I am using the AjaxFallBackDataTable from the wicket-extensions project.
Using this component I am rendering some entities, and I also have a
delete link
for deleting the displayed entities.
The delete link is AjaxFallBackLink.
My question is, once the link is submitted over ajax, and the entity is
deleted, is there
a way to force the Table to update, (over ajax ), without having to reload
the page ?



add it to the ajaxrequesttarget available in your link's onclick. since its
a fallback link make sure you test the target for null. see javadoc.

-igor





thanks


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Clueless - AJAX and messaging based updates to client

2007-07-02 Thread Eelco Hillenius
> I want to add functionality that has the AJAX display update on ALL users
> viewing the webpage when any users inputs a new comment without them having
> to check repeatedly.

Two choices. 1) Build in and Ajax timer that polls for changes
(AjaxSelfUpdatingTimerBehavior would probably be the easiest way to
go, though it would be more efficient to use AbstractAjaxTimerBehavior
and add the components you want to refresh only when you know it needs
updating. 2) Use Ajax comet/ push behavior. I'm not sure what it's
status is, but there is a project for this in wicket-stuff. Won't work
with every servlet container though.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onSubmit() called twice

2007-07-02 Thread Eelco Hillenius
> onSubmit(), and consequently the code I have in that overridden method,
> is being called twice.
>
> I'm wondering if it's my misunderstanding of how Wicket works, and this
> behaviour is intended, or if I somehow introduced a bug in my code.
>
> If this is caused by my error, does anybody have any hints as to where I
> can look to find the source of this method's being called twice?

That should definitively not happen. Can you tell us again what Wicket
version you are using, and can you set a break point in your onSubmit
method and tell us the trace?

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-based dashboard

2007-07-02 Thread Eelco Hillenius
> I'm looking for some advice on how to create a Wicket-based dashboard with
> functionality along the lines of iGoogle.com.  That is, resizable and
> drag/drop-able sub-window components that can be arranged by the user.  And
> the dashboard layout must be serialized for the next time the user logs in.

The drag and drop part is probably the most difficult. Though there's
plenty of JavaScript libs (and probably some Wicket components in one
of the wicket-stuff projects) you can use, you'll probably have to do
a decent amount of writing code yourself as well.

In can imagine that the modal window can serve as inspiration, though
you don't need the ajax loading it has, and I definitively wouldn't
make it page based (but rather panel based).

It would be a great set of components to have, and it sounds fun to develop.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] onSubmit() called twice

2007-07-02 Thread David Leangen

Hello!

onSubmit(), and consequently the code I have in that overridden method,
is being called twice.

I'm wondering if it's my misunderstanding of how Wicket works, and this
behaviour is intended, or if I somehow introduced a bug in my code.

If this is caused by my error, does anybody have any hints as to where I
can look to find the source of this method's being called twice?


Thank you!
David




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Clueless - AJAX and messaging based updates to client

2007-07-02 Thread Ballist1c

Hey guys,

Alright i am moving into new territory and I need some guidance, this may be
an ajax specific query but im not sure.

What i am trying to do is have a page that users can input comments into,
like a guest book.

I want to add functionality that has the AJAX display update on ALL users
viewing the webpage when any users inputs a new comment without them having
to check repeatedly.

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Clueless---AJAX-and-messaging-based-updates-to-client-tf4015691.html#a11404585
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Trying to retrieve the absolute URL

2007-07-02 Thread David Leangen

> There's already an issue for Wicket 1.3 (trunk):
>   - http://issues.apache.org/jira/browse/WICKET-609
> 
> I'm going to get around to that some time this week, I hope.


That's great!

Thank you very much. :-)




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Eelco Hillenius
> However, I still would not support setting up Fisheye against an Apache
> SVN without infrastructure's support as they are the ones that would
> have to pick up the pieces if it were to go wrong.

Yeah, that's fair enough :)

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Upayavira
Eelco Hillenius wrote:
>> You _must_ do this in association with the Apache Infrastructure group.
>>
>> The ASF's repository is large. There have been occasions when FishEye
>> has put the ASF SVN server under an unnecessary load.
>>
>> It _should_ be possible, but _must_ be done in consultation with the
>> infrastructure team.
> 
> I am a little bit suprised tbh. We're talking about a site than checks
> every once in a while for new updates. Maybe it generates the load
> that would normally be generated by a couple of users. Did this really
> gave Apache problems in the past? Others, like Codehaus, Rife or
> sourceforge with us in the past don't seem to have any problems with
> it...

It isn't the ongoing usage that is the problem - it is the initial 
usage. When you set it up (which I have done), it first scans the entire 
history in your SVN repository. (This is configurable though).

And for typical Apache projects, this can create huge loads that can 
make SVN unresponsive to other users (it certainly has in the past).

I do believe Cenqua have done stuff so that Fisheye is more polite. 
However, I still would not support setting up Fisheye against an Apache 
SVN without infrastructure's support as they are the ones that would 
have to pick up the pieces if it were to go wrong.

That need be little more than an email and wait for a response. So not 
necessarily onerous.

Regards, Upayavira

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Upayavira
Eelco Hillenius wrote:
>> You _must_ do this in association with the Apache Infrastructure group.
>>
>> The ASF's repository is large. There have been occasions when FishEye
>> has put the ASF SVN server under an unnecessary load.
>>
>> It _should_ be possible, but _must_ be done in consultation with the
>> infrastructure team.
> 
> I am a little bit suprised tbh. We're talking about a site than checks
> every once in a while for new updates. Maybe it generates the load
> that would normally be generated by a couple of users. Did this really
> gave Apache problems in the past? Others, like Codehaus, Rife or
> sourceforge with us in the past don't seem to have any problems with
> it...

It isn't the ongoing usage that is the problem - it is the initial 
usage. When you set it up (which I have done), it first scans the entire 
history in your SVN repository. (This is configurable though).

And for typical Apache projects, this can create huge loads that can 
make SVN unresponsive to other users (it certainly has in the past).

I do believe Cenqua have done stuff so that Fisheye is more polite. 
However, I still would not support setting up Fisheye against an Apache 
SVN without infrastructure's support as they are the ones that would 
have to pick up the pieces if it were to go wrong.

Regards, Upayavira

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Schedule for the London Wicket User Group, July 3rd, 2007

2007-07-02 Thread jweekend

We've finalised the schedule for tomorrow evening's first 
http://londonwicket.org London Wicket  event:

18:30 Pizza.
19:00  http://jWeekend.com Cemal Bayramoglu  - Welcome, schedule.
19:05  http://herebebeasties.com Alastair Maw  - Introduction to Wicket,
"Hello World".
19:20 Cemal - Setting up QuickStart for Wicket 1.3 beta 2. A simple booking
page.
20:00  "http://herebebeasties.com Alastair - Building reusable components. A
quick look at Spring and Google Maps integration.
21:00  http://zoomf.com Matt Dudbridge - Building  http://zoomf.com
zoomf.com .
22:00 Alastair, Matt & Cemal - Q & A.
22:15 Last orders at the pub.

Cemal
-- 
View this message in context: 
http://www.nabble.com/Schedule-for-the-London-Wicket-User-Group%2C-July-3rd%2C-2007-tf4015290.html#a11403247
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Eelco Hillenius
> You _must_ do this in association with the Apache Infrastructure group.
>
> The ASF's repository is large. There have been occasions when FishEye
> has put the ASF SVN server under an unnecessary load.
>
> It _should_ be possible, but _must_ be done in consultation with the
> infrastructure team.

I am a little bit suprised tbh. We're talking about a site than checks
every once in a while for new updates. Maybe it generates the load
that would normally be generated by a couple of users. Did this really
gave Apache problems in the past? Others, like Codehaus, Rife or
sourceforge with us in the past don't seem to have any problems with
it...

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Maurice Marrink
If FishEye can cause problems, so might ohloh
http://www.ohloh.net/projects/3958.

Just thinking out loud.

Maurice

On 7/2/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > You _must_ do this in association with the Apache Infrastructure group.
> >
> > The ASF's repository is large. There have been occasions when FishEye
> > has put the ASF SVN server under an unnecessary load.
> >
> > It _should_ be possible, but _must_ be done in consultation with the
> > infrastructure team.
>
> Ok. Peter, if you want this, could you open a feature request for
> this. We can chat with infra after that.
>
> Cheers,
>
> Eelco
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] FormTester and type conversion

2007-07-02 Thread mperham

I've got an input field which accepts positive integers.  I'm trying to test
the validation logic on my page but receiving the following error.  Am I
misunderstanding how validation and type conversion work?  In general I'm
having trouble with any fields that accept non-String input (Numbers, Dates,
etc).

public void testBadChangelistId() {
FormTester form = tester.newFormTester("theForm");
form.select("selectSubmissionDateType", 0);
form.select("status", 0);
form.setValue("fldChangeListID", "foo");   // < Invalid value
form.submit("btnSearch");
tester.assertInvisible("theForm:ifShowDateRange");
tester.assertRenderedPage(SearchChanges.class);
}


wicket.WicketRuntimeException: Exception 'java.lang.ClassCastException:
java.lang.String' occurred d
uring validation
wicket.markup.html.form.validation.NumberValidator$RangeValidator on
component 3:th
eForm:fldChangeListID
at
wicket.markup.html.form.FormComponent.validateValidators(FormComponent.java:1169)
at wicket.markup.html.form.Form$15.validate(Form.java:997)
at
wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:144)
at wicket.markup.html.form.Form$4.component(Form.java:459)
at
wicket.MarkupContainer.visitChildren(MarkupContainer.java(Compiled Code))
at wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
at wicket.markup.html.form.Form.validateValidators(Form.java:993)
at wicket.markup.html.form.Form.validate(Form.java:955)
at wicket.markup.html.form.Form.process(Form.java:867)
at wicket.markup.html.form.Form.onFormSubmitted(Form.java:310)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compile
d Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at
wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
at
wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(Lis
tenerInterfaceRequestTarget.java:74)
at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessor
Strategy.java:65)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompo
undRequestCycleProcessor.java:57)
at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at
wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:318)
at
wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:307)
at wicket.util.tester.FormTester.submit(FormTester.java:141)
at wicket.util.tester.FormTester.submit(FormTester.java:180)
at
gov.TestSearchChanges.testBadChangelistId(TestSearchChanges.java:72)
Caused by: java.lang.ClassCastException: java.lang.String
at
wicket.markup.html.form.validation.NumberValidator.validate(NumberValidator.java:205)
at
wicket.markup.html.form.FormComponent.validateValidators(FormComponent.java:1155)

We are using 1.2.5.

mike
-- 
View this message in context: 
http://www.nabble.com/FormTester-and-type-conversion-tf4014850.html#a11401713
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modal window image resources

2007-07-02 Thread Martijn Dashorst
Use the search!

http://www.nabble.com/forum/Search.jtp?query=how+to+customize+modalwindow+images+css&local=y&forum=13974

Martijn

-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Missing WicketPortletFilter file

2007-07-02 Thread Ate Douma
Nathan Beach wrote:
> Odd that I should send out a question about creating Jetspeed-like
> functionality within a minute of Ate sending out his email about
> Wicket/Jetspeed...  
> 
> I am not opposed to using Jetspeed for our situation; it's just that all
> we really need as far as a portlet/dashboard is the
> layout/resize/drag/drop/persist functionality.  It seems like Jetspeed
> does a lot more than that, although I have almost no experience with it
> beyond running the installer and playing around for a bit.  
> 
> Any input from Ate would definitely be appreciated (see my previous
> message with subject "wicket-based dashboard").  Thanks!
Sure.

You are definitely correct in that Jetspeed does a lot more than that :)

What is important I think is the scope of the dashboard application and 
functionality:
- As a container for independent (and possibly yet unknown) widget (mini) 
applications, so the dashboard will stand on its own.
   Then you're probably going to need a "hot" plug/deploy/undeploy etc. model 
allowing the end user to setup their own configuration.
- Or as one big application which provides a lot of widgets predefined 
out-of-the-box, and the end user only has to "activate" them.

For the latter solution, you probably want to expand on the "modal window" 
feature from Matej as you already indicated.

For the first solution, your beginning to get close to (one of the main 
features) portals provide out of the box, especially concerning the independent 
lifecycle management of the widgets/portlets. You might not need a full-blown 
portal, but maybe you should consider adapting one.
Note: Jetspeed is *very* customizable, so maybe you can also trim it 
down/tailor it to just what you need.

HTH,

Ate

> 
> Nathan
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ate
> Douma
> Sent: Monday, July 02, 2007 1:46 PM
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] Missing WicketPortletFilter file
> 
> Michal Capo wrote:
>> Hello
>>
>> I checkout branch with wicket portlet support from 
>>
> http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.3-por
> tlet-support/ 
>  rtlet-support/>. 
>> But I`m missing WicketPortletFilter.java file.
>> Can anybody tell where to find?
> Nowhere :)
> 
> You don't need it (anymore).
> I integrated the portlet support in a customized version of WicketFilter
> to support easier and more transparent usage of Wicket applications both
> as web 
> application and as portlet application.
> Check out the wicket-examples project in the portlet-support branch
> which can be deployed and run in a web container as well as a portlet
> container (even at the 
> same time).
> 
> Note: the portlet-support branch isn't finished and doesn't provide 100%
> portlet support yet.
> Please check https://issues.apache.org/jira/browse/WICKET-647 for the
> current status.
> 
> I've been side-tracked the last few weeks with my work for Jetspeed, but
> I expect to continue with the wicket portlet support shortly (after
> Jetspeed 2.1.1 
> release which is planned for end of this week now).
> 
> And of course, I'm very interested in any feedback :)
> 
> Regards,
> 
> Ate
> 
>> Thanx Michal
>>
>>
>>
> 
>>
> 
> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>>
>>
>>
> 
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 



[Wicket-user] modal window image resources

2007-07-02 Thread Nathan Beach
 

Matej (or someone else who knows):

 

Can you explain how the image resources in the ModalWindow package work?
If I open the res/*.png files in an image viewer, it seems that all the
parts are in one file (rounded corners, x buttons, etc).  I can't seem
to figure out from the CSS and JS what is going on.

 

This isn't urgent - just curious how you did that...  Thanks!

 

Nathan B.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Missing WicketPortletFilter file

2007-07-02 Thread Nathan Beach
Odd that I should send out a question about creating Jetspeed-like
functionality within a minute of Ate sending out his email about
Wicket/Jetspeed...  

I am not opposed to using Jetspeed for our situation; it's just that all
we really need as far as a portlet/dashboard is the
layout/resize/drag/drop/persist functionality.  It seems like Jetspeed
does a lot more than that, although I have almost no experience with it
beyond running the installer and playing around for a bit.  

Any input from Ate would definitely be appreciated (see my previous
message with subject "wicket-based dashboard").  Thanks!

Nathan




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ate
Douma
Sent: Monday, July 02, 2007 1:46 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Missing WicketPortletFilter file

Michal Capo wrote:
> Hello
> 
> I checkout branch with wicket portlet support from 
>
http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.3-por
tlet-support/ 
>
. 
> But I`m missing WicketPortletFilter.java file.
> Can anybody tell where to find?
Nowhere :)

You don't need it (anymore).
I integrated the portlet support in a customized version of WicketFilter
to support easier and more transparent usage of Wicket applications both
as web 
application and as portlet application.
Check out the wicket-examples project in the portlet-support branch
which can be deployed and run in a web container as well as a portlet
container (even at the 
same time).

Note: the portlet-support branch isn't finished and doesn't provide 100%
portlet support yet.
Please check https://issues.apache.org/jira/browse/WICKET-647 for the
current status.

I've been side-tracked the last few weeks with my work for Jetspeed, but
I expect to continue with the wicket portlet support shortly (after
Jetspeed 2.1.1 
release which is planned for end of this week now).

And of course, I'm very interested in any feedback :)

Regards,

Ate

> 
> Thanx Michal
> 
> 
>

> 
>

-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
>

> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Eelco Hillenius
> You _must_ do this in association with the Apache Infrastructure group.
>
> The ASF's repository is large. There have been occasions when FishEye
> has put the ASF SVN server under an unnecessary load.
>
> It _should_ be possible, but _must_ be done in consultation with the
> infrastructure team.

Ok. Peter, if you want this, could you open a feature request for
this. We can chat with infra after that.

Cheers,

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use getConverterInput rather than updateModel in FormComponentPanel

2007-07-02 Thread ChuckDeal


Eelco Hillenius wrote:
> 
> Good point. I didn't think about getConvertedInput being called
> multiple times. I'm working on a refactoring now. Removing final from
> getConvertedInput wasn't the smartest thing to do it turns out. I'm
> thinking about making that method final again, and instead removing
> final from convert (and rename that to convertInput) and add
> setConvertedInput. You can then override convertInput and call
> setConvertedInput with the new value, and be sure this method will
> only be called once.
> 

As it turns out, using getConvertedInput was the best for me either :). 
When I was writing a validator for my component, the input was null which
caused it to throw an exception.  Upon figuring out why it was throwing the
ex, I realized that I really wanted my Custom component to defer to the
underlying text box, so I made getInputAsArray return the underlying
TextBox's getInputAsArray and then I overrode convertValue to do what
getConvertedInput was doing before.  And since I now have valid data from
getInputAsArray, validators don't cause exceptions.

Chuck
-- 
View this message in context: 
http://www.nabble.com/Use-getConverterInput-rather-than-updateModel-in-FormComponentPanel-tf3873952.html#a11399774
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Upayavira
Eelco Hillenius wrote:
>> Refer http://fisheye.cenqua.com/ - can Wicket SVN be made available through
>> FishEye?  This would really help in searching through the source code.
> 
> I think so. I think we had that for our CVS repositories a while ago.
> 
> So, if no-one objects, all we need to do is send an email. Martijn,
> are you ok with this?

You _must_ do this in association with the Apache Infrastructure group.

The ASF's repository is large. There have been occasions when FishEye 
has put the ASF SVN server under an unnecessary load.

It _should_ be possible, but _must_ be done in consultation with the 
infrastructure team.

Regards, Upayavira

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Redirect form to a request target rather than a page?

2007-07-02 Thread Jeremy Thomerson

I know you can do this somehow - I just can't tell what's missing

In a search form that I have, I do the following:

   getRequestCycle().setRequestTarget(new
ListenerInterfaceRequestTarget(getPage(), new SearchQueryLink("foo",
mQuery), ILinkListener.INTERFACE));

I have a request strategy that decodes SearchQueryLink instances just fine.
But, when doing the above, it does not redirect at all - it just repaints my
page.

What am I missing?  I walked up the stack trace from setResponsePage(Page),
which is the standard way of redirecting a form submission, and it calls
getRequestCycle().setRequestTarget(IRequestTarget), exactly as I am above.

Thank you!
Jeremy Thomerson
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket-based dashboard

2007-07-02 Thread Nathan Beach
Hello All:

 

I'm looking for some advice on how to create a Wicket-based dashboard
with functionality along the lines of iGoogle.com.  That is, resizable
and drag/drop-able sub-window components that can be arranged by the
user.  And the dashboard layout must be serialized for the next time the
user logs in.

 

I've mocked up something that basically works with Matej's modal window
extension as is, although it's modal (obviously) and I can only get one
of the mini-windows on the screen at a time.  My Panel class retrieves
the x/y offset (CSS top and left) and window size from a database table.


 

I was thinking of copying and altering Matej's extension for my own use
(rather than extending, since a "dashboard component" isn't exactly a
logical extension of "modal window").  It seems like he has all the
basic window functionality there.

 

Is there an easier way to do this?  Is there a simpler
window/dialog-like component available that I'm not aware of?

 

I know a Wicketized Apache Jetspeed is available that handles this
situation, but I was more interested in rolling my own dashboard, if
possible...

 

Thanks for any input!

 

Sincerely,

Nathan B. (Richardson, Texas)

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Missing WicketPortletFilter file

2007-07-02 Thread Ate Douma
Michal Capo wrote:
> Hello
> 
> I checkout branch with wicket portlet support from 
> http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.3-portlet-support/
>  
> .
>  
> But I`m missing WicketPortletFilter.java file.
> Can anybody tell where to find?
Nowhere :)

You don't need it (anymore).
I integrated the portlet support in a customized version of WicketFilter to 
support easier and more transparent usage of Wicket applications both as web 
application and as portlet application.
Check out the wicket-examples project in the portlet-support branch which can 
be deployed and run in a web container as well as a portlet container (even at 
the 
same time).

Note: the portlet-support branch isn't finished and doesn't provide 100% 
portlet support yet.
Please check https://issues.apache.org/jira/browse/WICKET-647 for the current 
status.

I've been side-tracked the last few weeks with my work for Jetspeed, but I 
expect to continue with the wicket portlet support shortly (after Jetspeed 
2.1.1 
release which is planned for end of this week now).

And of course, I'm very interested in any feedback :)

Regards,

Ate

> 
> Thanx Michal
> 
> 
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use getConverterInput rather than updateModel in FormComponentPanel

2007-07-02 Thread Eelco Hillenius
> I am making a ComboBox component that extends FormComponentPanel.  I did as
> you said, and I override getConvertedInput(), but the body of the method
> scans a List to find a matching item.  With only a few items, this isn't too
> bad, but I'm afraid of performance problems as the list size grows.  Also,
> that method is already called twice and I am planning on writing a Validator
> for it, which will cause it to be called at least three times per update
> cycle.  I was wondering if you could suggest a caching strategy for me to
> try?  I can store the converedInput on the Component, but what about
> cleaning up that cached value?  Will I need to worry about stale data being
> returned by getConvertedInput?  or will the Component's normal lifecycle
> protect me from that?

Good point. I didn't think about getConvertedInput being called
multiple times. I'm working on a refactoring now. Removing final from
getConvertedInput wasn't the smartest thing to do it turns out. I'm
thinking about making that method final again, and instead removing
final from convert (and rename that to convertInput) and add
setConvertedInput. You can then override convertInput and call
setConvertedInput with the new value, and be sure this method will
only be called once.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] BookmarkablePageLink relative path Dilemma

2007-07-02 Thread Chris Lintz

Hey all,
I have an interesting issue to solve.  I basically have 2
BookmarkablePageLinks on a home page.  I am reading 1.3 is all about
relative links.  This causes a problem for me because of this:

1)  The BookmarkablePageLinks appear as:  
www.somedomain.com/app/register
www.somedomain.com/app/login

2)   I have an .htaccess file pushing URLs like www.somedomain.com/username
to app/profileView/user/username (kinda like how myspace has
www.myspace.com/username).   This causes issues because when you land on
www.somedomain.com/username, all the BookmarkablePageLinks are relative so
the links above become:

www.somedomain.com/register
www.somedomain.com/login

This is obviously not right so my question is how can I have
BookmarkablePageLinks yet have some sort of control as an absolute path?   
How can I get the functionality of BookmarkablePageLinks and always have the
links render as www.somedomain.com/app/register and
www.somedomain.com/app/login

thanks for any help


c





-- 
View this message in context: 
http://www.nabble.com/BookmarkablePageLink-relative-path-Dilemma-tf4014023.html#a11399090
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Trying to retrieve the absolute URL

2007-07-02 Thread Al Maw
David Leangen wrote:
> Wow! I can't believe how fast development is... I just updated to 1.2.6,
> but looking at Jira, it seems that 1.3.0 is about to be closed...

;-)

> Should I still file an issue? If so, for which version? (Unfortunately,
> I'm not in a position to verify with how things are working in trunk...)

Hi David,

There's already an issue for Wicket 1.3 (trunk):
  - http://issues.apache.org/jira/browse/WICKET-609

I'm going to get around to that some time this week, I hope.

Regards,

Al

-- 
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Missing WicketPortletFilter file

2007-07-02 Thread Michal Capo

Hello

I checkout branch with wicket portlet support from
http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.3-portlet-support/.
But I`m missing WicketPortletFilter.java file.
Can anybody tell where to find?

Thanx Michal
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye

2007-07-02 Thread Eelco Hillenius
> Refer http://fisheye.cenqua.com/ - can Wicket SVN be made available through
> FishEye?  This would really help in searching through the source code.

I think so. I think we had that for our CVS repositories a while ago.

So, if no-one objects, all we need to do is send an email. Martijn,
are you ok with this?

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] reference from deeply nested links

2007-07-02 Thread Eelco Hillenius
> findParent(EditPanel.class)

That's a good solution if you want to help keep your code clean.
However, having direct references - while it can get messy when you
have very deep nestings, means that your code is statically bound,
which can be an advantage when you have to refactor or navigate your
code. It's subjective, but I find working with nested classes
convenient, and this can save you from having to pass variables in
constructors all the time.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with border and ajax

2007-07-02 Thread Igor Vaynberg

please provide a quickstart that demonstrates the problem.

-igor


On 7/2/07, Conglun Yao <[EMAIL PROTECTED]> wrote:


Dear all,

I have encountered a problem when using ajax and border.

In the border page, I set the layout and use normal link component. When
the target page, which will be surrounded by Border page, is a normal
non-ajax page, it works fine.

But when the target page is an ajax page, the border will not work
properly, only part of content is shown. The main navigation link is
in-visable. However, I can see the link tag in the html source code.

Thanks in advance for any help.

Regards,

Yao

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-02 Thread Igor Vaynberg

On 7/2/07, kenixwong <[EMAIL PROTECTED]> wrote:



i m using wicket1.2.4

i done with the nice tree and can display it. Just i did not get any
resource on the link. Once i click all the node link, i wish to redirect
to
different pages that i defined. I had search in the wicket-user forum, but
cant get any result yet. Can u help for it. (btw: i m the new to wicket)




in wicket 1.2.x we do not support setresponsepage() from an ajax request
(which is what i assume is going on since setresponsepage isnt working).
what you have to do instead is

ajaxtarget.appendjavascript("window.location="+urlfor(MyPage.class));

-igor



here is my partial code


final Tree tree = new Tree("tree", treeModel)
{



 protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
return String.valueOf(treeNode.getUserObject());
}


protected void nodeLinkClicked(DefaultMutableTreeNode node)
 {
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
setResponsePage(ReportTreePanel.class);

   }

};




Eelco Hillenius wrote:
>
>> Can anyone give me an example of override onNodeLinkClicked(...) for
>> display
>> the tree. I want to click the menu intree structure. It's fine i can
did
>> it
>> now. But i cant setResponce to another page when i clicked on the
link..
>> thanks in future
>
> So calling setResponsePage (to another page I pressume) doesn't work
> in the link clicked handler of the tree component? I wouldn't know how
> this might be a problem tbh.
>
> Which version of Wicket are you using, and which tree component (from
> the core project or the extensions project)?
>
> Eelco
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11391373
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use getConverterInput rather than updateModel in FormComponentPanel

2007-07-02 Thread ChuckDeal


Eelco Hillenius wrote:
> 
> When fixing issues 500[1] and 522[2] I found that the best way of
> fixing this is to override getConvertedInput (which was declared as
> final). For anyone using FormComponentPanel, please take note that if
> you want this component to work properly with validators and form
> validators you should override getConvertedInput rather then
> updateModel. Please see the implementations of DateField and
> DateTimeField and the updated JavaDoc of FormComponentPanel.
> 

I am making a ComboBox component that extends FormComponentPanel.  I did as
you said, and I override getConvertedInput(), but the body of the method
scans a List to find a matching item.  With only a few items, this isn't too
bad, but I'm afraid of performance problems as the list size grows.  Also,
that method is already called twice and I am planning on writing a Validator
for it, which will cause it to be called at least three times per update
cycle.  I was wondering if you could suggest a caching strategy for me to
try?  I can store the converedInput on the Component, but what about
cleaning up that cached value?  Will I need to worry about stale data being
returned by getConvertedInput?  or will the Component's normal lifecycle
protect me from that?

Thanks for any insight you can offer.

Chuck



-- 
View this message in context: 
http://www.nabble.com/Use-getConverterInput-rather-than-updateModel-in-FormComponentPanel-tf3873952.html#a11395618
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] A question about DataTable Component.

2007-07-02 Thread gumnaam
I am using the AjaxFallBackDataTable from the wicket-extensions project.
Using this component I am rendering some entities, and I also have a delete link
for deleting the displayed entities.
The delete link is AjaxFallBackLink.
My question is, once the link is submitted over ajax, and the entity is 
deleted, is there
a way to force the Table to update, (over ajax ), without having to reload the 
page ?

thanks

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup

2007-07-02 Thread Leena

Marc,
Thanks for documenting the approach in WIKI
(http://cwiki.apache.org/WICKET/how-to-redirect-page-from-a-pop-up.html) .
I am trying to do something similar but it didnt work in my case. I have
attached the code. When I click
the link on the popup, a new window is launched instead of the main window
getting updated. Am I doing something wrong here? BTW I am using Wicket
1.3.0 incubating SNAPSHOT. Is it different in wicket 1.3? 

Thanks in advance,
Leena


Marc-Andre Houle wrote:
> 
> Done :
> https://issues.apache.org/jira/browse/WICKET-206
> 
> Also, I'll create a section in the Wiki on how to acheive this.  It was
> not
> really clear in the beginnig, but like other wicket thing, it is not a big
> chunk of text.
> 
> On 1/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>>
>> right now the default name is the null string. we might change that, or
>> we
>> might do that webpage.getwindowname() thing, or both. but you need to add
>> that rfe to jira in order for it to happen.
>>
>> On 1/12/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
>> >
>> > In fact, DEFAULT_NAME in page map should not be set to something? 
>> Right
>> > now, it is null, is there a reason for that?
>> >
>> > On 1/12/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
>> > >
>> > > Now, my popup code look like this :
>> > > String parentPageMap = "wicket:default";
>> > > if(pp != null)
>> > > {
>> > > parentPageMap = (String)pp.get ("parent_page_map");
>> > > }
>> > > Class pageClass = PagingFactory.getInstance ().getPageClass (
>> > > NodeTypeConstants.RULE);
>> > > add(new BookmarkablePageLink("nodeLink",
>> pageClass).setPageMap
>> > > (PageMap.forName (parentPageMap)).setParameter (
>> > > WebPageConstants.PARAM_ID, "4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29"));
>> > >
>> > >
>> > > But it still update only the popup  I don't know if it is me that
>> > > is dumb and don't understand what you are saying, but I though that
>> it
>> > > should have done the trick.
>> > > Is it possible to set the pageMap name for the currentSession?  Maybe
>> > > I should do that?  I'm downloading wicket code right now to try to
>> > > understand what window.name was suppose to be! :)
>> > >
>> > >
>> > > On 1/12/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
>> > > >
>> > > > gah
>> > > >
>> > > > looks like we have some not-so-good code working here
>> > > >
>> > > > basically the thing that generates the window.name attr does this:
>> > > >
>> > > > String name = getPageMap().getName();
>> > > > if (name == null)
>> > > > {
>> > > > name = "wicket:default";
>> > > > }
>> > > >
>> > > > but "wicket:default" is not externalized anywhere.
>> > > >
>> > > > so for now you can just use that same trick yourself,
>> > > > "wicket:default" string should remain pretty stable.
>> > > >
>> > > > and also add an rfe to expose that somehow, perhaps through
>> > > > WebPage.getWindowName()
>> > > >
>> > > > -igor
>> > > >
>> > > >
>> > > >
>> > > > On 1/12/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
>> > > > >
>> > > > > "and that should be the pagename of the page that is opening the
>> > > > > popup. wicket sets window.name=pagemapname"
>> > > > >
>> > > > > How can I know the pagename of the page opening the popup?
>> > > > > getPageMap().getName() return null.
>> > > > >
>> > > > > On 1/12/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
>> > > > > >
>> > > > > > To take the PageMap, I'm doing a Page.getPageMap().  Why is
>> this
>> > > > > > pagemap have a null name?  how can I set that name?
>> > > > > >
>> > > > > > Thanks in advance.
>> > > > > >
>> > > > > > Marc
>> > > > > >
>> > > > > > On 1/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> > > > > > >
>> > > > > > > On 1/12/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
>> > > > > > > >
>> > > > > > > > I've try what you talk about.  I have the impresion that
>> > > > > > > > there is only the String representation of the page map
>> that is pass.
>> > > > > > > > Should I pass the pageMap Name?  and then, how to pass it
>> since it is null?
>> > > > > > > > Here is the code and the error generated.
>> > > > > > >
>> > > > > > >
>> > > > > > > yeah just pass the pagemap name.
>> > > > > > >
>> > > > > > > P.S. : Igor, you rock!  With you, there is always a way to
>> > > > > > > > pass around problems! :)
>> > > > > > >
>> > > > > > >
>> > > > > > > thanks :)
>> > > > > > >
>> > > > > > > -igor
>> > > > > > >
>> > > > > > >
>> > > > > > > Caller
>> > > > > > > > 
>> > > > > > > > PopupSettings popupSettings = new   PopupSettings(
>> > > > > > > >
>> PageMap.forName("popuppagemap")).setHeight(500).setWidth(500);
>> > > > > > > > PageParameters popupparameters = new PageParameters();
>> > > > > > > > popupparameters.put("parent_page_map", getPage().getPageMap
>> > > > > > > > ());
>> > > > > > > > System.out.println(popuppara

Re: [Wicket-user] Wicket with JExcel

2007-07-02 Thread Edi

Excuse me,

ANy updates? please



Ayodeji Aladejebi wrote:
> 
> alas...igor has rescued us
> pls give me some time to update the code wih this approach and send it to
> yu
> 
> On 6/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>>
>> On 6/29/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>> >
>> > that should be simple, although my wicket is bit rusty at the moment, I
>> > think
>> >
>> >  final TextField tx = new TextField("cell", new
>> > PropertyModel(values[row][col],"data"));
>> >   tx.add(new IValidator(){
>> >   public void validate(FormComponent fc){
>> >
>> >   if(fc.getValue() is greater than 20){
>> > fc.add(new AttributeModifier("style",true, new
>> > Model("background-color: #FF;")));
>> > fc.error("error.toolongvalue",null);
>> >   }else{
>> >   fc.add(new AttributeModifier("style",true, new
>> > Model("background-color: normal-color;")));
>> >  }
>> >
>> > }
>> >   });
>> >   item.add(tx);
>> >
>> >
>> > something like dat...just buzz around
>>
>>
>> ayyayay, i guess no matter how you try to engineer the api people always
>> find ways to abuse it :)
>>
>> TextField tf=new TextField() { oncomponenttag(tag) { if (!isvalid())
>> {
>> tag.put("class","error"); } }};
>> tf.add(StringValidator.maxLength(20));
>>
>> -igor
>>
>>
>>
>> On 6/29/07, Edi < [EMAIL PROTECTED] > wrote:
>> > >
>> > >
>> > > Or, tell me how to validate, if the text box value exceeds 20
>> > > characters, I
>> > > want to change the color of the text box. HOW?
>> > >
>> > >
>> > >
>> > > Ayodeji Aladejebi wrote:
>> > > >
>> > > > well,
>> > > > yu can use String.length to do dat. but be aware it might jumble
>> > > your
>> > > > table
>> > > > because some Text will be *This is a very long text that can expand
>> > > the
>> > > > Textfield too much* and some will be just "Hi".
>> > > >
>> > > > I had to make that trade off as well
>> > > >
>> > > > i am looking for some javascript technique maybe yu can show me if
>> > > yu
>> > > > find.
>> > > >
>> > > > Look for a javascript library that can allow a user to dynamically
>> > > expand
>> > > > the textfield lenght with his mouse. so that we can attach that
>> > > Behavior
>> > > > to
>> > > > each Textfield
>> > > >
>> > > >
>> > > >
>> > > > On 6/29/07, Edi <[EMAIL PROTECTED]> wrote:
>> > > >>
>> > > >>
>> > > >> Hi,
>> > > >>
>> > > >> In your sample code,
>> > > >>
>> > > >> tx.add (new AttributeModifier("size",true, new
>> Model(String.valueOf
>> > > (8;
>> > > >> It shows all the size of textbox is same.
>> > > >>
>> > > >> I want to change the size of text box value according to text each
>> > > >> contents
>> > > >>
>> > > >>
>> > > >>
>> > > >> Ayodeji Aladejebi wrote:
>> > > >> >
>> > > >> > meanwhile,
>> > > >> > if yu look at this code in the Wicket - JExcel example
>> > > >> >
>> > > >> > Cell cell = sheet.getCell(col, row);
>> > > >> > values[row][col] = new
>> > > XCell(row,
>> > > >> > col,cell.getContents());
>> > > >> >
>> > > >> > return
>> > > values[row][col].getData();
>> > > >> >
>> > > >> >
>> > > >> > The Cell object is from JExcel and its where Datatype should be
>> > > >> retrieved
>> > > >> > from
>> > > >> >
>> > > >> > 2. To validate,
>> > > >> >
>> > > >> > You can write a default wicket validator (See Validator
>> > > examples),
>> > > >> > The validator can access the Textfield arrays and then check for
>> > > >> validity
>> > > >> >
>> > > >> > its shouldn't be too difficult anyway
>> > > >> >
>> > > >> >
>> > > >> >
>> > > >> > On 6/28/07, Ayodeji Aladejebi <[EMAIL PROTECTED] > wrote:
>> > > >> >>
>> > > >> >> I think that is within the scope of the JExcel API and not a
>> > > wicket
>> > > >> >> thing.
>> > > >> >> Refer to the JExcel API doc first
>> > > >> >>
>> > > >> >> On 6/28/07, Edi < [EMAIL PROTECTED]> wrote:
>> > > >> >> >
>> > > >> >> >
>> > > >> >> > Hi,
>> > > >> >> >
>> > > >> >> > I am Newbie of Wicket. I have downloaded sample example to
>> > > read XLS
>> > > >> >> file
>> > > >> >> >
>> > > >> >> > using Wicket with JExcel.
>> > > >> >> > It's working fine.
>> > > >> >> >
>> > > >> >> > My doubt is 1.How can I retrieve the datatype of each cell?
>> > > and 2.
>> > > >> How
>> > > >> >> > to
>> > > >> >> > validate the each cell values?
>> > > >> >> >
>> > > >> >> > Please give me some Suggestions.
>> > > >> >> >
>> > > >> >> > Thanking You.
>> > > >> >> > Regards,
>> > > >> >> > Edi
>> > > >> >> > --
>> > > >> >> > View this message in context:
>> > > >> >> >
>> > > http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
>> > > >> >> > Sent from the Wicket - User mailing list archive at
>> Nabble.com
>> > > .
>> > > >> >> >
>> > > >> >> >
>> > > >> >> >
>> > > >> >> >
>> > > >> >>
>> > > >>
>> > >
>> -
>> > > >> >> > This SF.net email is sponsored by DB2 Express
>> > > >> >> > Download DB2 Express C - the FREE versi

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-02 Thread Watter


Jean-Baptiste Quenot-3 wrote:
> 
> It means com.ptc.fusion.web.FusionAuthenticatedWebSession is
> already loaded in other classes that did not match the inclusion
> patterns.
> 
> To debug your usecase, set a conditional breakpoint in
> ReloadingClassLoader.loadClass() when class name is
> com.ptc.fusion.web.FusionAuthenticatedWebSession.  Maybe I could
> also add some debug log statements to help you diagnose.
> 
> Sometimes it is really difficult to understand where your class is
> loaded from.
> 

Again, thanks so much for your help. I followed your suggestion and it seems
that FusionAuthenticatedWebSession is only ever loaded once. Another person
posted a thread with a similar experience, but his issue was not related to
the use of ReloadingWicketFilter. He suggested I look at the following just
before the cast which is causing the problem. The cast is:

(FusionAuthenticatedWebSession) Session.get();

Most of the time the following holds true when I reach that statement:

Session.get().getClass().getClassLoader() =
org.apache.wicket.application.ReloadingClassLoader
FusionAuthenticatedWebSession.class.getClassLoader() =
org.apache.wicket.application.ReloadingClassLoader


However, when I am use the behaviour described earlier in the thread
(browser back button, click any link), I instead see that the following with
that cast:

Session.get().getClass().getClassLoader() =
org.apache.wicket.application.ReloadingClassLoader
FusionAuthenticatedWebSession.class.getClassLoader() = ContextLoader


Well, sure enough. That's the cause of my problem. Unfortunately, it doesn't
bring me any closer to understanding why. It doesn't appear that I'm loading
the session from anywhere except my reloadable classes. As a matter of fact,
"new FusionAuthenticatedWebSession" only shows up once in a search through
in my entire application. Is there a place where this session gets loaded by
wicket classes? Even then, I'm not sure if that's the answer because I
actually included "org.apache.wicket*" in my Reloadable filter for one run
of the application and I still encountered the issue. Call me stumped.


-- 
View this message in context: 
http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11392701
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with border and ajax

2007-07-02 Thread Conglun Yao

Dear all,

I have encountered a problem when using ajax and border.

In the border page, I set the layout and use normal link component. When the
target page, which will be surrounded by Border page, is a normal non-ajax
page, it works fine.

But when the target page is an ajax page, the border will not work properly,
only part of content is shown. The main navigation link is in-visable.
However, I can see the link tag in the html source code.

Thanks in advance for any help.

Regards,

Yao
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DynamicWebResources, ResourceLinks, and URL Parameters

2007-07-02 Thread Johan Compagner

hmm i guess it would be easier if we just made this method protected i
think:

AbstractRequestTargetUrlCodingStrategy
private void appendValue(AppendingStringBuffer url, String key, String
value)

and this one is already protected:
protected ValueMap decodeParameters(String urlFragment, Map urlParameters)

so then you can generate your own param string by extending
SharedResourceRequestTargetUrlCodingStrategy
and override those 2 methods.

johan


On 7/2/07, Karl M. Davis <[EMAIL PROTECTED]> wrote:


 Igor,

I actually did figure out a way to get this working without having to do
any (major) hacking.  Pretty simple, too, once I figured it out.  I just
created a new IndexedParamResourceUrlCodingStrategy class (included below)
and mounted that.  For anyone else looking to do this, here is the relevant
code:

// Register the resource with the web application
app.getSharedResources().add("resourceName", customResource);

// Mount the resource
ResourceReference ref = new ResourceReference("resourceName");
app.mount(new IndexedParamResourceUrlCodingStrategy("mountUrl", 
ref.getSharedResourceKey()));


That takes care of just about everything.  However, right about that
point, you'll likely run into the following bug:
https://issues.apache.org/jira/browse/WICKET-631.  I did have to hack
around that a bit, unfortunately.  In my DynamicWebResource class, I added a
"cachedParams" ThreadLocal and cache the parameter ValueMap during
setHeaders(WebResponse) in it, because the parameters get wiped out before
getResourceState() is called.  Here's the code for that in case anyone needs
it:

public class SomeResource extends DynamicWebResource
{
private static ThreadLocal cachedParams;

...

/**
 * @see 
org.apache.wicket.markup.html.DynamicWebResource#setHeaders(org.apache.wicket.protocol.http.WebResponse)
 */
@Override
protected void setHeaders(WebResponse response)
{
super.setHeaders(response);
cachedParams.set(getParameters());
}

...

/**
 * @see 
org.apache.wicket.markup.html.DynamicWebResource#getResourceState()
 */
@Override
protected ResourceState getResourceState()
{
ValueMap params = cachedParams.get();
...
}
}


And voila!  I now have mounted resources with pretty indexed parameters
like the following:

.../myresource/folderparam/folderparam/fileparam


I'm not sure how to go about submitting patches, but the following class
would probably help others looking to do the same out.  I stole most of the
code for it wholesale from IndexedParamUrlCodingStrategy, anyways.

/**
 * This class is similar to [EMAIL PROTECTED] IndexedParamUrlCodingStrategy}, 
but for
 * [EMAIL PROTECTED] Resource}s, not bookmarkable pages.
 *
 * NOTE: The code for [EMAIL PROTECTED] 
#appendParameters(AppendingStringBuffer, Map)} and
 * [EMAIL PROTECTED] #decodeParameters(String, Map)} was copied verbatim from
 * [EMAIL PROTECTED] IndexedParamUrlCodingStrategy}.
 *
 * @author Karl M. Davis
 */
public class IndexedParamResourceUrlCodingStrategy extends
SharedResourceRequestTargetUrlCodingStrategy
{
/**
 * Constructor.
 *
 * @param mountPath
 *the path to mount the [EMAIL PROTECTED] Resource} at
 * @param resourceKey
 *the key of the [EMAIL PROTECTED] Resource} (see
 *[EMAIL PROTECTED] 
ResourceReference#getSharedResourceKey()})
 */
public IndexedParamResourceUrlCodingStrategy(String mountPath,
String resourceKey)
{
super(mountPath, resourceKey);
}

/**
 * @see 
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy#appendParameters(org.apache.wicket.util.string.AppendingStringBuffer,
 *  java.util.Map)
 */
protected void appendParameters(AppendingStringBuffer url, Map 
parameters)
{
int i = 0;
while (parameters.containsKey(String.valueOf(i)))
{
String value = (String) 
parameters.get(String.valueOf(i));
url.append("/").append(urlEncode(value));
i++;
}

String pageMap = (String) parameters
.get(WebRequestCodingStrategy.PAGEMAP);
if (pageMap != null)
{
i++;
url.append("/").append(WebRequestCodingStrategy.PAGEMAP)
.append("/").append(urlEncode(pageMap));
}

if (i != parameters.size())
{
throw new WicketRuntimeException(
"Not all parameters were encoded. Make sure 
all para

Re: [Wicket-user] reference from deeply nested links

2007-07-02 Thread Pieter Cogghe

Thanks a lot. Read about findParent before, but forgot about them
completely.



2007/7/2, Janos Cserep <[EMAIL PROTECTED]>:



> Now I need a reference to the EditForm in the deeply nested links. As
there
> are  a lot of seperate classes involved (no nested classes), I can't do
> something like this:
> MyPage.this.editPanel.setModelOject(...);


findParent(EditPanel.class)

or

getPage().get("editPanel")


j

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-02 Thread kenixwong

i m using wicket1.2.4

i done with the nice tree and can display it. Just i did not get any
resource on the link. Once i click all the node link, i wish to redirect to
different pages that i defined. I had search in the wicket-user forum, but
cant get any result yet. Can u help for it. (btw: i m the new to wicket)

here is my partial code

 final Tree tree = new Tree("tree", treeModel)
{
   
   
   
 protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
return String.valueOf(treeNode.getUserObject());
}
   
 
protected void nodeLinkClicked(DefaultMutableTreeNode node)
 {
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
setResponsePage(ReportTreePanel.class);
   
   }
   
};




Eelco Hillenius wrote:
> 
>> Can anyone give me an example of override onNodeLinkClicked(...) for
>> display
>> the tree. I want to click the menu intree structure. It's fine i can did
>> it
>> now. But i cant setResponce to another page when i clicked on the link..
>> thanks in future
> 
> So calling setResponsePage (to another page I pressume) doesn't work
> in the link clicked handler of the tree component? I wouldn't know how
> this might be a problem tbh.
> 
> Which version of Wicket are you using, and which tree component (from
> the core project or the extensions project)?
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11391373
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] reference from deeply nested links

2007-07-02 Thread Janos Cserep

> Now I need a reference to the EditForm in the deeply nested links. As there
> are  a lot of seperate classes involved (no nested classes), I can't do
> something like this:
> MyPage.this.editPanel.setModelOject(...);


findParent(EditPanel.class)

or

getPage().get("editPanel")


j

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-02 Thread kenixwong

i m using wicket1.2.6

i done with the nice tree and can display it. Just i did not get any
resource on the link. Once i click all the node link, i wish to redirect to
different pages that i defined. I had search in the wicket-user forum, but
cant get any result yet. Can u help for it. (btw: i m the new to wicket)

here is my partial code

 final Tree tree = new Tree("tree", treeModel)
{


 
 protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
return String.valueOf(treeNode.getUserObject());
}
 
 
protected void nodeLinkClicked(DefaultMutableTreeNode node)
 {
DefaultMutableTreeNode treeNode = 
(DefaultMutableTreeNode)node;
setResponsePage(ReportTreePanel.class);

   }

};




Eelco Hillenius wrote:
> 
>> Can anyone give me an example of override onNodeLinkClicked(...) for
>> display
>> the tree. I want to click the menu intree structure. It's fine i can did
>> it
>> now. But i cant setResponce to another page when i clicked on the link..
>> thanks in future
> 
> So calling setResponsePage (to another page I pressume) doesn't work
> in the link clicked handler of the tree component? I wouldn't know how
> this might be a problem tbh.
> 
> Which version of Wicket are you using, and which tree component (from
> the core project or the extensions project)?
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11390711
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DynamicWebResources, ResourceLinks, and URL Parameters

2007-07-02 Thread Janos Cserep

> That takes care of just about everything.  However, right about that point, 
> you'll likely run into the following bug: 
> https://issues.apache.org/jira/browse/WICKET-631.

I hope someone will take a look at that bug sooner or later. The fix is 
quite straightforward - moving the finally block that clears the 
threadlocal from Resource.onResourceRequested() to a Resource.detach() 
method and call detach from a later step of the request lifecycle.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DynamicWebResources, ResourceLinks, and URL Parameters

2007-07-02 Thread Karl M. Davis

Igor,

I actually did figure out a way to get this working without having to do 
any (major) hacking.  Pretty simple, too, once I figured it out.  I just 
created a new IndexedParamResourceUrlCodingStrategy class (included 
below) and mounted that.  For anyone else looking to do this, here is 
the relevant code:


// Register the resource with the web application
app.getSharedResources().add("resourceName", customResource);

// Mount the resource
ResourceReference ref = new ResourceReference("resourceName");
app.mount(new IndexedParamResourceUrlCodingStrategy("mountUrl", 
ref.getSharedResourceKey()));


That takes care of just about everything.  However, right about that 
point, you'll likely run into the following bug: 
https://issues.apache.org/jira/browse/WICKET-631.  I did have to hack 
around that a bit, unfortunately.  In my DynamicWebResource class, I 
added a "cachedParams" ThreadLocal and cache the parameter ValueMap 
during setHeaders(WebResponse) in it, because the parameters get wiped 
out before getResourceState() is called.  Here's the code for that in 
case anyone needs it:


public class SomeResource extends DynamicWebResource
{
private static ThreadLocal cachedParams;

...

/**
 * @see 
org.apache.wicket.markup.html.DynamicWebResource#setHeaders(org.apache.wicket.protocol.http.WebResponse)
 */
@Override
protected void setHeaders(WebResponse response)
{
super.setHeaders(response);
cachedParams.set(getParameters());
}

...

/**
 * @see 
org.apache.wicket.markup.html.DynamicWebResource#getResourceState()
 */
@Override
protected ResourceState getResourceState()
{
ValueMap params = cachedParams.get();
...
}
}


And voila!  I now have mounted resources with pretty indexed parameters 
like the following:


.../myresource/folderparam/folderparam/fileparam


I'm not sure how to go about submitting patches, but the following class 
would probably help others looking to do the same out.  I stole most of 
the code for it wholesale from IndexedParamUrlCodingStrategy, anyways.


/**
* This class is similar to [EMAIL PROTECTED] IndexedParamUrlCodingStrategy}, 
but for
* [EMAIL PROTECTED] Resource}s, not bookmarkable pages.
* 
* NOTE: The code for [EMAIL PROTECTED] #appendParameters(AppendingStringBuffer, Map)} and

* [EMAIL PROTECTED] #decodeParameters(String, Map)} was copied verbatim from
* [EMAIL PROTECTED] IndexedParamUrlCodingStrategy}.
* 
* @author Karl M. Davis

*/
public class IndexedParamResourceUrlCodingStrategy extends
SharedResourceRequestTargetUrlCodingStrategy
{
/**
 * Constructor.
	 * 
	 * @param mountPath

 *the path to mount the [EMAIL PROTECTED] Resource} at
 * @param resourceKey
 *the key of the [EMAIL PROTECTED] Resource} (see
 *[EMAIL PROTECTED] 
ResourceReference#getSharedResourceKey()})
 */
public IndexedParamResourceUrlCodingStrategy(String mountPath,
String resourceKey)
{
super(mountPath, resourceKey);
}

/**
 * @see 
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy#appendParameters(org.apache.wicket.util.string.AppendingStringBuffer,
 *  java.util.Map)
 */
protected void appendParameters(AppendingStringBuffer url, Map 
parameters)
{
int i = 0;
while (parameters.containsKey(String.valueOf(i)))
{
String value = (String) 
parameters.get(String.valueOf(i));
url.append("/").append(urlEncode(value));
i++;
}

String pageMap = (String) parameters
.get(WebRequestCodingStrategy.PAGEMAP);
if (pageMap != null)
{
i++;
url.append("/").append(WebRequestCodingStrategy.PAGEMAP)
.append("/").append(urlEncode(pageMap));
}

if (i != parameters.size())
{
throw new WicketRuntimeException(
"Not all parameters were encoded. Make sure 
all parameter names are integers in consecutive order starting with zero. Current 
parameter names are: "
+ 
parameters.keySet().toString());
}
}

/**
 * @see 
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy#decodeParameters(java.lang.String,
 *  java.util.Map)
 */
protected ValueMap decodeParameters(String urlFragment, Map 
urlParameters)
{