Re: [Wicket-user] A problem with using SubmitLink

2007-05-08 Thread Swaroop Belur

Thanks Eelco for the response...

Have filed a jira issue :-
https://issues.apache.org/jira/browse/WICKET-546

Thanks
swaroop


On 5/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> 1> why doesnt current  onComponentTag call super.onComponetTag ?

It is being called in Wicket 1.3. It looks like a bug it isn't in
1.2.x, but the fix is probably not as straightforward as just adding
the super call. Please open up a JIRA request if you need this fixed.

> 2> How do i ensure that my javascript call gets invoked before the
submit
> operation?

There currently does not seem to be a facility for that. At this
point, for 1.2, you're probably best of creating your own submitlink
class that does exactly what you want.

For 1.3, it does still seem to be impossible to do this, so I'm
wondering whether Johan has an idea on 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

-
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-spring&annot for 1.3

2007-05-08 Thread Daniel Carleton
On Tue, 2007-05-08 at 21:09 -0700, ywtsang wrote:
> Is the wicket-spring&annot available for 1.3 now?
> 
> I can find the wicket-spring for 1.2.6, but not 1.3.

Snapshots are available from the Wicket Stuff Maven repository.

Put the following in your POM.

Under repositories:


wicket-stuff.org
http://wicketstuff.org/maven/repository/

true



Under dependencies:


org.apache.wicket
wicket-spring
1.3.0-incubating-SNAPSHOT
jar


org.apache.wicket
wicket-spring-annot
1.3.0-incubating-SNAPSHOT
jar


Cheers,

- Daniel



-
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] AbortWithWebErrorCodeException not working as expected

2007-05-08 Thread Lowell Kirsh
I throw an AbortWithWebErrorCodeException with
status=HttpServletResponse.SC_BAD_REQUEST from my WebPage constructor
and my web browser receives a 200 status code and shows a blank page.
What am I doing wrong?

Thanks,
Lowell

-
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-spring&annot for 1.3

2007-05-08 Thread ywtsang

Is the wicket-spring&annot available for 1.3 now?

I can find the wicket-spring for 1.2.6, but not 1.3.


-- 
View this message in context: 
http://www.nabble.com/wicket-spring-annot-for-1.3-tf3713584.html#a10388155
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] How do I do this - several similar links to another page

2007-05-08 Thread Lowell Kirsh
I'm trying to make a page with several similar links to another page:

method2
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] url mounting and PageParameters

2007-05-08 Thread Lowell Kirsh
I have just started mounting my pages (for nice urls) and it seems
that the PageParameters is always empty now. Before I had mounted the
pages, I could manually append "&foo=bar" to my url and it would get
into the PageParams, but not that they are mounted, I have been trying
to append "?foo=bar" but it seems to vanish into the ether. What am I
missing?

Thanks,
Lowell

-
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] 1.2 to 1.3 migration problems (javax.crypto.IllegalBlockSizeException

2007-05-08 Thread Herman Bovens



Jean-Baptiste Quenot-3 wrote:
> 
> * Herman Bovens:
> 
>> OK thanks,  the IllegalBlockSizeException is gone  now (strange:
>> if I  add the "name"  attribute again, it stays  gone?), but
>> the MarkupExceptions remain.
> 
> Well I guess markup errors are pretty understandable as they state
> precisely which component does not match.  For example I don't see
> the feedback component in your template.
> 

I think I removed it to see if it would help - but it didn't.  So now I've
put it back in there but still get the error with this markup:






ID 
Paswoord 
 # Login 
 # Registreer 






function submitLoginForm() {
document.signInForm.submit();
}
function registerNewUser() {
window.alert("TODO");
}




The error itself looks like this:

[markup =
jar:file:/C:/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp5982MijnBroodje.ear-contents/MijnBroodje-exp.war/WEB-INF/lib/wicket-1.3.0-incubating-SNAPSHOT-javadoc.jar!/org/apache/wicket/markup
/html/panel/FeedbackPanel.html, index = 0, current = [Raw markup]]
org.apache.wicket.markup.MarkupException: Tag ''
(line 13, column 1) has a mismatched close tag at '
' (line 22, column 1)
[markup =
jar:file:/C:/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp5982MijnBroodje.ear-contents/MijnBroodje-exp.war/WEB-INF/lib/wicket-1.3.0-incubating-SNAPSHOT-javadoc.jar!/org/apache/wicket/markup
/html/panel/FeedbackPanel.html, index = 0, current = [Raw markup]]
at
org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:323)
at
org.apache.wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196)
at
org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:344)
at
org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:428)
at
org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:306)
at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:110)
at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:327)

When I look in FeedbackPanel.html it doesn't contain any LINK tags though.

Herman
-- 
View this message in context: 
http://www.nabble.com/1.2-to-1.3-migration-problems-%28javax.crypto.IllegalBlockSizeException-tf3694734.html#a10386754
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] markup and its resource and IDEA and preview

2007-05-08 Thread ali
finally i come in folling dir structure for web app that i think more like  
it while develpment with Wicket

webroot/
 WEB-INF/
 classes/  // output .calss files
 lib/
 web.xml
 myresources // all types of resources (non .java and *.java)

can "sourceFolder" param  point to dir out of root-dir web app , i give  
0.5% possibilty , try , see NOT

i want
 1- Wicket Assistant plugin (maybe randomly) conform recommended  
aproach of wicket team (about put html/propeties in same palce of code of  
components.)
 this mean it only can jump to partner file if both file are same  
place.
 2- IDEA can find relative resources (image, css, js) of html page
 this means that relative resources must put in dir of html page  
(dirctly or indirectly)
 3- Dream can preview a html page with its relative resources
this mean that either use BASE tag or must be like 2
 4-to avoid after each edit on resources, compile/copy them to classes  
dir , i tempt put them in "classes" dir
 1- BUT i like put my hardly-generated resources in output dir  
(classes) , because maybe i mistakenly turn on/click switch so clean  
output dir
 i informed there is a init param named "sourceFolder" tell  
wicket instead of default "classes" dir , load resources from my folder
 a wannig point : because resources+markup now move out  
WEB-INF to root dir web app
 they avialable for all user
 but sice servlet not hit on request to them
 so only static resources and html templates  
(not populated with data by wicket) avialable for all user
 do i must worry about this topic ?

seem that if i put html and its relative static resource in same place of  
code of component , than above three wish will fullfill

meanwhile wicket tell wicket:link (in wicket:head in component' markup)  
generate/contribute url of relative resource in respect to package  
structure of component

 in form_input example page , use datapicker : (wicket:link is markup  
alternative of JavaScriptReference)

 markup :
 
 
 
 code :

add(new JavaScriptReference("calendarMain", DatePicker.class,  
"calendar.js"));
 // calendar.js and DataPicker.html and DatePicker.class are in  
same place.

 or
  
 
 
 
 

 output :



 but i see if this component be top level (page) , usage of wicket:link  
no has effect.
 page markup
  
 
 
 
 

 final markup

 
 
 

 do it make sense that want instead :

 src="/my_context/myresources/my/package/Page1/focus.js"

 (can instead only context path also servlet path  
prepend so them hit servlet)

in this way , i see a problem : static resource reveal package structure  
of code in markup
 but since for dynamic resources , hit servlet , it can use alias names  
for them (not remmember wikcet term , mayber mount , encode/decode).

i waiting for your EXCELLENT feedback guide me .

very thanks


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

-
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] Struts 2 Vs. Wicket (Need some highlights)

2007-05-08 Thread Xavier Hanin

You can find a pretty interesting comparison done by matt raible at
ApacheCon:
http://raibledesigns.com/rd/entry/apachecon_eu_comparing_java_web

It's not dedicated to struts 2 vs wicket, but might be interesting though.

In a few words my opinion is that the main difference between the two is
that wicket is a component framework while struts is an action based
framework. So I think you have to evaluate which kind of framework you want
first (and this depends on a lot of factors, including developers skills and
the type of application you're developing). If you choose a component
framework, wicket really shines in several ways. Among my favorites is the
truly simple way of writing your own components, which makes the code reuse
promise of a component framework absolutely true with wicket.

My 2c.

Xavier

On 5/9/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
wrote:


Guys I need some points I could talk to highlight Wicket over Struts 2 in
a professional matter.

Inside I'll think wicket rulz and struts sucked and know struts-2 sucks a
little less. But still.


Can you please contribute to make some sounded statements that would
better point out Wicket over Struts-2?

On a not so formal decision board I would like to vote in favor of Wicket.
I already did this for Wicket Vs. Click.

Thanks in advance,

/f(t)



-
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





--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/
-
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] Struts 2 Vs. Wicket (Need some highlights)

2007-05-08 Thread Francisco Diaz Trepat - gmail

Guys I need some points I could talk to highlight Wicket over Struts 2 in a
professional matter.

Inside I'll think wicket rulz and struts sucked and know struts-2 sucks a
little less. But still.


Can you please contribute to make some sounded statements that would better
point out Wicket over Struts-2?

On a not so formal decision board I would like to vote in favor of Wicket. I
already did this for Wicket Vs. Click.

Thanks in advance,

/f(t)
-
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] Too much spam on the wicket-user list

2007-05-08 Thread Francisco Diaz Trepat - gmail

You don't think there is spam in the list?

I'll forward all the stock quotes I'm getting in images (jpg, gif) I already
have word filters too.

Hope is soon too. How is the Apache incubation going, by the way?

cheers,
f(t)

On 5/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Don't think so. We already have spam filters set high etc. Apache is
much better in filtering, so I'm afraid we just have to be patient
until we move the user list there (should be soon if all goes well).

Eelco

On 5/8/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
wrote:
> What is going on?
>
> Apart from reporting the spam to my "local" google account, is there a
> procedure for reporting it to the mailing list server?
>
> Very, ultra, super, low priority question.
>
> Cheers,
> f(t)
>
>
-
> 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] loading a Flash resource

2007-05-08 Thread Andrew Lombardi
You'd probably want to combine what I pointed you to in the wiki,  
with a Resource which you can reconstruct and stream back a byte[],  
send content type, etc.


On May 8, 2007, at 2:11 PM, Apaar Trivedi wrote:

This looks like it could be very useful.  But what I mean  from a  
byte[] is that my user will select a swf from their file system and  
‘store’ it.  Essentially what happens is I upload their file and  
then store it as a byte[] in Hibernate.  So later when I get it  
out, I would need to be able to re construct it from the byte[].




Does this method allow for that?  After looking over it, would it  
be possible to stream the flash byte[] through renderHead or  
something like that?




Thanks



From: [EMAIL PROTECTED] [mailto:wicket-user- 
[EMAIL PROTECTED] On Behalf Of Andrew Lombardi

Sent: Tuesday, May 08, 2007 4:00 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] loading a Flash resource



What do you mean by loading a Flash resource from byte[]?  Its  
probably easiest just to utilize Wicket and create a Flash object  
to be rendered on the page.  There's a page in the Wiki about how  
to do this:




The following: http://cwiki.apache.org/WICKET/creating-a-behavior- 
to-use-a-javascript-library.html




uses SWFObject.js to load the flash.



Hope that helps.





On May 8, 2007, at 1:29 PM, Apaar Trivedi wrote:




Can anyone give me some ideas on how I can load Flash resource from  
byte[] and render it on a wicket 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





To our success!



Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobile: 714-697-8046 | office/ 
fax: 714-948-2382 | aim: nlpjunke


This message is for the named person's use only. You must not,  
directly or indirectly, use, disclose, distribute, print, or copy  
any part of this message if you are not the intended recipient.







-- 
---

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



To our success!

Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobile: 714-697-8046 | office/ 
fax: 714-948-2382 | aim: nlpjunke
This message is for the named person's use only. You must not,  
directly or indirectly, use, disclose, distribute, print, or copy any  
part of this message if you are not the intended recipient.



-
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] Newbie Qs about DynamicWebResource

2007-05-08 Thread JulianS

We are building a Wicket app that also needs to support applets. The applets
are modeless dialogs that live outside the browser. 

Each applet communicates with the server by sending data to a URL and
receiving a text response. We can do this by creating a service that
subclasses DynamicWebResource and passing data on the query string. 

However, we have run into a couple of snags: 

1. Each time the applet sends data to the server, we need to verify that it
belongs to the session the server expects. When we display the applet, we
can pass it the jsessionid; but what do we do when the applet posts data to
the service? The service has no access to the session.

2. How do we POST to a service based on DynamicWebResource?

Any help is appreciated. 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Qs-about-DynamicWebResource-tf3712534.html#a10384997
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] Too much spam on the wicket-user list

2007-05-08 Thread Eelco Hillenius
Don't think so. We already have spam filters set high etc. Apache is
much better in filtering, so I'm afraid we just have to be patient
until we move the user list there (should be soon if all goes well).

Eelco

On 5/8/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote:
> What is going on?
>
> Apart from reporting the spam to my "local" google account, is there a
> procedure for reporting it to the mailing list server?
>
> Very, ultra, super, low priority question.
>
> Cheers,
> f(t)
>
> -
> 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] Too much spam on the wicket-user list

2007-05-08 Thread Francisco Diaz Trepat - gmail

What is going on?

Apart from reporting the spam to my "local" google account, is there a
procedure for reporting it to the mailing list server?

Very, ultra, super, low priority question.

Cheers,
f(t)
-
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] loading a Flash resource

2007-05-08 Thread Apaar Trivedi
This looks like it could be very useful.  But what I mean  from a byte[]
is that my user will select a swf from their file system and 'store' it.
Essentially what happens is I upload their file and then store it as a
byte[] in Hibernate.  So later when I get it out, I would need to be
able to re construct it from the byte[]. 

 

Does this method allow for that?  After looking over it, would it be
possible to stream the flash byte[] through renderHead or something like
that?

 

Thanks

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Lombardi
Sent: Tuesday, May 08, 2007 4:00 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] loading a Flash resource

 

What do you mean by loading a Flash resource from byte[]?  Its probably
easiest just to utilize Wicket and create a Flash object to be rendered
on the page.  There's a page in the Wiki about how to do this:

 

The following:
http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-l
ibrary.html

 

uses SWFObject.js to load the flash.

 

Hope that helps.

 

 

On May 8, 2007, at 1:29 PM, Apaar Trivedi wrote:





Can anyone give me some ideas on how I can load Flash resource from
byte[] and render it on a wicket 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

 

 

To our success!

 

 me Andrew Lombardi:
Mystic Coders, LLC   - Coding Magic
contact | [EMAIL PROTECTED]   |
mobile: 714-697-8046 | office/fax: 714-948-2382 | aim: nlpjunke 

This message is for the named person's use only. You must not, directly
or indirectly, use, disclose, distribute, print, or copy any part of
this message if you are not the intended recipient.





 

-
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] loading a Flash resource

2007-05-08 Thread Andrew Lombardi
What do you mean by loading a Flash resource from byte[]?  Its  
probably easiest just to utilize Wicket and create a Flash object to  
be rendered on the page.  There's a page in the Wiki about how to do  
this:


The following: http://cwiki.apache.org/WICKET/creating-a-behavior-to- 
use-a-javascript-library.html


uses SWFObject.js to load the flash.

Hope that helps.


On May 8, 2007, at 1:29 PM, Apaar Trivedi wrote:

Can anyone give me some ideas on how I can load Flash resource from  
byte[] and render it on a wicket 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



To our success!

Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobile: 714-697-8046 | office/ 
fax: 714-948-2382 | aim: nlpjunke
This message is for the named person's use only. You must not,  
directly or indirectly, use, disclose, distribute, print, or copy any  
part of this message if you are not the intended recipient.



-
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] loading a Flash resource

2007-05-08 Thread Apaar Trivedi
Can anyone give me some ideas on how I can load Flash resource from
byte[] and render it on a wicket 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] Bookmarkable images

2007-05-08 Thread Jean-Baptiste Quenot
* Rüdiger Schulz:
> 
> So going the way Jeremy provided, I would do the following:
> 
> 1. Extend an AbstractRequestUrlCodingStrategy, where I will define how
> the path will be interpreted (quite similar to how I do it in my
> servlet a.t.m.).
> 
> 2. decode() would return a ResourceStreamRequestTarget, which uses a
> IResourceStream, which will deliver the image data.
> 
> 3. Implement a WebComponent, where in onComponentTag() the src
> attribute will be generated to match my strategy from above.
> 
> Are there any objections on this, or should it work? This thread
> promises an example, but I couldn't find one in the wiki:
> http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9791575
> (Jean-Baptiste seems to work on some kind of picture gallery as well :)

Exactly, and there are now examples that may help you a bit:

http://wicketstuff.org/wicket13/staticpages/

No images are currently shown in the examples, but it works the
same with any kind of data.

Cheers,
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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] Is it possible to use setMarkupStream to assign html to a web page?

2007-05-08 Thread Thomas R. Corbin
On Tuesday 08 May 2007 1:06 pm, Igor Vaynberg escreveu:
> ah, you are just using an old version.
>
> this is the _exact_ problem that chris encountered, and has been fixed a
> long time ago.

Cool, thanks.  I'll upgrade.

>
> -igor
>
> On 5/8/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > On Thursday 03 May 2007 6:30 pm, Igor Vaynberg escreveu:
> > > hrm. i would consider that a bug i think. i dont see why it would get
> > > called before constructor. can you set a breakpoint in there and paste
> >
> > the
> >
> > > stacktrace please.
> >
> > I'm still using the pre-wicket name change stuff.  I can upgrade,
> > though it
> > might take an evening's work to do so.   I threw an exception in my
> > method where the markup gets generated, so that's what the GUNK! bit is.
> >
> >
> > Can't instantiate page using constructor public
> > com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument
> > queryName = "viewMeterRoute"
> > wicket.WicketRuntimeException: Can't instantiate page using constructor
> > public
> > com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument
> > queryName = "viewMeterRoute"
> > at
> > wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:174)
> > at
> > wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> > at
> > wicket.request.target.component.BookmarkablePageRequestTarget.newPage(
> > BookmarkablePageRequestTarget.java:260)
> > at
> > wicket.request.target.component.BookmarkablePageRequestTarget.getPage(
> > BookmarkablePageRequestTarget.java:275)
> > at
> >
> > wicket.request.target.component.BookmarkablePageRequestTarget.processEven
> >ts (BookmarkablePageRequestTarget.java:204)
> > at
> > wicket.request.AbstractRequestCycleProcessor.processEvents(
> > AbstractRequestCycleProcessor.java:89)
> > at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
> >
> > :961)
> >
> > at wicket.RequestCycle.step(RequestCycle.java:1034)
> > at wicket.RequestCycle.steps(RequestCycle.java:1113)
> > at wicket.RequestCycle.request(RequestCycle.java:474)
> > at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248)
> > at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
> >
> > :122)
> >
> > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:202)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> > at
> > org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> > at
> > org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:178)
> > at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> >
> > :126)
> >
> > at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> >
> > :105)
> >
> > at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:107)
> > at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> >
> > :148)
> >
> > at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869
> >) at
> >
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proce
> >ssConnection (Http11BaseProtocol.java:664)
> > at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> > PoolTcpEndpoint.java:527)
> > at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> > LeaderFollowerWorkerThread.java:80)
> > at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> > at java.lang.Thread.run(Thread.java:619)
> > Caused by: java.lang.reflect.InvocationTargetException
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> > at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(
> > NativeConstructorAccessorImpl.java:39)
> > at
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> > DelegatingConstructorAccessorImpl.java:27)
> > at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
> > wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
> > ... 25 more
> > Caused by: java.lang.reflect.UndeclaredThrowableException
> > at wicket.proxy.$Proxy11.getMarkupResourceStream(Unknown Source)
> > at
> > com.samsix.reports.QueryDialogPage.getMarkupResourceStream(
> > QueryDialogPage.java:95)
> > at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:286)
> > at
> > wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:110) at
> > wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:327
> >) at wicket.markup.html.WebPage.commonInit(WebPage.java:210) at
> > wicket.markup.html.WebPage.(We

Re: [Wicket-user] wicket app under websphere problem

2007-05-08 Thread shumbola
Hello, Johan.

Âû ïèñàëè Wednesday, May 09, 2007, 12:44:04 AM:

> but are you sure that nowhere else in the classpath is a wicket.jar??

> if you could start websphere with -verbose:class then you can see where the 
> classes do come from

> johan

It seems, is is the websphere's fault. Classloader for the filter is
set to extclassloader instead of warclassloader, that's why wicket
filter can not instantiate my application class. :(
Until I get the patch for websphere (if there is, of course) I want to
have some solution for this. Is it possible to run wicket 1.3 with
wicket servlet but not with filter? If there needs some work to be
made, I'll do it myself, at least, I'll try.


>  On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:
 >> Hello, Johan.

>> Âû ïèñàëè Tuesday, May 08, 2007, 4:38:26 PM:

>>> If the war works on tomcat en jetty but not on webspere then it is really
>>> a classloading problem of websphere
>>> so i really have the idea that the wicket classes do come from a different 
>>> classloader
>>> then your application classes
>>> (or somehow your application classes are not found completely)

>>> johan

>> Could it be that wicket filter loaded with one class loader and the
 >> application classes with another one? Because wicket filter can not
>> instantiate my application class: MyApplication.class.
>> I'll play with websphere settings on this later today and will let you
 >> know if something changes...

> I've made a simple wicket 1.3 based app, rolled up the war file and
> tested this with websphere. It still gives the ClassNotFoundException.
> I wonder if someone in this list works with/tried wicket  1.3 and
> websphere. The exact version of my websphere is 6.0.2.9.
> I've played with websphere's classloader settings, but without any
> success.

> Any other idea, guys?


>>> On 5/8/07, shumbola <[EMAIL PROTECTED] > wrote:
>>> Hello, Johan.

>>> Âû ïèñàëè Tuesday, May 08, 2007, 4:13:21 PM:

  are you sure that the wicket lib is not in a shared lib 
 and your application code is in a web app lib dir?

 Because then the wicket code can't find the applicaiton class of
 yours because they are not loaded
through the same classloader. 

 johan

>>> Yes, I'm pretty sure that wicket lib is not in a shared lib and yes,
>>> my application code is in a web app lib dir.

>>> Here is some hierarchy on the server: 
>>> MYAPP.EAR:
>>>  img 
>>>  WEB-INF 
>>>  index.html
>>>  style.css

>>> WEB-INF:
>>>  classes 
>>>  lib 
 >>>  web.xml

>>> classes:
>>>  com  //the whole application classes here
>>>  log4j.properties
>>> lib:
>>>  wicket*.jar
>>>  wicket-extensions*.jar
>>>  andother jar files 

>>> If I deploy the same war file on Tomcat, webstone, jetty it works as
>>> expected, but seems with Web Sphere something goes wrong.

 On 5/8/07, shumbola < [EMAIL PROTECTED]> wrote:
 Hello,

 After migrating to 1.3 I decided to test if my application still works
 under Web Sphere 6.0. And I'm getting this error: 
 SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be 
 initialized]:
 org.apache.wicket.WicketRuntimeException: Unable to create
 application of class com.nemat.MyApplication 
 at java.lang.Throwable.(Throwable.java:217)
 at java.lang.Exception.(Exception.java:59)
 at java.lang.RuntimeException.(RuntimeException.java :61)
 at org.apache.wicket.WicketRuntimeException
 ..(WicketRuntimeException.java:50)
 at
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
 (ContextParamWebApplicationFactory.java:83)
 at

 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
 (ContextParamWebApplicationFactory.java :50)
 at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java :375)
 at
 com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java
  :109)
at
 com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java
  :326)
 at
 com.ibm.ws.webcontainer.filter.WebAppFilterManager..getFilterInstanceWrapper
 (WebAppFilterManager.java:152)
 at
 com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain
 ( WebAppFilterManager.java:200)
 at
 com.ibm.ws..webcontainer.extension.DefaultExtensionProcessor.invokeFilters
 (DefaultExtensionProcessor.java:764)
 at
 com..ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest
 (DefaultExtensionProcessor.java:581)
 at
  com.ibm.ws..webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
 at
 com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java :221)
 at com.ibm.ws.webcontainer.VirtualHost.handleRequest  
 (VirtualHost.java:210)
 at
 com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1931)
 at
 com.ibm.ws.webcontainer.channel.WCChannelLink.ready ( 
 WCChannelLink

Re: [Wicket-user] wicket app under websphere problem

2007-05-08 Thread Johan Compagner

but are you sure that nowhere else in the classpath is a wicket.jar??

if you could start websphere with -verbose:class then you can see where the
classes do come from

johan


On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:


> Hello, Johan.

> Âû ïèñàëè Tuesday, May 08, 2007, 4:38:26 PM:

>> If the war works on tomcat en jetty but not on webspere then it is
really
>> a classloading problem of websphere
>> so i really have the idea that the wicket classes do come from a
different classloader
>> then your application classes
>> (or somehow your application classes are not found completely)

>> johan

> Could it be that wicket filter loaded with one class loader and the
> application classes with another one? Because wicket filter can not
> instantiate my application class: MyApplication.class.
> I'll play with websphere settings on this later today and will let you
> know if something changes...

I've made a simple wicket 1.3 based app, rolled up the war file and
tested this with websphere. It still gives the ClassNotFoundException.
I wonder if someone in this list works with/tried wicket 1.3 and
websphere. The exact version of my websphere is 6.0.2.9.
I've played with websphere's classloader settings, but without any
success.

Any other idea, guys?


>> On 5/8/07, shumbola <[EMAIL PROTECTED] > wrote:
>> Hello, Johan.

>> Âû ïèñàëè Tuesday, May 08, 2007, 4:13:21 PM:

>>> are you sure that the wicket lib is not in a shared lib
>>> and your application code is in a web app lib dir?

>>> Because then the wicket code can't find the applicaiton class of
>>> yours because they are not loaded
>>>through the same classloader.

>>> johan

>> Yes, I'm pretty sure that wicket lib is not in a shared lib and yes,
>> my application code is in a web app lib dir.

>> Here is some hierarchy on the server:
>> MYAPP.EAR:
>>  img 
>>  WEB-INF 
>>  index.html
>>  style.css

>> WEB-INF:
>>  classes 
>>  lib 
>>  web.xml

>> classes:
>>  com  //the whole application classes here
>>  log4j.properties
>> lib:
>>  wicket*.jar
>>  wicket-extensions*.jar
>>  andother jar files

>> If I deploy the same war file on Tomcat, webstone, jetty it works as
>> expected, but seems with Web Sphere something goes wrong.

>>> On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:
>>> Hello,

>>> After migrating to 1.3 I decided to test if my application still works
>>> under Web Sphere 6.0. And I'm getting this error:
>>> SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be
initialized]:
>>> org.apache.wicket.WicketRuntimeException: Unable to create
>>> application of class com.nemat.MyApplication
>>> at java.lang.Throwable.(Throwable.java:217)
>>> at java.lang.Exception.(Exception.java:59)
>>> at java.lang.RuntimeException.(RuntimeException.java:61)
>>> at org.apache.wicket.WicketRuntimeException
>>> ..(WicketRuntimeException.java:50)
>>> at
>>>
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:83)
>>> at
>>>
>>>
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
>>> (ContextParamWebApplicationFactory.java:50)
>>> at
>>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:375)
>>> at
>>> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(
FilterInstanceWrapper.java:109)
>>>at
>>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(
WebAppFilterManager.java :326)
>>> at
>>>
com.ibm.ws.webcontainer.filter.WebAppFilterManager..getFilterInstanceWrapper
(WebAppFilterManager.java:152)
>>> at
>>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain
>>> ( WebAppFilterManager.java:200)
>>> at
>>>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(
DefaultExtensionProcessor.java:764)
>>> at
>>>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest
>>> (DefaultExtensionProcessor.java:581)
>>> at
>>> com.ibm.ws..webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
>>> at
>>> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)
>>> at com.ibm.ws.webcontainer.VirtualHost.handleRequest (VirtualHost.java
:210)
>>> at
>>> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java
:1931)
>>> at
>>> com.ibm.ws.webcontainer.channel.WCChannelLink.ready (
WCChannelLink.java:84)
>>> at
>>>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination
>>> (HttpInboundLink.java:472)
>>> at
>>>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
HttpInboundLink.java:411)
>>> at
>>> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
HttpICLReadCallback.java
>>> :101)
>>> at
>>> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete (
WorkQueueManager.java:566)
>>> at
>>> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
WorkQueueManager.java:593)
>>> at com.ibm.ws..tcp.channel.impl.WorkQueueManager.workerRun (
WorkQueueManager.java:952)
>>> at
>>> com.ibm.ws.tcp.channel.impl.Wor

Re: [Wicket-user] maven snapshot repo and javadocs

2007-05-08 Thread Jean-Baptiste Quenot
* Johan Compagner:

> docs: http://www.wicketstuff.org/wicket13doc/

Johan, you rock!  Thanks a lot for the online Javadocs!
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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] 1.2 to 1.3 migration problems (javax.crypto.IllegalBlockSizeException

2007-05-08 Thread Jean-Baptiste Quenot
* Herman Bovens:

> OK thanks,  the IllegalBlockSizeException is gone  now (strange:
> if I  add the "name"  attribute again, it stays  gone?), but
> the MarkupExceptions remain.

Well I guess markup errors are pretty understandable as they state
precisely which component does not match.  For example I don't see
the feedback component in your template.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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 app under websphere problem

2007-05-08 Thread shumbola
> Hello, Johan.

> Âû ïèñàëè Tuesday, May 08, 2007, 4:38:26 PM:

>> If the war works on tomcat en jetty but not on webspere then it is really
>> a classloading problem of websphere
>> so i really have the idea that the wicket classes do come from a different 
>> classloader
>> then your application classes 
>> (or somehow your application classes are not found completely)

>> johan

> Could it be that wicket filter loaded with one class loader and the
> application classes with another one? Because wicket filter can not
> instantiate my application class: MyApplication.class.
> I'll play with websphere settings on this later today and will let you
> know if something changes...

I've made a simple wicket 1.3 based app, rolled up the war file and
tested this with websphere. It still gives the ClassNotFoundException.
I wonder if someone in this list works with/tried wicket 1.3 and
websphere. The exact version of my websphere is 6.0.2.9.
I've played with websphere's classloader settings, but without any
success.

Any other idea, guys?


>> On 5/8/07, shumbola <[EMAIL PROTECTED] > wrote:
>> Hello, Johan.

>> Âû ïèñàëè Tuesday, May 08, 2007, 4:13:21 PM:

 >>> are you sure that the wicket lib is not in a shared lib
>>> and your application code is in a web app lib dir?

>>> Because then the wicket code can't find the applicaiton class of
>>> yours because they are not loaded 
>>>  through the same classloader.

>>> johan

>> Yes, I'm pretty sure that wicket lib is not in a shared lib and yes,
>> my application code is in a web app lib dir.

>> Here is some hierarchy on the server: 
>> MYAPP.EAR:
>>  img 
>>  WEB-INF 
>>  index.html
>>  style.css

>> WEB-INF:
>>  classes 
>>  lib 
>>  web.xml

>> classes:
>>  com  //the whole application classes here 
>>  log4j.properties
>> lib:
>>  wicket*.jar
>>  wicket-extensions*.jar
>>  and  other jar files

>> If I deploy the same war file on Tomcat, webstone, jetty it works as
>> expected, but seems with Web Sphere something goes wrong. 

>>> On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:
>>> Hello,

>>> After migrating to 1.3 I decided to test if my application still works
>>> under Web Sphere   6.0. And I'm getting this error:
>>> SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be 
>>> initialized]:
>>> org.apache.wicket.WicketRuntimeException: Unable to create
>>> application of class com.nemat.MyApplication 
>>> at java.lang.Throwable.(Throwable.java:217)
>>> at java.lang.Exception.(Exception.java:59)
>>> at java.lang.RuntimeException.(RuntimeException.java:61)
>>> at org.apache.wicket.WicketRuntimeException 
>>> ..(WicketRuntimeException.java:50)
>>> at
>>> org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:83)
>>> at
>>> 
>>> org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
>>> (ContextParamWebApplicationFactory.java:50)
>>> at
>>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java :375)
>>> at
>>> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109)
>>>  at
>>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java
>>>  :326)
>>> at
>>> com.ibm.ws.webcontainer.filter.WebAppFilterManager..getFilterInstanceWrapper(WebAppFilterManager.java:152)
>>> at
>>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain
>>> ( WebAppFilterManager.java:200)
>>> at
>>> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:764)
>>> at
>>> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest
>>> (DefaultExtensionProcessor.java:581)
>>> at
>>> com.ibm.ws..webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
>>> at
>>> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java :221)
>>> at com.ibm.ws.webcontainer.VirtualHost.handleRequest (VirtualHost.java:210)
>>> at
>>> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1931)
>>> at
>>> com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:84)
>>> at
>>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination
>>> (HttpInboundLink.java:472)
>>> at
>>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation 
>>> (HttpInboundLink.java:411)
>>> at
>>> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java
>>> :101)
>>> at
>>> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete 
>>> (WorkQueueManager.java:566)
>>> at
>>> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:593)
>>> at com.ibm.ws..tcp.channel.impl.WorkQueueManager.workerRun 
>>> (WorkQueueManager.java:952)
>>> at
>>> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager..java:1039)
>>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)
>>> Caused by: java.lang.ClassNotFoundException  : com.nemat.MyApplica

Re: [Wicket-user] expression to get property

2007-05-08 Thread Johan Compagner

Guys i thought we should slow down! ;)
3 core devs giving the same kind of advice!
Now everybody should know really how it shoudl work the next time ;)

johan


On 5/8/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


new Label("name", new Model() {
   public Object getObject() {
  return myBean.getName(3);
   }
});

-Matej

On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>
> it is easy to reference the property of a model by using "java bean"
notation
> as:
>
> add(new Label("name", new PropertyModel(myModel, "name")));
>
> (get the value of name property from the myModel)
>
> what about if I want to insert some parameters in my property getter
method?
> e.g. I have a getter method:
> String getName(int)
>
> is it possible to "use" this getter method by passing an integer value
in
> PropertyModel?
>
> -Wing
> --
> View this message in context:
http://www.nabble.com/expression-to-get-property-tf3707591.html#a10369629
> 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

-
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] Writing byte[] to a WebResponse

2007-05-08 Thread JulianS


Janos Cserep wrote:
> 
> 4. modify getContentType() and getData() to return your objects (you can
> get
> any HTTP parameter with the getParameter() call of the Resource class in
> getData() so you could pass arguments to theURL like
> http://server/context/.../my/resource/url?id=XkdfG12
> 

It took me a while to discover that (at least for Wicket 1.2.5) the correct
form of the URL is:

http://server/context/.../my/resource/url/id/XkdfG12

Otherwise, the ValueMap will be empty.
-- 
View this message in context: 
http://www.nabble.com/Writing-byte---to-a-WebResponse-tf2912722.html#a10381309
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] Accordion pane

2007-05-08 Thread Vincent Demay

Gabor Szokoli a écrit :

On 5/8/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
  

Maybe:

https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-dojo




Indeed, thank you.
Sorry about the noise.

To add some value, let me note I am using wicket 1.2.6, so I had to
check out /branches/WICKET_1_2/ instead of trunk, then edit the core
wicket dependency in the pom.xml to 1.2.6 from 1.2-SNAPSHOT
  

Hi Gabor.

Unfortunatly there isn't any wicket-contrib-dojo following the wicket 
1.2.X branch. If you want to use some stuff from wicket-contrib-dojo you 
should go to 1.X wicket branch.
May be one day we will backport our current 1.X branch on a 1.2.X 
branch, but it needs a lot of time and we have not such time, very sorry.


You can get the last jar on : 
http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/


--
Vincent Demay
http://www.demay-fr.net/blog



Szocske

-
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] Is it possible to use setMarkupStream to assign html to a web page?

2007-05-08 Thread Igor Vaynberg

ah, you are just using an old version.

this is the _exact_ problem that chris encountered, and has been fixed a
long time ago.

-igor


On 5/8/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:


On Thursday 03 May 2007 6:30 pm, Igor Vaynberg escreveu:
> hrm. i would consider that a bug i think. i dont see why it would get
> called before constructor. can you set a breakpoint in there and paste
the
> stacktrace please.

I'm still using the pre-wicket name change stuff.  I can upgrade,
though it
might take an evening's work to do so.   I threw an exception in my method
where the markup gets generated, so that's what the GUNK! bit is.


Can't instantiate page using constructor public
com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument
queryName = "viewMeterRoute"
wicket.WicketRuntimeException: Can't instantiate page using constructor
public
com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument
queryName = "viewMeterRoute"
at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:174)
at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(
BookmarkablePageRequestTarget.java:260)
at
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(
BookmarkablePageRequestTarget.java:275)
at

wicket.request.target.component.BookmarkablePageRequestTarget.processEvents
(BookmarkablePageRequestTarget.java:204)
at
wicket.request.AbstractRequestCycleProcessor.processEvents(
AbstractRequestCycleProcessor.java:89)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:961)
at wicket.RequestCycle.step(RequestCycle.java:1034)
at wicket.RequestCycle.steps(RequestCycle.java:1113)
at wicket.RequestCycle.request(RequestCycle.java:474)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
:122)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
... 25 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at wicket.proxy.$Proxy11.getMarkupResourceStream(Unknown Source)
at
com.samsix.reports.QueryDialogPage.getMarkupResourceStream(
QueryDialogPage.java:95)
at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:286)
at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:110)
at
wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:327)
at wicket.markup.html.WebPage.commonInit(WebPage.java:210)
at wicket.markup.html.WebPage.(WebPage.java:98)
at com.samsix.wicket.NrgPage.(NrgPage.java:33)
at com.samsix.wicket.VariationPage.(VariationPage.java:39)
at com.samsix.reports.QueryDialogPage.(QueryDialogPage.java
:58)
... 30 more
Caused by: java.lang.Exception: GUNK!
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConst

Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-08 Thread Eelco Hillenius
Yep. Something like that. Manu, could you please provide me with a
unit test showing your problem? I'd be happy to fix if I have one. I'm
currently waiting on someone else sending us a test for a related
problem.

Cheers!

Eelco

On 5/8/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> i don't know exactly, but i think the change was made because returning a
> String[] is how it's in the spec.
> please correct me if i'm wrong or have the wrong conversation in mind.
>
> gerolf
>
>
>
>  On 5/8/07, manu <[EMAIL PROTECTED]> wrote:
> > Dear Sirs,
> >
> > I updated to Wicket 1.2.6 and I have found the following behavior when
> > using BookmarkablePageLink (which was not happening before in Wicket
> > 1.2.5). The code example is:
> >
> > private class Link1 extends BookmarkablePageLink {
> > private static final long serialVersionUID = 1L;
> > public Link1(String linkId, String labelId, String
> labelValue,
> > PageParameters params) {
> > super(linkId, Page1.class ,
> params);
> > this.add(new Label(labelId, labelValue));
> > }
> > }
> >
> > When clicking on this link the error on Page1 (target page that
> > recovers "params") is:
> >
> > Caused by: java.lang.ClassCastException
> >
> > After debugging it, I found that the page parameters (Strings added to
> > "params") were converted to String[1], id est, all arrays, when
> > creating the BookmarkablePageLink. So it seems that there inside
> > happens this String2String[] transformation.
> >
> > To jump over this issue, for the moment, I had to switch to standard
> > Link class, avoiding the use of BookmarkablePageLink.
> >
> > What's the solution to this?
> >
> > 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
>
>

-
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] Bookmarkable images

2007-05-08 Thread Rüdiger Schulz
Hello Igor,

Thanks again for your patience :)

I found the page in the Wiki, it's here:
http://cwiki.apache.org/WICKET/uploaddownload.html

Now I know what to do!


.rue

2007/5/8, Igor Vaynberg <[EMAIL PROTECTED]>:
> you would mount one image resource and read the image id from the url, there
> is an article on this somewhere in the wiki and if you want you can look at
> the pastebin code (papernapkin.com ), its hosted on berlious.de i believe.
>
> -igor
>
>
>
> On 5/8/07, Rüdiger Schulz < [EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > thanks a lot for both suggestions :)
> >
> > A mounted DynamicImageResource looks interesting, but as I see it,
> > there would be a mount for every single image? Or is it somehow
> > possible to mount a shared resource in a way that a parameter can be
> > passed? I have a lot of images, and user can create new ones...
> >
> > So going the way Jeremy provided, I would do the following:
> >
> > 1. Extend an AbstractRequestUrlCodingStrategy, where I
> will define how
> > the path will be interpreted (quite similar to how I do it in my
> > servlet a.t.m.).
> >
> > 2. decode() would return a ResourceStreamRequestTarget, which uses a
> > IResourceStream, which will deliver the image data.
> >
> > 3. Implement a WebComponent, where in onComponentTag() the src
> > attribute will be generated to match my strategy from above.
> >
> > Are there any objections on this, or should it work? This thread
> > promises an example, but I couldn't find one in the wiki:
> >
> http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9791575
> > (Jean-Baptiste seems to work on some kind of picture gallery as well :)
> >
> > I'm actually not sure what to do in
> > RequestUrlCodingStrategy.encode(IRequestTarget), and where it would be
> > called in this case.
> >
> >
> > .Rüdiger
> >
> > 2007/5/8, Igor Vaynberg <[EMAIL PROTECTED]>:
> > > you can also implement your own DynamicImageResource, and add it to
> shared
> > > resources
> > >
> > > webapp.getsharedresources().add("images", new MyDynamicImageResource());
> > >
> > > urls for shared resources are stable, and you can also mount them.
> > >
> > > -igor
> > >
> > >
> > >
> > >
> > > On 5/7/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote:
> > > > I've done a lot of custom URL encoding / decoding to keep very clean,
> > > search-engine friendly URLs in our application.  The place I would start
> > > would be to mount a custom IRequestTargetUrlCodingStrategy in your
> WebApp
> > > class.
> > > >
> > > > Here's some code that might help as a starting point:
> > > >
> > > > private final Pattern mRequestPattern =
> > > Pattern.compile(getMountPath() + "/([0-9]*)/.*");
> > > >
> > > > public boolean matches(RequestParameters rp) {
> > > > return mRequestPattern.matcher(rp.getPath()).matches();
> > > > }
> > > >
> > > > public IRequestTarget decode(RequestParameters rp) {
> > > > Matcher matcher = mRequestPattern.matcher(rp.getPath ());
> > > > matcher.find();
> > > > String strID = matcher.group(1);
> > > > int id = -1;
> > > > try {
> > > > id = Integer.parseInt(strID);
> > > > } catch (NumberFormatException nfe) {
> > > > throw new IllegalArgumentException(strID + " is not a
> > > valid ID");
> > > > }
> > > >
> > > > IFooService svc = getBean(IFooService.class);
> > > > return new PageRequestTarget(new FooPage(
> svc.findByID(id)));
> > > > }
> > > >
> > > >
> > > > Jeremy Thomerson
> > > >
> > > >
> > > >
> > > > On 5/7/07, Rüdiger Schulz <[EMAIL PROTECTED] > wrote:
> > > > > Hello everybody,
> > > > >
> > > > > in my application, I'm currently serving images with a special
> > > > > servlet. It accepts request paths like /app/images/42.gif. The
> images
> > > > > themself are stored in a database. I like this approach, because the
> > > > > image URLs are static, and by that they can be cached by proxies and
> > > > > stored as bookmarks in browsers.
> > > > >
> > > > > I integrate this servlet with a custom WebComponent in my Wicket
> > > > > pages, where I compile the correct path.
> > > > >
> > > > > This all works very well, but now I'd like to convert this servlet
> > > > > into a Wicket component. It needs the same behavior (static urls),
> but
> > > > > I'd like to restrict access according to data in the current Wicket
> > > > > session.
> > > > >
> > > > > I think I know how to do this with a DynamicWebResource and all, but
> I
> > > > > have no idea how to do the URL binding. I don't know where to start
> at
> > > > > all. For pages there is the IndexedParamUrlCodingStrategy, but that
> > > > > won't do for images I guess...
> > > > >
> > > > > So, any help would be very welcome. Oh, and I'm still using Wicket
> > > > > 1.2.6; an update to 1.3 is planned, but cannot be done right now. If
> a
> > > > > solution would be much more easier in 1.3 tha

Re: [Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?

2007-05-08 Thread Thomas R. Corbin
On Thursday 03 May 2007 6:30 pm, Igor Vaynberg escreveu:
> hrm. i would consider that a bug i think. i dont see why it would get
> called before constructor. can you set a breakpoint in there and paste the
> stacktrace please.

I'm still using the pre-wicket name change stuff.  I can upgrade, 
though it 
might take an evening's work to do so.   I threw an exception in my method 
where the markup gets generated, so that's what the GUNK! bit is.


Can't instantiate page using constructor public 
com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument 
queryName = "viewMeterRoute"
wicket.WicketRuntimeException: Can't instantiate page using constructor public 
com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument 
queryName = "viewMeterRoute"
at 
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:174)
at 
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:260)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:275)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:204)
at 
wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:89)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:961)
at wicket.RequestCycle.step(RequestCycle.java:1034)
at wicket.RequestCycle.steps(RequestCycle.java:1113)
at wicket.RequestCycle.request(RequestCycle.java:474)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at 
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
... 25 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at wicket.proxy.$Proxy11.getMarkupResourceStream(Unknown Source)
at 
com.samsix.reports.QueryDialogPage.getMarkupResourceStream(QueryDialogPage.java:95)
at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:286)
at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:110)
at 
wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:327)
at wicket.markup.html.WebPage.commonInit(WebPage.java:210)
at wicket.markup.html.WebPage.(WebPage.java:98)
at com.samsix.wicket.NrgPage.(NrgPage.java:33)
at com.samsix.wicket.VariationPage.(VariationPage.java:39)
at com.samsix.reports.QueryDialogPage.(QueryDialogPage.java:58)
... 30 more
Caused by: java.lang.Exception: GUNK!
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at 
org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaCla

Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-08 Thread Gerolf Seitz

i don't know exactly, but i think the change was made because returning a
String[] is how it's in the spec.
please correct me if i'm wrong or have the wrong conversation in mind.

gerolf


On 5/8/07, manu <[EMAIL PROTECTED]> wrote:


Dear Sirs,

I updated to Wicket 1.2.6 and I have found the following behavior when
using BookmarkablePageLink (which was not happening before in Wicket
1.2.5). The code example is:

private class Link1 extends BookmarkablePageLink {
private static final long serialVersionUID = 1L;
public Link1(String linkId, String labelId, String
labelValue,
PageParameters params) {
super(linkId, Page1.class, params);
this.add(new Label(labelId, labelValue));
}
}

When clicking on this link the error on Page1 (target page that
recovers "params") is:

Caused by: java.lang.ClassCastException

After debugging it, I found that the page parameters (Strings added to
"params") were converted to String[1], id est, all arrays, when
creating the BookmarkablePageLink. So it seems that there inside
happens this String2String[] transformation.

To jump over this issue, for the moment, I had to switch to standard
Link class, avoiding the use of BookmarkablePageLink.

What's the solution to this?

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


[Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-08 Thread manu
Dear Sirs,

I updated to Wicket 1.2.6 and I have found the following behavior when
using BookmarkablePageLink (which was not happening before in Wicket
1.2.5). The code example is:

private class Link1 extends BookmarkablePageLink {
private static final long serialVersionUID = 1L;
public Link1(String linkId, String labelId, String labelValue,
PageParameters params) {
super(linkId, Page1.class, params); 
this.add(new Label(labelId, labelValue));
}
}

When clicking on this link the error on Page1 (target page that
recovers "params") is:

Caused by: java.lang.ClassCastException

After debugging it, I found that the page parameters (Strings added to
"params") were converted to String[1], id est, all arrays, when
creating the BookmarkablePageLink. So it seems that there inside
happens this String2String[] transformation.

To jump over this issue, for the moment, I had to switch to standard
Link class, avoiding the use of BookmarkablePageLink.

What's the solution to this?

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] expression to get property

2007-05-08 Thread Matej Knopp
new Label("name", new Model() {
   public Object getObject() {
  return myBean.getName(3);
   }
});

-Matej

On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>
> it is easy to reference the property of a model by using "java bean" notation
> as:
>
> add(new Label("name", new PropertyModel(myModel, "name")));
>
> (get the value of name property from the myModel)
>
> what about if I want to insert some parameters in my property getter method?
> e.g. I have a getter method:
> String getName(int)
>
> is it possible to "use" this getter method by passing an integer value in
> PropertyModel?
>
> -Wing
> --
> View this message in context: 
> http://www.nabble.com/expression-to-get-property-tf3707591.html#a10369629
> 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


[Wicket-user] skinning and fallback

2007-05-08 Thread Lennaert van der Linden
Hi,

I am trying to set up properties based on a session style as follows:
- a default properties file called MyWebApplication.properties
- for each style a file called MyWebApplication_{style}.properties
and I set the style using getSession().setStyle( style )

This works, but there doesn't seem to be a fallback when a resource item 
is missing in MyWebApplication_somestyle.properties, but it available in 
the MyWebApplication.properties file. This means that I have to copy all 
items from the MyWebApplication.properties to all 
MyWebApplication_{style}.properties files and keep them updated. I'd 
rather have only exceptions to the items in the 
MyWebApplication_{style}.properties files.

I am new to Wicket so I am probably missing some obvious alternative, 
but shouldn't there be a fallback for styles?

Regards,

Lennaert

-- 
Lennaert van der Linden
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
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] Best place to add components to a page?

2007-05-08 Thread Igor Vaynberg

from looking at the current code it is ok, but later who knows? the contract
on decode() is not defined for as far as when it is called, so the best way
is to create the page lazily in irequesttarget.respond().

my two cents.

-igor


On 5/8/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote:


Just to verify - I have a lot of IRequestTargetUrlCodingStrategy
implementations so that all of my URLs are very clean and search engine
friendly.  In the decode method, I typically create a PageRequestTarget,
with a new Page being passed to the constructor.

This is an okay place to be creating a Page instance, correct?  As it will
only be called once the strategy has confirmed that it matches, and the page
created will be the one used to be rendered?

Just wanted to make sure that I wasn't creating pages unnecessarily.

Thanks!
Jeremy Thomerson

On 5/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> you should never have to create page instances that you are not going to
> display. in case of pagelink - that constructor (String,Page) always gets
> the newbies to do the wrong thing, just dont use it. best to create
> pages lazily in link's onclick.
>
> -igor
>
>
> On 5/6/07, Jeremy Thomerson < [EMAIL PROTECTED]> wrote:
>
> > All the examples seem to show components (Labels, custom components,
> > ListViews, Tables, etc) added to the page in the constructor.  Is this
> > really the best place to add the components to the page?  Or should you just
> > be setting up the model for the page in the constructor, and at a
> > later-pre-render time you construct the actual components that go in the
> > page?
> >
> > My concern is that there are times that a page might be constructed
> > but not rendered.  I'm not 100% sure this is the case, but it could easily
> > be a mistake by ones new to the framework that might be avoided by having a
> > separate place for component initialization.  For instance, you might
> > construct a page for a PageLink, and you pass to the page constructor a
> > category.  Then, to initialize a ListView of widgets that appear under that
> > category, the constructor loads stuff from the database.  I suppose that the
> > constructor shouldn't load things, but rather be using a loadable model, but
> > newcomers might not know this.  So, on a page, you construct the pages to
> > use in pagelinks, and you're doing a lot of unnecessary object construction,
> > and perhaps loading of database objects.  Or, you have to use
> > BookmarkablePageLinks and PageParameters for everything.
> >
> > Thoughts?
> >
> > 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
> >
> >
>
>
> -
> 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] ConversionException refactor

2007-05-08 Thread Eelco Hillenius
That code doesn't look great indeed. A patch for a refactor would imo
be welcome.

Cheers,

Eelco


On 4/11/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>
> I was working with wicket.datetime.util.DateConverter in an attempt to try
> and get it to report a parse error instead of silently accepting the bad
> input, when I nrealized that if it threw a ConversionException, the
> framework would be able to pick up on that (in my case
> FormComponent.convert() would catch it) and allow me to register the
> feedback error message.
>
> While following that thread, I noticed that not only was there identical
> code in FormComponent.convert in the two catch blocks, but a third class
> TypeValidator was also using the same block of code:
>
> Map args = new HashMap();
> final Locale locale = e.getLocale();
> if (locale != null)
> {
> args.put("locale", locale);
> }
> args.put("exception", e);
> Format format = e.getFormat();
> if (format instanceof SimpleDateFormat)
> {
> args.put("format", ((SimpleDateFormat)format).toLocalizedPattern());
> }
>
> All this block is really doing is analyzing the ConversionException to build
> the args HashMap for the error reporting facilities.  I was thinking that if
> this code block was refactored INTO the ConversionException then the code
> duplication could be removed (as the first benefit), but then Converters
> would be able to inject their own variables into the Map to allow for even
> better message definitions.
>
> While I was looking at the usage of ConversionException, it also looked like
> AbstractConverter, AbstractNumberConverter,
> PropertyResolver$ArrayPropertyGetSet, and PropertyResolver$MethodGetSet
> might all benefit from the refactor by externalizing their messages and
> inject the proper variables into the Exception's Map.
>
> If I haven't missed the mark too bad, I can write a JIRA for this.  Also, I
> could even try the refactor given my description here and any feedback that
> you give me.
>
> Chuck
> --
> View this message in context: 
> http://www.nabble.com/ConversionException-refactor-tf3559528.html#a9940039
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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] Bookmarkable images

2007-05-08 Thread Igor Vaynberg

you would mount one image resource and read the image id from the url, there
is an article on this somewhere in the wiki and if you want you can look at
the pastebin code (papernapkin.com), its hosted on berlious.de i believe.

-igor


On 5/8/07, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:


Hello,

thanks a lot for both suggestions :)

A mounted DynamicImageResource looks interesting, but as I see it,
there would be a mount for every single image? Or is it somehow
possible to mount a shared resource in a way that a parameter can be
passed? I have a lot of images, and user can create new ones...

So going the way Jeremy provided, I would do the following:

1. Extend an AbstractRequestUrlCodingStrategy, where I will define how
the path will be interpreted (quite similar to how I do it in my
servlet a.t.m.).

2. decode() would return a ResourceStreamRequestTarget, which uses a
IResourceStream, which will deliver the image data.

3. Implement a WebComponent, where in onComponentTag() the src
attribute will be generated to match my strategy from above.

Are there any objections on this, or should it work? This thread
promises an example, but I couldn't find one in the wiki:
http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9791575
(Jean-Baptiste seems to work on some kind of picture gallery as well :)

I'm actually not sure what to do in
RequestUrlCodingStrategy.encode(IRequestTarget), and where it would be
called in this case.


.Rüdiger

2007/5/8, Igor Vaynberg <[EMAIL PROTECTED]>:
> you can also implement your own DynamicImageResource, and add it to
shared
> resources
>
> webapp.getsharedresources().add("images", new MyDynamicImageResource());
>
> urls for shared resources are stable, and you can also mount them.
>
> -igor
>
>
>
>
> On 5/7/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote:
> > I've done a lot of custom URL encoding / decoding to keep very clean,
> search-engine friendly URLs in our application.  The place I would start
> would be to mount a custom IRequestTargetUrlCodingStrategy in your
WebApp
> class.
> >
> > Here's some code that might help as a starting point:
> >
> > private final Pattern mRequestPattern =
> Pattern.compile(getMountPath() + "/([0-9]*)/.*");
> >
> > public boolean matches(RequestParameters rp) {
> > return mRequestPattern.matcher(rp.getPath()).matches();
> > }
> >
> > public IRequestTarget decode(RequestParameters rp) {
> > Matcher matcher = mRequestPattern.matcher(rp.getPath ());
> > matcher.find();
> > String strID = matcher.group(1);
> > int id = -1;
> > try {
> > id = Integer.parseInt(strID);
> > } catch (NumberFormatException nfe) {
> > throw new IllegalArgumentException(strID + " is not a
> valid ID");
> > }
> >
> > IFooService svc = getBean(IFooService.class);
> > return new PageRequestTarget(new FooPage( svc.findByID
(id)));
> > }
> >
> >
> > Jeremy Thomerson
> >
> >
> >
> > On 5/7/07, Rüdiger Schulz <[EMAIL PROTECTED] > wrote:
> > > Hello everybody,
> > >
> > > in my application, I'm currently serving images with a special
> > > servlet. It accepts request paths like /app/images/42.gif. The
images
> > > themself are stored in a database. I like this approach, because the
> > > image URLs are static, and by that they can be cached by proxies and
> > > stored as bookmarks in browsers.
> > >
> > > I integrate this servlet with a custom WebComponent in my Wicket
> > > pages, where I compile the correct path.
> > >
> > > This all works very well, but now I'd like to convert this servlet
> > > into a Wicket component. It needs the same behavior (static urls),
but
> > > I'd like to restrict access according to data in the current Wicket
> > > session.
> > >
> > > I think I know how to do this with a DynamicWebResource and all, but
I
> > > have no idea how to do the URL binding. I don't know where to start
at
> > > all. For pages there is the IndexedParamUrlCodingStrategy, but that
> > > won't do for images I guess...
> > >
> > > So, any help would be very welcome. Oh, and I'm still using Wicket
> > > 1.2.6; an update to 1.3 is planned, but cannot be done right now. If
a
> > > solution would be much more easier in 1.3 than in 1.2, however, we
> > > might do it earlier or at least wait with the conversion of the
> > > Servlet until then.
> > >
> > >
> > > --
> > > greetings from Berlin,
> > >
> > > Rüdiger Schulz
> > >
> > > www.2rue.de
> > >
> > >
>
-
> > > 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
> 

Re: [Wicket-user] ModalWindow relative positioning

2007-05-08 Thread Scott Swank
Thank you Eelco, we have not.  It's for our next release and we're
deep in the trenches of getting out the current release.

Any thoughts are welcome, we're more than glad to dig into the details.

Cheers,
Scott

On 5/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Did you find a solution for this yet Scott?
>
> Eelco
>
> On 5/4/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> > Sorry to just blatently bump this, but it there any way to pop up a
> > modal window in a relative position?  Alternately, is there any good
> > way to get the absolute position of the link that opens a given modal
> > window?
> >
> > Thank you,
> > Scott
> >
> >
> > On 4/26/07, Reuben Burda <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hello,
> > >
> > > We've run into a small issue tare trying to position a ModalWindow on the
> > > screen relative to the link that spawned it. Does anyone know of a 
> > > solution
> > > for this?
> > >
> > > Thanks in advance
> > >
> > > Reuben
> > >
> > > -
> > > 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
> > >
> > >
> >
> >
> > --
> > Scott Swank
> > reformed mathematician
> >
> > -
> > 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
>


-- 
Scott Swank
reformed mathematician

-
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] expression to get property

2007-05-08 Thread Igor Vaynberg

create your own model that does that.

-igor


On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:



yes, any hint/guide to the problems are very much appreciated



Nino Saturnino Martinez Vazquez Wael wrote:
>
> I think you need to use reflection for that part or/and implementing
> your own abstract model. This approach has spared me some trouble
> earlier on. If you want to I could dig up some examples...
>
> regards Nino
>
> ywtsang wrote:
>> it is easy to reference the property of a model by using "java bean"
>> notation
>> as:
>>
>> add(new Label("name", new PropertyModel(myModel, "name")));
>>
>> (get the value of name property from the myModel)
>>
>> what about if I want to insert some parameters in my property getter
>> method?
>> e.g. I have a getter method:
>> String getName(int)
>>
>> is it possible to "use" this getter method by passing an integer value
in
>> PropertyModel?
>>
>> -Wing
>>
>
>
-
> 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/expression-to-get-property-tf3707591.html#a10371215
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] Send files with Wicket

2007-05-08 Thread Johan Compagner

you can't hold on to it like that
its a tmp resource that should be cleaned up after the request
so you have to make a copy somehow.

johan


On 5/8/07, galbu <[EMAIL PROTECTED]> wrote:



Hi Johan thanks for the example it's what I need, but I have another
question...
I'm trying to use FileUploadField Component and I have a problem: I want
to
select a file with my ChooseFile page and then send it to another page
called UpdateProdotti in which I have a confirm button to press for write
the file on db.
But when I read the file selected in the ChooseFile page I lost the
information on the location path  so, when the  UpdateProdotti (File
uploadFile) is invoked, I can't find the file (no path is present).
I send the source code of ChooseFile, UpdateProdotti pages to be more
clear...if someone could show me where I'm wrong...
Thanks in advance Galbu

public class ChooseFile extends  ConsumiTemplateMenuPage {

public ChooseFile() {
super();
verifyAccess();

final FeedbackPanel feedback = new
FeedbackPanel("feedback");
final FileUploadForm form = new
FileUploadForm("chooseFileForm");

add(feedback);
add(form);

}

public String getPageTitle() {
return "Scelta File da Salvare";
}


private class FileUploadForm extends Form {

private File uploadFile;

private FileUploadField fileUploadField;

public FileUploadForm(String name) {
super(name);

// set this form to multipart mode (allways needed
for uploads!)
setMultiPart(true);

// Add one file input field
add(fileUploadField = new
FileUploadField("fileInput"));

// Set maximum size to 100K for demo purposes
//setMaxSize(Bytes.kilobytes(100));
}

public void onSubmit() {
final FileUpload upload =
fileUploadField.getFileUpload();
if (upload != null) {

uploadFile = new File(
upload.getClientFileName());
setResponsePage(new
UpdateProdotti(uploadFile));

}
}

}

}


public class UpdateProdotti extends  ConsumiTemplateMenuPage {

public UpdateProdotti(File src) {
super();
verifyAccess();
final File uploadFile = src;
final Form form = new Form("updateProdottiForm");
final FeedbackPanel feedback = new
FeedbackPanel("feedback");
add(feedback);
add(form);

form.add(new Button("annulla") {
public void onSubmit() {
setResponsePage(new ChooseFile());
}
});

form.add(new Button("updateProdotti") {
public void onSubmit() {
AppService appService =
((ConsumiApplication)
Application.get()).getAppService();
ConsumiSession session =
(ConsumiSession)getSession();

ExcelLoader.setConsumiSession(session);
ExcelLoader.setAppService(appService);
String esito;

try {
String tipo =
"ANAGRAFICA_PRODOTTO";
int dimensioneTabIniziale =
appService.countRecords(tipo,
session.getUser());

ExcelLoader.loadAnagraficaProdotto
(uploadFile);

/*
 * va impostata la logica di
gestione dell'errore nel caricmento dei
dati e,
 * quindi, anche un controllo
sulla stringa con cui valorizzare
l'esito.
 */
esito = "caricamento effettuato";

int dimensioneTabFin =
appService.countRecords(tipo,
session.getUser());

int numDatiCaricati =
dimensioneTabFin-dimensioneTabIniziale;

setResponsePage(new
ReportUpdateProdotti(esito,numDatiCaricati,dimensioneTabFin));

}

catch (HibernateException e) {
e.printStackTrace();
setResponsePage(new
HomeLoggedPage());
}

catch (IOException e) {
e.printStackTrace();
   

Re: [Wicket-user] Send files with Wicket

2007-05-08 Thread galbu

Hi Johan thanks for the example it's what I need, but I have another
question...
I'm trying to use FileUploadField Component and I have a problem: I want to
select a file with my ChooseFile page and then send it to another page
called UpdateProdotti in which I have a confirm button to press for write
the file on db.
But when I read the file selected in the ChooseFile page I lost the
information on the location path  so, when the  UpdateProdotti (File
uploadFile) is invoked, I can't find the file (no path is present).
I send the source code of ChooseFile, UpdateProdotti pages to be more
clear...if someone could show me where I'm wrong...
Thanks in advance Galbu

public class ChooseFile extends  ConsumiTemplateMenuPage {

public ChooseFile() {
super();
verifyAccess();

final FeedbackPanel feedback = new FeedbackPanel("feedback");
final FileUploadForm form = new 
FileUploadForm("chooseFileForm");

add(feedback);
add(form);

}

public String getPageTitle() {
return "Scelta File da Salvare";
}


private class FileUploadForm extends Form {

private File uploadFile;

private FileUploadField fileUploadField;

public FileUploadForm(String name) {
super(name);

// set this form to multipart mode (allways needed for 
uploads!)
setMultiPart(true);

// Add one file input field
add(fileUploadField = new FileUploadField("fileInput"));

// Set maximum size to 100K for demo purposes
//setMaxSize(Bytes.kilobytes(100));
}

public void onSubmit() {
final FileUpload upload = 
fileUploadField.getFileUpload();
if (upload != null) {

uploadFile = new 
File(upload.getClientFileName());
setResponsePage(new UpdateProdotti(uploadFile));

}
}

}

}


public class UpdateProdotti extends  ConsumiTemplateMenuPage {

public UpdateProdotti(File src) {
super();
verifyAccess();
final File uploadFile = src;
final Form form = new Form("updateProdottiForm");
final FeedbackPanel feedback = new FeedbackPanel("feedback");
add(feedback);
add(form);

form.add(new Button("annulla") {
public void onSubmit() {
setResponsePage(new ChooseFile());
}
});

form.add(new Button("updateProdotti") {
public void onSubmit() {
AppService appService = ((ConsumiApplication)
Application.get()).getAppService();
ConsumiSession session = 
(ConsumiSession)getSession();

ExcelLoader.setConsumiSession(session); 
ExcelLoader.setAppService(appService);
String esito;

try {
String tipo = "ANAGRAFICA_PRODOTTO";
int dimensioneTabIniziale = 
appService.countRecords(tipo,
session.getUser());


ExcelLoader.loadAnagraficaProdotto(uploadFile);

/*
 * va impostata la logica di gestione 
dell'errore nel caricmento dei
dati e,
 * quindi, anche un controllo sulla 
stringa con cui valorizzare
l'esito.
 */
esito = "caricamento effettuato";

int dimensioneTabFin = 
appService.countRecords(tipo,
session.getUser());

int numDatiCaricati = 
dimensioneTabFin-dimensioneTabIniziale;

setResponsePage(new
ReportUpdateProdotti(esito,numDatiCaricati,dimensioneTabFin));

}

 

Re: [Wicket-user] Best place to add components to a page?

2007-05-08 Thread Jeremy Thomerson

Just to verify - I have a lot of IRequestTargetUrlCodingStrategy
implementations so that all of my URLs are very clean and search engine
friendly.  In the decode method, I typically create a PageRequestTarget,
with a new Page being passed to the constructor.

This is an okay place to be creating a Page instance, correct?  As it will
only be called once the strategy has confirmed that it matches, and the page
created will be the one used to be rendered?

Just wanted to make sure that I wasn't creating pages unnecessarily.

Thanks!
Jeremy Thomerson

On 5/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


you should never have to create page instances that you are not going to
display. in case of pagelink - that constructor (String,Page) always gets
the newbies to do the wrong thing, just dont use it. best to create pageslazily 
in link's onclick.

-igor


On 5/6/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote:

> All the examples seem to show components (Labels, custom components,
> ListViews, Tables, etc) added to the page in the constructor.  Is this
> really the best place to add the components to the page?  Or should you just
> be setting up the model for the page in the constructor, and at a
> later-pre-render time you construct the actual components that go in the
> page?
>
> My concern is that there are times that a page might be constructed but
> not rendered.  I'm not 100% sure this is the case, but it could easily be a
> mistake by ones new to the framework that might be avoided by having a
> separate place for component initialization.  For instance, you might
> construct a page for a PageLink, and you pass to the page constructor a
> category.  Then, to initialize a ListView of widgets that appear under that
> category, the constructor loads stuff from the database.  I suppose that the
> constructor shouldn't load things, but rather be using a loadable model, but
> newcomers might not know this.  So, on a page, you construct the pages to
> use in pagelinks, and you're doing a lot of unnecessary object construction,
> and perhaps loading of database objects.  Or, you have to use
> BookmarkablePageLinks and PageParameters for everything.
>
> Thoughts?
>
> 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
>
>

-
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] wicket/GMAP 1.2.6 trouble with ajax

2007-05-08 Thread Iulian Costan

take a look in gmap examples as well to see how it works and what needs to
be added to ajax target.

/iulian

On 5/8/07, Iulian Costan <[EMAIL PROTECTED]> wrote:


fixed in 1.2 branch, please do an update and you should be able to
add/remove gmarkers via ajax calls. next days i'll be on short vacation but
once i am back in i'll port it to 1.3 as well.

/iulian

On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:

>  Well it works better. No exception now, the browser receives the new
> ajax response but the gmappanel does not render or is non visible?
>
> After a closer look this part of the ajax response seems strange:
>
> map.addOverlay(createMarker11121872332765());
> map.addOverlay(createMarker11121873332765());
> map.addOverlay(createMarker11121873332765());
> map.addOverlay(createMarker11121873332765());
> map.addOverlay(createMarker11121873332765());
> map.addOverlay(createMarker11121873332765());
>
> They are all referring to the same method, looks like the idea are to
> have separate functions for each marker? And it does not somehow manage to
> pickup or create the new methods but instead it only adds the old one? Found
> out what caused this, I added different gmarkers but their location was
> almost the same(,0001) difference. We might want to look into this and
> generate a more sensible id. But the component still does not render...
>
> Do you want the quickstart project to take a closer look at?
>
>
> And yes I am working on 1.2.6, but I could switch to 1.3 beta if
> required.
>
> Iulian Costan wrote:
>
> in populateMAP method you create new GMapPanel instance that gets added
> to ajax target. there is no need to create new panel everytime, try to keep
> only one instance of GMapPanel that will be re-rendered using ajax. more in
> ajax handler method just add new GMarker to existing list like this:
>
>
>1. @Override
> 2. protected void onUpdate(AjaxRequestTarget 
target
>) {
> 3. gmap.getOverlays().add(new
>GMarker(...));
> 4. target. addComponent(gmapPanel
>);
>5. }
>
> let me know if it works or not, i can take a closer look, as far as i
> can see you work on 1.2.* code base right ?
>
> /iulian
>
> On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]
> > wrote:
> >
> > Hi
> >
> > Im getting this error when trying to add my updated gmap:
> > ERROR - RequestCycle   - markupId cannot be empty
> > java.lang.IllegalArgumentException: markupId cannot be empty
> > at
> > wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217)
> > at
> > wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)
> > at wicket.quickstart.Index$1.onUpdate(Index.java:75)
> > at
> > wicket.ajax.markup.html.form.AjaxCheckBox$1.onUpdate(AjaxCheckBox.java
> > :64)
> > at
> > wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(
> > AjaxFormComponentUpdatingBehavior.java:139)
> > at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java
> > :167)
> > at
> > wicket.ajax.AbstractDefaultAjaxBehavior.onRequest (
> > AbstractDefaultAjaxBehavior.java:236)
> >
> >
> >
> > Please note that I have set outputmarkupid to true.
> >
> > You can see the java code here:
> >
> > http://pastebin.ca/476843
> >
> >
> > but basically its this code it complains about:
> > protected void onUpdate(AjaxRequestTarget target) {
> > GMapPanel populatedMap = populateMap();
> > if (populatedMap != null) {
> > target.addComponent(populatedMap);
> > }
> >
> > and possibly:
> > private final GMapPanel populateMap() {
> > if (filterModel.isDisplayHotel()) {
> > // add gmarkers here
> > GPoint center = gmap.getCenter();
> > int zoomLevel = gmap.getZoomLevel();
> > gmap = new GMap(center, zoomLevel);
> >
> > GMarker hotel = new GMarker(new GPoint(-112.1872f ,
> > 33.2765f),
> > new Label("gmarkerInfo", "Hotel"));
> > gmap.addOverlay(hotel);
> >
> > GMapPanel gMapPanel = new GMapPanel("gmap", gmap, 800,
> > 600,
> > quickStartGmap_8080_Key);
> > gMapPanel.setOutputMarkupId(true);
> > return gMapPanel;
> >
> > }
> > return null;
> > }
> >
> >
> >
> > regards Nino
> >
> > -
> >
> > 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/l

Re: [Wicket-user] wicket/GMAP 1.2.6 trouble with ajax

2007-05-08 Thread Iulian Costan

fixed in 1.2 branch, please do an update and you should be able to
add/remove gmarkers via ajax calls. next days i'll be on short vacation but
once i am back in i'll port it to 1.3 as well.

/iulian

On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:


 Well it works better. No exception now, the browser receives the new ajax
response but the gmappanel does not render or is non visible?

After a closer look this part of the ajax response seems strange:

map.addOverlay(createMarker11121872332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());

They are all referring to the same method, looks like the idea are to have
separate functions for each marker? And it does not somehow manage to pickup
or create the new methods but instead it only adds the old one? Found out
what caused this, I added different gmarkers but their location was almost
the same(,0001) difference. We might want to look into this and generate a
more sensible id. But the component still does not render...

Do you want the quickstart project to take a closer look at?


And yes I am working on 1.2.6, but I could switch to 1.3 beta if required.

Iulian Costan wrote:

in populateMAP method you create new GMapPanel instance that gets added to
ajax target. there is no need to create new panel everytime, try to keep
only one instance of GMapPanel that will be re-rendered using ajax. more in
ajax handler method just add new GMarker to existing list like this:


   1. @Override
2. protected void onUpdate(AjaxRequestTarget target
   ) {
3. gmap.getOverlays().add(new
   GMarker(...));
4. target. addComponent(gmapPanel);
   5. }

let me know if it works or not, i can take a closer look, as far as i can
see you work on 1.2.* code base right ?

/iulian

On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED] >
wrote:
>
> Hi
>
> Im getting this error when trying to add my updated gmap:
> ERROR - RequestCycle   - markupId cannot be empty
> java.lang.IllegalArgumentException: markupId cannot be empty
> at
> wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217)
> at
> wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)
> at wicket.quickstart.Index$1.onUpdate(Index.java:75)
> at
> wicket.ajax.markup.html.form.AjaxCheckBox$1.onUpdate(AjaxCheckBox.java
> :64)
> at
> wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(
> AjaxFormComponentUpdatingBehavior.java:139)
> at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:167)
> at
> wicket.ajax.AbstractDefaultAjaxBehavior.onRequest (
> AbstractDefaultAjaxBehavior.java:236)
>
>
>
> Please note that I have set outputmarkupid to true.
>
> You can see the java code here:
>
> http://pastebin.ca/476843
>
>
> but basically its this code it complains about:
> protected void onUpdate(AjaxRequestTarget target) {
> GMapPanel populatedMap = populateMap();
> if (populatedMap != null) {
> target.addComponent(populatedMap);
> }
>
> and possibly:
> private final GMapPanel populateMap() {
> if (filterModel.isDisplayHotel()) {
> // add gmarkers here
> GPoint center = gmap.getCenter();
> int zoomLevel = gmap.getZoomLevel();
> gmap = new GMap(center, zoomLevel);
>
> GMarker hotel = new GMarker(new GPoint(-112.1872f , 33.2765f
> ),
> new Label("gmarkerInfo", "Hotel"));
> gmap.addOverlay(hotel);
>
> GMapPanel gMapPanel = new GMapPanel("gmap", gmap, 800, 600,
> quickStartGmap_8080_Key);
> gMapPanel.setOutputMarkupId(true);
> return gMapPanel;
>
> }
> return null;
> }
>
>
>
> regards Nino
>
> -
>
> 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/

--


Re: [Wicket-user] Accordion pane

2007-05-08 Thread Gabor Szokoli
On 5/8/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> Maybe:
>
> https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-dojo
>

Indeed, thank you.
Sorry about the noise.

To add some value, let me note I am using wicket 1.2.6, so I had to
check out /branches/WICKET_1_2/ instead of trunk, then edit the core
wicket dependency in the pom.xml to 1.2.6 from 1.2-SNAPSHOT


Szocske

-
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-stuff GMAP

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
ok, ill take a crack at it tomorrow.


Iulian Costan wrote:
>
>
> On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* 
> <[EMAIL PROTECTED] > wrote:
>
> Ok:)
>
> I think we need to have a GMarker constructor that takes a GIcon
> also, I
> can see that you have already prepared the GMarker class for this.
>
> We could also create some off the shelf GIcons and package them, that
> might come in handy? I could do this, as the project Im on now needs
> some basic ones. So when I go over them I could just add em.
>
>
> need to add JS code as well to support custom GIcons
>
> About the the List containing the overlays. Would it work if I cleared
> the list, added some new overlays and re rendered? 
>
>
> well, i've  never tried, not sure what to say, but the generated JS 
> code is part of the outer gmap panel, the entry point is initGMAP() 
> method that get called on page's onLoad event. as well in 1.3 on ajax 
> event we can call that method to re-init entire map, maybe a cleanup 
> map is needed before. please try and see if it works.
>
> How do we proceed, I guess we should be working on the 1.2 branch
> as the
> 1.3 are still beta?
>
>
> as eelco said 1.3 for sure, maybe both.
>
> regards Nino
>
>
> Iulian Costan wrote:
> >
> > On 5/8/07, *Nino Saturnino Martinez Vazquez Wael*
> > <[EMAIL PROTECTED] 
>  >> wrote:
> >
> > I think its a pretty useful component, also very cool for wicket
> > to have
> > these kinds of components it makes it more complete. I could
> help
> > if you
> > want to, I saw some places where I could get an idea on
> howto add the
> > slider, or we could "just" get the google one. But I do
> think I would
> > need your help in order to continue in the same mindstream.
> >
> >
> > sure, we can work together and see what needs to be done.
> >
> > I think you could use templating some of the places where
> you now use
> > string buffer, but im not sure.
> >
> >
> > yes, JS templating fits better here, rather than concatenating
> strings
> > again and again.
> >
> > As the component are now, could'nt I add gmap markers via ajax?
> >
> >
> > well, you can do it somehow, there is a list that contains all
> > overlays to be displayed, as long as you add new items to that list
> > and re-render the entire panel and it should work.
> >
> >
> > Are there any way to display a custom gIcon instead of the
> > standard one?
> >
> >
> > as far as i remember there is a GIcon class that is supposed to do
> > this but was never used till know. just the concept is there.
> >
> > regards Nino
> >
> >
> > /iulian
> >
> > Iulian Costan wrote:
> > > On 5/7/07, *Nino Saturnino Martinez Vazquez Wael*
> > > <[EMAIL PROTECTED] 
> >
> >     > wrote:
> > >
> > > Hi Iulian
> > >
> > > Are you still the sole contibutor behind this component?
> > >
> > >
> > > well, it seems so but i didnt really maintain this project for
> > quite a
> > > while.
> > >
> > > Are you planing any new features? Would be nice to
> have a slider
> > > on the
> > > map aswell.
> > >
> > >
> > > i dont know what to say about new features, there were one
> more
> > person
> > > who asked for dynamically added gmap markers. the
> component itself
> > > needs big refactoring to be able to add new google map
> features.
> > >
> > >
> > > Im currently getting familiar with the component.
> > >
> > >
> > > regards Nino
> > >
> > >
> > > let's see what can be done.
> > >
> > > /iulian
> > >
> > >
> > > Iulian Costan wrote:
> > > > where did you checked out gmap  sources from? trunk?
> > > > i dont know if any wicket 1.3 artifacts are deployed
> > somewhere, but
> > > > you can checkout wicket source code as well and
> build it for
> > > yourself
> > > > as a quick workaround.
> > > >
> > > > or you can get gmap code from 1.2 branch, that
> depends on
> > 1.2.*
> > > wicket
> > > > that is available on central repository for sure.
> > > >
> > > > /iulian
> > > >
> > > > On 5/3/07, *

Re: [Wicket-user] Accordion pane

2007-05-08 Thread Johan Compagner

Maybe:

https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-dojo

https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-dojo-examples

but JBQ know better i guess :)

johan


On 5/8/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote:


Hi there!

Not a core wicket question, but I have not found any better forum for it:
I'd like to use an accordion pane for navigation, something like this:

http://www.demay-fr.net:8080/Wicket-start/app?wicket:bookmarkablePage=:wicket.contrib.dojo.examples.AccordionContainerSample

Except I can't find a maven repository for this wicket-contrib-dojo
effort.

Any advice?


Gabor Szokoli

-
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] Wicket-stuff GMAP

2007-05-08 Thread Iulian Costan

On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:


Ok:)

I think we need to have a GMarker constructor that takes a GIcon also, I
can see that you have already prepared the GMarker class for this.

We could also create some off the shelf GIcons and package them, that
might come in handy? I could do this, as the project Im on now needs
some basic ones. So when I go over them I could just add em.



need to add JS code as well to support custom GIcons

About the the List containing the overlays. Would it work if I cleared

the list, added some new overlays and re rendered?



well, i've  never tried, not sure what to say, but the generated JS code is
part of the outer gmap panel, the entry point is initGMAP() method that get
called on page's onLoad event. as well in 1.3 on ajax event we can call that
method to re-init entire map, maybe a cleanup map is needed before. please
try and see if it works.

How do we proceed, I guess we should be working on the 1.2 branch as the

1.3 are still beta?



as eelco said 1.3 for sure, maybe both.

regards Nino



Iulian Costan wrote:
>
> On 5/8/07, *Nino Saturnino Martinez Vazquez Wael*
> <[EMAIL PROTECTED] > wrote:
>
> I think its a pretty useful component, also very cool for wicket
> to have
> these kinds of components it makes it more complete. I could help
> if you
> want to, I saw some places where I could get an idea on howto add
the
> slider, or we could "just" get the google one. But I do think I
would
> need your help in order to continue in the same mindstream.
>
>
> sure, we can work together and see what needs to be done.
>
> I think you could use templating some of the places where you now
use
> string buffer, but im not sure.
>
>
> yes, JS templating fits better here, rather than concatenating strings
> again and again.
>
> As the component are now, could'nt I add gmap markers via ajax?
>
>
> well, you can do it somehow, there is a list that contains all
> overlays to be displayed, as long as you add new items to that list
> and re-render the entire panel and it should work.
>
>
> Are there any way to display a custom gIcon instead of the
> standard one?
>
>
> as far as i remember there is a GIcon class that is supposed to do
> this but was never used till know. just the concept is there.
>
> regards Nino
>
>
> /iulian
>
> Iulian Costan wrote:
> > On 5/7/07, *Nino Saturnino Martinez Vazquez Wael*
> > <[EMAIL PROTECTED] 
> >>
> wrote:
> >
> > Hi Iulian
> >
> > Are you still the sole contibutor behind this component?
> >
> >
> > well, it seems so but i didnt really maintain this project for
> quite a
> > while.
> >
> > Are you planing any new features? Would be nice to have a
slider
> > on the
> > map aswell.
> >
> >
> > i dont know what to say about new features, there were one more
> person
> > who asked for dynamically added gmap markers. the component itself
> > needs big refactoring to be able to add new google map features.
> >
> >
> > Im currently getting familiar with the component.
> >
> >
> > regards Nino
> >
> >
> > let's see what can be done.
> >
> > /iulian
> >
> >
> > Iulian Costan wrote:
> > > where did you checked out gmap  sources from? trunk?
> > > i dont know if any wicket 1.3 artifacts are deployed
> somewhere, but
> > > you can checkout wicket source code as well and build it for
> > yourself
> > > as a quick workaround.
> > >
> > > or you can get gmap code from 1.2 branch, that depends on
> 1.2.*
> > wicket
> > > that is available on central repository for sure.
> > >
> > > /iulian
> > >
> > > On 5/3/07, *Nino Saturnino Martinez Vazquez Wael *
> > > < [EMAIL PROTECTED] 
> mailto:[EMAIL PROTECTED]>>
> >     > wrote:
> > >
> > > Obvoiusly I've tried the 1.3 beta1 release but its not
> in the
> > > maven repo
> > > yet.
> > >
> > >
> > >
> > > Nino Saturnino Martinez Vazquez Wael wrote:
> > > > Hi
> > > >
> > > > Im trying to get the GMAP contribution to work, i've
> > checked it
> > > out from
> > > > svn. But it has a dependency to wicket 1.3 snapshot,
> which
> > does
> > > not exist.
> > > >
> > > > ...dependency:
> > > > 
> > > >  org.apache.wicket
> > 

Re: [Wicket-user] Wicket-stuff GMAP

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
ok. I'll see if I manage to make maven work..

Eelco Hillenius wrote:
>> How do we proceed, I guess we should be working on the 1.2 branch as the
>> 1.3 are still beta?
>> 
>
> If you can, please work on the 1.3 version (trunk). Much improved, and
> it will be the version-to-use pretty soon.
>
> 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


Re: [Wicket-user] wicket/GMAP 1.2.6 trouble with ajax

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
Well it works better. No exception now, the browser receives the new 
ajax response but the gmappanel does not render or is non visible?


After a closer look this part of the ajax response seems strange:

map.addOverlay(createMarker11121872332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());
map.addOverlay(createMarker11121873332765());

They are all referring to the same method, looks like the idea are to 
have separate functions for each marker? And it does not somehow manage 
to pickup or create the new methods but instead it only adds the old 
one? Found out what caused this, I added different gmarkers but their 
location was almost the same(,0001) difference. We might want to look 
into this and generate a more sensible id. But the component still does 
not render...


Do you want the quickstart project to take a closer look at?


And yes I am working on 1.2.6, but I could switch to 1.3 beta if required.

Iulian Costan wrote:
in populateMAP method you create new GMapPanel instance that gets 
added to ajax target. there is no need to create new panel everytime, 
try to keep only one instance of GMapPanel that will be re-rendered 
using ajax. more in ajax handler method just add new GMarker to 
existing list like this:


  1.
  @Override
  2.
  protected void onUpdate(
  AjaxRequestTarget target) {
  3.
  gmap.getOverlays().add(new
  GMarker(...));
   4. target. addComponent(gmapPanel);
  5.
  }

let me know if it works or not, i can take a closer look, as far as i 
can see you work on 1.2.* code base right ?


/iulian

On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* 
<[EMAIL PROTECTED] > wrote:


Hi

Im getting this error when trying to add my updated gmap:
ERROR - RequestCycle   - markupId cannot be empty
java.lang.IllegalArgumentException: markupId cannot be empty
at
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217)
at
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)
at wicket.quickstart.Index$1.onUpdate(Index.java:75)
at
wicket.ajax.markup.html.form.AjaxCheckBox$1.onUpdate(AjaxCheckBox.java:64)
at

wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:139)
at
wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:167)
at
wicket.ajax.AbstractDefaultAjaxBehavior.onRequest
(AbstractDefaultAjaxBehavior.java:236)



Please note that I have set outputmarkupid to true.

You can see the java code here:

http://pastebin.ca/476843


but basically its this code it complains about:
protected void onUpdate(AjaxRequestTarget target) {
GMapPanel populatedMap = populateMap();
if (populatedMap != null) {
target.addComponent(populatedMap);
}

and possibly:
private final GMapPanel populateMap() {
if (filterModel.isDisplayHotel()) {
// add gmarkers here
GPoint center = gmap.getCenter();
int zoomLevel = gmap.getZoomLevel();
gmap = new GMap(center, zoomLevel);

GMarker hotel = new GMarker(new GPoint(-112.1872f ,
33.2765f),
new Label("gmarkerInfo", "Hotel"));
gmap.addOverlay(hotel);

GMapPanel gMapPanel = new GMapPanel("gmap", gmap, 800,
600,
quickStartGmap_8080_Key);
gMapPanel.setOutputMarkupId(true);
return gMapPanel;

}
return null;
}



regards Nino

-

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/



Re: [Wicket-user] Wicket-stuff GMAP

2007-05-08 Thread Eelco Hillenius
> How do we proceed, I guess we should be working on the 1.2 branch as the
> 1.3 are still beta?

If you can, please work on the 1.3 version (trunk). Much improved, and
it will be the version-to-use pretty soon.

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-stuff GMAP

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
Ok:)

I think we need to have a GMarker constructor that takes a GIcon also, I 
can see that you have already prepared the GMarker class for this.

We could also create some off the shelf GIcons and package them, that 
might come in handy? I could do this, as the project Im on now needs 
some basic ones. So when I go over them I could just add em.

About the the List containing the overlays. Would it work if I cleared 
the list, added some new overlays and re rendered?

How do we proceed, I guess we should be working on the 1.2 branch as the 
1.3 are still beta?


regards Nino


Iulian Costan wrote:
>
> On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* 
> <[EMAIL PROTECTED] > wrote:
>
> I think its a pretty useful component, also very cool for wicket
> to have
> these kinds of components it makes it more complete. I could help
> if you
> want to, I saw some places where I could get an idea on howto add the
> slider, or we could "just" get the google one. But I do think I would
> need your help in order to continue in the same mindstream.
>
>
> sure, we can work together and see what needs to be done.
>
> I think you could use templating some of the places where you now use
> string buffer, but im not sure. 
>
>
> yes, JS templating fits better here, rather than concatenating strings 
> again and again.
>
> As the component are now, could'nt I add gmap markers via ajax?
>
>
> well, you can do it somehow, there is a list that contains all 
> overlays to be displayed, as long as you add new items to that list 
> and re-render the entire panel and it should work.
>
>
> Are there any way to display a custom gIcon instead of the
> standard one?
>
>
> as far as i remember there is a GIcon class that is supposed to do 
> this but was never used till know. just the concept is there.
>
> regards Nino
>
>
> /iulian
>
> Iulian Costan wrote:
> > On 5/7/07, *Nino Saturnino Martinez Vazquez Wael*
> > <[EMAIL PROTECTED] 
> >>
> wrote:
> >
> > Hi Iulian
> >
> > Are you still the sole contibutor behind this component?
> >
> >
> > well, it seems so but i didnt really maintain this project for
> quite a
> > while.
> >
> > Are you planing any new features? Would be nice to have a slider
> > on the
> > map aswell.
> >
> >
> > i dont know what to say about new features, there were one more
> person
> > who asked for dynamically added gmap markers. the component itself
> > needs big refactoring to be able to add new google map features.
> >
> >
> > Im currently getting familiar with the component.
> >
> >
> > regards Nino
> >
> >
> > let's see what can be done.
> >
> > /iulian
> >
> >
> > Iulian Costan wrote:
> > > where did you checked out gmap  sources from? trunk?
> > > i dont know if any wicket 1.3 artifacts are deployed
> somewhere, but
> > > you can checkout wicket source code as well and build it for
> > yourself
> > > as a quick workaround.
> > >
> > > or you can get gmap code from 1.2 branch, that depends on
> 1.2.*
> > wicket
> > > that is available on central repository for sure.
> > >
> > > /iulian
> > >
> > > On 5/3/07, *Nino Saturnino Martinez Vazquez Wael *
> > > < [EMAIL PROTECTED] 
> mailto:[EMAIL PROTECTED]>>
> >     > wrote:
> > >
> > > Obvoiusly I've tried the 1.3 beta1 release but its not
> in the
> > > maven repo
> > > yet.
> > >
> > >
> > >
> > > Nino Saturnino Martinez Vazquez Wael wrote:
> > > > Hi
> > > >
> > > > Im trying to get the GMAP contribution to work, i've
> > checked it
> > > out from
> > > > svn. But it has a dependency to wicket 1.3 snapshot,
> which
> > does
> > > not exist.
> > > >
> > > > ...dependency:
> > > > 
> > > >  org.apache.wicket
> > > > wicket
> > > > 1.3.0-incubating-SNAPSHOT
> > > > 
> > > > ...dependency
> > > >
> > > > Does anybody have a jar or a working source, how do I
> > solve this?
> > > >
> > > > regards Nino
> > > >
> > > >
> > >
> >
> -
>
> >
> > > > T

Re: [Wicket-user] mounting with "empty" path

2007-05-08 Thread Johan Compagner

can you make a jira issue/feature request for this ?

On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:



for /dynapara1/dynapara2/dynapara3/


for dynapara1/2/3... they are some parameters passed to our application

in fact, we have some "action" value in the URL that is not "dynamic" and
is
intended to point to different pages, e.g.

/dynapara1/dynapara2/dynapara3//action1
/dynapara1/dynapara2/dynapara3//action2
/dynapara1/dynapara2/dynapara3//action3
/dynapara1/dynapara2/dynapara3//action4

for our application, action1, action2, action3, action4 can be known
before
and are intended to be forwarded to their corresponding page

we know that, if we change the URL to
/action1/dynapara1/dynapara2/dynapara3/
/action2/dynapara1/dynapara2/dynapara3/
/action3/dynapara1/dynapara2/dynapara3/
/action4/dynapara1/dynapara2/dynapara3/

we can mount the action1, 2,3,4 successfully
however, we may not be able to change the requirement right now :(

in fact, we have "hacked" into wicket's code and change the logic, now we
can recognize the "mount point" from the last part of the URL rather than
the first part of the URL, and it seems can solve our problems

but we think this may not be appropriate as it is not supported my wicket
officially

so we are seeking if there is any other good work around for the problem
in
the (future) wicket

-Wing


Johan Compagner wrote:
>
> If we would have somehow have special url encoding for the home page
> then that encoding should say to the WicketFilter that it can parse that
> kind of stuff
> and that it is a wicket request.
>
> The problem is that parsing must be done quite right because else almost
> everything is a valid value??
> How do you know that /dynamicparamvalue/ is a value for you and not
> another
> mapping??
>
> johan
>
>
> On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>>
>>
>> Before we have this new url encoding strategy for Home page, we need to
>> take
>> another approach for the problem?
>>
>> for my problem:
>>
>> http://mydomain.com//> value
>> 2>/...
>>
>> It seems that wicket will return "404" when there is no mapping of the
>> page.
>> Could we assign a "default" page for the application if wicket can't
find
>> any page mapping? Is there any hint for the problem?
>>
>> Thanks for your help.
>>
>> -Wing
>>
>>
>> Johan Compagner wrote:
>> >
>> > currently the empty path is the homepage that you specify in the
>> > Application
>> > class.
>> > so thats why it is not legal, we can't mount the homepage currently.
>> >
>> > Maybe we should see if we can set the url coding strategy for the
>> homepage
>> > somehow
>> > instead of :
>> >
>> > getHomePage()
>> >
>> > getHomePageCodingStrategy()
>> >
>> > johan
>> >
>> >
>> >
>> > On 5/7/07, ywtsang <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> is it possible to "mount" with "empty" path?
>> >>
>> >> e.g.
>> >>
>> >> mount(new IndexedParamUrlCodingStrategy("/",  my class, null));
>> >>
>> >> wicket complains it is not legal
>> >>
>> >> for my problem
>> >> i want the URL to have something like:
>> >>
>> >> http://mydomain.com/value1/value2/value3/value4
>> >>
>> >> where I can "use" IndexdParamUrlCodingStrategy to get the value1, 2,
>> 3,
>> >> 4
>> >>
>> >> if it is not possible to mount with "empty" path, is there any other
>> >> solution to my problem?
>> >>
>> >> any pointer/hint for my problem is great, thanks for your help
>> >>
>> >> -Wing
>> >> --
>> >> View this message in context:
>> >>
>>
http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10352898
>> >> 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
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10368207
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-
>> This SF.net email is sponsored by DB2 Express
>> 

Re: [Wicket-user] wicket/GMAP 1.2.6 trouble with ajax

2007-05-08 Thread Iulian Costan

in populateMAP method you create new GMapPanel instance that gets added to
ajax target. there is no need to create new panel everytime, try to keep
only one instance of GMapPanel that will be re-rendered using ajax. more in
ajax handler method just add new GMarker to existing list like this:


  1. @Override
  2. protected void onUpdate(AjaxRequestTarget
  target) {
  3. gmap.getOverlays().add(new
  GMarker(...));
  4. target.addComponent(gmapPanel);
  5. }

let me know if it works or not, i can take a closer look, as far as i can
see you work on 1.2.* code base right ?

/iulian

On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:


Hi

Im getting this error when trying to add my updated gmap:
ERROR - RequestCycle   - markupId cannot be empty
java.lang.IllegalArgumentException: markupId cannot be empty
at
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217)
at
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)
at wicket.quickstart.Index$1.onUpdate(Index.java:75)
at
wicket.ajax.markup.html.form.AjaxCheckBox$1.onUpdate(AjaxCheckBox.java:64)
at
wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(
AjaxFormComponentUpdatingBehavior.java:139)
at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:167)
at
wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(
AbstractDefaultAjaxBehavior.java:236)



Please note that I have set outputmarkupid to true.

You can see the java code here:

http://pastebin.ca/476843


but basically its this code it complains about:
protected void onUpdate(AjaxRequestTarget target) {
GMapPanel populatedMap = populateMap();
if (populatedMap != null) {
target.addComponent(populatedMap);
}

and possibly:
private final GMapPanel populateMap() {
if (filterModel.isDisplayHotel()) {
// add gmarkers here
GPoint center = gmap.getCenter();
int zoomLevel = gmap.getZoomLevel();
gmap = new GMap(center, zoomLevel);

GMarker hotel = new GMarker(new GPoint(-112.1872f, 33.2765f),
new Label("gmarkerInfo", "Hotel"));
gmap.addOverlay(hotel);

GMapPanel gMapPanel = new GMapPanel("gmap", gmap, 800, 600,
quickStartGmap_8080_Key);
gMapPanel.setOutputMarkupId(true);
return gMapPanel;

}
return null;
}



regards Nino

-
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] Wicket-stuff GMAP

2007-05-08 Thread Iulian Costan

On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:


I think its a pretty useful component, also very cool for wicket to have
these kinds of components it makes it more complete. I could help if you
want to, I saw some places where I could get an idea on howto add the
slider, or we could "just" get the google one. But I do think I would
need your help in order to continue in the same mindstream.



sure, we can work together and see what needs to be done.

I think you could use templating some of the places where you now use

string buffer, but im not sure.



yes, JS templating fits better here, rather than concatenating strings again
and again.

As the component are now, could'nt I add gmap markers via ajax?


well, you can do it somehow, there is a list that contains all overlays to
be displayed, as long as you add new items to that list and re-render the
entire panel and it should work.


Are there any way to display a custom gIcon instead of the standard one?


as far as i remember there is a GIcon class that is supposed to do this but
was never used till know. just the concept is there.

regards Nino


/iulian

Iulian Costan wrote:

> On 5/7/07, *Nino Saturnino Martinez Vazquez Wael*
> <[EMAIL PROTECTED] > wrote:
>
> Hi Iulian
>
> Are you still the sole contibutor behind this component?
>
>
> well, it seems so but i didnt really maintain this project for quite a
> while.
>
> Are you planing any new features? Would be nice to have a slider
> on the
> map aswell.
>
>
> i dont know what to say about new features, there were one more person
> who asked for dynamically added gmap markers. the component itself
> needs big refactoring to be able to add new google map features.
>
>
> Im currently getting familiar with the component.
>
>
> regards Nino
>
>
> let's see what can be done.
>
> /iulian
>
>
> Iulian Costan wrote:
> > where did you checked out gmap  sources from? trunk?
> > i dont know if any wicket 1.3 artifacts are deployed somewhere,
but
> > you can checkout wicket source code as well and build it for
> yourself
> > as a quick workaround.
> >
> > or you can get gmap code from 1.2 branch, that depends on 1.2.*
> wicket
> > that is available on central repository for sure.
> >
> > /iulian
> >
> > On 5/3/07, *Nino Saturnino Martinez Vazquez Wael *
> > < [EMAIL PROTECTED] 
> >>
> wrote:
> >
> > Obvoiusly I've tried the 1.3 beta1 release but its not in the
> > maven repo
> > yet.
> >
> >
> >
> > Nino Saturnino Martinez Vazquez Wael wrote:
> > > Hi
> > >
> > > Im trying to get the GMAP contribution to work, i've
> checked it
> > out from
> > > svn. But it has a dependency to wicket 1.3 snapshot, which
> does
> > not exist.
> > >
> > > ...dependency:
> > > 
> > >  org.apache.wicket
> > > wicket
> > > 1.3.0-incubating-SNAPSHOT
> > > 
> > > ...dependency
> > >
> > > Does anybody have a jar or a working source, how do I
> solve this?
> > >
> > > regards Nino
> > >
> > >
> >
>
-
>
> > > 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
> 
> >  

Re: [Wicket-user] wicket app under websphere problem

2007-05-08 Thread shumbola
Hello, Johan.

Âû ïèñàëè Tuesday, May 08, 2007, 4:38:26 PM:

> If the war works on tomcat en jetty but not on webspere then it is really
> a classloading problem of websphere
> so i really have the idea that the wicket classes do come from a different 
> classloader
> then your application classes 
> (or somehow your application classes are not found completely)

> johan

Could it be that wicket filter loaded with one class loader and the
application classes with another one? Because wicket filter can not
instantiate my application class: MyApplication.class.
I'll play with websphere settings on this later today and will let you
know if something changes...


> On 5/8/07, shumbola <[EMAIL PROTECTED] > wrote:
> Hello, Johan.

> Âû ïèñàëè Tuesday, May 08, 2007, 4:13:21 PM:

 >> are you sure that the wicket lib is not in a shared lib
>> and your application code is in a web app lib dir?

>> Because then the wicket code can't find the applicaiton class of
>> yours because they are not loaded 
>>  through the same classloader.

>> johan

> Yes, I'm pretty sure that wicket lib is not in a shared lib and yes,
> my application code is in a web app lib dir.

> Here is some hierarchy on the server: 
> MYAPP.EAR:
>  img 
>  WEB-INF 
>  index.html
>  style.css

> WEB-INF:
>  classes 
>  lib 
>  web.xml

> classes:
>  com  //the whole application classes here 
>  log4j.properties
> lib:
>  wicket*.jar
>  wicket-extensions*.jar
>  and  other jar files

> If I deploy the same war file on Tomcat, webstone, jetty it works as
> expected, but seems with Web Sphere something goes wrong. 

>> On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:
>> Hello,

>> After migrating to 1.3 I decided to test if my application still works
>> under Web Sphere   6.0. And I'm getting this error:
>> SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be 
>> initialized]:
>> org.apache.wicket.WicketRuntimeException: Unable to create
>> application of class com.nemat.MyApplication 
>> at java.lang.Throwable.(Throwable.java:217)
>> at java.lang.Exception.(Exception.java:59)
>> at java.lang.RuntimeException.(RuntimeException.java:61)
>> at org.apache.wicket.WicketRuntimeException 
>> ..(WicketRuntimeException.java:50)
>> at
>> org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:83)
>> at
>> 
>> org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
>> (ContextParamWebApplicationFactory.java:50)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java :375)
>> at
>> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109)
>>  at
>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java
>>  :326)
>> at
>> com.ibm.ws.webcontainer.filter.WebAppFilterManager..getFilterInstanceWrapper(WebAppFilterManager.java:152)
>> at
>> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain
>> ( WebAppFilterManager.java:200)
>> at
>> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:764)
>> at
>> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest
>> (DefaultExtensionProcessor.java:581)
>> at
>> com.ibm.ws..webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
>> at
>> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java :221)
>> at com.ibm.ws.webcontainer.VirtualHost.handleRequest (VirtualHost.java:210)
>> at
>> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1931)
>> at
>> com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:84)
>> at
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination
>> (HttpInboundLink.java:472)
>> at
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation 
>> (HttpInboundLink.java:411)
>> at
>> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java
>> :101)
>> at
>> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete 
>> (WorkQueueManager.java:566)
>> at
>> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:593)
>> at com.ibm.ws..tcp.channel.impl.WorkQueueManager.workerRun 
>> (WorkQueueManager.java:952)
>> at
>> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)
>> Caused by: java.lang.ClassNotFoundException  : com.nemat.MyApplication
>> at java.lang.Throwable.(Throwable.java:217)
>> at java.lang.Exception.(Exception.java:59)
>> at
>> java.lang.ClassNotFoundException.(ClassNotFoundException.java
>> :65)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:220)
>> at
>> com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:110)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java :317)
>> at java.lang.ClassLoader.loadClass (ClassLoader.java:263)
>> at
>> org.apache.wicket.protoco

Re: [Wicket-user] wicket app under websphere problem

2007-05-08 Thread Johan Compagner

If the war works on tomcat en jetty but not on webspere then it is really
a classloading problem of websphere
so i really have the idea that the wicket classes do come from a different
classloader
then your application classes
(or somehow your application classes are not found completely)

johan


On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:


Hello, Johan.

Âû ïèñàëè Tuesday, May 08, 2007, 4:13:21 PM:

> are you sure that the wicket lib is not in a shared lib
> and your application code is in a web app lib dir?

> Because then the wicket code can't find the applicaiton class of
> yours because they are not loaded
>  through the same classloader.

> johan

Yes, I'm pretty sure that wicket lib is not in a shared lib and yes,
my application code is in a web app lib dir.

Here is some hierarchy on the server:
MYAPP.EAR:
img 
WEB-INF 
index.html
style.css

WEB-INF:
classes 
lib 
web.xml

classes:
com  //the whole application classes here
log4j.properties
lib:
wicket*.jar
wicket-extensions*.jar
and  other jar files

If I deploy the same war file on Tomcat, webstone, jetty it works as
expected, but seems with Web Sphere something goes wrong.

> On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:
> Hello,

> After migrating to 1.3 I decided to test if my application still works
> under Web Sphere  6.0. And I'm getting this error:
> SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be
initialized]:
> org.apache.wicket.WicketRuntimeException: Unable to create
> application of class com.nemat.MyApplication
> at java.lang.Throwable.(Throwable.java:217)
> at java.lang.Exception.(Exception.java:59)
> at java.lang.RuntimeException.(RuntimeException.java:61)
> at org.apache.wicket.WicketRuntimeException
> ..(WicketRuntimeException.java:50)
> at
>
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:83)
> at
>
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
> (ContextParamWebApplicationFactory.java:50)
> at
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:375)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(
FilterInstanceWrapper.java:109)
>  at
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(
WebAppFilterManager.java:326)
> at
>
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper
(WebAppFilterManager.java:152)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain
> (WebAppFilterManager.java:200)
> at
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(
DefaultExtensionProcessor.java:764)
> at
>
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest
> (DefaultExtensionProcessor.java:581)
> at
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
> at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)
> at com.ibm.ws.webcontainer.VirtualHost.handleRequest (VirtualHost.java
:210)
> at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java
:1931)
> at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
:84)
> at
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination
> (HttpInboundLink.java:472)
> at
>
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
HttpInboundLink.java:411)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
HttpICLReadCallback.java
> :101)
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(
WorkQueueManager.java:566)
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
WorkQueueManager.java:593)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun (
WorkQueueManager.java:952)
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(
WorkQueueManager.java:1039)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)
> Caused by: java.lang.ClassNotFoundException : com.nemat.MyApplication
> at java.lang.Throwable.(Throwable.java:217)
> at java.lang.Exception.(Exception.java:59)
> at
> java.lang.ClassNotFoundException.(ClassNotFoundException.java
> :65)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:220)
> at
> com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:110)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:263)
> at
>
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:69)
> ... 21 more

> With wicket 1.2 with wicket servlet it was working ok. Is this class
> loading problem due to wicket 1.3 filter?
> The only difference in my app now is that I've migrated it to the 1.3,
> and instead of commons-logging am using slf4j now.

> Do you have any idea idea how to solve this problem?

> Thanks!

> --
>  Regards
>  shumbola


>
-
>

Re: [Wicket-user] wicket app under websphere problem

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
ok, thats a dead end then, I once saw this problem because there was an 
exception in a servlet context listener. However this was pre 1.3

shumbola wrote:
> Hello Nino,
>
>   
>> Did you use any servlet context listeners?
>> 
> Do I use any servlet context listener? No, I'm not using any. And
> never did.
>
>   
>> shumbola wrote:
>> 
>>> Hello,
>>>
>>> After migrating to 1.3 I decided to test if my application still works
>>> under Web Sphere 6.0. And I'm getting this error:
>>> SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be 
>>> initialized]:
>>>   
> [skipped]
>
> --
>  Regards,
>  shumbola
>
>
> -
> 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] Send files with Wicket

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
yes I know, but the 2nd time I went to check it was dead and still are. 
I see that johan has mailed another link to use instead i guess:)

Frank Bille wrote:
> On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* 
> <[EMAIL PROTECTED] > wrote:
>
> I think 1.2 are down, so you cant really access it any more?
>
>
> It's very recent then. When I posted the link it worked.
>
> Frank
>  
>
>
> 
>
> -
> 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] wicket app under websphere problem

2007-05-08 Thread Johan Compagner

are you sure that the wicket lib is not in a shared lib
and your application code is in a web app lib dir?

Because then the wicket code can't find the applicaiton class of yours
because they are not loaded
through the same classloader.

johan


On 5/8/07, shumbola <[EMAIL PROTECTED]> wrote:


Hello,

After migrating to 1.3 I decided to test if my application still works
under Web Sphere 6.0. And I'm getting this error:
SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be
initialized]:
org.apache.wicket.WicketRuntimeException: Unable to create application of
class com.nemat.MyApplication
at java.lang.Throwable.(Throwable.java:217)
at java.lang.Exception.(Exception.java:59)
at java.lang.RuntimeException.(RuntimeException.java:61)
at org.apache.wicket.WicketRuntimeException.(
WicketRuntimeException.java:50)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:83)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:50)
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java
:375)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(
FilterInstanceWrapper.java:109)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(
WebAppFilterManager.java:326)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper
(WebAppFilterManager.java:152)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(
WebAppFilterManager.java:200)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(
DefaultExtensionProcessor.java:764)
at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(
DefaultExtensionProcessor.java:581)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java
:221)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java
:1931)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
:84)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(
HttpInboundLink.java:472)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
HttpICLReadCallback.java:101)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(
WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
WorkQueueManager.java:593)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(
WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(
WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)
Caused by: java.lang.ClassNotFoundException: com.nemat.MyApplication
at java.lang.Throwable.(Throwable.java:217)
at java.lang.Exception.(Exception.java:59)
at java.lang.ClassNotFoundException.(ClassNotFoundException.java:65)
at java.net.URLClassLoader.findClass(URLClassLoader.java:220)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:110)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at java.lang.ClassLoader.loadClass(ClassLoader.java:263)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication
(ContextParamWebApplicationFactory.java:69)
... 21 more

With wicket 1.2 with wicket servlet it was working ok. Is this class
loading problem due to wicket 1.3 filter?
The only difference in my app now is that I've migrated it to the 1.3,
and instead of commons-logging am using slf4j now.

Do you have any idea idea how to solve this problem?

Thanks!

--
Regards
shumbola


-
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] Accordion pane

2007-05-08 Thread Gabor Szokoli
Hi there!

Not a core wicket question, but I have not found any better forum for it:
I'd like to use an accordion pane for navigation, something like this:
http://www.demay-fr.net:8080/Wicket-start/app?wicket:bookmarkablePage=:wicket.contrib.dojo.examples.AccordionContainerSample

Except I can't find a maven repository for this wicket-contrib-dojo effort.

Any advice?


Gabor Szokoli

-
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] Send files with Wicket

2007-05-08 Thread Johan Compagner

http://wicketstuff.org/wicket12/


On 5/8/07, Frank Bille <[EMAIL PROTECTED]> wrote:


On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:
>
> I think 1.2 are down, so you cant really access it any more?


It's very recent then. When I posted the link it worked.

Frank




-
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] wicket/GMAP 1.2.6 trouble with ajax

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
Hi

Im getting this error when trying to add my updated gmap:
ERROR - RequestCycle   - markupId cannot be empty
java.lang.IllegalArgumentException: markupId cannot be empty
at 
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217)
at 
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)
at wicket.quickstart.Index$1.onUpdate(Index.java:75)
at 
wicket.ajax.markup.html.form.AjaxCheckBox$1.onUpdate(AjaxCheckBox.java:64)
at 
wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:139)
at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:167)
at 
wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:236)



 Please note that I have set outputmarkupid to true.

You can see the java code here:

http://pastebin.ca/476843


but basically its this code it complains about:
protected void onUpdate(AjaxRequestTarget target) {
GMapPanel populatedMap = populateMap();
if (populatedMap != null) {
target.addComponent(populatedMap);
}

and possibly:
private final GMapPanel populateMap() {
if (filterModel.isDisplayHotel()) {
// add gmarkers here
GPoint center = gmap.getCenter();
int zoomLevel = gmap.getZoomLevel();
gmap = new GMap(center, zoomLevel);
   
GMarker hotel = new GMarker(new GPoint(-112.1872f, 33.2765f),
new Label("gmarkerInfo", "Hotel"));
gmap.addOverlay(hotel);
   
GMapPanel gMapPanel = new GMapPanel("gmap", gmap, 800, 600,
quickStartGmap_8080_Key);
gMapPanel.setOutputMarkupId(true);
return gMapPanel;

}
return null;
}



regards Nino

-
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] Bookmarkable images

2007-05-08 Thread Rüdiger Schulz
Hello,

thanks a lot for both suggestions :)

A mounted DynamicImageResource looks interesting, but as I see it,
there would be a mount for every single image? Or is it somehow
possible to mount a shared resource in a way that a parameter can be
passed? I have a lot of images, and user can create new ones...

So going the way Jeremy provided, I would do the following:

1. Extend an AbstractRequestUrlCodingStrategy, where I will define how
the path will be interpreted (quite similar to how I do it in my
servlet a.t.m.).

2. decode() would return a ResourceStreamRequestTarget, which uses a
IResourceStream, which will deliver the image data.

3. Implement a WebComponent, where in onComponentTag() the src
attribute will be generated to match my strategy from above.

Are there any objections on this, or should it work? This thread
promises an example, but I couldn't find one in the wiki:
http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9791575
(Jean-Baptiste seems to work on some kind of picture gallery as well :)

I'm actually not sure what to do in
RequestUrlCodingStrategy.encode(IRequestTarget), and where it would be
called in this case.


.Rüdiger

2007/5/8, Igor Vaynberg <[EMAIL PROTECTED]>:
> you can also implement your own DynamicImageResource, and add it to shared
> resources
>
> webapp.getsharedresources().add("images", new MyDynamicImageResource());
>
> urls for shared resources are stable, and you can also mount them.
>
> -igor
>
>
>
>
> On 5/7/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote:
> > I've done a lot of custom URL encoding / decoding to keep very clean,
> search-engine friendly URLs in our application.  The place I would start
> would be to mount a custom IRequestTargetUrlCodingStrategy in your WebApp
> class.
> >
> > Here's some code that might help as a starting point:
> >
> > private final Pattern mRequestPattern =
> Pattern.compile(getMountPath() + "/([0-9]*)/.*");
> >
> > public boolean matches(RequestParameters rp) {
> > return mRequestPattern.matcher(rp.getPath()).matches();
> > }
> >
> > public IRequestTarget decode(RequestParameters rp) {
> > Matcher matcher = mRequestPattern.matcher(rp.getPath ());
> > matcher.find();
> > String strID = matcher.group(1);
> > int id = -1;
> > try {
> > id = Integer.parseInt(strID);
> > } catch (NumberFormatException nfe) {
> > throw new IllegalArgumentException(strID + " is not a
> valid ID");
> > }
> >
> > IFooService svc = getBean(IFooService.class);
> > return new PageRequestTarget(new FooPage( svc.findByID(id)));
> > }
> >
> >
> > Jeremy Thomerson
> >
> >
> >
> > On 5/7/07, Rüdiger Schulz <[EMAIL PROTECTED] > wrote:
> > > Hello everybody,
> > >
> > > in my application, I'm currently serving images with a special
> > > servlet. It accepts request paths like /app/images/42.gif. The images
> > > themself are stored in a database. I like this approach, because the
> > > image URLs are static, and by that they can be cached by proxies and
> > > stored as bookmarks in browsers.
> > >
> > > I integrate this servlet with a custom WebComponent in my Wicket
> > > pages, where I compile the correct path.
> > >
> > > This all works very well, but now I'd like to convert this servlet
> > > into a Wicket component. It needs the same behavior (static urls), but
> > > I'd like to restrict access according to data in the current Wicket
> > > session.
> > >
> > > I think I know how to do this with a DynamicWebResource and all, but I
> > > have no idea how to do the URL binding. I don't know where to start at
> > > all. For pages there is the IndexedParamUrlCodingStrategy, but that
> > > won't do for images I guess...
> > >
> > > So, any help would be very welcome. Oh, and I'm still using Wicket
> > > 1.2.6; an update to 1.3 is planned, but cannot be done right now. If a
> > > solution would be much more easier in 1.3 than in 1.2, however, we
> > > might do it earlier or at least wait with the conversion of the
> > > Servlet until then.
> > >
> > >
> > > --
> > > greetings from Berlin,
> > >
> > > Rüdiger Schulz
> > >
> > > www.2rue.de
> > >
> > >
> -
> > > 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
> > contro

Re: [Wicket-user] A problem with using SubmitLink

2007-05-08 Thread Eelco Hillenius
> 1> why doesnt current  onComponentTag call super.onComponetTag ?

It is being called in Wicket 1.3. It looks like a bug it isn't in
1.2.x, but the fix is probably not as straightforward as just adding
the super call. Please open up a JIRA request if you need this fixed.

> 2> How do i ensure that my javascript call gets invoked before the submit
> operation?

There currently does not seem to be a facility for that. At this
point, for 1.2, you're probably best of creating your own submitlink
class that does exactly what you want.

For 1.3, it does still seem to be impossible to do this, so I'm
wondering whether Johan has an idea on 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] wicket app under websphere problem

2007-05-08 Thread shumbola
Hello Nino,

> Did you use any servlet context listeners?
Do I use any servlet context listener? No, I'm not using any. And
never did.

> shumbola wrote:
>> Hello,
>>
>> After migrating to 1.3 I decided to test if my application still works
>> under Web Sphere 6.0. And I'm getting this error:
>> SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be 
>> initialized]:
[skipped]

--
 Regards,
 shumbola


-
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] Send files with Wicket

2007-05-08 Thread Frank Bille

On 5/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:


I think 1.2 are down, so you cant really access it any more?



It's very recent then. When I posted the link it worked.

Frank
-
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] 1.2 to 1.3 migration problems (javax.crypto.IllegalBlockSizeException

2007-05-08 Thread Herman Bovens


Jean-Baptiste Quenot-3 wrote:
> 
> * Herman Bovens:
>> 
>> ID > id="j_username" size="24" tabindex="1"/>
>> Paswoord > name="j_password" id="j_password" size="24" tabindex="2"/>
> 
> Obviously adding the "name" attribute on the password field is
> causing you problems.  Compare your template with
> SignInPanel.html, and avoid to change the  fields if
> possible.
> 

OK thanks, the IllegalBlockSizeException is gone now (strange: if I add the
"name" attribute again, it stays gone?), but the MarkupExceptions
remain.

-- 
View this message in context: 
http://www.nabble.com/1.2-to-1.3-migration-problems-%28javax.crypto.IllegalBlockSizeException-tf3694734.html#a10373217
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] Send files with Wicket

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
I think 1.2 are down, so you cant really access it any more?

Frank Bille wrote:
> Yes Galbu if you use Wicket 1.3 (beta) then look at
>
> http://wicketstuff.org/wicket13/upload/single 
> 
>
> If you use 1.2 it's
>
> http://www.wicket-library.com/wicket-examples/upload
>
> --
> Frank
>
>
> On 5/8/07, *Johan Compagner* <[EMAIL PROTECTED] 
> > wrote:
>
> wicket - library is not really updated anymore:
> look for the latest examples here:
>
> http://wicketstuff.org/wicket13/
>
>
> On 5/8/07, *Frank Bille* <[EMAIL PROTECTED]
> > wrote:
>
> Hi Galbu
>
> It sounds like you are looking for FileUploadField:
>
> 
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/upload/FileUploadField.html
> 
> 
>
> Take a look at the examples:
>
> http://www.wicket-library.com/wicket-examples/upload
> 
>
> --
> Frank
>
>
>
> On 5/7/07, *galbu* <[EMAIL PROTECTED]
> > wrote:
>
>
> Hello world,
> I have a problem...I need to update a table reading data
> from a file Excel:
> I'm able to read and save the file from a specific fold on
> my computer to
> the db, but now I want that the final user of the
> application could choose
> which file save browsing his data folders and selecting it
> in the same way
> we do with attachments for an e-mail.
> Does anyone give me some ideas on which is the correct way
> to do that or
> which are the Wicket's components I must use?
> Thanks in advance
>
> --
> View this message in context:
> 
> http://www.nabble.com/Send-files-with-Wicket-tf3704527.html#a10359759
> 
> 
> 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
>
>
>
> -
> 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

Re: [Wicket-user] wicket app under websphere problem

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
Did you use any servlet context listeners?

shumbola wrote:
> Hello,
>
> After migrating to 1.3 I decided to test if my application still works
> under Web Sphere 6.0. And I'm getting this error:
> SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be initialized]:
> org.apache.wicket.WicketRuntimeException: Unable to create application of 
> class com.nemat.MyApplication
> at java.lang.Throwable.(Throwable.java:217)
> at java.lang.Exception.(Exception.java:59)
> at java.lang.RuntimeException.(RuntimeException.java:61)
> at 
> org.apache.wicket.WicketRuntimeException.(WicketRuntimeException.java:50)
> at 
> org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:83)
> at 
> org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:50)
> at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:375)
> at 
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109)
> at 
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:326)
> at 
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:152)
> at 
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:200)
> at 
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:764)
> at 
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:581)
> at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
> at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)
> at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1931)
> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
> at 
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
> at 
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
> at 
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
> at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
> at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:593)
> at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
> at 
> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)
> Caused by: java.lang.ClassNotFoundException: com.nemat.MyApplication
> at java.lang.Throwable.(Throwable.java:217)
> at java.lang.Exception.(Exception.java:59)
> at java.lang.ClassNotFoundException.(ClassNotFoundException.java:65)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:220)
> at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:110)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:263)
> at 
> org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:69)
> ... 21 more
>
> With wicket 1.2 with wicket servlet it was working ok. Is this class
> loading problem due to wicket 1.3 filter?
> The only difference in my app now is that I've migrated it to the 1.3,
> and instead of commons-logging am using slf4j now.
>
> Do you have any idea idea how to solve this problem?
>
> Thanks!
>
> --
>  Regards
>  shumbola
>
>
> -
> 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] Send files with Wicket

2007-05-08 Thread Nino Saturnino Martinez Vazquez Wael
no problem, I see Frank was a little quicker to answer than I was:)

galbu wrote:
> Hi Nino thanks for interesting in my problem...
> I try to explain better what I need: I'm developing an application that
> allows to upload some "report files"  in a db so I want to create a page
> like a "ChooseFile" in which there is a form with a button "Browse" that
> shows (on click) the folders' tree to the user and allows him to have the
> correct localization path of the file he wants to write on the db. I think
> it's a standard function for a web application, but I have not any example
> to do something like that with Wicket...
> I hope it's more clear
>
> Thanks in advance Galbu
>
>
> Nino Saturnino Martinez Vazquez Wael wrote:
>   
>> Hi Galbu
>>
>> Could you rephraise your question, please?
>>
>> I got lost somewhere around where you asked about dragging and dropping?
>>
>> regards Nino
>>
>> galbu wrote:
>> 
>>> Hello world,
>>> I have a problem...I need to update a table reading data from a file
>>> Excel:
>>> I'm able to read and save the file from a specific fold on my computer to
>>> the db, but now I want that the final user of the application could
>>> choose
>>> which file save browsing his data folders and selecting it in the same
>>> way
>>> we do with attachments for an e-mail.
>>> Does anyone give me some ideas on which is the correct way to do that or
>>> which are the Wicket's components I must use? 
>>> Thanks in advance 
>>>   
>>>   
>>>   
>> -
>> 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] ModalWindow relative positioning

2007-05-08 Thread Eelco Hillenius
Did you find a solution for this yet Scott?

Eelco

On 5/4/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> Sorry to just blatently bump this, but it there any way to pop up a
> modal window in a relative position?  Alternately, is there any good
> way to get the absolute position of the link that opens a given modal
> window?
>
> Thank you,
> Scott
>
>
> On 4/26/07, Reuben Burda <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hello,
> >
> > We've run into a small issue tare trying to position a ModalWindow on the
> > screen relative to the link that spawned it. Does anyone know of a solution
> > for this?
> >
> > Thanks in advance
> >
> > Reuben
> >
> > -
> > 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
> >
> >
>
>
> --
> Scott Swank
> reformed mathematician
>
> -
> 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] wicket app under websphere problem

2007-05-08 Thread shumbola
Hello,

After migrating to 1.3 I decided to test if my application still works
under Web Sphere 6.0. And I'm getting this error:
SRVE0026E: [Servlet Error]-[Filter [MyApplication]: could not be initialized]:
org.apache.wicket.WicketRuntimeException: Unable to create application of class 
com.nemat.MyApplication
at java.lang.Throwable.(Throwable.java:217)
at java.lang.Exception.(Exception.java:59)
at java.lang.RuntimeException.(RuntimeException.java:61)
at 
org.apache.wicket.WicketRuntimeException.(WicketRuntimeException.java:50)
at 
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:83)
at 
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:50)
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:375)
at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:326)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:152)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:200)
at 
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:764)
at 
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:581)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1931)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at 
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:593)
at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)
Caused by: java.lang.ClassNotFoundException: com.nemat.MyApplication
at java.lang.Throwable.(Throwable.java:217)
at java.lang.Exception.(Exception.java:59)
at java.lang.ClassNotFoundException.(ClassNotFoundException.java:65)
at java.net.URLClassLoader.findClass(URLClassLoader.java:220)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:110)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at java.lang.ClassLoader.loadClass(ClassLoader.java:263)
at 
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:69)
... 21 more

With wicket 1.2 with wicket servlet it was working ok. Is this class
loading problem due to wicket 1.3 filter?
The only difference in my app now is that I've migrated it to the 1.3,
and instead of commons-logging am using slf4j now.

Do you have any idea idea how to solve this problem?

Thanks!

--
 Regards
 shumbola


-
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] expression to get property

2007-05-08 Thread Eelco Hillenius
While it is possible to e.g. build a custom property model that uses
say OGNL or such, personally I think you are better off implementing
it as an annonymous model, just calling the method with any parameters
you want directly. The advantage of such models is that whatever
refactoring you plan to do in the future, this model will work,
whereas property models can fail quitely. The disadvantage is of
course it verbosity. The  choice is yours.

Eelco

On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>
> yes, any hint/guide to the problems are very much appreciated
>
>
>
> Nino Saturnino Martinez Vazquez Wael wrote:
> >
> > I think you need to use reflection for that part or/and implementing
> > your own abstract model. This approach has spared me some trouble
> > earlier on. If you want to I could dig up some examples...
> >
> > regards Nino
> >
> > ywtsang wrote:
> >> it is easy to reference the property of a model by using "java bean"
> >> notation
> >> as:
> >>
> >> add(new Label("name", new PropertyModel(myModel, "name")));
> >>
> >> (get the value of name property from the myModel)
> >>
> >> what about if I want to insert some parameters in my property getter
> >> method?
> >> e.g. I have a getter method:
> >> String getName(int)
> >>
> >> is it possible to "use" this getter method by passing an integer value in
> >> PropertyModel?
> >>
> >> -Wing
> >>
> >
> > -
> > 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/expression-to-get-property-tf3707591.html#a10371215
> 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] Send files with Wicket

2007-05-08 Thread galbu

Hi Nino thanks for interesting in my problem...
I try to explain better what I need: I'm developing an application that
allows to upload some "report files"  in a db so I want to create a page
like a "ChooseFile" in which there is a form with a button "Browse" that
shows (on click) the folders' tree to the user and allows him to have the
correct localization path of the file he wants to write on the db. I think
it's a standard function for a web application, but I have not any example
to do something like that with Wicket...
I hope it's more clear

Thanks in advance Galbu


Nino Saturnino Martinez Vazquez Wael wrote:
> 
> Hi Galbu
> 
> Could you rephraise your question, please?
> 
> I got lost somewhere around where you asked about dragging and dropping?
> 
> regards Nino
> 
> galbu wrote:
>> Hello world,
>> I have a problem...I need to update a table reading data from a file
>> Excel:
>> I'm able to read and save the file from a specific fold on my computer to
>> the db, but now I want that the final user of the application could
>> choose
>> which file save browsing his data folders and selecting it in the same
>> way
>> we do with attachments for an e-mail.
>> Does anyone give me some ideas on which is the correct way to do that or
>> which are the Wicket's components I must use? 
>> Thanks in advance 
>>   
>>   
> 
> -
> 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/Send-files-with-Wicket-tf3704527.html#a10371326
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] expression to get property

2007-05-08 Thread ywtsang

yes, any hint/guide to the problems are very much appreciated



Nino Saturnino Martinez Vazquez Wael wrote:
> 
> I think you need to use reflection for that part or/and implementing 
> your own abstract model. This approach has spared me some trouble 
> earlier on. If you want to I could dig up some examples...
> 
> regards Nino
> 
> ywtsang wrote:
>> it is easy to reference the property of a model by using "java bean"
>> notation
>> as:
>>
>> add(new Label("name", new PropertyModel(myModel, "name")));
>>
>> (get the value of name property from the myModel)
>>
>> what about if I want to insert some parameters in my property getter
>> method?
>> e.g. I have a getter method:
>> String getName(int)
>>
>> is it possible to "use" this getter method by passing an integer value in
>> PropertyModel?
>>
>> -Wing
>>   
> 
> -
> 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/expression-to-get-property-tf3707591.html#a10371215
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] Send files with Wicket

2007-05-08 Thread Frank Bille

Yes Galbu if you use Wicket 1.3 (beta) then look at

http://wicketstuff.org/wicket13/upload/single

If you use 1.2 it's

http://www.wicket-library.com/wicket-examples/upload

--
Frank


On 5/8/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


wicket - library is not really updated anymore:
look for the latest examples here:

http://wicketstuff.org/wicket13/

On 5/8/07, Frank Bille <[EMAIL PROTECTED]> wrote:
>
> Hi Galbu
>
> It sounds like you are looking for FileUploadField:
>
> 
http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/upload/FileUploadField.html
>
>
> Take a look at the examples:
>
> http://www.wicket-library.com/wicket-examples/upload
>
> --
> Frank
>
>
> On 5/7/07, galbu <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hello world,
> > I have a problem...I need to update a table reading data from a file
> > Excel:
> > I'm able to read and save the file from a specific fold on my computer
> > to
> > the db, but now I want that the final user of the application could
> > choose
> > which file save browsing his data folders and selecting it in the same
> > way
> > we do with attachments for an e-mail.
> > Does anyone give me some ideas on which is the correct way to do that
> > or
> > which are the Wicket's components I must use?
> > Thanks in advance
> >
> > --
> > View this message in context: 
http://www.nabble.com/Send-files-with-Wicket-tf3704527.html#a10359759
> >
> > 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
>
>

-
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] mounting with "empty" path

2007-05-08 Thread ywtsang

for /dynapara1/dynapara2/dynapara3/


for dynapara1/2/3... they are some parameters passed to our application

in fact, we have some "action" value in the URL that is not "dynamic" and is
intended to point to different pages, e.g.

/dynapara1/dynapara2/dynapara3//action1
/dynapara1/dynapara2/dynapara3//action2
/dynapara1/dynapara2/dynapara3//action3
/dynapara1/dynapara2/dynapara3//action4

for our application, action1, action2, action3, action4 can be known before
and are intended to be forwarded to their corresponding page

we know that, if we change the URL to 
/action1/dynapara1/dynapara2/dynapara3/
/action2/dynapara1/dynapara2/dynapara3/
/action3/dynapara1/dynapara2/dynapara3/
/action4/dynapara1/dynapara2/dynapara3/

we can mount the action1, 2,3,4 successfully
however, we may not be able to change the requirement right now :(

in fact, we have "hacked" into wicket's code and change the logic, now we
can recognize the "mount point" from the last part of the URL rather than
the first part of the URL, and it seems can solve our problems

but we think this may not be appropriate as it is not supported my wicket
officially

so we are seeking if there is any other good work around for the problem in
the (future) wicket

-Wing


Johan Compagner wrote:
> 
> If we would have somehow have special url encoding for the home page
> then that encoding should say to the WicketFilter that it can parse that
> kind of stuff
> and that it is a wicket request.
> 
> The problem is that parsing must be done quite right because else almost
> everything is a valid value??
> How do you know that /dynamicparamvalue/ is a value for you and not
> another
> mapping??
> 
> johan
> 
> 
> On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>>
>>
>> Before we have this new url encoding strategy for Home page, we need to
>> take
>> another approach for the problem?
>>
>> for my problem:
>>
>> http://mydomain.com//> value
>> 2>/...
>>
>> It seems that wicket will return "404" when there is no mapping of the
>> page.
>> Could we assign a "default" page for the application if wicket can't find
>> any page mapping? Is there any hint for the problem?
>>
>> Thanks for your help.
>>
>> -Wing
>>
>>
>> Johan Compagner wrote:
>> >
>> > currently the empty path is the homepage that you specify in the
>> > Application
>> > class.
>> > so thats why it is not legal, we can't mount the homepage currently.
>> >
>> > Maybe we should see if we can set the url coding strategy for the
>> homepage
>> > somehow
>> > instead of :
>> >
>> > getHomePage()
>> >
>> > getHomePageCodingStrategy()
>> >
>> > johan
>> >
>> >
>> >
>> > On 5/7/07, ywtsang <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> is it possible to "mount" with "empty" path?
>> >>
>> >> e.g.
>> >>
>> >> mount(new IndexedParamUrlCodingStrategy("/",  my class, null));
>> >>
>> >> wicket complains it is not legal
>> >>
>> >> for my problem
>> >> i want the URL to have something like:
>> >>
>> >> http://mydomain.com/value1/value2/value3/value4
>> >>
>> >> where I can "use" IndexdParamUrlCodingStrategy to get the value1, 2,
>> 3,
>> >> 4
>> >>
>> >> if it is not possible to mount with "empty" path, is there any other
>> >> solution to my problem?
>> >>
>> >> any pointer/hint for my problem is great, thanks for your help
>> >>
>> >> -Wing
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10352898
>> >> 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
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10368207
>> 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 limi

Re: [Wicket-user] Send files with Wicket

2007-05-08 Thread Johan Compagner

wicket - library is not really updated anymore:
look for the latest examples here:

http://wicketstuff.org/wicket13/

On 5/8/07, Frank Bille <[EMAIL PROTECTED]> wrote:


Hi Galbu

It sounds like you are looking for FileUploadField:

http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/upload/FileUploadField.html


Take a look at the examples:

http://www.wicket-library.com/wicket-examples/upload

--
Frank


On 5/7/07, galbu <[EMAIL PROTECTED]> wrote:
>
>
> Hello world,
> I have a problem...I need to update a table reading data from a file
> Excel:
> I'm able to read and save the file from a specific fold on my computer
> to
> the db, but now I want that the final user of the application could
> choose
> which file save browsing his data folders and selecting it in the same
> way
> we do with attachments for an e-mail.
> Does anyone give me some ideas on which is the correct way to do that or
> which are the Wicket's components I must use?
> Thanks in advance
>
> --
> View this message in context:
> http://www.nabble.com/Send-files-with-Wicket-tf3704527.html#a10359759
> 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


-
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] Send files with Wicket

2007-05-08 Thread Frank Bille

Hi Galbu

It sounds like you are looking for FileUploadField:

http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/upload/FileUploadField.html

Take a look at the examples:

http://www.wicket-library.com/wicket-examples/upload

--
Frank


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



Hello world,
I have a problem...I need to update a table reading data from a file
Excel:
I'm able to read and save the file from a specific fold on my computer to
the db, but now I want that the final user of the application could choose
which file save browsing his data folders and selecting it in the same way
we do with attachments for an e-mail.
Does anyone give me some ideas on which is the correct way to do that or
which are the Wicket's components I must use?
Thanks in advance

--
View this message in context:
http://www.nabble.com/Send-files-with-Wicket-tf3704527.html#a10359759
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] mounting with "empty" path

2007-05-08 Thread Johan Compagner

If we would have somehow have special url encoding for the home page
then that encoding should say to the WicketFilter that it can parse that
kind of stuff
and that it is a wicket request.

The problem is that parsing must be done quite right because else almost
everything is a valid value??
How do you know that /dynamicparamvalue/ is a value for you and not another
mapping??

johan


On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:



Before we have this new url encoding strategy for Home page, we need to
take
another approach for the problem?

for my problem:

http://mydomain.com///...

It seems that wicket will return "404" when there is no mapping of the
page.
Could we assign a "default" page for the application if wicket can't find
any page mapping? Is there any hint for the problem?

Thanks for your help.

-Wing


Johan Compagner wrote:
>
> currently the empty path is the homepage that you specify in the
> Application
> class.
> so thats why it is not legal, we can't mount the homepage currently.
>
> Maybe we should see if we can set the url coding strategy for the
homepage
> somehow
> instead of :
>
> getHomePage()
>
> getHomePageCodingStrategy()
>
> johan
>
>
>
> On 5/7/07, ywtsang <[EMAIL PROTECTED]> wrote:
>>
>>
>> is it possible to "mount" with "empty" path?
>>
>> e.g.
>>
>> mount(new IndexedParamUrlCodingStrategy("/",  my class, null));
>>
>> wicket complains it is not legal
>>
>> for my problem
>> i want the URL to have something like:
>>
>> http://mydomain.com/value1/value2/value3/value4
>>
>> where I can "use" IndexdParamUrlCodingStrategy to get the value1, 2, 3,
>> 4
>>
>> if it is not possible to mount with "empty" path, is there any other
>> solution to my problem?
>>
>> any pointer/hint for my problem is great, thanks for your help
>>
>> -Wing
>> --
>> View this message in context:
>>
http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10352898
>> 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
>
>

--
View this message in context:
http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10368207
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] expression to get property

2007-05-08 Thread Johan Compagner

we don't suppor that see PropertyResolver and PropertyResolverTest what kind
of evaluations we do support.

johan


On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:



it is easy to reference the property of a model by using "java bean"
notation
as:

add(new Label("name", new PropertyModel(myModel, "name")));

(get the value of name property from the myModel)

what about if I want to insert some parameters in my property getter
method?
e.g. I have a getter method:
String getName(int)

is it possible to "use" this getter method by passing an integer value in
PropertyModel?

-Wing
--
View this message in context:
http://www.nabble.com/expression-to-get-property-tf3707591.html#a10369629
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