Re: First Day Disgust!

2007-09-11 Thread Gerolf Seitz
On 9/10/07, Martijn Dashorst [EMAIL PROTECTED] wrote:


 I haven't used an Eclipse plugin for maven since the command line
 version works really well and my previous experiences with mevenide
 were less than ok (talking about 2 years ago!)

 Martijn



 there seem to be a new maven-eclipse-integration plugin in town:
http://code.google.com/p/q4e/
it's supposed to be part of the eclipse foundation.
i haven't tried it out yet, but as i didn't really like m2eclipse, i will
definitely give it a shot.

  gerolf

--
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0-beta3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-11 Thread Johan Compagner
i will discuss tomorrow with Martijn when we could organize it.

johan


On 9/11/07, Matthijs Wensveen [EMAIL PROTECTED] wrote:

 Hi,
 I'm interested, and I think several of my co-workers are too.

 Matthijs

 Danny van Bruggen wrote:
  I'm interested. I've only just started, so every topic is helpful to
  me :) Amersfoort is fine for me.
 
  Danny
 
  On 9/7/07, Johan Compagner [EMAIL PROTECTED] wrote:
 
  hi,
 
  I can organize one if there is enough interest
  Martijn and i will be there then.
 
  And for example if people are also interested in the wicket security i
 will
  also drag Maurice to the table.
 
  johan
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Matthijs Wensveen
 Func. Internet Integration
 W http://www.func.nl
 T +31 20 423
 F +31 20 4223500


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: 1.3.0-SNAPSHOT maven error

2007-09-11 Thread Sebastiaan van Erk
This was a mvn eclipse:eclipse, but I get a similar error with a mvn 
compile. It's just a standard project with wicket as a dependency; used 
to be 1.3.0-beta3 (which worked fine), but changed it to SNAPSHOT and 
added the wicketstuff repository like so:


repositories
repository
idwicket/id
urlhttp://wicketstuff.org/maven/repository//url
/repository
/repositories

That's the only changes I made to the working 1.3.0-beta3 based pom.

Regards,
Sebastiaan

Johan Compagner wrote:

hmm are the parent poms not deployed somehow
what kind of build triggers that exactly?

johan



On 9/11/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Hi,

I'm trying to use the latest snapshot version of wicket, but maven
complains:

[INFO] snapshot org.apache.wicket:wicket:1.3.0-SNAPSHOT: checking for
updates from wicket
Downloading:

http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/1.3.0-SNAPSHOT/wicket-1.3.0-SNAPSHOT.pom
1/2K
2/2K
2K downloaded
[INFO] snapshot org.apache.wicket:wicket-jdk14:1.3.0-SNAPSHOT: checking
for updates from wicket
Downloading:

http://wicketstuff.org/maven/repository//org/apache/wicket/wicket-jdk14/1.3.0-SNAPSHOT/wicket-jdk14-1.3.0-SNAPSHOT.pom
[ERROR] An error occurred during dependency resolution of the following
artifact:
 org.apache.wicket:wicket:1.3.0-SNAPSHOT
Caused by: Unable to get dependency information: Unable to read the
metadata file for artifact 'org.apache.wicket:wicket:jar': Cannot find
parent: org.apache.wicket:wicket-jdk14 for project: null:wicket:jar:null
   org.apache.wicket:wicket:jar:1.3.0-SNAPSHOT

from the specified remote repositories:
   wicket (http://wicketstuff.org/maven/repository/),
   central (http://repo1.maven.org/maven2)


Am I doing something wrong?

Regards,
Sebastiaan






smime.p7s
Description: S/MIME Cryptographic Signature


Re: Ajax error in Safari / Konqueror

2007-09-11 Thread Matej Knopp
If you can submit a snapshot that demonstrates ajax failure in beta 3,
please do.

-Matej

On 9/10/07, Nathan Hamblen [EMAIL PROTECTED] wrote:
 Rüdiger Schulz wrote:
  How can I find out more, or what more information would be needed to root
  this down? Maybe this is related to WICKET-938?

 Probably. It's all too easy to see Safari fail in beta3; I've had to
 drop back to beta2. I was planning to capture some markup examples over
 the weekend but didn't get around to it. If anyone wants to add
 something concrete to that bug, please do.

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


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-11 Thread Johan Compagner
just like last week?

On 9/11/07, Maurice Marrink [EMAIL PROTECTED] wrote:

 I don't think Martijn will be here tomorrow Johan. He has taken some
 time off to work on the book.

 Maurice

 On 9/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  On 9/11/07, Wouter Huijnink [EMAIL PROTECTED] wrote:
   Hi list,
  
   Great idea! At Func. we'd also planned to suggest a usergroup meeting
 in
   the netherlands.
  
   We're more than willing to host the event - our office is situated
   opposite the Amsterdam Central Station:
  
 http://local.google.com/?ie=UTF8t=hom=1q=52.378566,4.896233+(Func.+Internet+Integration)ll=52.378573,4.896233spn=0.004139,0.010042z=17iwloc=addr
  
   We'll take care of food and drinks.
  
   Would it be a good idea to add a Community Events section to the wiki,
   where we can discuss the preferred date and register?
 
  How about using our calendar on google?
 
 http://www.google.com/calendar/embed?src=kps9lev85benpg7ppaafpje5d8%40group.calendar.google.com
 
  Eelco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: First Day Disgust!

2007-09-11 Thread Ayodeji Aladejebi
maven maven maven, that is if all developers all over the world knows what
maven is. Ant was what i first knew until i started hearing maven and infact
it was mainly because of wicket that i learnt maven early before a netbeans
module came out.

so really not all developers will have some patience to first google maven
fundamentals which is why i believe in:

1. Step 1, Install Your IDE (Everybody knows that)
2. Step 2, Install This Plugin (IDEs make that simple)
3. Step 3, Create a new Wicket Project and then BOOM it works without even a
line of code yet (as much as i hated SWT, i learnt it this way)

And lets remember the success of the ASP.NET family, you install Visual
Studio and then BOOM your sample project is ready. Then you see this 2 days
old developer feeling like he can code every website. that feeling is the
success of every developer tool and dont let us forget that

The Java community has a plethora of tools but as newer developers come on
board, they need a clean entrance and maven is not what you learn at the
early stage of your developer career (even though its simple to use, infact
simpler than i thought cuz i hated Ant)


My take,

While off course maven is still the used tool, but the community  should
bring the useful IDE plugins to the forefront for starters

Thanks

On 9/11/07, Gerolf Seitz [EMAIL PROTECTED] wrote:

 On 9/10/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
 
  I haven't used an Eclipse plugin for maven since the command line
  version works really well and my previous experiences with mevenide
  were less than ok (talking about 2 years ago!)
 
  Martijn



 there seem to be a new maven-eclipse-integration plugin in town:
 http://code.google.com/p/q4e/
 it's supposed to be part of the eclipse foundation.
 i haven't tried it out yet, but as i didn't really like m2eclipse, i will
 definitely give it a shot.

   gerolf

 --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0-beta3 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Wasp/Swarm Questions was Re: Component parent null after replace

2007-09-11 Thread Maurice Marrink
On 9/11/07, Anthony Schexnaildre [EMAIL PROTECTED] wrote:
 Please hijack away.

 I have been quite happy with Wasp and Swarm. It's simple and painless
 but quite flexible. The examples are the life saver though. To be
 honest, the security framework is why I chose to use Wicket for this
 project instead of Tapestry.

 I am however having a few issues figuring out some best practices
 that maybe you or some other experienced Wasp/Swarm users may be able
 to shed some light on.

 1. Where would you store a reference to the logged in user. Currently
 have it in a DetachableModel in a custom session. There has to be a
 better place to put the user reference that fits more directly with
 the security framework.
A detachable model in a custom session is as good a place as any, in
fact i keep it there too. Swarm indeed does not keep a ref to your
user object but it does keep a reference to the subject (which
translates into the user rights, but also could be the user itself).
Although you can get this subject by casting the strategy to a
SwarmStrategy, i recommend storing the user yourself like you do now,
which is perfectly compatible with the wicket philosophy that if you
wish to store things in the session you should create a custom session
and provide strongtyped getters / setters for it.


 2. I very much like your SecureTab example but something like a
 SecurePanelLink within the framework would be helpful.
The ContainerSecurityCheck was created for helping out with panel
replacements by treating panels exactly like pages but if you feel we
need to provide more stuff out of the box here feel free to speak up.
After thinking about this for a bit i think i can come up with a
secure link that automatically replaces one panel with another.

I have been
 working on my own that mirrors the SecurePageLink as much as possible
 but it is still a bit wonky.
I saw it, and i must admit my first thought was: couldn't he use ...,
or do  but after looking deeper in what you were trying to
accomplish, i think you did alright. Although looking back at my
previous comment about making a panel link i think a combination of
LinkSecurityCheck and ContainerSecurityCheck would be ideal.


This is helpful because once you get
 into a tab layout, navigation to other panels that are not directly
 attached to a tab becomes annoying at best. I am working through it
 but seems like someone must have solved this issues a few times over
 in an elegant fashion. Maybe some kind of panel stack with tab
 integration?
I am not sure i get what it is you are trying to accomplish here. It
should not matter where the panel is located. if you use a regular
ComponentSecurityCheck the full path with the parent is considered but
if you use a ContainerSecurityCheck the panel class is used and where
ever it is placed in the page hierarchy is irrelevant. Personally i
use Swarm in a page based approach, but panels should be just as easy.


 3. I don't understand the DataPermissions, configuration and their
 use cases. I must admit I have not spent the time to dig through the
 example extensively but I don't understand the use cases enough to
 know why I would want to spend the time.
The DataPermissions are indeed a bit under lighted in the examples.
The beauty about them is that you can build entire applications
without ever needing them. They are intended for use cases where it
makes more sense to let the data / model dictate if a user has
permissions for them. One benefit of this is that you can share the
secure model (which is typically used for data permissions) between
multiple components and instead of securing each component the
security is on 1 central place namely the model. An example of this is
the SwarmCompoundPropertyModel.


 4. I am working on an application that will eventually have very
 complicated permission structure. Right now I am fumbling a solution
 together for phase one. Eventually I would like to be able to
 filter the date returned to a user based on some permissions while
 not coupling the security layer to the Dao's to tightly.
We have a similar use case in our organization and although you could
use datapermissions to hide components showing restricted data
(completely disconnecting your dao's from your security layer),
consider the following: by letting you security layer provide you with
some sort of filter for your dao (perhaps a list of allowed id's or a
query part) you bypass the need to secure your components as the data
is already made to fit what is allowed to see. In our application we
chose the latter approach.

A typical
 structure would be as follows:

 O - Organisation
 U - User

  O
   /  / \  \
 /   |   |   \
U U U O
   /  |  \
 U O O
   / ||   \
 U U  U  U

 Consider a use case where you have a hierarchy of Financial
 Transaction Processors with the following 2 user types/principals:

 Customer Service - Allowed to see transactions 

Re: Default focus behavior for ajax request

2007-09-11 Thread Matej Knopp
Because currently there is no way during ajax processing to determine
that the event was a focus related one. I think that it's good to
restore focus on last focused element by default. But I'm also aware
that it causes problems with focus related event, so i think maybe we
should just call target.focusCompnent(null) in abstract ajax event
behavior if the event is onblur. Can you submit RFE?

-Matej

On 9/11/07, Carlos Pita [EMAIL PROTECTED] wrote:
 Hi,

 why is the default behavior for ajax requests to force focus into some
 component (normally the one which triggered the event that caused the
 request, I guess)? This produces some bizarre situations when onfocus
 or onblur are used for ajax validation. For example, if the form
 component to be validated gets its focus transferred to some browser
 ui widget (for example, the location bar), triggering an onblur
 validation this way, it immediately recaptures focus after validation
 has been completed (making it impossible to type text at the location
 bar unless your fingers happen to be faster than the ajax rtt, to
 follow the example). A similar problem occurs with tinymce editor, at
 least. This behavior can be circumvented explicitly setting
 target.focusComponent(null) for validation purposes, but why is it not
 this way in the first place, at least for the focus related events? Is
 there any rationale behind this that I'm missing?

 Regards,
 Carlos

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wasp/Swarm Questions was Re: Component parent null after replace

2007-09-11 Thread Maurice Marrink
Martijn, you are absolutely right, i forgot we moved the user from the
session to the requestcycle. Just keep the id for your user in the
session and keep the actual user for this request in the requestcycle.
This way each thread will have its own instance of the user.

Maurice

On 9/11/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Just a quick note: storing objects that are not thread safe in your
 session is asking for trouble. While Wicket does limit page processing
 to one request at a time, other requests like resources can run in
 parallel. What does this mean?

 One thing that comes to mind is that when two requests for the same
 session are being processed, and one is done before the other it will
 detach the user model. What are the semantics now for the other
 thread?

 For instance if you have a detachable model storing a User object in
 your session and use Hibernate you are in a world of hurt, or rather
 Hibernate will sometimes bork because your Session tries to attach the
 single User instance to multiple Hibernate Session objects. Exceptions
 will be having a party.

 Now this is not meant as a Hibernate bashing reply, it just happens
 that Hibernate correctly detects multiple threads modifying the same
 object's state and stops tampering with it.

 Martijn

 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0-beta3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



auto dirty and widget factory

2007-09-11 Thread Sam Hough

Apologies in advance as I'm a newbie harking on about my pet topic again
but...

Taking the example of TabbedPanel and AjaxTabbedPanel (only in extensions
but a common UI concept) I think it shows why it would be good to use the
factory pattern to generate elemental widgets (like button, panel etc
assuming people want AjaxFallbackButton or Button) and automatically track
dirty components.

I first got this bee in my bonnet about higher level application code
because I didn't think I should be messing about working out which
components were dirty when I just want the result of pressing a button to
fiddle with the model and change the ui state a bit. However looking at
*TabbedPanel I think it would also make sense for pure UI components. Using
inheritance to add Ajax to TabbedPanel means any other variations also have
to be doubled (e.g. AjaxFancyTabbedPanel and FancyTabbedPanel etc). Perhaps
the bigger problem is that if a Panel that is meant to be inside a
TabbedPanel and needs to alter another component (e.g. update navigation
component) the TabbedPanel has to ask it for changes. Presumably a component
should be self contained as possible so it doesn't matter what other
component it is contained within.

Factory pattern is a pain but presumably many people don't want the overhead
of AjaxFallbackXXX. It would also make it possible to program against
interfaces which might give more power to Igor, Eelco etc

Please don't get me wrong GWT is still my true love but Wicket is a fabulous
framework taking us out of the dark ages of struts.


-- 
View this message in context: 
http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12610663
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



No cursor in Modal Window in FF

2007-09-11 Thread Artur W.

Hi!

There is no cursor in input fields in Modal Window.
I use Wicket wicket-1.3.0-beta3 and ff 2.0.0.6

Thanks for help,
Artur

-- 
View this message in context: 
http://www.nabble.com/No-cursor-in-Modal-Window-in-FF-tf4421726.html#a12612071
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread Johan Karlberg
In your application class's init method, mount the page with an 
appropriate URL strategy. I have mounts like these in my current code.


mount(new HybridUrlCodingStrategy(/plist, PlistPage.class));

Johan

chickabee wrote:

I have the nice url:
https://lilo:8443/whisky/app/plist/

When I go to the next page using the page navigator then the url becomes:
https://lilo:8443/whisky/app/?wicket:interface=:16:1:::

When I go to next page again  then the url becomes:
https://lilo:8443/whisky/app/?wicket:interface=:16:2:::

How do I make these Page Navigated Urls Nicer, for example:
https://lilo:8443/whisky/app/plist/page/1
https://lilo:8443/whisky/app/plist/page/2

Any pointer in right direction is appreciated, Thanks in advance. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread C. Bergström
chickabee wrote:
 Yes, Now the urls are like:
 https://lilo:8443/whisky/app/plist/.1.2
 https://lilo:8443/whisky/app/plist/.1.3  ...etc...these are much better than
 earlier. thx.

 However, they are not bookmarkable, if I start the new browser and point the
 folloing url:
 https://lilo:8443/whisky/app/plist/.1.3

 It always takes me to the first page, How do i make these navigated urls 
 bookmarkable as well?
Something is getting mixed up here, but the eventual answer is you
probably want to look into pageparameters

./C

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread Sebastiaan van Erk
I have exactly the same issue, and was thinking of writing a special 
PageNavigation to do the job for me. Many times the only relevant state 
is the page number (and possibly the filter used).


The use case (which I think occurs very often) is a list of comments in 
a guestbook or blog, or the list of products in shop, etc... The list 
will change only very infrequently (item added or removed, in the case 
of blogs, possibly only at the end). Users however want to paste links 
to each other via IM, and they certainly don't want the page to expire 
on them (prev on a guestbook page suddenly says Page Expired? - users 
won't understand, and personally I'd think it's a poor implementation if 
that happened to me).


The current PageNavigation does not seem very easy to modify 
unfortunately. Overriding it to return other links is a possible, but I 
saw lots of logic in the default links (PagingNavigationLink and 
PaginagNavigationIncrementLink) it returns (which are subclasses of 
Link). If you want to make them subclasses of BookMarkablePageLink then 
you have to copy paste a lot of functionality. :-(


Anyway, I'll be looking into this probably this weekend, and if I get 
something working I'll post it to the list. Any suggestions as to the 
best approach are welcome though. :-)


Regards,
Sebastiaan

Johan Karlberg wrote:
The page versions will not be bookmarkable since they rely on serverside 
state that obviosuly cannot be retained forever, nor shared with another 
session. To make a basepage boomarkable, make our navigation links 
bookmarkable. (there is a BookmarkableLink in the API), if you want 
pages with state to be bookmarkable, the relevant state needs to be 
encoded in the URL and passed with PageParameters I believe.


Johan

chickabee wrote:

Yes, Now the urls are like:
https://lilo:8443/whisky/app/plist/.1.2
https://lilo:8443/whisky/app/plist/.1.3  ...etc...these are much 
better than

earlier. thx.

However, they are not bookmarkable, if I start the new browser and 
point the

folloing url:
https://lilo:8443/whisky/app/plist/.1.3

It always takes me to the first page, How do i make these navigated 
urls bookmarkable as well?


thanks, 



Johan Karlberg wrote:
In your application class's init method, mount the page with an 
appropriate URL strategy. I have mounts like these in my current code.


mount(new HybridUrlCodingStrategy(/plist, PlistPage.class));

Johan

chickabee wrote:

I have the nice url:
https://lilo:8443/whisky/app/plist/

When I go to the next page using the page navigator then the url 
becomes:

https://lilo:8443/whisky/app/?wicket:interface=:16:1:::

When I go to next page again  then the url becomes:
https://lilo:8443/whisky/app/?wicket:interface=:16:2:::

How do I make these Page Navigated Urls Nicer, for example:
https://lilo:8443/whisky/app/plist/page/1
https://lilo:8443/whisky/app/plist/page/2

Any pointer in right direction is appreciated, Thanks in advance.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Model question

2007-09-11 Thread Leszek Gawron
Assuming eventModel is loadable detachable model sould I implement some 
marker interfaces in the following model?



private static class SystemWarningEventImagePathModel extends 
AbstractReadOnlyModel {
private IModel  eventModel;

public SystemWarningEventImagePathModel( IModel eventModel ) {
this.eventModel = eventModel;
}

@Override
public Object getObject() {
SystemWarningEvent event = (SystemWarningEvent) 
eventModel.getObject();
return event.isReadFlag() ? img/mobile/event_read.png : 
img/mobile/event_new.png;
}
}



There are a number to take into account: IWrapModel, IChainingModel. 
Please advise.


--
Leszek Gawron

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ModalWindow customisation ?

2007-09-11 Thread Anthony J Webster
Hi,

Is there any way to customise the actual frame of a ModalWindow? Preferably I'd 
like to get rid of the frame entirely or just replace it with a simple box of 
the same colour as the enclosed page/panel without the top-right close button.

Any ideas?

Many Thanks

Anthony

ResourceWatcher is not working properly in Development mode

2007-09-11 Thread Alex Objelean

I use the wicket-1.3-snapshot (from 9th sept). In development mode, I expect
that any change to markup would be visible after the page is refreshed (as
it does in wicket-1.3-beta3). But it doesn't. Any ideas why?

Alex.
-- 
View this message in context: 
http://www.nabble.com/ResourceWatcher-is-not-working-properly-in-Development-mode-tf4422295.html#a12613685
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread Martijn Dashorst
When you embark on your bookmarkable paging navigator remember that
you have to take into account 2 or 3 navigators on a page, how do you
keep them apart? Or how do you encode sorting? URL state is a really
tricky thing.

Besides, the paging navigator itself is quite non-interesting to
bookmark. How often have you bookmarked a page from a search result in
google? Why is it important to be able to bookmark page 21 of your
product catalogue? How will that help if the sorting changes? Or if 20
new products are added to your catalogue?

Make sure the results in your listview are bookmarkable.

Martijn

On 9/11/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
 I have exactly the same issue, and was thinking of writing a special
 PageNavigation to do the job for me. Many times the only relevant state
 is the page number (and possibly the filter used).

 The use case (which I think occurs very often) is a list of comments in
 a guestbook or blog, or the list of products in shop, etc... The list
 will change only very infrequently (item added or removed, in the case
 of blogs, possibly only at the end). Users however want to paste links
 to each other via IM, and they certainly don't want the page to expire
 on them (prev on a guestbook page suddenly says Page Expired? - users
 won't understand, and personally I'd think it's a poor implementation if
 that happened to me).

 The current PageNavigation does not seem very easy to modify
 unfortunately. Overriding it to return other links is a possible, but I
 saw lots of logic in the default links (PagingNavigationLink and
 PaginagNavigationIncrementLink) it returns (which are subclasses of
 Link). If you want to make them subclasses of BookMarkablePageLink then
 you have to copy paste a lot of functionality. :-(

 Anyway, I'll be looking into this probably this weekend, and if I get
 something working I'll post it to the list. Any suggestions as to the
 best approach are welcome though. :-)

 Regards,
 Sebastiaan

 Johan Karlberg wrote:
  The page versions will not be bookmarkable since they rely on serverside
  state that obviosuly cannot be retained forever, nor shared with another
  session. To make a basepage boomarkable, make our navigation links
  bookmarkable. (there is a BookmarkableLink in the API), if you want
  pages with state to be bookmarkable, the relevant state needs to be
  encoded in the URL and passed with PageParameters I believe.
 
  Johan
 
  chickabee wrote:
  Yes, Now the urls are like:
  https://lilo:8443/whisky/app/plist/.1.2
  https://lilo:8443/whisky/app/plist/.1.3  ...etc...these are much
  better than
  earlier. thx.
 
  However, they are not bookmarkable, if I start the new browser and
  point the
  folloing url:
  https://lilo:8443/whisky/app/plist/.1.3
 
  It always takes me to the first page, How do i make these navigated
  urls bookmarkable as well?
 
  thanks,
 
 
  Johan Karlberg wrote:
  In your application class's init method, mount the page with an
  appropriate URL strategy. I have mounts like these in my current code.
 
  mount(new HybridUrlCodingStrategy(/plist, PlistPage.class));
 
  Johan
 
  chickabee wrote:
  I have the nice url:
  https://lilo:8443/whisky/app/plist/
 
  When I go to the next page using the page navigator then the url
  becomes:
  https://lilo:8443/whisky/app/?wicket:interface=:16:1:::
 
  When I go to next page again  then the url becomes:
  https://lilo:8443/whisky/app/?wicket:interface=:16:2:::
 
  How do I make these Page Navigated Urls Nicer, for example:
  https://lilo:8443/whisky/app/plist/page/1
  https://lilo:8443/whisky/app/plist/page/2
 
  Any pointer in right direction is appreciated, Thanks in advance.
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Model question

2007-09-11 Thread Martijn Dashorst
Nothing directly. The only thing you should do is propagate the
'detach' method to your nested eventModel. The chaining model is
merely interesting for consumers of your model, so they can get to the
embedded model using a specified API.

From chapter 5 Understanding Models of Wicket in Action (the custom
models part where the quote comes from may become an appendix though):

To summarize, when you want to chain models, be sure to propagate the
detach call to the chained models. This way the whole chain will be
detached. If your custom model is part of a public API, your clients
will most likely thank you when you implement the IChainingModel
interface, providing them access to the inner model.

The IWrapModel is used for marking models that have been wrapped using
IComponentAssignedModel or IComponentInheritedModel.

Martijn

On 9/11/07, Leszek Gawron [EMAIL PROTECTED] wrote:
 Assuming eventModel is loadable detachable model sould I implement some
 marker interfaces in the following model?

  private static class SystemWarningEventImagePathModel extends 
  AbstractReadOnlyModel {
private IModel  eventModel;
 
public SystemWarningEventImagePathModel( IModel eventModel ) {
this.eventModel = eventModel;
}
 
@Override
public Object getObject() {
SystemWarningEvent event = (SystemWarningEvent) 
  eventModel.getObject();
return event.isReadFlag() ? img/mobile/event_read.png : 
  img/mobile/event_new.png;
}
  }


 There are a number to take into account: IWrapModel, IChainingModel.
 Please advise.

 --
 Leszek Gawron

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How Dynamic ListView

2007-09-11 Thread Edi

How to display the dynamic Listview.

for e.g, I have a dynamic query like select * from tablename, I want to
display the table values into ListView.
Is it possible. Please remember, table name is dynamic. I don't have setter
and getter method for table name/class name.

All suggestions welcome.

Thank you for Reading.
-- 
View this message in context: 
http://www.nabble.com/How-Dynamic-ListView-tf4422298.html#a12613695
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread chickabee

I think it will be easily achievable by adding one more constructor to
PageNavigator which can take the starting page param:

Exising:
add(new PagingNavigator(navigator, gridView));

Proposed:
add(new PagingNavigator(navigator, gridView, startPage));

This startPage can be extracted from PageParameters. If the startPage is
null then start form the beginning otherwise set the start page to this
values in the PageNavigator.

Above,  in conjuction with a new PageNavigatorUrlCodingStrategy which can
convert session page ids  into to universally bookmarkable page ids will
provide the desired solution. 

Anyone more thoughts??



Johan Karlberg wrote:
 
 The page versions will not be bookmarkable since they rely on serverside 
 state that obviosuly cannot be retained forever, nor shared with another 
 session. To make a basepage boomarkable, make our navigation links 
 bookmarkable. (there is a BookmarkableLink in the API), if you want 
 pages with state to be bookmarkable, the relevant state needs to be 
 encoded in the URL and passed with PageParameters I believe.
 
 Johan
 
 chickabee wrote:
 Yes, Now the urls are like:
 https://lilo:8443/whisky/app/plist/.1.2
 https://lilo:8443/whisky/app/plist/.1.3  ...etc...these are much better
 than
 earlier. thx.
 
 However, they are not bookmarkable, if I start the new browser and point
 the
 folloing url:
 https://lilo:8443/whisky/app/plist/.1.3
 
 It always takes me to the first page, How do i make these navigated urls 
 bookmarkable as well?
 
 thanks,  
 
 
 
 Johan Karlberg wrote:
 In your application class's init method, mount the page with an 
 appropriate URL strategy. I have mounts like these in my current code.

 mount(new HybridUrlCodingStrategy(/plist, PlistPage.class));

 Johan

 chickabee wrote:
 I have the nice url:
 https://lilo:8443/whisky/app/plist/

 When I go to the next page using the page navigator then the url
 becomes:
 https://lilo:8443/whisky/app/?wicket:interface=:16:1:::

 When I go to next page again  then the url becomes:
 https://lilo:8443/whisky/app/?wicket:interface=:16:2:::

 How do I make these Page Navigated Urls Nicer, for example:
 https://lilo:8443/whisky/app/plist/page/1
 https://lilo:8443/whisky/app/plist/page/2

 Any pointer in right direction is appreciated, Thanks in advance. 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12613697
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread chickabee

Hi Sebastiaan, Can't wait to see what you come-up with after the weekend full
of grunt work, i have just posted  a few design pointers, in case they make
any sense to you. I have not yet opened the PageNavigation.java file but I
will shortly if an acceptable solution does not surface timely, I don't see
a technical challenge here, it is just a matter of putting in some sweat.  

Thanks.. 



Sebastiaan van Erk wrote:
 
 I have exactly the same issue, and was thinking of writing a special 
 PageNavigation to do the job for me. Many times the only relevant state 
 is the page number (and possibly the filter used).
 
 The use case (which I think occurs very often) is a list of comments in 
 a guestbook or blog, or the list of products in shop, etc... The list 
 will change only very infrequently (item added or removed, in the case 
 of blogs, possibly only at the end). Users however want to paste links 
 to each other via IM, and they certainly don't want the page to expire 
 on them (prev on a guestbook page suddenly says Page Expired? - users 
 won't understand, and personally I'd think it's a poor implementation if 
 that happened to me).
 
 The current PageNavigation does not seem very easy to modify 
 unfortunately. Overriding it to return other links is a possible, but I 
 saw lots of logic in the default links (PagingNavigationLink and 
 PaginagNavigationIncrementLink) it returns (which are subclasses of 
 Link). If you want to make them subclasses of BookMarkablePageLink then 
 you have to copy paste a lot of functionality. :-(
 
 Anyway, I'll be looking into this probably this weekend, and if I get 
 something working I'll post it to the list. Any suggestions as to the 
 best approach are welcome though. :-)
 
 Regards,
 Sebastiaan
 
 Johan Karlberg wrote:
 The page versions will not be bookmarkable since they rely on serverside 
 state that obviosuly cannot be retained forever, nor shared with another 
 session. To make a basepage boomarkable, make our navigation links 
 bookmarkable. (there is a BookmarkableLink in the API), if you want 
 pages with state to be bookmarkable, the relevant state needs to be 
 encoded in the URL and passed with PageParameters I believe.
 
 Johan
 
 chickabee wrote:
 Yes, Now the urls are like:
 https://lilo:8443/whisky/app/plist/.1.2
 https://lilo:8443/whisky/app/plist/.1.3  ...etc...these are much 
 better than
 earlier. thx.

 However, they are not bookmarkable, if I start the new browser and 
 point the
 folloing url:
 https://lilo:8443/whisky/app/plist/.1.3

 It always takes me to the first page, How do i make these navigated 
 urls bookmarkable as well?

 thanks, 


 Johan Karlberg wrote:
 In your application class's init method, mount the page with an 
 appropriate URL strategy. I have mounts like these in my current code.

 mount(new HybridUrlCodingStrategy(/plist, PlistPage.class));

 Johan

 chickabee wrote:
 I have the nice url:
 https://lilo:8443/whisky/app/plist/

 When I go to the next page using the page navigator then the url 
 becomes:
 https://lilo:8443/whisky/app/?wicket:interface=:16:1:::

 When I go to next page again  then the url becomes:
 https://lilo:8443/whisky/app/?wicket:interface=:16:2:::

 How do I make these Page Navigated Urls Nicer, for example:
 https://lilo:8443/whisky/app/plist/page/1
 https://lilo:8443/whisky/app/plist/page/2

 Any pointer in right direction is appreciated, Thanks in advance.
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
 

-- 
View this message in context: 
http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12613803
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to create Dynamic ListView

2007-09-11 Thread chickabee

You can follow the GridView code in the examples, it is the easiest way to
learn how effortlessly wicket can provide data grids in a webpage. As far as
the tablename etc is there, I believe this is your very own business logic
situation, so deal with it. Good luck wicketing!! 



Edi wrote:
 
 How to display the dynamic Listview.
 
 for e.g, I have a dynamic query like select * from tablename, I want to
 display the table values into ListView.
 Is it possible. Please remember, table name is dynamic. I don't have
 setter and getter method for table name/class name.
 
 All suggestions welcome.
 
 Thank you for Reading.
 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-Dynamic-ListView-tf4422298.html#a12614113
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread Sebastiaan van Erk

Hi,

chickabee wrote:

I think it will be easily achievable by adding one more constructor to
PageNavigator which can take the starting page param:

Exising:
add(new PagingNavigator(navigator, gridView));

Proposed:
add(new PagingNavigator(navigator, gridView, startPage));

This startPage can be extracted from PageParameters. If the startPage is
null then start form the beginning otherwise set the start page to this
values in the PageNavigator.

Above,  in conjuction with a new PageNavigatorUrlCodingStrategy which can
convert session page ids  into to universally bookmarkable page ids will
provide the desired solution. 


Anyone more thoughts??


I like the simple just set the start page idea. However why would need 
a special coding strategy? You have to already retrieve the page number 
manually from the params in your example, so why not just modify 
PagingNavigator to make bookmarkable page links.


Then you just use the standard bookmarkable page if you want pretty 
urls, though I'd personally use the HybridUrlCodingStrategy to use the 
session page if it can be found, and otherwise reconstruct the page to a 
good approximation using the page parameters...


Regards,
Sebastiaan




Johan Karlberg wrote:
The page versions will not be bookmarkable since they rely on serverside 
state that obviosuly cannot be retained forever, nor shared with another 
session. To make a basepage boomarkable, make our navigation links 
bookmarkable. (there is a BookmarkableLink in the API), if you want 
pages with state to be bookmarkable, the relevant state needs to be 
encoded in the URL and passed with PageParameters I believe.


Johan

chickabee wrote:

Yes, Now the urls are like:
https://lilo:8443/whisky/app/plist/.1.2
https://lilo:8443/whisky/app/plist/.1.3  ...etc...these are much better
than
earlier. thx.

However, they are not bookmarkable, if I start the new browser and point
the
folloing url:
https://lilo:8443/whisky/app/plist/.1.3

It always takes me to the first page, How do i make these navigated urls 
bookmarkable as well?


thanks,  




Johan Karlberg wrote:
In your application class's init method, mount the page with an 
appropriate URL strategy. I have mounts like these in my current code.


mount(new HybridUrlCodingStrategy(/plist, PlistPage.class));

Johan

chickabee wrote:

I have the nice url:
https://lilo:8443/whisky/app/plist/

When I go to the next page using the page navigator then the url
becomes:
https://lilo:8443/whisky/app/?wicket:interface=:16:1:::

When I go to next page again  then the url becomes:
https://lilo:8443/whisky/app/?wicket:interface=:16:2:::

How do I make these Page Navigated Urls Nicer, for example:
https://lilo:8443/whisky/app/plist/page/1
https://lilo:8443/whisky/app/plist/page/2

Any pointer in right direction is appreciated, Thanks in advance. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







smime.p7s
Description: S/MIME Cryptographic Signature


Re: ModalWindow customisation ?

2007-09-11 Thread Frank Bille
It's in the stylesheet. Some time ago I did a custom skin for it. The
project died, so I don't have it anymore, but it's not that hard (read: if I
can do it, you can do it)

Frank

On 9/11/07, Anthony J Webster [EMAIL PROTECTED] wrote:

 Hi,

 Is there any way to customise the actual frame of a ModalWindow?
 Preferably I'd like to get rid of the frame entirely or just replace it with
 a simple box of the same colour as the enclosed page/panel without the
 top-right close button.

 Any ideas?

 Many Thanks

 Anthony


Re: ModalWindow customisation ?

2007-09-11 Thread Anthony J Webster

hmm it uses image maps for the frame graphics :/
I suppose I could rewrite it and strip it of most of its functionality

- Original Message - 
From: Frank Bille [EMAIL PROTECTED]

To: users@wicket.apache.org
Sent: Tuesday, September 11, 2007 3:15 PM
Subject: Re: ModalWindow customisation ?



It's in the stylesheet. Some time ago I did a custom skin for it. The
project died, so I don't have it anymore, but it's not that hard (read: if 
I

can do it, you can do it)

Frank

On 9/11/07, Anthony J Webster [EMAIL PROTECTED] wrote:


Hi,

Is there any way to customise the actual frame of a ModalWindow?
Preferably I'd like to get rid of the frame entirely or just replace it 
with

a simple box of the same colour as the enclosed page/panel without the
top-right close button.

Any ideas?

Many Thanks

Anthony






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageNavigator Vs Nice Url

2007-09-11 Thread chickabee

I like the simple just set the start page idea. However why would need
a special coding strategy? You have to already retrieve the page number
manually from the params in your example, so why not just modify
PagingNavigator to make bookmarkable page links. 

Yes,  I agree on that, You are right that the PageNavigator can itself
create the navigable urls.
Thanks



Sebastiaan van Erk wrote:
 
 Hi,
 
 chickabee wrote:
 I think it will be easily achievable by adding one more constructor to
 PageNavigator which can take the starting page param:
 
 Exising:
 add(new PagingNavigator(navigator, gridView));
 
 Proposed:
 add(new PagingNavigator(navigator, gridView, startPage));
 
 This startPage can be extracted from PageParameters. If the startPage is
 null then start form the beginning otherwise set the start page to this
 values in the PageNavigator.
 
 Above,  in conjuction with a new PageNavigatorUrlCodingStrategy which can
 convert session page ids  into to universally bookmarkable page ids will
 provide the desired solution. 
 
 Anyone more thoughts??
 
 I like the simple just set the start page idea. However why would need 
 a special coding strategy? You have to already retrieve the page number 
 manually from the params in your example, so why not just modify 
 PagingNavigator to make bookmarkable page links.
 
 Then you just use the standard bookmarkable page if you want pretty 
 urls, though I'd personally use the HybridUrlCodingStrategy to use the 
 session page if it can be found, and otherwise reconstruct the page to a 
 good approximation using the page parameters...
 
 Regards,
 Sebastiaan
 
 
 
 Johan Karlberg wrote:
 The page versions will not be bookmarkable since they rely on serverside 
 state that obviosuly cannot be retained forever, nor shared with another 
 session. To make a basepage boomarkable, make our navigation links 
 bookmarkable. (there is a BookmarkableLink in the API), if you want 
 pages with state to be bookmarkable, the relevant state needs to be 
 encoded in the URL and passed with PageParameters I believe.

 Johan

 chickabee wrote:
 Yes, Now the urls are like:
 https://lilo:8443/whisky/app/plist/.1.2
 https://lilo:8443/whisky/app/plist/.1.3  ...etc...these are much better
 than
 earlier. thx.

 However, they are not bookmarkable, if I start the new browser and
 point
 the
 folloing url:
 https://lilo:8443/whisky/app/plist/.1.3

 It always takes me to the first page, How do i make these navigated
 urls 
 bookmarkable as well?

 thanks,  



 Johan Karlberg wrote:
 In your application class's init method, mount the page with an 
 appropriate URL strategy. I have mounts like these in my current code.

 mount(new HybridUrlCodingStrategy(/plist, PlistPage.class));

 Johan

 chickabee wrote:
 I have the nice url:
 https://lilo:8443/whisky/app/plist/

 When I go to the next page using the page navigator then the url
 becomes:
 https://lilo:8443/whisky/app/?wicket:interface=:16:1:::

 When I go to next page again  then the url becomes:
 https://lilo:8443/whisky/app/?wicket:interface=:16:2:::

 How do I make these Page Navigated Urls Nicer, for example:
 https://lilo:8443/whisky/app/plist/page/1
 https://lilo:8443/whisky/app/plist/page/2

 Any pointer in right direction is appreciated, Thanks in advance. 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 
 
  
 

-- 
View this message in context: 
http://www.nabble.com/PageNavigator-Vs-Nice-Url-tf4421682.html#a12614975
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread igor . vaynberg
no one is asking anyone here to become a maven guru. All we are asking
is that they use it to generate a quickstart project, which simply
involves following the directions.

-igor

On 9/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 maven maven maven, that is if all developers all over the world knows what
 maven is. Ant was what i first knew until i started hearing maven and infact
 it was mainly because of wicket that i learnt maven early before a netbeans
 module came out.

 so really not all developers will have some patience to first google maven
 fundamentals which is why i believe in:

 1. Step 1, Install Your IDE (Everybody knows that)
 2. Step 2, Install This Plugin (IDEs make that simple)
 3. Step 3, Create a new Wicket Project and then BOOM it works without even a
 line of code yet (as much as i hated SWT, i learnt it this way)

 And lets remember the success of the ASP.NET family, you install Visual
 Studio and then BOOM your sample project is ready. Then you see this 2 days
 old developer feeling like he can code every website. that feeling is the
 success of every developer tool and dont let us forget that

 The Java community has a plethora of tools but as newer developers come on
 board, they need a clean entrance and maven is not what you learn at the
 early stage of your developer career (even though its simple to use, infact
 simpler than i thought cuz i hated Ant)


 My take,

 While off course maven is still the used tool, but the community  should
 bring the useful IDE plugins to the forefront for starters

 Thanks

 On 9/11/07, Gerolf Seitz [EMAIL PROTECTED] wrote:
 
  On 9/10/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  
  
   I haven't used an Eclipse plugin for maven since the command line
   version works really well and my previous experiences with mevenide
   were less than ok (talking about 2 years ago!)
  
   Martijn
 
 
 
  there seem to be a new maven-eclipse-integration plugin in town:
  http://code.google.com/p/q4e/
  it's supposed to be part of the eclipse foundation.
  i haven't tried it out yet, but as i didn't really like m2eclipse, i will
  definitely give it a shot.
 
gerolf
 
  --
   Buy Wicket in Action: http://manning.com/dashorst
   Apache Wicket 1.3.0-beta3 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread jlawrence
Hi I have been trying to use the quickstart for beta3 with the Maven command as 
stated on the wicket site and it is not working. 

Build Error
Unable to download file...
Org.apache.wicket:wicket-archetype-quickstart:jar:1.3.0-beta3

Etc..

Can anyone please advise.

Jim
--
Sent with Instant Email from T-Mobile

-Original Message-
From: [EMAIL PROTECTED]
Date: Tue, 11 Sep 2007 07:11:20 
To:users@wicket.apache.org
Subject: Re: First Day Disgust!

no one is asking anyone here to become a maven guru. All we are asking
is that they use it to generate a quickstart project, which simply
involves following the directions.

-igor

On 9/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 maven maven maven, that is if all developers all over the world knows what
 maven is. Ant was what i first knew until i started hearing maven and infact
 it was mainly because of wicket that i learnt maven early before a netbeans
 module came out.

 so really not all developers will have some patience to first google maven
 fundamentals which is why i believe in:

 1. Step 1, Install Your IDE (Everybody knows that)
 2. Step 2, Install This Plugin (IDEs make that simple)
 3. Step 3, Create a new Wicket Project and then BOOM it works without even a
 line of code yet (as much as i hated SWT, i learnt it this way)

 And lets remember the success of the ASP.NET family, you install Visual
 Studio and then BOOM your sample project is ready. Then you see this 2 days
 old developer feeling like he can code every website. that feeling is the
 success of every developer tool and dont let us forget that

 The Java community has a plethora of tools but as newer developers come on
 board, they need a clean entrance and maven is not what you learn at the
 early stage of your developer career (even though its simple to use, infact
 simpler than i thought cuz i hated Ant)


 My take,

 While off course maven is still the used tool, but the community  should
 bring the useful IDE plugins to the forefront for starters

 Thanks

 On 9/11/07, Gerolf Seitz [EMAIL PROTECTED] wrote:
 
  On 9/10/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  
  
   I haven't used an Eclipse plugin for maven since the command line
   version works really well and my previous experiences with mevenide
   were less than ok (talking about 2 years ago!)
  
   Martijn
 
 
 
  there seem to be a new maven-eclipse-integration plugin in town:
  http://code.google.com/p/q4e/
  it's supposed to be part of the eclipse foundation.
  i haven't tried it out yet, but as i didn't really like m2eclipse, i will
  definitely give it a shot.
 
gerolf
 
  --
   Buy Wicket in Action: http://manning.com/dashorst
   Apache Wicket 1.3.0-beta3 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Localize AjaxButton

2007-09-11 Thread Tim Lantry
How do you localize the 'label' on an AjaxButton component?


Re: Localize AjaxButton

2007-09-11 Thread Al Maw

Tim Lantry wrote:

How do you localize the 'label' on an AjaxButton component?


Off the top of my head, try:

AjaxButton foo = new AjaxButton(foo);
foo.setModel(new StringResourceModel(propertyKey));


Regards,

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wasp/Swarm Questions was Re: Component parent null after replace

2007-09-11 Thread Anthony Schexnaildre
This makes sense. Where would you stick the user on the requestcycle?  
It's not obvious from the javadocs. Is there a wicket way?


-Anthony

On Sep 11, 2007, at 10:05 AM, Maurice Marrink wrote:


Martijn, you are absolutely right, i forgot we moved the user from the
session to the requestcycle. Just keep the id for your user in the
session and keep the actual user for this request in the requestcycle.
This way each thread will have its own instance of the user.

Maurice

On 9/11/07, Martijn Dashorst [EMAIL PROTECTED] wrote:

Just a quick note: storing objects that are not thread safe in your
session is asking for trouble. While Wicket does limit page  
processing

to one request at a time, other requests like resources can run in
parallel. What does this mean?

One thing that comes to mind is that when two requests for the same
session are being processed, and one is done before the other it will
detach the user model. What are the semantics now for the other
thread?

For instance if you have a detachable model storing a User object in
your session and use Hibernate you are in a world of hurt, or rather
Hibernate will sometimes bork because your Session tries to attach  
the
single User instance to multiple Hibernate Session objects.  
Exceptions

will be having a party.

Now this is not meant as a Hibernate bashing reply, it just happens
that Hibernate correctly detects multiple threads modifying the same
object's state and stops tampering with it.

Martijn

--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wasp/Swarm Questions was Re: Component parent null after replace

2007-09-11 Thread Martijn Dashorst
Create your custom request cycle, and add a getter that uses the
session's username/id to retrieve the user from the database, and
cache it locally.

Martijn

On 9/11/07, Anthony Schexnaildre [EMAIL PROTECTED] wrote:
 This makes sense. Where would you stick the user on the requestcycle?
 It's not obvious from the javadocs. Is there a wicket way?

 -Anthony

 On Sep 11, 2007, at 10:05 AM, Maurice Marrink wrote:

  Martijn, you are absolutely right, i forgot we moved the user from the
  session to the requestcycle. Just keep the id for your user in the
  session and keep the actual user for this request in the requestcycle.
  This way each thread will have its own instance of the user.
 
  Maurice
 
  On 9/11/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  Just a quick note: storing objects that are not thread safe in your
  session is asking for trouble. While Wicket does limit page
  processing
  to one request at a time, other requests like resources can run in
  parallel. What does this mean?
 
  One thing that comes to mind is that when two requests for the same
  session are being processed, and one is done before the other it will
  detach the user model. What are the semantics now for the other
  thread?
 
  For instance if you have a detachable model storing a User object in
  your session and use Hibernate you are in a world of hurt, or rather
  Hibernate will sometimes bork because your Session tries to attach
  the
  single User instance to multiple Hibernate Session objects.
  Exceptions
  will be having a party.
 
  Now this is not meant as a Hibernate bashing reply, it just happens
  that Hibernate correctly detects multiple threads modifying the same
  object's state and stops tampering with it.
 
  Martijn
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0-beta3 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HOWTO create a new ResourceReference

2007-09-11 Thread Nathan Hamblen

Ryan Sonnek wrote:

Okay folks, I think I'm stuck.  After releasing my wicketstuff project that
creates RSS feeds [1], it was suggested to use a WebResource instead of a
WebPage to create RSS/Atom feeds [2].  Makes sense to me, but I'm really
getting stuck on how to create a new ResourceReference for my new
FeedResource [3]?


--page template--
link wicket:id=rss rel=alternate type=application/rss+xml 
title=RSS href=# /

--page class--
add(new ResourceLink(rss, new ResourceReference(MyApplication.class, 
resource_name)));

--application class--
getSharedResources().add(MyApplication.class, resource_name, null, null, 
new FeedResource());


Nathan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow customisation ?

2007-09-11 Thread Matej Knopp
Yeah, I must admit, that modal window is not the most customizable
piece of code out there. It is possible, but require a rather deep css
and modal window knowledge.

It's on my todo list to rewrite and modularize it, unfortunately I'm
rather busy lately.

-Matej

On 9/11/07, Anthony J Webster [EMAIL PROTECTED] wrote:
 hmm it uses image maps for the frame graphics :/
 I suppose I could rewrite it and strip it of most of its functionality

 - Original Message -
 From: Frank Bille [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Sent: Tuesday, September 11, 2007 3:15 PM
 Subject: Re: ModalWindow customisation ?


  It's in the stylesheet. Some time ago I did a custom skin for it. The
  project died, so I don't have it anymore, but it's not that hard (read: if
  I
  can do it, you can do it)
 
  Frank
 
  On 9/11/07, Anthony J Webster [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Is there any way to customise the actual frame of a ModalWindow?
  Preferably I'd like to get rid of the frame entirely or just replace it
  with
  a simple box of the same colour as the enclosed page/panel without the
  top-right close button.
 
  Any ideas?
 
  Many Thanks
 
  Anthony
 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Ayodeji Aladejebi
at least i see a lot of maven related issues on the forum, not that maven is
not perfect but some starters who dont know it well may think there is
some big stuff about any issue they may have when setting it up and setting
up sample projects. today I have a plugin build (not fully stable) that
generates a wicket sample project without any errors and runs fine,

my take again,

ppl who complain about maven start up should be directed to stuffs like dat
and not being forced to use maven for their first sample project.

i have already overcome all those cups and so am not at all bothered about
what wicket decides to use, i already see that wicket advantages far
outweight its so to say, disadvantages so wherever wicket goes, i follow :)
but am just concerned for some ppl yu know


On 9/11/07, Martijn Dashorst [EMAIL PROTECTED] wrote:

 On 9/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  yu see what i mean? :) this guy now cared to ask, someone else will get
  bored there and leave :)

 No I don't see what you mean.

 Martijn

 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0-beta3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: First Day Disgust!

2007-09-11 Thread Eelco Hillenius
On 9/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 at least i see a lot of maven related issues on the forum, not that maven is
 not perfect but some starters who dont know it well may think there is
 some big stuff about any issue they may have when setting it up and setting
 up sample projects. today I have a plugin build (not fully stable) that
 generates a wicket sample project without any errors and runs fine,

 my take again,

 ppl who complain about maven start up should be directed to stuffs like dat
 and not being forced to use maven for their first sample project.

 i have already overcome all those cups and so am not at all bothered about
 what wicket decides to use, i already see that wicket advantages far
 outweight its so to say, disadvantages so wherever wicket goes, i follow :)
 but am just concerned for some ppl yu know

I guess it's just a matter of communicating the quickstart options
more clearly. Would be great if someone outside of the team would make
a proposal of that. Along the lines of get started using maven/
ant/ eclipse/ netbeans/ idea/ ...

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default focus behavior for ajax request

2007-09-11 Thread Carlos Pita
 behavior if the event is onblur. Can you submit RFE?

Done. I filed it as minor improvement
https://issues.apache.org/jira/browse/WICKET-957.

 Because currently there is no way during ajax processing to determine
 that the event was a focus related one. I think that it's good to

Maybe setting focusComponent to null by default for any
AjaxEventBehavior whose event happens to be onblur or onchange will be
enough. Even if done at the AjaxFormComponentUpdatingBehavior imo this
will be a great relief for people who are implementing their first
wicket ajax-validated forms and haven't a clue about the cause of such
a strange focus behavior that suddenly possesses their browsers.

Regards,
Carlos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Localize AjaxButton

2007-09-11 Thread Craig Lenzen

I think the better way of doing this is;

input type=button wicket:id=foo value=preview
wicket:message=value:propertyKey/


Al Maw wrote:
 
 Tim Lantry wrote:
 How do you localize the 'label' on an AjaxButton component?
 
 Off the top of my head, try:
 
 AjaxButton foo = new AjaxButton(foo);
 foo.setModel(new StringResourceModel(propertyKey));
 
 
 Regards,
 
 Al
 -- 
 Alastair Maw
 Wicket-biased blog at http://herebebeasties.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Localize-AjaxButton-tf4423210.html#a12619476
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Konstantin Ignatyev
You are absolutely correct: lots of issues with Maven all the time and it would 
be really beneficial if various Lets Get Started tutorials do not rely on 
that and rely on Ant only to do everything they need to do.

Ideally all the libraries will come with it too, and if download size is too 
big then ant's get command is here to resque. 

It is less sexy than transitive dependencies resolution etc. But it is near 
bulletproof and it is that doctor is ordered for tutorials. Maven is  unstable 
because of widespread practice of using version ranges for dependencies and 
plugins and it makes build unrepeatable because build depends on server side. 
There are pro and contra arguments of course but I think that for Tutorials 
there are no pro-s in Maven.
 
Konstantin Ignatyev 
 

 
PS: If this is a typical day on planet earth, humans will add fifteen million 
tons of carbon to the atmosphere, destroy 115 square miles of tropical 
rainforest, create seventy-two miles of desert, eliminate between forty to one 
hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of 
CFCs to the stratosphere, and increase their population by 263,000
 
Bowers, C.A.  The Culture of Denial:  Why the Environmental Movement Needs a 
Strategy for Reforming Universities and Public Schools.  New York:  State 
University of New York Press, 1997: (4) (5) (p.206)

- Original Message 
From: Ayodeji Aladejebi [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, September 11, 2007 9:27:55 AM
Subject: Re: First Day Disgust!

at least i see a lot of maven related issues on the forum, not that maven is
not perfect but some starters who dont know it well may think there is
some big stuff about any issue they may have when setting it up and setting
up sample projects. today I have a plugin build (not fully stable) that
generates a wicket sample project without any errors and runs fine,

my take again,

ppl who complain about maven start up should be directed to stuffs like dat
and not being forced to use maven for their first sample project.

i have already overcome all those cups and so am not at all bothered about
what wicket decides to use, i already see that wicket advantages far
outweight its so to say, disadvantages so wherever wicket goes, i follow :)
but am just concerned for some ppl yu know


On 9/11/07, Martijn Dashorst [EMAIL PROTECTED] wrote:

 On 9/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  yu see what i mean? :) this guy now cared to ask, someone else will get
  bored there and leave :)

 No I don't see what you mean.

 Martijn

 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0-beta3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Eelco Hillenius
On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:
 You are absolutely correct: lots of issues with Maven all the time and it 
 would be really beneficial if various Lets Get Started tutorials do not 
 rely on that and rely on Ant only to do everything they need to do.

 Ideally all the libraries will come with it too, and if download size is too 
 big then ant's get command is here to resque.

 It is less sexy than transitive dependencies resolution etc. But it is near 
 bulletproof and it is that doctor is ordered for tutorials. Maven is  
 unstable because of widespread practice of using version ranges for 
 dependencies and plugins and it makes build unrepeatable because build 
 depends on server side. There are pro and contra arguments of course but I 
 think that for Tutorials there are no pro-s in Maven.

I think we have enough users by now who support this view. The next
big question is, who wants to contribute? Wicket-stuff is a great
place to put it in first (we can move adopt it as a core project once
we all agree).

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Konstantin Ignatyev
I will try to cut some time to do that.
 
Konstantin Ignatyev 
 

 
PS: If this is a typical day on planet earth, humans will add fifteen million 
tons of carbon to the atmosphere, destroy 115 square miles of tropical 
rainforest, create seventy-two miles of desert, eliminate between forty to one 
hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of 
CFCs to the stratosphere, and increase their population by 263,000
 
Bowers, C.A.  The Culture of Denial:  Why the Environmental Movement Needs a 
Strategy for Reforming Universities and Public Schools.  New York:  State 
University of New York Press, 1997: (4) (5) (p.206)

- Original Message 
From: Eelco Hillenius [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, September 11, 2007 10:52:16 AM
Subject: Re: First Day Disgust!

On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:
 You are absolutely correct: lots of issues with Maven all the time and it 
 would be really beneficial if various Lets Get Started tutorials do not 
 rely on that and rely on Ant only to do everything they need to do.

 Ideally all the libraries will come with it too, and if download size is too 
 big then ant's get command is here to resque.

 It is less sexy than transitive dependencies resolution etc. But it is near 
 bulletproof and it is that doctor is ordered for tutorials. Maven is  
 unstable because of widespread practice of using version ranges for 
 dependencies and plugins and it makes build unrepeatable because build 
 depends on server side. There are pro and contra arguments of course but I 
 think that for Tutorials there are no pro-s in Maven.

I think we have enough users by now who support this view. The next
big question is, who wants to contribute? Wicket-stuff is a great
place to put it in first (we can move adopt it as a core project once
we all agree).

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Eelco Hillenius
On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:
 I will try to cut some time to do that.

Cheers!

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-11 Thread Martin Funk

Would it be impolite to ask if the language of the meeting could be English?

I think I'd come anyway, but if it all talking were in Nederlands, my 
level of understanding would drop drastically.


Coming from Düsseldorf, probably by train, Amsterdam or Amersfoort don't 
seem to make a big difference. A recommendation for a hotel might be 
more important.


See ya,

Martin

Danny van Bruggen schrieb:

I'm interested. I've only just started, so every topic is helpful to
me :) Amersfoort is fine for me.

Danny

On 9/7/07, Johan Compagner [EMAIL PROTECTED] wrote:
  

hi,

I can organize one if there is enough interest
Martijn and i will be there then.

And for example if people are also interested in the wicket security i will
also drag Maurice to the table.

johan




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WicketTester and Page parameters Wicket Example Unit tests?

2007-09-11 Thread wicket user
Ok,

Two questions really:

1) I've got a page that gets hit by an outside credit card merchant once
they have validated the card, they post me my transaction ID along with a
whole host of other parameters. Getting them from the request is easy in the
page itself but trying to unit test it is driving me nuts. Basically I want
to start the page with parameters already loaded, it has to be staring me in
the face but I haven't had any luck.

2) Are there unit tests for all the examples that are on
http://wicketstuff.org/wicket13/ ? If they are available it would be nice to
have the ability of viewing the tests alongside the htm and source, that way
you can see how to build and break it at the same time. Unless of course I'm
the only one doing a combination of FDD/TDD?

Thanks again,
Simon

ps. I have been snooping around hoping to actually contribute more then
questions but all the easy ones are answered already :-)


Re: First Day Disgust!

2007-09-11 Thread Konstantin Ignatyev
Maven guru can use Maven to create and maintain such package - it should be 
just another type of assembly, right? :)
 
Konstantin Ignatyev 
 


- Original Message 
From: jweekend [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, September 11, 2007 12:21:53 PM
Subject: Re: First Day Disgust!


I bumped into Jimmy. It just turns out that his proxy was not set up. Having
seen this sort of problem in other corporate situations (firewalls, proxies,
locally renewed passwords etc) I guessed what it might be straight away and
when he changed the settings (in the right file) it just started to work (as
usual with Wicket). 
He is now back on track, spending time on Wicket (rather than Maven2), and
enjoying it again. This is not an atypical story - in fact the person who
started this thread because he was so disgusted in the packaging of the
examples etc is now helping other people with their Wicket questions, just 3
days later! I was intending not to get involved on this, now far too long
and too all-purposeified  thread, but the mood has changed somewhat.

Yes, a zip file with everything in it is a decent option for newcomers (but
who's going to maintain it and keep it up to date? - maybe when 1.3 final is
released this could be feasible), but it also has a lot of drawbacks, many
of which have already been touched on in this thread.

I still say that assuming you have a working Maven2 set up already or are
able to achieve this without too much pain including setting up proxies
etc..., and this, AFAICS, is where more than a few people get frustrated and
start, totally incorrectly but perhaps understandably, thinking that Wicket
is broken or hard to get started with, following the instructions now linked
to from the Wicket homepage make it _really_ so fast and ever so easy to get
up and running with Wicket, with all the advantages of the repository etc .

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




Martijn Dashorst wrote:
 
 Did you type that capitalized Org yourself or is that something your
 email client did?
 
 Org.apache.wicket:wicket-archetype-quickstart:jar:1.3.0-beta3
   ^
 
 I guess you have made a typing error, since I have been able to use it
 (as have many others).
 
 Martijn
 
 
 On 9/11/07, jlawrence [EMAIL PROTECTED] wrote:
 Hi I have been trying to use the quickstart for beta3 with the Maven
 command as stated on the wicket site and it is not working.

 Build Error
 Unable to download file...
 Org.apache.wicket:wicket-archetype-quickstart:jar:1.3.0-beta3

 Etc..

 Can anyone please advise.

 Jim
 --
 Sent with Instant Email from T-Mobile

 -Original Message-
 From: [EMAIL PROTECTED]
 Date: Tue, 11 Sep 2007 07:11:20
 To:users@wicket.apache.org
 Subject: Re: First Day Disgust!

 no one is asking anyone here to become a maven guru. All we are asking
 is that they use it to generate a quickstart project, which simply
 involves following the directions.

 -igor

 On 9/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  maven maven maven, that is if all developers all over the world knows
 what
  maven is. Ant was what i first knew until i started hearing maven and
 infact
  it was mainly because of wicket that i learnt maven early before a
 netbeans
  module came out.
 
  so really not all developers will have some patience to first google
 maven
  fundamentals which is why i believe in:
 
  1. Step 1, Install Your IDE (Everybody knows that)
  2. Step 2, Install This Plugin (IDEs make that simple)
  3. Step 3, Create a new Wicket Project and then BOOM it works without
 even a
  line of code yet (as much as i hated SWT, i learnt it this way)
 
  And lets remember the success of the ASP.NET family, you install Visual
  Studio and then BOOM your sample project is ready. Then you see this 2
 days
  old developer feeling like he can code every website. that feeling is
 the
  success of every developer tool and dont let us forget that
 
  The Java community has a plethora of tools but as newer developers come
 on
  board, they need a clean entrance and maven is not what you learn at
 the
  early stage of your developer career (even though its simple to use,
 infact
  simpler than i thought cuz i hated Ant)
 
 
  My take,
 
  While off course maven is still the used tool, but the community 
 should
  bring the useful IDE plugins to the forefront for starters
 
  Thanks
 
  On 9/11/07, Gerolf Seitz [EMAIL PROTECTED] wrote:
  
   On 9/10/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
   
   
I haven't used an Eclipse plugin for maven since the command line
version works really well and my previous experiences with mevenide
were less than ok (talking about 2 years ago!)
   
Martijn
  
  
  
   there seem to be a new maven-eclipse-integration plugin in town:
   http://code.google.com/p/q4e/
   it's supposed to be part of the eclipse foundation.
   i haven't tried it out yet, but as i didn't really like m2eclipse, i
 will
   definitely give 

Re: Default focus behavior for ajax request

2007-09-11 Thread Johan Compagner
see my comments in that issue.
Its not that we have to do something on the serverside this is a clientside
issue.

johan


On 9/11/07, Carlos Pita [EMAIL PROTECTED] wrote:

  behavior if the event is onblur. Can you submit RFE?

 Done. I filed it as minor improvement
 https://issues.apache.org/jira/browse/WICKET-957.

  Because currently there is no way during ajax processing to determine
  that the event was a focus related one. I think that it's good to

 Maybe setting focusComponent to null by default for any
 AjaxEventBehavior whose event happens to be onblur or onchange will be
 enough. Even if done at the AjaxFormComponentUpdatingBehavior imo this
 will be a great relief for people who are implementing their first
 wicket ajax-validated forms and haven't a clue about the cause of such
 a strange focus behavior that suddenly possesses their browsers.

 Regards,
 Carlos

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-11 Thread Martijn Dashorst
I'm comfortable speaking in Engrish, so I have no problem with that.
But I can't vouch for the others

And I'm sure you'll hear some nice Dunglish expressions along the way [1].

Martijn

[1] http://www.dunglish.nl/

On 9/11/07, C. Bergström [EMAIL PROTECTED] wrote:
 Martijn Dashorst wrote:
  Not that I don't want you coming to the user group, but wouldn't it be
  more beneficial for you to attend JavaPolis in december? I'll be
  presenting Wicket there, and we are going to organize a BoF. I assume
  we will need food and beer afterwards, but that is a concern for later
  :) And since JavaPolis caters to an international crowd, the BoF will
  already be in English.
 
 oopse.. I'm so used to everyone speaking english that I forgot this
 would maybe/probably be in Dutch..

 -2

 ./C

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-11 Thread Eelco Hillenius
On 9/11/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 I'm comfortable speaking in Engrish, so I have no problem with that.
 But I can't vouch for the others

 And I'm sure you'll hear some nice Dunglish expressions along the way [1].

 Martijn

 [1] http://www.dunglish.nl/

Haha, fantastic! Especially ones like these: http://www.dunglish.nl/?p=253

I wonder how many people will find in Wicket In Action.. we should
notify them! ;-)

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default focus behavior for ajax request

2007-09-11 Thread Carlos Pita
Dunno. Up till now my workaround is to set focusComponent to null at
the server-side for validation purposes. I'm not suggesting that this
should be wicket's approach or something similar, of course.

Regards,
Carlos

On 9/11/07, Johan Compagner [EMAIL PROTECTED] wrote:
 see my comments in that issue.
 Its not that we have to do something on the serverside this is a clientside
 issue.

 johan


 On 9/11/07, Carlos Pita [EMAIL PROTECTED] wrote:
 
   behavior if the event is onblur. Can you submit RFE?
 
  Done. I filed it as minor improvement
  https://issues.apache.org/jira/browse/WICKET-957.
 
   Because currently there is no way during ajax processing to determine
   that the event was a focus related one. I think that it's good to
 
  Maybe setting focusComponent to null by default for any
  AjaxEventBehavior whose event happens to be onblur or onchange will be
  enough. Even if done at the AjaxFormComponentUpdatingBehavior imo this
  will be a great relief for people who are implementing their first
  wicket ajax-validated forms and haven't a clue about the cause of such
  a strange focus behavior that suddenly possesses their browsers.
 
  Regards,
  Carlos
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: New MEAP content for Wicket in Action available

2007-09-11 Thread Eelco Hillenius
On 9/11/07, Scott Swank [EMAIL PROTECTED] wrote:
 I just noticed that Wicket in Action is now available for pre-order on
 amazon.com.  I also noticed this detail:

 Delivery estimate: January 28, 2008 - February 1, 2008

We're woking on having the book done early next month, and then it
takes a while to actually get it printed. It is going to be very hard,
but we're trying, and Martijn is even on unpaid leave to give the book
an extra push.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WicketTester and Page parameters Wicket Example Unit tests?

2007-09-11 Thread Martijn Dashorst
I'll leave 1 for others.

re: 2.

The wicket examples sources are part of the wicket distribution. You
can find them in src/jdk-1.5/wicket-examples

There are tests available, but afaik they are jwebunit tests, and
scheduled to be replaced with WicketTester due to the fact that
jwebunit is now GPL and hence incompatible with Apache.

Wicket itself does contain several wicket tester based tests. So you
may want to take a look at that too.

And you're not alone in your TDD. You may want to take a look at JDave
(jdave.org), which is a nice project for test lovers. I also know that
we have several folks that attain nearly 100% test coverage of their
user interface (during a visit about 18 months ago to the KNAW they
showed me).

Martijn

On 9/11/07, wicket user [EMAIL PROTECTED] wrote:
 Ok,

 Two questions really:

 1) I've got a page that gets hit by an outside credit card merchant once
 they have validated the card, they post me my transaction ID along with a
 whole host of other parameters. Getting them from the request is easy in the
 page itself but trying to unit test it is driving me nuts. Basically I want
 to start the page with parameters already loaded, it has to be staring me in
 the face but I haven't had any luck.

 2) Are there unit tests for all the examples that are on
 http://wicketstuff.org/wicket13/ ? If they are available it would be nice to
 have the ability of viewing the tests alongside the htm and source, that way
 you can see how to build and break it at the same time. Unless of course I'm
 the only one doing a combination of FDD/TDD?

 Thanks again,
 Simon

 ps. I have been snooping around hoping to actually contribute more then
 questions but all the easy ones are answered already :-)



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Any way to apply wicket:link to a with contained img?

2007-09-11 Thread mchack

Was wondering if there was an easy way - Hopefully without code to create a
bookmarkable link where there is a contained image tag. Seems like from a
usability standpoint this would be very common and a little bit cumbersome
if I have to do this in the backing code.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Any-way-to-apply-wicket%3Alink-to-%3Ca%3E-with-contained-%3Cimg%3E--tf4425113.html#a12623060
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: New MEAP content for Wicket in Action available

2007-09-11 Thread Eelco Hillenius
On 9/11/07, Scott Swank [EMAIL PROTECTED] wrote:
 From what I've seen in the MEAP the book look really promising.  I'm
 definitely excited about getting my hands on it.

Thanks. We should have more chapters coming up soon (particularly 5
and 9), and we fixed issues for earlier chapters (including a rewrite
of chapter 1's intro to make it less ranty and focus more on what
Wicket tries to solve).

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Accessing to session scope attribute

2007-09-11 Thread Chris Colman
I need to store some data on a per session basis.

What's the best approach in a wicket environment?

1. Should I create my own session factory and create a custom session
class that stores the data as an attribute?

OR

2. Go the old fashioned route and retrieve the J2?E HttpSession and
store it in that using setAttribute(name, object);   BTW how do we get
access to the J2?E session in Wicket?

OR

3. Something else I haven't thought of yet...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Two small questions

2007-09-11 Thread Eelco Hillenius

 Is this related to this task:
 http://issues.apache.org/jira/browse/WICKET-466

It is. Not sure whether that patch is the best solution though, so I
need some time to look into it.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Eelco Hillenius
On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:

 + generate ant build file to compile project and start jetty. That will make 
 me happy as a lark :)

 I like Maven's idea and promise but implementation is not that great to my 
 taste 

Then maybe Ant + Ivy would be good. Though people might start
complaining about having to have Ivy installed.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Michael Day
I think the examples should include dependencies as possible.  If  
there are license restrictions, include the download links in the  
README.  That said, why does it *really* matter?  I don't have maven  
installed, and I've never had any issues with wicket whatsoever.  I  
haven't tried to compile wicket, though.



On Sep 11, 2007, at 5:30 PM, Eelco Hillenius wrote:


On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:


+ generate ant build file to compile project and start jetty. That  
will make me happy as a lark :)


I like Maven's idea and promise but implementation is not that  
great to my taste 


Then maybe Ant + Ivy would be good. Though people might start
complaining about having to have Ivy installed.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOUNT UNMOUNT-ing path in WebApplication

2007-09-11 Thread Al Maw

Stefan Simik wrote:
I want to thank wicket's developers for the nice product and in second place 
I want to make clear that I am a newbie, so maybe my question is a stupid

one


No, it's an excellent question.


So unmount cannot be succesfully done by removing entry by key,
because there are no previously stored keys with leading / char,
what causes - unmount does not work for me.

Am I right, or am I missing something ? Thank you for advance..


No, you're not. This was a bug that was fixed on July 23rd in SVN.
If you upgrade to 1.3.0-beta3 it should be fixed in that.

Best regards,

Al


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting up a very simple login page

2007-09-11 Thread Cristina

Hi Carlos,

thanks so much for your explanation. Your 1st reply was already helpful as I
was able to notice my mistake after you pointed it out :-). I apologize for
posting sample code with such an obvious mistake in it.

By the way, the page is working as it should now... Best regards,

Cristina



Carlos Pita-4 wrote:
 
 Sorry, I will try to be a bit less laconic this time :). You should be
 creating a blank Employee to set as the model object. It could be
 created from scratch upon each incoming request using a detachable
 model (for example, if Employee is not Serializable), or just be a
 simple Serializable field of your page or form class with a value
 other than null, of course. In the second case you can instantiate the
 Employee just once, during page creation, and it will be stored into
 the wicket session.
 
 Regards,
 Carlos
 
 On 9/10/07, Carlos Pita [EMAIL PROTECTED] wrote:
  private Employee e;
 [...]
  public LoginForm(final String id) {
  super(id);
  setModel(new CompoundPropertyModel(e));

 Notice that your model is null.

 Regards,
 Carlos

 On 9/10/07, Cristina [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I'm trying to set up a simple login page where the password is
 retrieved
  from the DB if the username exists. [...]
 

-- 
View this message in context: 
http://www.nabble.com/Setting-up-a-very-simple-login-page-tf4419382.html#a12625120
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wasp/Swarm Questions was Re: Component parent null after replace

2007-09-11 Thread Maurice Marrink
Ok, i just finished a SecureContainerLink that should do what your
SecurePanelLink does, but it is a bit less complex. I haven't checked
it in yet or tested it for that matter but hope to hear from you if
this is what you meant. If so i will make it a part of wasp.

Maurice

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the License); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.wicket.security.components.markup.html.links;

import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.WicketRuntimeException;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.model.IModel;
import org.apache.wicket.security.actions.AbstractWaspAction;
import org.apache.wicket.security.checks.ISecurityCheck;
import org.apache.wicket.security.checks.LinkSecurityCheck;
import org.apache.wicket.security.components.ISecureComponent;
import org.apache.wicket.security.components.SecureComponentHelper;

/**
 * A secure link to handle panel replacements or any other type of
 * [EMAIL PROTECTED] MarkupContainer}s. It is also usable as a link to switch 
between 2 or
 * more panels. Security is enforced on the replacing class.
 *
 * @author marrink
 */
public abstract class SecureContainerLink extends Link implements
ISecureComponent
{
/**
 *
 */
private static final long serialVersionUID = 1L;

private Class replacementClass;
private MarkupContainer containerParent;
private String containerId;

/**
 * Constructs a new replacement link.
 *
 * @param id
 *id of the link
 * @param replacementPanel
 *the class of the container replacing the component on the
 *supplied parent
 * @param parentOfReplaceablePanel
 *the parent component where the replacement needs to take 
place
 * @param panelId
 *the id of the component to be replaced
 */
public SecureContainerLink(String id, Class replacementPanel,
MarkupContainer parentOfReplaceablePanel, String 
panelId)
{
this(id, null, replacementPanel, parentOfReplaceablePanel, 
panelId);

}

/**
 * Constructs a new replacement link.
 *
 * @param id
 *id of the link
 * @param object
 *model of the link
 * @param replacementPanel
 *the class of the container replacing the component on the
 *supplied parent
 * @param parentOfReplaceablePanel
 *the parent component where the replacement needs to take 
place
 * @param panelId
 *the id of the component to be replaced
 */
public SecureContainerLink(String id, IModel object, Class 
replacementPanel,
MarkupContainer parentOfReplaceablePanel, String 
panelId)
{
super(id, object);
setReplacementClass(replacementPanel);
if (parentOfReplaceablePanel == null)
throw new WicketRuntimeException(Parent required for 
replacing
components.);
containerParent = parentOfReplaceablePanel;
if (panelId == null)
throw new WicketRuntimeException(Id required from 
component to be
replaced.);
containerId = panelId;
}

/**
 * Performs the replacement, only if an actual replacement was 
constructed.
 *
 * @see org.apache.wicket.markup.html.link.Link#onClick()
 * @see #getReplacementFor(Component, String, Class)
 * @throws WicketRuntimeException
 * if a problem occurs in replacing the container.
 */
public final void onClick()
{
Component replaceMe = containerParent.get(containerId);
if (replaceMe == null)
throw new WicketRuntimeException(unable to find child 
with id:  +
containerId
+  on parent:  + containerParent);
Class myReplacementClass = getReplacementClass();
 

Re: Wasp/Swarm Questions was Re: Component parent null after replace

2007-09-11 Thread Anthony Schexnaildre
At first glance this looks more impressive than my first attempt. I  
am just reorganizing my application by storing the User in the  
RequestCycle as was suggested earlier and storing the User id in the  
session.


After that I will give this code a spin and let you know my thoughts.


-Anthony


On Sep 11, 2007, at 11:24 PM, Maurice Marrink wrote:


Ok, i just finished a SecureContainerLink that should do what your
SecurePanelLink does, but it is a bit less complex. I haven't checked
it in yet or tested it for that matter but hope to hear from you if
this is what you meant. If so i will make it a part of wasp.

Maurice

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed  
with

 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License,  
Version 2.0
 * (the License); you may not use this file except in compliance  
with

 * the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or  
implied.

 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.wicket.security.components.markup.html.links;

import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.WicketRuntimeException;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.model.IModel;
import org.apache.wicket.security.actions.AbstractWaspAction;
import org.apache.wicket.security.checks.ISecurityCheck;
import org.apache.wicket.security.checks.LinkSecurityCheck;
import org.apache.wicket.security.components.ISecureComponent;
import org.apache.wicket.security.components.SecureComponentHelper;

/**
 * A secure link to handle panel replacements or any other type of
 * [EMAIL PROTECTED] MarkupContainer}s. It is also usable as a link to switch  
between 2 or

 * more panels. Security is enforced on the replacing class.
 *
 * @author marrink
 */
public abstract class SecureContainerLink extends Link implements
ISecureComponent
{
/**
 *
 */
private static final long serialVersionUID = 1L;

private Class replacementClass;
private MarkupContainer containerParent;
private String containerId;

/**
 * Constructs a new replacement link.
 *
 * @param id
 *id of the link
 * @param replacementPanel
	 *the class of the container replacing the component  
on the

 *supplied parent
 * @param parentOfReplaceablePanel
	 *the parent component where the replacement needs to  
take place

 * @param panelId
 *the id of the component to be replaced
 */
public SecureContainerLink(String id, Class replacementPanel,
MarkupContainer parentOfReplaceablePanel, String 
panelId)
{
this(id, null, replacementPanel, parentOfReplaceablePanel, 
panelId);

}

/**
 * Constructs a new replacement link.
 *
 * @param id
 *id of the link
 * @param object
 *model of the link
 * @param replacementPanel
	 *the class of the container replacing the component  
on the

 *supplied parent
 * @param parentOfReplaceablePanel
	 *the parent component where the replacement needs to  
take place

 * @param panelId
 *the id of the component to be replaced
 */
	public SecureContainerLink(String id, IModel object, Class  
replacementPanel,

MarkupContainer parentOfReplaceablePanel, String 
panelId)
{
super(id, object);
setReplacementClass(replacementPanel);
if (parentOfReplaceablePanel == null)
throw new WicketRuntimeException(Parent required for 
replacing
components.);
containerParent = parentOfReplaceablePanel;
if (panelId == null)
throw new WicketRuntimeException(Id required from 
component to be
replaced.);
containerId = panelId;
}

/**
	 * Performs the replacement, only if an actual replacement was  
constructed.

 *
 * @see org.apache.wicket.markup.html.link.Link#onClick()
 * @see #getReplacementFor(Component, String, Class)
 * @throws WicketRuntimeException
 * if a problem occurs in replacing the container.
 */
public final void onClick()
{

Re: How to get a list of the connected users ?

2007-09-11 Thread Carlos Pita
Maybe you can write a session listener to intercept session
destruction (give a look at servlet api, in particular
HttpSessionListener). For sessions that do have an associated (logged
in) user you can set the isConnected flag to false then.

I wouldn't recommend keeping these flags in a persistent store anyway.
A session manager that keeps an in-memory transient set of logged in
users feels better to me. The users themselves need not to be kept all
the time in memory, of course, that would swallow up resources. This
way, if your application hangs up your currently logged in users state
will disappear together with your sessions.

Regards,
Carlos

On 9/11/07, landry soules [EMAIL PROTECTED] wrote:
 Hello,

 I have to display a list of the connected users in a page of my app. I
 know it sounds definitely dumb, but i don't know how to achieve this...
 Users login to my site (i extended AuthenticatedWebApplication), and
 then i update a isConnected flag in users table.
 Thus i display the connected users in a list view, retrieved by the
 isConnected flag.
 It implies of course that users will use a logoff button when they
 leave, which i don't believe they will do...
 I'm aware it's not a Wicket related problem, but a more generally web
 apps problem, but what is the best solution to deal with this ?
 Thanks for your answers.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any way to apply wicket:link to a with contained img?

2007-09-11 Thread mchack

I think it's a common case in most if not all web apps (hyperlinked images).
It is so common that having to add code would cumbersome. I appreciate the
component oriented aspect of the framework but really want to use it for
more leveraged UI elements.

I guess what I am looking to build is something analogous to the
wicket:link tag that will work when encapsulating an   aimg../ 
sequence. I assume this is possible and will review the code behind the
wicket:link component.  This will make it possible to achieve the
appropriate behavior directly in the markup.

Thanks


Carlos Pita-4 wrote:
 
 If it's such a common case in your application write a (trivial)
 component for it, and add it to your hierarchy with a oneliner where
 it's needed. That's what componentization is mostly about, after all.
 
 Regards,
 Carlos
 
 

-- 
View this message in context: 
http://www.nabble.com/Any-way-to-apply-wicket%3Alink-to-%3Ca%3E-with-contained-%3Cimg%3E--tf4425113.html#a12625672
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get a list of the connected users ?

2007-09-11 Thread John Krasnay
On Tue, Sep 11, 2007 at 11:24:38PM +0200, landry soules wrote:
 Hello,
 
 I have to display a list of the connected users in a page of my app. I 
 know it sounds definitely dumb, but i don't know how to achieve this...
 Users login to my site (i extended AuthenticatedWebApplication), and 
 then i update a isConnected flag in users table.
 Thus i display the connected users in a list view, retrieved by the 
 isConnected flag.
 It implies of course that users will use a logoff button when they 
 leave, which i don't believe they will do...

Implement an HttpSessionListener that clears the flag when the session
is destroyed, and register it in your web.xml. This will handle both the
case when they press the Logout button and when the session expires due
to inactivity.

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html

jk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing to session scope attribute

2007-09-11 Thread Carlos Pita
From wicket.Session javadoc:

Arbitrary objects can be attached to a Session by installing a session
factory on your Application class which creates custom Session
subclasses that have typesafe properties specific to the application
(see Application for details). To discourage non-typesafe access to
Session properties, no setProperty() or getProperty() method is
provided.


That said, if you still want to set type unsafe properties, you can
always access the HttpSession as
((WebRequest)getRequest()).getHttpServletRequest().getSession().

Also, if you use spring to manage your application layer you may want
(I don't :)) to use a session scoped bean.

Regards,
Carlos

On 9/11/07, Chris Colman [EMAIL PROTECTED] wrote:
 I need to store some data on a per session basis.

 What's the best approach in a wicket environment?

 1. Should I create my own session factory and create a custom session
 class that stores the data as an attribute?

 OR

 2. Go the old fashioned route and retrieve the J2?E HttpSession and
 store it in that using setAttribute(name, object);   BTW how do we get
 access to the J2?E session in Wicket?

 OR

 3. Something else I haven't thought of yet...

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any way to apply wicket:link to a with contained img?

2007-09-11 Thread Carlos Pita
From my own experience most of the times the images in those links are
taken from properties of some entity (say product or user) that is
ultimately comming from a model, not just static resources. So you
can't avoid the code counterpart anyway.

Reagrds,
Carlos

On 9/11/07, mchack [EMAIL PROTECTED] wrote:

 I think it's a common case in most if not all web apps (hyperlinked images).
 It is so common that having to add code would cumbersome. I appreciate the
 component oriented aspect of the framework but really want to use it for
 more leveraged UI elements.

 I guess what I am looking to build is something analogous to the
 wicket:link tag that will work when encapsulating an   aimg../
 sequence. I assume this is possible and will review the code behind the
 wicket:link component.  This will make it possible to achieve the
 appropriate behavior directly in the markup.

 Thanks


 Carlos Pita-4 wrote:
 
  If it's such a common case in your application write a (trivial)
  component for it, and add it to your hierarchy with a oneliner where
  it's needed. That's what componentization is mostly about, after all.
 
  Regards,
  Carlos
 
 

 --
 View this message in context: 
 http://www.nabble.com/Any-way-to-apply-wicket%3Alink-to-%3Ca%3E-with-contained-%3Cimg%3E--tf4425113.html#a12625672
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any way to apply wicket:link to a with contained img?

2007-09-11 Thread Eelco Hillenius
 Was wondering if there was an easy way - Hopefully without code to create a
 bookmarkable link where there is a contained image tag. Seems like from a
 usability standpoint this would be very common and a little bit cumbersome
 if I have to do this in the backing code.

I think this already works. Did you try embedding img tags in
wicket:link sections? Or maybe I don't understand you...

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Evan Chooly
You could also look at how qwicket uses ant+maven tasks to build a system.
The maven tasks handle downloading dependencies and ant does everything
else.  I know there's still that dependency on maven libs but it's just for
the dependencies.  And that's still miles ahead of using get to manage
dependencies.  If you'd rather add a get for all the dependencies and
depdendencies of dependencies and dependencies of ...  well, you're probably
beyond all hope of help to start with.

There may or may not be issues with repository availability but if you put
something like artifactory between you and the maven repositories, most of
those issues go away.  In addition, you can deploy your own dependencies
locally that have no maven presence anywhere and continue to use the same
dependency definition scheme throughout your project.

I don't like maven much either but I'd personally not manage my dependencies
by hand.

On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:

 I like Ivy but I think that you are precisely correct: people will
 complain. I think that Ant's get command would be ideal and better than
 list of dependencies in README because it will explicitly point to the
 sources and it is easy to modify repository host if necessary.


 Konstantin Ignatyev


 - Original Message 
 From: Eelco Hillenius [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Sent: Tuesday, September 11, 2007 2:30:21 PM
 Subject: Re: First Day Disgust!

 On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:
 
  + generate ant build file to compile project and start jetty. That will
 make me happy as a lark :)
 
  I like Maven's idea and promise but implementation is not that great to
 my taste 

 Then maybe Ant + Ivy would be good. Though people might start
 complaining about having to have Ivy installed.

 Eelco

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




How to remove a page from Wicket's back button memory?

2007-09-11 Thread Justin Morgan (Logic Sector)

Hi,

Okay, another newbie question.  :)

I have some secured pages that require a user login.  The main page  
(unsecured) has direct links to these secured pages.  If the user  
tries to access one of these secured pages without being logged in, I  
throw a restartresponseexception that takes them to the login page.   
Upon login page submission they continue to the original destination  
(so far so good).


However, if the user clicks the Back button they go back to the login  
page (as expected).  However, if they re-enter their credentials and  
submit the login page again, their original destination is gone, so  
the login page just goes back to the login page again.  There's no  
other logical place for them to go, either, so I'd like to simply  
chop the login page from the Back button memory.


My question is:  How can I programmatically remove a previously- 
visited page (i.e., login page) so that if the user hits the Back  
button they skip that page (i.e., they go directly back to the main  
page instead of the login page)?


Thanks for any info,

Justin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Day Disgust!

2007-09-11 Thread Konstantin Ignatyev
If you'd rather add a get for all the dependencies and
depdendencies of dependencies and dependencies of ...  well, you're probably
beyond all hope of help to start with.
Well, that is why 'get' is better :) - via transitive dependencies usually we 
get s many  unnecessary jars that is creates appearance of monstrous needs 
of an application. 

Transitive dependencies are nice and can work (see Gentoo) but Maven handles 
them IMO rather poorly. 

But the fact that you have described makes me believe that it is dead easy to 
replace maven with pure Ant.



- Original Message 
From: Evan Chooly [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, September 11, 2007 6:15:11 PM
Subject: Re: First Day Disgust!

You could also look at how qwicket uses ant+maven tasks to build a system.
The maven tasks handle downloading dependencies and ant does everything
else.  I know there's still that dependency on maven libs but it's just for
the dependencies.  And that's still miles ahead of using get to manage
dependencies.  If you'd rather add a get for all the dependencies and
depdendencies of dependencies and dependencies of ...  well, you're probably
beyond all hope of help to start with.

There may or may not be issues with repository availability but if you put
something like artifactory between you and the maven repositories, most of
those issues go away.  In addition, you can deploy your own dependencies
locally that have no maven presence anywhere and continue to use the same
dependency definition scheme throughout your project.

I don't like maven much either but I'd personally not manage my dependencies
by hand.

On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:

 I like Ivy but I think that you are precisely correct: people will
 complain. I think that Ant's get command would be ideal and better than
 list of dependencies in README because it will explicitly point to the
 sources and it is easy to modify repository host if necessary.


 Konstantin Ignatyev


 - Original Message 
 From: Eelco Hillenius [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Sent: Tuesday, September 11, 2007 2:30:21 PM
 Subject: Re: First Day Disgust!

 On 9/11/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:
 
  + generate ant build file to compile project and start jetty. That will
 make me happy as a lark :)
 
  I like Maven's idea and promise but implementation is not that great to
 my taste 

 Then maybe Ant + Ivy would be good. Though people might start
 complaining about having to have Ivy installed.

 Eelco

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



1.3.0-beta2/3 broken in the m2 repo?

2007-09-11 Thread Craig Tataryn
Tried grabbing:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-parent/artifactId
version1.3.0-beta3/version
/dependency

And then:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-parent/artifactId
version1.3.0-beta2/version
/dependency

Each bomb with the Failed to resolve artifact.Missing:1)
org.apache.wicket:wicket-parent:jar:1.3.0-beta2 (same for beta3).

Does work when trying to download directly from:
http://mvnrepository.com/artifact/org.apache.wicket/wicket-parent either.

Not sure if it was someone on the list here that did the initial install, if
so, could you take a look?

Craig.


Re: First Day Disgust!

2007-09-11 Thread Jan Kriesten

 (though people might argue that we could even replace logging with JDK
 logging)

don't even think about it :D

regards, --- jan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 1.3.0-beta2/3 broken in the m2 repo?

2007-09-11 Thread Craig Tataryn
Does work when trying to download directly from

Meant Doesn't not Does.

On 9/11/07, Craig Tataryn [EMAIL PROTECTED] wrote:

 Tried grabbing:

 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-parent/artifactId
 version1.3.0-beta3/version
 /dependency

 And then:

 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket-parent/artifactId
 version1.3.0-beta2/version
 /dependency

 Each bomb with the Failed to resolve artifact.Missing:1)
 org.apache.wicket:wicket-parent:jar:1.3.0-beta2 (same for beta3).

 Does work when trying to download directly from:
 http://mvnrepository.com/artifact/org.apache.wicket/wicket-parent either.

 Not sure if it was someone on the list here that did the initial install,
 if so, could you take a look?

 Craig.



Re: BookmarkablePage URL

2007-09-11 Thread Eelco Hillenius
On 9/11/07, V. Jenks [EMAIL PROTECTED] wrote:

 Can anyone help out w/ this?  I'm stumped.  The images are somehow being
 passes as parameters?  It isn't all of the images on the page because some
 of them show up...and they're all in the same folder.  This makes no sense
 to me.

How do you include those images? Did you check you have the same
problem with the latests 1.2.x version as well? Do you have some
example code for us please?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form validation error in Wicket 1.3

2007-09-11 Thread Eelco Hillenius
On 8/27/07, dzenanr [EMAIL PROTECTED] wrote:

 The last major thing for my application to run on Wicket 1.3 are form
 validation errors. They do not appear on the page where the form is.

 In Wicket 1.2 I used the following code to report the error in the form:

 protected void addErrorByKey(String key) {
 String validationError = LocalizedText.getText(this, key);
 error(validationError);
 }

 In Wicket 1.3 I use the following code to report the error in the form:

 protected void addErrorByKey(String key) {
 ValidationError validationError = new ValidationError();
 validationError.addMessageKey(key);
 error(validationError);
 }

 What am I suppose to do to have validation error messages displayed in the
 FeedbackPanel?

You don't get any messages at all?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax operations on Panels nested in Fragments

2007-09-11 Thread Eelco Hillenius
On 8/29/07, Oli Evans [EMAIL PROTECTED] wrote:
 I just lost a few hours on a problem where an ajax operation on a Panel
 nested in a Fragment was failing as my nested panel could not find its
 associated markup. It seems this was because a Fragment will only
 reliably find its markup if you explicitly provide it with the Component
 that contains its markup in the Fragment constructor.

 If you don't, Fragment.getAssociatedMarkupStream() will find its
 markupProvider field is null, and so have to take a guess at where its
 markup might be. If your fragment usage happens to be as a direct child
 of the component that defines the fragment markup then it will all work
 out, but if you have nested it in something like a ListView then it will
 fail.

 ...So watch out kids, if you use fragments, use a constructor that tells
 it where its markup is. Would you like to have to guess who your real
 parents are? I think not.

More people have bumped their head against this issue (including me).
Igor deprecated the parent-less constructors.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exception

2007-09-11 Thread Eelco Hillenius
 What I'm doing on logout is calling the logout-page and there:

 public LogoutPage()
 {
   AuthServiceWebSession.get().logout(); // Invalidates the session
   setResponsePage( LoginPage.class );
 }

 What change might have caused this and how can I circumvent this?

Interesting... So you invalidate the session right away, but then
wicket does a redirect, picks up the same session somehow (even though
it is invalidated) and borkes. Do you call invalidateNow or
invalidate?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get a list of the connected users ?

2007-09-11 Thread Matthijs Wensveen

landry soules wrote:

Hello,

I have to display a list of the connected users in a page of my app. I 
know it sounds definitely dumb, but i don't know how to achieve this...
Users login to my site (i extended AuthenticatedWebApplication), and 
then i update a isConnected flag in users table.
Thus i display the connected users in a list view, retrieved by the 
isConnected flag.
It implies of course that users will use a logoff button when they 
leave, which i don't believe they will do...
I'm aware it's not a Wicket related problem, but a more generally web 
apps problem, but what is the best solution to deal with this ?

Thanks for your answers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

If you don't want to tread on the lower-level servlet API, maybe you 
could do something with WebApplication.sessionDestroyed or 
ISessionStore.unbind. Although I'm not exactly sure when they are called 
(just browsing javadoc, that's all).


Matthijs

--
Matthijs Wensveen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exception

2007-09-11 Thread Jan Kriesten

hi eelco,

 Interesting... So you invalidate the session right away, but then
 wicket does a redirect, picks up the same session somehow (even though
 it is invalidated) and borkes. Do you call invalidateNow or
 invalidate?

invalidate.

it also doesn't matter at which page-state i call this, i tried onDetach(), too.
but that didn't change anything.

regards, --- jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I18n and resource bundles prioritization

2007-09-11 Thread Alex Objelean

JIRA issue created:  https://issues.apache.org/jira/browse/WICKET-959
WICKET-959 


Eelco Hillenius wrote:
 
 Could you open a JIRA issue please so that we can fix either the WIKI or a
 bug?
 
 Eelco
 
 On 8/27/07, Alex Objelean [EMAIL PROTECTED] wrote:

 The
 http://cwiki.apache.org/confluence/display/WICKET/I18n+and+resource+bundles
 wicket wiki page  states that you can use MyApplication.properties for
 site
 wide messages and override these in any of the other properties files..

 But there is a case where this is not true:

 I have a BaseApplicationPage.properties file with the following resource
 message:
 code
 nullValid=All
 /code

 And another, component specific file: NewBookingPeriod.properties with
 the
 same resource message:
 code
 nullValid=Empty Prices
 /code

 I would expect that the latest resource message (Empty Prices) would
 override the generic nullValid resource message. But it doesn't work this
 way.

 My workaround is to change (prepend to nullValid the component id) the
 resource message from NewBookingPeriod.properties to:
 code
 bookingPeriods.nullValid=Empty Prices
 /code
 This way it works. Shouldn't it work also when the
 NewBookingPeriod.properties defines nullValid the same way as
 BaseApplicationPage.properties does?




 --
 View this message in context:
 http://www.nabble.com/I18n-and-resource-bundles-prioritization-tf4334243.html#a12344041
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/I18n-and-resource-bundles-prioritization-tf4334243.html#a12629173
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]