Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread craigdd

The way it sounds is that principal should really be renamed to role.  Roles
typically have 0 or more permissions.

Although if you consider the hive as a mapping of roles to permissions then
you are really back to what I said earlier where swarm is handy if your
application pre-defines the roles that are available.

-Craig


Mr Mean wrote:
> 
> I am open to suggestions for alternate names, or if someone could
> point me to the naming standards :)
> 
> Right now swarm operates the following way: A user is associated with
> 1 or more Subjects, each Subject has 0 or more Principals. Each
> Principal is mapped to 1 or more Permissions.
> Each Permission has 0 or more Actions.
> 
> Permissions and actions are named pretty straight forward i think.
> 
> Maurice
> 
> On 6/29/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> Just my two cents but I think the API should change, or I guess not
>> really
>> the API but the implementation(swarm) to better reflect industry naming
>> standards which will hopefully cut down on the confusion and hopefully
>> make
>> it a little easier to integrate other security frameworks.
>>
>> I use acegi as an example, they have an Authentication object that has a
>> method "getPrincipal" which if you read their javadoc makes it pretty
>> clear
>> that an authenticated entity has one principal, which also seems to fit
>> with
>> JAAS.
>>
>> -Craig
>>
>>
>> Mr Mean wrote:
>> >
>> > Neither am i :) And you could be right about me misusing the
>> > principal, but using the actions of a permission for read write and
>> > then logically separating permissions with read from permissions with
>> > write in different principals does not seem like stretch to me.
>> >
>> > Maurice
>> >
>> > On 6/29/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I understand what you are saying and I see how you have accomplished
>> >> something similar to what I'm trying to do, however it seems to me
>> that
>> >> you
>> >> are miss using the concept of a Principal.  I'm not a security expert
>> but
>> >> a
>> >> principal seems to point to an individual and not with something
>> called
>> >> write.  Write fits a little better into the concepts of ACL.
>> >>
>> >> -Craig
>> >>
>> >>
>> >> Mr Mean wrote:
>> >> >
>> >> >> By the way, I'm not saying wicket security is bad, other than my
>> >> example
>> >> >> I
>> >> >> think it is a well put together framework that beats the hell out
>> of
>> >> >> using
>> >> >> JAAS.
>> >> >
>> >> > Thanks, i appreciate that :)
>> >> >
>> >> >> I've had a pretty good look at wicket security but the conclusion
>> that
>> >> >> I've
>> >> >> come to with that is it only supports the fact that you have pre
>> >> defined
>> >> >> roles within your application.
>> >> >>
>> >> >
>> >> > Well i am not saying it is impossible to declare and add new
>> >> > permissions / principals at runtime but i think it is generally
>> >> > undesirable to do so. Instead you should make your principals fine
>> >> > grained enough to be used as building blocks for  roles.
>> >> >
>> >> >> I'm currently working on a multi tenant web application where the
>> >> >> application provided a set of permission, such and read / write
>> access
>> >> to
>> >> >> an
>> >> >> object and each tenant in the application defines their own role
>> >> heirachy
>> >> >> based on those permissions.
>> >> >
>> >> > This is exactly what we are doing in our application. We have
>> >> > literally +- 1000 principals defined in our system. By allowing the
>> >> > users to group principals together they can build there own roles.
>> We
>> >> > have multiple organizations in our application and each of them can
>> >> > completely redesign there user roles in the system (well only up to
>> a
>> >> > point because we could not allow that, but that aside they could).
>> We
>> >> > provide each organization with a set of default roles as we think
>> will
&

Re: [Wicket-user] wicket security and acl files

2007-06-29 Thread craigdd

Just my two cents but I think the API should change, or I guess not really
the API but the implementation(swarm) to better reflect industry naming
standards which will hopefully cut down on the confusion and hopefully make
it a little easier to integrate other security frameworks.

I use acegi as an example, they have an Authentication object that has a
method "getPrincipal" which if you read their javadoc makes it pretty clear
that an authenticated entity has one principal, which also seems to fit with
JAAS.

-Craig


Mr Mean wrote:
> 
> Neither am i :) And you could be right about me misusing the
> principal, but using the actions of a permission for read write and
> then logically separating permissions with read from permissions with
> write in different principals does not seem like stretch to me.
> 
> Maurice
> 
> On 6/29/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> I understand what you are saying and I see how you have accomplished
>> something similar to what I'm trying to do, however it seems to me that
>> you
>> are miss using the concept of a Principal.  I'm not a security expert but
>> a
>> principal seems to point to an individual and not with something called
>> write.  Write fits a little better into the concepts of ACL.
>>
>> -Craig
>>
>>
>> Mr Mean wrote:
>> >
>> >> By the way, I'm not saying wicket security is bad, other than my
>> example
>> >> I
>> >> think it is a well put together framework that beats the hell out of
>> >> using
>> >> JAAS.
>> >
>> > Thanks, i appreciate that :)
>> >
>> >> I've had a pretty good look at wicket security but the conclusion that
>> >> I've
>> >> come to with that is it only supports the fact that you have pre
>> defined
>> >> roles within your application.
>> >>
>> >
>> > Well i am not saying it is impossible to declare and add new
>> > permissions / principals at runtime but i think it is generally
>> > undesirable to do so. Instead you should make your principals fine
>> > grained enough to be used as building blocks for  roles.
>> >
>> >> I'm currently working on a multi tenant web application where the
>> >> application provided a set of permission, such and read / write access
>> to
>> >> an
>> >> object and each tenant in the application defines their own role
>> heirachy
>> >> based on those permissions.
>> >
>> > This is exactly what we are doing in our application. We have
>> > literally +- 1000 principals defined in our system. By allowing the
>> > users to group principals together they can build there own roles. We
>> > have multiple organizations in our application and each of them can
>> > completely redesign there user roles in the system (well only up to a
>> > point because we could not allow that, but that aside they could). We
>> > provide each organization with a set of default roles as we think will
>> > suit most of them but they are completely free to alter/ rename/
>> > delete/ whatever do with those roles because we do not depend on the
>> > roles but on the underlying principals, which are controlled by us. A
>> > big help is the fact that we made our principals imply each other
>> > (write implies read, etc)  So when a user designs there roles they
>> > don't have to check read access to page A and write access to page A
>> > but can suffice with write access to page A. Although most of our
>> > principals handle a couple of related pages we also have principals
>> > going as deep as individual components. For instance we have a large
>> > data grid, the principals are fine grained enough to give you read or
>> > write access up to the individual cell.
>> >
>> > Correct me if i am wrong but this seems to be what you want too.
>> >
>> > Maurice
>> >
>> >
>> > On 6/28/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I've had a pretty good look at wicket security but the conclusion that
>> >> I've
>> >> come to with that is it only supports the fact that you have pre
>> defined
>> >> roles within your application.
>> >>
>> >> I'm currently working on a multi tenant web application where the
>> >> application provided a set of permission, such and read / write access
>> to
>> >> an
>> >> object and eac

Re: [Wicket-user] wicket security and acl files

2007-06-28 Thread craigdd

I understand what you are saying and I see how you have accomplished
something similar to what I'm trying to do, however it seems to me that you
are miss using the concept of a Principal.  I'm not a security expert but a
principal seems to point to an individual and not with something called
write.  Write fits a little better into the concepts of ACL.

-Craig


Mr Mean wrote:
> 
>> By the way, I'm not saying wicket security is bad, other than my example
>> I
>> think it is a well put together framework that beats the hell out of
>> using
>> JAAS.
> 
> Thanks, i appreciate that :)
> 
>> I've had a pretty good look at wicket security but the conclusion that
>> I've
>> come to with that is it only supports the fact that you have pre defined
>> roles within your application.
>>
> 
> Well i am not saying it is impossible to declare and add new
> permissions / principals at runtime but i think it is generally
> undesirable to do so. Instead you should make your principals fine
> grained enough to be used as building blocks for  roles.
> 
>> I'm currently working on a multi tenant web application where the
>> application provided a set of permission, such and read / write access to
>> an
>> object and each tenant in the application defines their own role heirachy
>> based on those permissions.
> 
> This is exactly what we are doing in our application. We have
> literally +- 1000 principals defined in our system. By allowing the
> users to group principals together they can build there own roles. We
> have multiple organizations in our application and each of them can
> completely redesign there user roles in the system (well only up to a
> point because we could not allow that, but that aside they could). We
> provide each organization with a set of default roles as we think will
> suit most of them but they are completely free to alter/ rename/
> delete/ whatever do with those roles because we do not depend on the
> roles but on the underlying principals, which are controlled by us. A
> big help is the fact that we made our principals imply each other
> (write implies read, etc)  So when a user designs there roles they
> don't have to check read access to page A and write access to page A
> but can suffice with write access to page A. Although most of our
> principals handle a couple of related pages we also have principals
> going as deep as individual components. For instance we have a large
> data grid, the principals are fine grained enough to give you read or
> write access up to the individual cell.
> 
> Correct me if i am wrong but this seems to be what you want too.
> 
> Maurice
> 
> 
> On 6/28/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> I've had a pretty good look at wicket security but the conclusion that
>> I've
>> come to with that is it only supports the fact that you have pre defined
>> roles within your application.
>>
>> I'm currently working on a multi tenant web application where the
>> application provided a set of permission, such and read / write access to
>> an
>> object and each tenant in the application defines their own role heirachy
>> based on those permissions.
>>
>> We are currently using acegi and I'm trying to figure out the best way to
>> bake acl into wicket's components.  Example, a link is set to invisible
>> if
>> the authenticated use doesn't contain a role with the given permission of
>> that link.  So lets say the link is to delete an object, the user must
>> have
>> a role with the permission to delete that object or the link will not
>> show
>> on the page.
>>
>> By the way, I'm not saying wicket security is bad, other than my example
>> I
>> think it is a well put together framework that beats the hell out of
>> using
>> JAAS.
>>
>> -Craig
>>
>>
>> Mr Mean wrote:
>> >
>> > If you mean java Jaas like acl than swarm is what you are looking for.
>> > Optionally if you really want to use jaas and not some look alike i
>> > made up you could practically copy swarm and replace most objects with
>> > there jaas counterparts.
>> > However i chose not to use jaas because  we are using that in one of
>> > our projects right now and although it works it is less than optimal
>> > :) As soon as we make the switch to wicket 1.3.0 jaas will be replaced
>> > by swarm.
>> >
>> > You can also check out the example project here
>> >
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-se

Re: [Wicket-user] wicket security and acl files

2007-06-28 Thread craigdd

I've had a pretty good look at wicket security but the conclusion that I've
come to with that is it only supports the fact that you have pre defined
roles within your application.

I'm currently working on a multi tenant web application where the
application provided a set of permission, such and read / write access to an
object and each tenant in the application defines their own role heirachy
based on those permissions.

We are currently using acegi and I'm trying to figure out the best way to
bake acl into wicket's components.  Example, a link is set to invisible if
the authenticated use doesn't contain a role with the given permission of
that link.  So lets say the link is to delete an object, the user must have
a role with the permission to delete that object or the link will not show
on the page. 

By the way, I'm not saying wicket security is bad, other than my example I
think it is a well put together framework that beats the hell out of using
JAAS.

-Craig


Mr Mean wrote:
> 
> If you mean java Jaas like acl than swarm is what you are looking for.
> Optionally if you really want to use jaas and not some look alike i
> made up you could practically copy swarm and replace most objects with
> there jaas counterparts.
> However i chose not to use jaas because  we are using that in one of
> our projects right now and although it works it is less than optimal
> :) As soon as we make the switch to wicket 1.3.0 jaas will be replaced
> by swarm.
> 
> You can also check out the example project here
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples
> 
> 
> Maurice
> 
> On 6/21/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> wicket's security model is completely generic
>>
>> see IAuthorizationStrategy - it is very abstract and thus can be used to
>> implement any kind of authorization
>>
>> wicket-auth is just an example that implements basic role-based model
>>
>> see wicket-stuff wasp and swarm projects
>>
>> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
>>
>> -igor
>>
>>
>> On 6/21/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >
>> > Is wicket security based only on role based authorization or could it
>> somehow
>> > be used with a more traditional ACL type of file / logic.
>> >
>> > -Craig
>> > --
>> > View this message in context:
>> http://www.nabble.com/wicket-security-and-acl-files-tf3960558.html#a11239024
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-security-and-acl-files-tf3960558.html#a11350022
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] wicket security and acl files

2007-06-21 Thread craigdd

Sorry, I should have been more clear.  I was referring to the wicket security
project.

-Craig 

Eelco Hillenius wrote:
> 
> Any strategy you like. Check out IAuthorizationStrategy.
> 
> Eelco
> 
> 
> On 6/21/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> Is wicket security based only on role based authorization or could it
>> somehow
>> be used with a more traditional ACL type of file / logic.
>>
>> -Craig
>> --
>> View this message in context:
>> http://www.nabble.com/wicket-security-and-acl-files-tf3960558.html#a11239024
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-security-and-acl-files-tf3960558.html#a11239156
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] wicket security and acl files

2007-06-21 Thread craigdd

Is wicket security based only on role based authorization or could it somehow
be used with a more traditional ACL type of file / logic.

-Craig 
-- 
View this message in context: 
http://www.nabble.com/wicket-security-and-acl-files-tf3960558.html#a11239024
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Wicket MADE the grade

2007-06-20 Thread craigdd

Great news Francisco,

So give us the dirt, what made your company ultimately go with wicket? 
Which other frameworks where you considering.

-Craig


Francisco Diaz Trepat - gmail wrote:
> 
> Hi guys, from a discarded framework to the choice in hand. Wicket was
> chosen
> by my company to start a migration project of its products.
> 
> Is there a way to get latest 1.3 beta2 with java 1.5?
> 
> to get started... ;-)
> 
> Thanks to ALL of you for all your help.
> 
> 
> ELCO... THE BOOK MAN. COME ON!!!
> 
> jejejeje
> 
> Well great news for me because wicket kicks ass!!!
> 
> f(t)
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-MADE-the-grade-tf3953568.html#a11218427
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] WASPSession.logout(object)

2007-06-08 Thread craigdd

Just out of curiosity why doesn't the login method take a username/password? 
Or if you want it to be more abstracted create some sort of Credentials
object and update the WASPSession.login to take a LoginContext and
Credentials object.  Then update the LoginContext login to take the
Credential.

-Craig


Mr Mean wrote:
> 
> I just remembered a little snag, this is not going to work because i
> currently use the context to ask if the component, class, model is
> authenticated by this context. So i really need it atm.
> 
> Looks like i need to think this trough a little better. but first i
> gotta grab some sleep.
> 
> Maurice
> 
> On 6/9/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> Sounds like a pretty good idea, I like that much better than having the
>> user
>> need to know they need to cleanup data state in their LoginContext.
>>
>> Another idea might be to have the LoginContext provide a method that
>> returns
>> a unique identifier.  That value could be store internally and the user
>> can
>> pass anything they want, I'd assume the default would be to return the
>> username which is completely fair to be in the session.
>>
>> Without looking too closely at the code you could also use this
>> identifier
>> during logout.
>>
>> -Craig
>>
>>
>> Mr Mean wrote:
>> >
>> > Just thinking out loud here, but it shouldn't be too difficult to
>> > change this into holding a hash of the logincontext instead of the
>> > whole context. Since the equals contract already specifies that equal
>> > object should have equal hashes The equals check can be easily
>> > performed on the hash, HashMap actually uses the hash before it uses
>> > the equal, so i do not see much problems here. And it is not like you
>> > are gonna have an army of logincontexts in each session.
>> >
>> > Ill see if i can implement this sometime tomorrow.
>> >
>> > Thanks again for pointing this out, if you think there are more of
>> > this kind of problems just let me know.
>> >
>> > Maurice
>> >
>> > P.S. i guess an api for getting the original logincontext is out of
>> > the question then :)
>> >
>> >
>> > On 6/8/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Are you saying then that the instance of LoginContext used to login is
>> >> held
>> >> onto in the WASPSession, via the security framework?
>> >>
>> >> If so then this brings up a huge security issue, as least the way the
>> API
>> >> sits and the examples showing that a LoginContext takes a username and
>> >> password in its constructor.  This mean that a password(probably plain
>> >> text)
>> >> is available in the session which is usually a big no no when it comes
>> to
>> >> a
>> >> secure application.  I've been through a few security probes from
>> banks
>> >> on
>> >> various online applications that that is one of the first thing they
>> look
>> >> for / ask. "Are you holding onto the password?"
>> >>
>> >> -Craig
>> >>
>> >>
>> >> Mr Mean wrote:
>> >> >
>> >> > There is currently no way to grab the login context, so you could
>> >> > store it yourself (there migh be multiple logintexts though). But
>> the
>> >> > good news is you don't have to store it if you don't want to. The
>> >> > logoff performs an equals check and currently every logincontext of
>> >> > the same class and level is equal to another. So if you login using
>> a
>> >> > MySingleLoginContext(username, password) you can logoff with any new
>> >> > instance of that class (logoff(new MySingleLoginContext());)
>> >> >
>> >> > However if you feel you need to have access to the original
>> instance,
>> >> > for instance because you want to know the username, i can always
>> >> > include such a method in the api.
>> >> >
>> >> > Maurice
>> >> >
>> >> > On 6/8/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> I see that the WASPSession.logout method takes a LoginContext.  Is
>> >> there
>> >> >> somewhere within the SWARM implementation to grab the LoginContext

Re: [Wicket-user] WASPSession.logout(object)

2007-06-08 Thread craigdd

Sounds like a pretty good idea, I like that much better than having the user
need to know they need to cleanup data state in their LoginContext.

Another idea might be to have the LoginContext provide a method that returns
a unique identifier.  That value could be store internally and the user can
pass anything they want, I'd assume the default would be to return the
username which is completely fair to be in the session.

Without looking too closely at the code you could also use this identifier
during logout.

-Craig


Mr Mean wrote:
> 
> Just thinking out loud here, but it shouldn't be too difficult to
> change this into holding a hash of the logincontext instead of the
> whole context. Since the equals contract already specifies that equal
> object should have equal hashes The equals check can be easily
> performed on the hash, HashMap actually uses the hash before it uses
> the equal, so i do not see much problems here. And it is not like you
> are gonna have an army of logincontexts in each session.
> 
> Ill see if i can implement this sometime tomorrow.
> 
> Thanks again for pointing this out, if you think there are more of
> this kind of problems just let me know.
> 
> Maurice
> 
> P.S. i guess an api for getting the original logincontext is out of
> the question then :)
> 
> 
> On 6/8/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> Are you saying then that the instance of LoginContext used to login is
>> held
>> onto in the WASPSession, via the security framework?
>>
>> If so then this brings up a huge security issue, as least the way the API
>> sits and the examples showing that a LoginContext takes a username and
>> password in its constructor.  This mean that a password(probably plain
>> text)
>> is available in the session which is usually a big no no when it comes to
>> a
>> secure application.  I've been through a few security probes from banks
>> on
>> various online applications that that is one of the first thing they look
>> for / ask. "Are you holding onto the password?"
>>
>> -Craig
>>
>>
>> Mr Mean wrote:
>> >
>> > There is currently no way to grab the login context, so you could
>> > store it yourself (there migh be multiple logintexts though). But the
>> > good news is you don't have to store it if you don't want to. The
>> > logoff performs an equals check and currently every logincontext of
>> > the same class and level is equal to another. So if you login using a
>> > MySingleLoginContext(username, password) you can logoff with any new
>> > instance of that class (logoff(new MySingleLoginContext());)
>> >
>> > However if you feel you need to have access to the original instance,
>> > for instance because you want to know the username, i can always
>> > include such a method in the api.
>> >
>> > Maurice
>> >
>> > On 6/8/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I see that the WASPSession.logout method takes a LoginContext.  Is
>> there
>> >> somewhere within the SWARM implementation to grab the LoginContext
>> used
>> >> to
>> >> login?  Or when logging in is it up to the developer to put the
>> >> LoginContext
>> >> somewhere...say maybe the session itself?
>> >>
>> >> Thanks
>> >> Craig
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/WASPSession.logout%28object%29-tf3887102.html#a11018551
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -
>> >> This SF.net email is sponsored by DB2 Express
>> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> control of your XML. No limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/

Re: [Wicket-user] WASPSession.logout(object)

2007-06-08 Thread craigdd

Are you saying then that the instance of LoginContext used to login is held
onto in the WASPSession, via the security framework?

If so then this brings up a huge security issue, as least the way the API
sits and the examples showing that a LoginContext takes a username and
password in its constructor.  This mean that a password(probably plain text)
is available in the session which is usually a big no no when it comes to a
secure application.  I've been through a few security probes from banks on
various online applications that that is one of the first thing they look
for / ask. "Are you holding onto the password?"

-Craig


Mr Mean wrote:
> 
> There is currently no way to grab the login context, so you could
> store it yourself (there migh be multiple logintexts though). But the
> good news is you don't have to store it if you don't want to. The
> logoff performs an equals check and currently every logincontext of
> the same class and level is equal to another. So if you login using a
> MySingleLoginContext(username, password) you can logoff with any new
> instance of that class (logoff(new MySingleLoginContext());)
> 
> However if you feel you need to have access to the original instance,
> for instance because you want to know the username, i can always
> include such a method in the api.
> 
> Maurice
> 
> On 6/8/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> I see that the WASPSession.logout method takes a LoginContext.  Is there
>> somewhere within the SWARM implementation to grab the LoginContext used
>> to
>> login?  Or when logging in is it up to the developer to put the
>> LoginContext
>> somewhere...say maybe the session itself?
>>
>> Thanks
>> Craig
>> --
>> View this message in context:
>> http://www.nabble.com/WASPSession.logout%28object%29-tf3887102.html#a11018551
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WASPSession.logout%28object%29-tf3887102.html#a11033924
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] WASPSession.logout(object)

2007-06-07 Thread craigdd

I see that the WASPSession.logout method takes a LoginContext.  Is there
somewhere within the SWARM implementation to grab the LoginContext used to
login?  Or when logging in is it up to the developer to put the LoginContext
somewhere...say maybe the session itself?

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/WASPSession.logout%28object%29-tf3887102.html#a11018551
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Wicket Security Configuration Question

2007-06-07 Thread craigdd

This original post was under wicket stuff users list and I've reposted it
hear for more visibility, as requested by Martijn.  The following is the
response that I got from Maurice.

Hi,

what i mean is this: By default SecurePageLink (and all other links
with the same securitycheck) checks for an enable action on the page
the link points to. This check occurs both in the render (where is
decided if the link should be clickable) and in the onclick (just to
check if nobody spoofed an url to trigger a link click where it is not
allowed).

Maybe an example will make things more clear (note to self to update
the getting started)
HomePage contains a SecurePageLink to PageA.
We should declare at least .HomePage, "render"; in our policy or
we will never see the homepage. With just this the link will not be
rendered because it lacks .PageA, "render";
So if we put that in the policy to we will see a disabled link.
(wicket turns it into a span by default) but because the component is
still available on the server side someone could spoof the url and
trigger wicket into thinking the link was clicked, fortunatly the
second check i mentioned earlier will detect this and send you to the
accessdenied page.
Only if we make sure our policy also contains .PageA, "enable";
the link will be fully operational.

I hope this answered your question. :)

But if you want to get realy confused you should read on because there
is an alternative mode in which it is possible to show the link even
if we have not granted render to PageA.
I am actually working on some examples showing this alternate mode,
but they are not yet available.
To activate the alternate rendering mode you need to do this:
((LinkSecurityCheck)link.getSecurityCheck()).setUseAlternativeRenderCheck(true);
Given the above example and a policy file only containing
HomePage, "inherit, render";
the link will render as a disabled link. Note the inherit, this means
all child components on the homepage are allowed to render. Optionally
we could replace that one line with the following two lines
HomePage, "render"; and HomePage:link, "render"; Assuming the
wicket id of our link is link :) To enable the link we would still
require PageA, "enable"; in our policy.

Thanks for checking out swarm and wasp, i hope i did not just confuse
the hell out you :)

Maurice



craigdd wrote:
> 
> In look looking the getting started page for wicket security I came across
> the following block on text when describing the configuration of
> principals.
> 
> What we just did is grant everyone the right to see (render) our HomePage,
> if there are secure components on the homepage we can see them too
> (inherit). In addition we granted links to our homepage the right to be
> clicked (enable). Because we do not want to give links on our homepage the
> right to be clicked we did not place the enable action on the previous
> line with the inherit. If we know for a fact that there are absolutely no
> links pointing to the homepage we could delete the second line, but
> generally you will want these two lines for any given secure page. If you
> think, what a long line isn't there a shorter way, then i have good news
> for you. Hive supports aliases. This means that besides the build in
> aliases for permissions you can add your own aliases for permissions,
> principals and names, just not for actions!. aliases can be concatenated
> but not nested. sow if we rewrite our policy to use aliases we get
> 
> Just to clarify, when you say "In addition we granted links to our
> homepage the right to be clicked (enable)", does this mean that the link,
> which I assume you mean , is able to be physically clicked? And if it was
> the opposite, as is the next line of the configuration "HomePage",
> "enable"", does this mean that the link is disabled to the user, or that
> it is enabled but you will get an access error exception on the server
> side?
> 
> Thanks
> Craig
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Security-Configuration-Question-tf3884414.html#a11009846
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Wicket Security Configuration Question

2007-06-07 Thread craigdd

In look looking the getting started page for wicket security I came across
the following block on text when describing the configuration of principals.

What we just did is grant everyone the right to see (render) our HomePage,
if there are secure components on the homepage we can see them too
(inherit). In addition we granted links to our homepage the right to be
clicked (enable). Because we do not want to give links on our homepage the
right to be clicked we did not place the enable action on the previous line
with the inherit. If we know for a fact that there are absolutely no links
pointing to the homepage we could delete the second line, but generally you
will want these two lines for any given secure page. If you think, what a
long line isn't there a shorter way, then i have good news for you. Hive
supports aliases. This means that besides the build in aliases for
permissions you can add your own aliases for permissions, principals and
names, just not for actions!. aliases can be concatenated but not nested.
sow if we rewrite our policy to use aliases we get

Just to clarify, when you say "In addition we granted links to our homepage
the right to be clicked (enable)", does this mean that the link, which I
assume you mean , is able to be physically clicked? And if it was the
opposite, as is the next line of the configuration "HomePage", "enable"",
does this mean that the link is disabled to the user, or that it is enabled
but you will get an access error exception on the server side?

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/Wicket-Security-Configuration-Question-tf3884414.html#a11009812
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Wicket Security Example Time Frame

2007-06-01 Thread craigdd

I came across the GeneralTest in the security project, looks like a great
example starter for the security project.

Thanks
Craig


craigdd wrote:
> 
> Does anyone know the time frame for the wicket security project to come
> out with an examples project or is there some early access code people can
> get access to?
> 
> The project looks pretty nice, I look forward to doing some evaluation on
> it and possibly using in on an upcoming project. 
> 
> Thanks
> Craig
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Security-Example-Time-Frame-tf3855250.html#a10922941
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Wicket Security Example Time Frame

2007-06-01 Thread craigdd

Does anyone know the time frame for the wicket security project to come out
with an examples project or is there some early access code people can get
access to?

The project looks pretty nice, I look forward to doing some evaluation on it
and possibly using in on an upcoming project. 

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/Wicket-Security-Example-Time-Frame-tf3855250.html#a10922796
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Displaying a JavaScript alert after a click on a link

2007-06-01 Thread craigdd

Here is a pretty simple example.

Link myLink = new Link("myLink");

myLink.add(new AttributeModifier(
"onclick", 
true,
new Model("javascript:callAlert()"));


-Craig


Huergo Perez wrote:
> 
> What attribute of the Link should I modify with an attribute modifier?
> I could not find any examples of this functionality.
> 
> Also, I found the IAjaxCallDecorator interface. Could it be used to 
> display an alert after receiving an AJAX response?
> 
> Thanks!
> Huergo
> 
> Nino Saturnino Martinez Vazquez Wael wrote:
>> use a attribute modifier and a behavior for this..
>>
>> Huergo Perez wrote:
>>   
>>> Hi All,
>>>
>>> I need to implement a functionality that in certain cases displays a 
>>> JavaScript alert dialog after a click on a link.
>>>
>>> For example, a table of records may contain a [Delete] link against each 
>>> record. When a user clicks on the link, the onClick handler attempts to 
>>> delete the record, and in case of failure (e.g. due to integrity 
>>> constraint violations) displays a JavaScript alert.
>>>
>>> What are the suggested ways to implement such a functionality for both 
>>> AJAX and non-AJAX links?
>>>
>>> Thanks!
>>> Huergo
>>>
>>> -
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> ___
>>> Wicket-user mailing list
>>> Wicket-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>>
>>>
>>>   
>>> 
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>   
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-a-JavaScript-alert-after-a-click-on-a-link-tf3851561.html#a10913973
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-24 Thread craigdd

Will do Gwyn, I plan on spending a few hours tonight to see what type of
update to the API would be needed to help out my type of situation.

-Craig


Gwyn wrote:
> 
> On Wednesday, May 23, 2007, 2:53:50 AM, craigdd <[EMAIL PROTECTED]> wrote:
> 
>> Thanks Eelco, your example was extremely helpful and I agree that the API
>> is
>> not obvious when it comes to this type of stuff.  It also doesn't help
>> when
>> the javadoc for RequestCycle.onRuntimeException refers to
>> "DefaultExceptionResponseStrategy" which does not exist in 1.3.
> 
> All patches welcome!  It's especially useful if it's from someone like
> yourself who's just had to wrestle with something that's not as it
> should be, as that way it should be fresh as to what the sticking
> points were & what it should be!
> 
> /Gwyn
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10790773
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] CSS Branding

2007-05-23 Thread craigdd

Thanks Al,

I figured it was that easy, I guess sometimes you make something more
complicated that it really is.

-Craig


Al Maw wrote:
> 
> craigdd wrote:
>> I'm looking for the best way to provide CSS branding for a logged in
>> Client. 
>> In other words a css will be added as a header contrib to a page based on
>> the Client object found in the session and search for a name like;
>> layout_[clientname].css.
> 
> Errr, you just said what to do right there. ;-)
> 
>add(HeaderContributor.forCss(
>"css/branding/" + YourSession.get().getClientName() + ".css"
>));
> 
> That's for context-relative stuff (if you're using 1.3.0-SNAPSHOT you'll 
> need a fairly up-to-date version).
> 
> I.e. put your CSS files in:
>src/main/webapp/css/branding/WidgetsIncorporated.css
>src/main/webapp/css/branding/SproketsCorp.css
> 
> Or you can use package resources, obviously.
> 
> It's that simple, unless I'm missing your intent.
> 
> Al
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CSS-Branding-tf3807302.html#a10775881
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] CSS Branding

2007-05-23 Thread craigdd

I'm looking for the best way to provide CSS branding for a logged in Client. 
In other words a css will be added as a header contrib to a page based on
the Client object found in the session and search for a name like;
layout_[clientname].css.

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/CSS-Branding-tf3807302.html#a10775395
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-23 Thread craigdd

Ravi,

I'd be interested in hearing your out come of your evaluation.  I'm in a
similar boat where my company is looking to move to a new UI framework,
their first choice or course is JSF and I'm pushing hard to go the wicket
route instead.  If I can show them a website like yours and say that it was
fairly easy to develop using wicket and you don't need to learn a whole new
markup language, ie tablibs, then that just might be the nail in the coffin
I need.

Thanks
Craig


RW wrote:
> 
> 
> 
> 
>   
>   
> 
> 
> 
> It is currently written using a combination of Struts1, WebMacro
> (templating engine like Velocity), Torque etc. Due to the lack of user
> interface components in these tools we had to develop a lot of that
> ourselves. We are evaluating if we can do away with our code with
> Wicket or if Wicket can at least assist in simplifying our efforts.
> Besides, how easy and how long will it take to move to Wicket. As our
> efforts are commercial, we will be heavily penalized for making the
> wrong choice. 
> 
> - Ravi. 
> 
> craigdd wrote:
> 
>   Hey Ravi, just out of curiosity, is the application you provided a link
> for
> written in wicket?
> 
> -Craig
>  
> 
> RW wrote:
>   
>   
> 
> 
> 
>   
> 
> 
> 
> Go to... 
> http://www.celoxis.com/psa/user.do?bxn=umyhome&amp;p_auth_authenticate=true&amp;p_auth_login=mark&amp;p_auth_password=celoxis1
>   
> 
> On this page click the "Pick Columns" link in the top right corner of
> the "My Projects" table. 
> 
> Thanks 
> Ravi 
> 
> 
> Igor Vaynberg wrote:
> got a screenshot? dont really understand what you are
> describing. maybe something like our palette component in extensions? 
>   
> -igor 
>   
>   
>   On 5/21/07, Ravindra Wankar
>&lt; [EMAIL PROTECTED]  &gt;
> wrote:
>   
> In order to allow users to pick columns they wish to see in a table, we
> 
> open/close a div layer that has 2 selectors to move columns to/from 
> "Available" to "Selected" and a submit/cancel button. We also position 
> this div layer close to the "Pick Columns" link.
> 
> 
> Is there a component in Wicket I can use to create a similar effect? 
> I've seen the ModalDialog but I'd like a slight variation because the 
> placement of this div layer needs to be controlled + the main window
> 
> need not be "greyed" out when showing the layer. 
> 
> Thanks 
> Ravi. 
> 
> - 
> This SF.net email is sponsored by DB2 Express 
> Download DB2 Express C - the FREE version of DB2 express and take
> 
> control of your XML. No limits. Just data. Click to get it now. 
> http://sourceforge.net/powerbar/db2/  
> ___ 
> Wicket-user mailing list
> 
> Wicket-user@lists.sourceforge.net  
> https://lists.sourceforge.net/lists/listinfo/wicket-user  
> 
>   
>   
>   
>   
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/  
>   
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net  
> https://lists.sourceforge.net/lists/listinfo/wicket-user  
>   
> 
> 
> 
> 
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/ 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/wicket-user 
> 
> 
> 
>   
>   
>   
> 
> 
> 
> 
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http:/

Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread craigdd

Thanks Eelco, your example was extremely helpful and I agree that the API is
not obvious when it comes to this type of stuff.  It also doesn't help when
the javadoc for RequestCycle.onRuntimeException refers to
"DefaultExceptionResponseStrategy" which does not exist in 1.3.

Thanks
Craig


Eelco Hillenius wrote:
> 
> You can return the page you want to be displayed and have full
> control. I know the API currently is non-obvious; I complained about
> this in another thread.
> 
> For example, this is what I'm using for the project I'm working on:
> 
> 
>   public Page onRuntimeException(Page page, RuntimeException e) {
> 
>   if (e instanceof AuthorizationException) {
>   return super.onRuntimeException(page, e);
>   } else if (e instanceof PageExpiredException) {
>   Ts4Session session = Ts4Session.get();
>   if (session.isTemporary() || session.getUserId() == 
> null) {
>   // this was an actual session expiry
>   log
>   .info("session expired and 
> request cannot be honored, cycleId: "
>   + cycleId);
>   return super.onRuntimeException(page, e);
>   } else {
>   log.error("unable to find page for an active 
> session!");
>   // hmmm, we have a logged in user, but the page 
> could not be
>   // found. Fall through to display an error page 
> or exception
>   // page
>   }
>   }
> 
>   if (Application.DEPLOYMENT.equals(Application.get()
>   .getConfigurationType())) {
>   return new ErrorPage(e, page, cycleId);
>   } else {
>   return new ExceptionErrorPage(e, page);
>   }
>   }
> 
> eelco
> 
>> Overriding the onRuntimeException does not work because you don't have
>> access
>> to the page that you are directing to.  The page parameter in this method
>> if
>> the context from where the exception was thrown.
>>
>> -Craig
>>
>>
>>
>> Rüdiger_Schulz wrote:
>> >
>> > Make a subclass of WebRequestCycle, and override onRuntimeException().
>> > Works like a charm for me.
>> >
>> > 2007/5/22, craigdd <[EMAIL PROTECTED]>:
>> >>
>> >> True the wicket session is mandatory, thanks for pointing that out.
>> >>
>> >> As for my question though, I'm looking for the best way to implement
>> this
>> >> strategy.  I could override the respond method in RequestCycle, but
>> I'd
>> >> have
>> >> to rewrite the given logic, which most of it I want.  I'm wondering if
>> >> there
>> >> are any other hooks that I can implement that leaves the respond
>> method
>> >> alone but have the exception and internal page available.
>> >>
>> >> -Craig
>> >>
>> >>
>> >>
>> >> Mr Mean wrote:
>> >> >
>> >> > As far as i know the wicket session is mandatory in wicket but that
>> >> > does not mean you have to use it to store information. Other then
>> that
>> >> > i see no reason why your proposed strategy should not work.
>> >> >
>> >> > Maurice
>> >> >
>> >> > On 5/22/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> Basically what I want to do is set the internal error page to my
>> own
>> >> >> internal
>> >> >> page, i.e. my login page, and add a message from the a resource
>> >> bundle,
>> >> >> .properties file, that includes an error code that is generated
>> from
>> >> an
>> >> >> internal RuntimeException.  Another requirement is that a Session
>> is
>> >> >> optional, meaning that this should work with or without a Session.
>> >> >>
>> >> >> -Craig
>> >> >>
>> >> >>
>> >> >> craigdd wrote:
>> >> >> >
>> >> >> > What is the best way to implement your own exception strategy in
>> >> wicket
>> >> >> > 1.3?

Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-22 Thread craigdd

Hey Ravi, just out of curiosity, is the application you provided a link for
written in wicket?

-Craig
 

RW wrote:
> 
> 
> 
> 
>   
> 
> 
> 
> Go to... 
> http://www.celoxis.com/psa/user.do?bxn=umyhome&p_auth_authenticate=true&p_auth_login=mark&p_auth_password=celoxis1
>  
> 
> On this page click the "Pick Columns" link in the top right corner of
> the "My Projects" table. 
> 
> Thanks 
> Ravi 
> 
> 
> Igor Vaynberg wrote:
> got a screenshot? dont really understand what you are
> describing. maybe something like our palette component in extensions? 
>   
> -igor 
>   
>   
>   On 5/21/07, Ravindra Wankar
>< [EMAIL PROTECTED] >
> wrote:
>   
> In order to allow users to pick columns they wish to see in a table, we
> 
> open/close a div layer that has 2 selectors to move columns to/from 
> "Available" to "Selected" and a submit/cancel button. We also position 
> this div layer close to the "Pick Columns" link.
> 
> 
> Is there a component in Wicket I can use to create a similar effect? 
> I've seen the ModalDialog but I'd like a slight variation because the 
> placement of this div layer needs to be controlled + the main window
> 
> need not be "greyed" out when showing the layer. 
> 
> Thanks 
> Ravi. 
> 
> - 
> This SF.net email is sponsored by DB2 Express 
> Download DB2 Express C - the FREE version of DB2 express and take
> 
> control of your XML. No limits. Just data. Click to get it now. 
> http://sourceforge.net/powerbar/db2/ 
> ___ 
> Wicket-user mailing list
> 
> Wicket-user@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/wicket-user 
> 
>   
>   
>   
>   
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/ 
>   
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/wicket-user 
>   
> 
> 
> 
> 
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Component-for-opening-closing-an-arbitrary-div-layer-in-Wicket.-tf3794225.html#a10743267
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread craigdd

Overriding the onRuntimeException does not work because you don't have access
to the page that you are directing to.  The page parameter in this method if
the context from where the exception was thrown.

-Craig



Rüdiger_Schulz wrote:
> 
> Make a subclass of WebRequestCycle, and override onRuntimeException().
> Works like a charm for me.
> 
> 2007/5/22, craigdd <[EMAIL PROTECTED]>:
>>
>> True the wicket session is mandatory, thanks for pointing that out.
>>
>> As for my question though, I'm looking for the best way to implement this
>> strategy.  I could override the respond method in RequestCycle, but I'd
>> have
>> to rewrite the given logic, which most of it I want.  I'm wondering if
>> there
>> are any other hooks that I can implement that leaves the respond method
>> alone but have the exception and internal page available.
>>
>> -Craig
>>
>>
>>
>> Mr Mean wrote:
>> >
>> > As far as i know the wicket session is mandatory in wicket but that
>> > does not mean you have to use it to store information. Other then that
>> > i see no reason why your proposed strategy should not work.
>> >
>> > Maurice
>> >
>> > On 5/22/07, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Basically what I want to do is set the internal error page to my own
>> >> internal
>> >> page, i.e. my login page, and add a message from the a resource
>> bundle,
>> >> .properties file, that includes an error code that is generated from
>> an
>> >> internal RuntimeException.  Another requirement is that a Session is
>> >> optional, meaning that this should work with or without a Session.
>> >>
>> >> -Craig
>> >>
>> >>
>> >> craigdd wrote:
>> >> >
>> >> > What is the best way to implement your own exception strategy in
>> wicket
>> >> > 1.3?  I want to add some added logic to my application when an
>> >> unexcepted
>> >> > exception occurs.  During this added logic I want a handle on the
>> page
>> >> > that is being redirected to, ie the internal error page.
>> >> >
>> >> > Thanks
>> >> > Craig
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -
>> >> This SF.net email is sponsored by DB2 Express
>> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> control of your XML. No limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10737906
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> 
> -- 
> greetings from Berlin,
> 
> Rüdiger Schulz
> 
> www.2rue.de
> 
> --

Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread craigdd

True the wicket session is mandatory, thanks for pointing that out.

As for my question though, I'm looking for the best way to implement this
strategy.  I could override the respond method in RequestCycle, but I'd have
to rewrite the given logic, which most of it I want.  I'm wondering if there
are any other hooks that I can implement that leaves the respond method
alone but have the exception and internal page available.

-Craig



Mr Mean wrote:
> 
> As far as i know the wicket session is mandatory in wicket but that
> does not mean you have to use it to store information. Other then that
> i see no reason why your proposed strategy should not work.
> 
> Maurice
> 
> On 5/22/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> Basically what I want to do is set the internal error page to my own
>> internal
>> page, i.e. my login page, and add a message from the a resource bundle,
>> .properties file, that includes an error code that is generated from an
>> internal RuntimeException.  Another requirement is that a Session is
>> optional, meaning that this should work with or without a Session.
>>
>> -Craig
>>
>>
>> craigdd wrote:
>> >
>> > What is the best way to implement your own exception strategy in wicket
>> > 1.3?  I want to add some added logic to my application when an
>> unexcepted
>> > exception occurs.  During this added logic I want a handle on the page
>> > that is being redirected to, ie the internal error page.
>> >
>> > Thanks
>> > Craig
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10737906
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-21 Thread craigdd

Basically what I want to do is set the internal error page to my own internal
page, i.e. my login page, and add a message from the a resource bundle,
.properties file, that includes an error code that is generated from an
internal RuntimeException.  Another requirement is that a Session is
optional, meaning that this should work with or without a Session.

-Craig


craigdd wrote:
> 
> What is the best way to implement your own exception strategy in wicket
> 1.3?  I want to add some added logic to my application when an unexcepted
> exception occurs.  During this added logic I want a handle on the page
> that is being redirected to, ie the internal error page.
> 
> Thanks
> Craig
> 

-- 
View this message in context: 
http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Add feedback message to internal error page.

2007-05-21 Thread craigdd

What if there is no Session available though?  Plus I need to make sure there
is a Localizer available for internationalized messages.

-Craig


Eelco Hillenius wrote:
> 
> I think using a flash message (add direcly to session, e.g.
> Session.get().info("hello")) and then an error page with a
> feedbackpanel should work.
> 
> Eelco
> 
> 
> On 5/17/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> In my application I'm overriding the default internal error page to my
>> application's login page, however, I want to supply the user with a
>> feedback
>> panel message starting that something bad happened and include an error
>> code
>> from my internal runtime exception.
>>
>> What would be the proper way to go about this?  I was thinking about
>> extending my login page but want to keep the same markup(.html), but I
>> don't
>> think that is possible.  I'm also looking into the various things you can
>> do
>> with overriding or implementing IExceptionResponseStrategy but in the end
>> I
>> don't really want to get rid of 90% of that default logic.
>>
>> Thanks
>> Craig
>> --
>> View this message in context:
>> http://www.nabble.com/Add-feedback-message-to-internal-error-page.-tf3769482.html#a10657238
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Add-feedback-message-to-internal-error-page.-tf3769482.html#a10729967
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Exception Strategy in 1.3

2007-05-21 Thread craigdd

What is the best way to implement your own exception strategy in wicket 1.3? 
I want to add some added logic to my application when an unexcepted
exception occurs.  During this added logic I want a handle on the page that
is being redirected to, ie the internal error page.

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10729495
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Add feedback message to internal error page.

2007-05-16 Thread craigdd

In my application I'm overriding the default internal error page to my
application's login page, however, I want to supply the user with a feedback
panel message starting that something bad happened and include an error code
from my internal runtime exception.

What would be the proper way to go about this?  I was thinking about
extending my login page but want to keep the same markup(.html), but I don't
think that is possible.  I'm also looking into the various things you can do
with overriding or implementing IExceptionResponseStrategy but in the end I
don't really want to get rid of 90% of that default logic.

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/Add-feedback-message-to-internal-error-page.-tf3769482.html#a10657238
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] WicketTester & Sessions (1.3.0-incubating-beta1)

2007-05-16 Thread craigdd

Did a JIRA bug get created for this?  I'm having the same issue and want to
document in my code the JIRA issue number.  If a bug hasn't been created
then I'd be happy to create it myself.

Thanks
Craig


severian wrote:
> 
> I've been having trouble using sessions with WicketTester, even after
> looking over the old messages on this list.  I've been trying to implement
> something like the example in Gurumurthy's "Pro Wicket" book, where a
> Login page places a User object in the session, and other pages
> subsequently have access to the cached User object.
> 
> When trying to unit test one of the subsequent pages in isolation (i.e.
> without first going through the Login page), I figured I just had to place
> a User object in the test instance of my session class, like this:
> 
> 
> --
> WicketTester tester = new WicketTester(myApp, myPath);
> 
> MySession mySession = (MySession) tester.getWicketSession();
> mySession.setCurrentUser(getCurrentUser());
> 
> tester.startPage(MyPage.class);
> --
> 
> 
> Unfortunately, this didn't work.  The WicketTester constructor correctly
> creates an instance of MySession, but never binds it to the session store. 
> Consequently, the later call to tester.startPage() creates a new instance
> of MySession, which obviously contains no User object, causing my tests to
> fail.
> 
> As a workaround, I forced the bind() call myself, after the WicketTester
> constructor:
> 
> 
> --
> WicketTester tester = new WicketTester(myApp, myPath);
> tester.getApplication().getSessionStore().bind(tester.getWicketRequest(),
> tester.getWicketSession());
> 
> MySession mySession = (MySession) tester.getWicketSession();
> mySession.setCurrentUser(getCurrentUser());
> 
> tester.startPage(MyPage.class);
> --
> 
> 
> This allows my tests to succeed.  However, I'm suspicious that either I'm
> missing something subtle, or there's a bug in the wicket test framework. 
> For example, should MockWebApplication.createRequestCycle() force a bind
> after setting up its session via:
> this.wicketSession = (WebSession) Session.findOrCreate();
> 
> It seems to me that it should, but I'm a Wicket newbie...
> 

-- 
View this message in context: 
http://www.nabble.com/WicketTester---Sessions-%281.3.0-incubating-beta1%29-tf3759412.html#a10656736
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Tapestry vs. Wicket

2007-05-15 Thread craigdd

I started looking at tapestry today, for some reason through out all my
webapp development experience I never have taken a look at it.  With that
said I see a lot of similarities to wicket.  Can someone point out the
advantages that wicket has over tapestry.

Kind of a side note, and I little off subject, but does anyone know the
process of the "Wicket in Action" book?

-Craig
-- 
View this message in context: 
http://www.nabble.com/Tapestry-vs.-Wicket-tf3760084.html#a10627847
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] MarkupContainer.autoAdd in DataView

2007-04-25 Thread craigdd

Ok, after doing a little research I found out that if you create your own
implementation of IDataProvider or extend an existing one. you can over ride
the model method with;

@Override
public IModel model(Object object) {

return new BoundCompoundPropertyModel(object);

} // model

This seems to work, but is this the correct way to go about this?

-Craig


craigdd wrote:
> 
> Is it possible to implement IComponentResolver interface in a child
> implementation of DataView so that a Label object is added for each cell
> found in the markup?
> 
> This would be similar to some of the examples I've seen when extending
> ListView.
> 
> Thanks
> Craig
> 

-- 
View this message in context: 
http://www.nabble.com/MarkupContainer.autoAdd-in-DataView-tf3648862.html#a10192361
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] MarkupContainer.autoAdd in DataView

2007-04-25 Thread craigdd

Is it possible to implement IComponentResolver interface in a child
implementation of DataView so that a Label object is added for each cell
found in the markup?

This would be similar to some of the examples I've seen when extending
ListView.

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/MarkupContainer.autoAdd-in-DataView-tf3648862.html#a10192136
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] DataTable row and header formatting

2007-04-19 Thread craigdd

I found the repeater examples in the examples download, that helps a little
bit, but that still doesn't answer my question  as to how you would do
things like set the alignment to center on the test of the second column of
my table.

When it comes down to it...should I be using DataView instead of DataTable?

-Craig


craigdd wrote:
> 
> Sorry, I keep asking what are probably simple questions regarding the
> DataTable.
> 
> How do I utilize this component and still have access to format things
> such and the alignment / width of each column.
> 
> By the way, is there any good example out there using DataTable /
> DataView, I don't see any in the normal wicket examples download.
> 
> Thanks
> Craig
> 

-- 
View this message in context: 
http://www.nabble.com/DataTable-row-and-header-formatting-tf3610550.html#a10090175
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] DataTable row and header formatting

2007-04-19 Thread craigdd

Sorry, I keep asking what are probably simple questions regarding the
DataTable.

How do I utilize this component and still have access to format things such
and the alignment / width of each column.

By the way, is there any good example out there using DataTable / DataView,
I don't see any in the normal wicket examples download.

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/DataTable-row-and-header-formatting-tf3610550.html#a10089608
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] DataTable alternating tr background colors

2007-04-18 Thread craigdd

What is the best way to add alternating back ground colors, or CSS styles to
s when using the DataTable extension object?
-- 
View this message in context: 
http://www.nabble.com/DataTable-alternating-tr-background-colors-tf3604301.html#a10069961
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] WicketTester Best Practices

2007-04-17 Thread craigdd

I'm looking for some input on what is the best practices for testing Panels
that aren't inner classes to WebPage objects

If I do the following;

WicketTester tester = new WicketTester();

tester.startPanel(MyPanel.class);

tester.clickLink("logout");

I get an exception saying path: 'logout' does no exist for page:
DummyPanelPage

My alternative is to set a startPage to a WebPage that contains my panel. 
However, I don't think that a panel should have to rely on a
WebPage...meaning I can create and test a new Panel without it being
attached to a WebPage.

In the past I've created some abstraction objects that allow you to do this
but is seems like a lot of work and I was hoping that there is a better way.

-Craig
-- 
View this message in context: 
http://www.nabble.com/WicketTester-Best-Practices-tf3598521.html#a10050859
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Ajax DropDownChoice Question

2007-01-06 Thread craigdd

Thanks, that works much better, I knew I was missing something pretty simple.



Martijn Dashorst wrote:
> 
> Use an AjaxFormComponentUpdateBehavior instead.
> 
> Martijn
> 
> On 1/6/07, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> Maybe I'm missing something simple here but I need a little help getting
>> my
>> ajax dropdownchoice working.
>>
>> The situation is that I have my own (extension) to the DropDownChoice
>> where
>> I'm adding an AjaxEventBehavior behavior to it.  The issue is that by the
>> time the "onEvent" method is called on the AjaxEventBehavior class the
>> model
>> hasn't been updated with the new selected value.  How does this value get
>> updated using Ajax, or can you do this?
>>
>> Thanks
>> Craig
>> --
>> View this message in context:
>> http://www.nabble.com/Ajax-DropDownChoice-Question-tf2932661.html#a8199296
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> 
> -- 
> Vote for Wicket at the
> http://www.thebeststuffintheworld.com/vote_for/wicket
> Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
> http://wicketframework.org
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Ajax-DropDownChoice-Question-tf2932661.html#a8199872
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax DropDownChoice Question

2007-01-06 Thread craigdd

Maybe I'm missing something simple here but I need a little help getting my
ajax dropdownchoice working.

The situation is that I have my own (extension) to the DropDownChoice where
I'm adding an AjaxEventBehavior behavior to it.  The issue is that by the
time the "onEvent" method is called on the AjaxEventBehavior class the model
hasn't been updated with the new selected value.  How does this value get
updated using Ajax, or can you do this?

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/Ajax-DropDownChoice-Question-tf2932661.html#a8199296
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can I prevent wicket specific URL parameters

2006-12-01 Thread craigdd

I haven't following the whole apache move, is there where we are logging
issues now?

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



Eelco Hillenius wrote:
> 
> Could you please open up an issue for that then?
> 
> Thanks,
> 
> Eelco
> 
> 
> On 12/1/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> This is a nice solution, however, I noticed that if you are using this
>> feature and try to hack the encrypted URL, in other words you type if
>> "skaldjflskdajflsd" you get an exception that gets thrown back to the
>> container.  It looks like the exception happens low enough where the
>> default
>> or overridden exception strategy does catch it.  It would be nice if this
>> decrypt exception could be caught and forwards the user to a user
>> friendly
>> page stating something like "Unable to process your request".
>>
>> -Craig
>>
>>
>>
>> Dirk Markert wrote:
>> >
>> > http://cwiki.apache.org/WICKET/obfuscating-urls.html
>> >
>> > Dirk
>> >
>> > 2006/12/1, Carfield Yim <[EMAIL PROTECTED]>:
>> >>
>> >> Is there way to not having parameters like "?wicket:interface=:4::" at
>> >> the
>> >> URL?
>> >>
>> >>
>> -
>> >> Take Surveys. Earn Cash. Influence the Future of IT
>> >> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share
>> >> your
>> >> opinions on IT & business topics through brief surveys - and earn cash
>> >>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> -
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>> > your
>> > opinions on IT & business topics through brief surveys - and earn cash
>> >
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7639151
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7646620
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can I prevent wicket specific URL parameters

2006-12-01 Thread craigdd

This is a nice solution, however, I noticed that if you are using this
feature and try to hack the encrypted URL, in other words you type if
"skaldjflskdajflsd" you get an exception that gets thrown back to the
container.  It looks like the exception happens low enough where the default
or overridden exception strategy does catch it.  It would be nice if this
decrypt exception could be caught and forwards the user to a user friendly
page stating something like "Unable to process your request".

-Craig



Dirk Markert wrote:
> 
> http://cwiki.apache.org/WICKET/obfuscating-urls.html
> 
> Dirk
> 
> 2006/12/1, Carfield Yim <[EMAIL PROTECTED]>:
>>
>> Is there way to not having parameters like "?wicket:interface=:4::" at
>> the
>> URL?
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7639151
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket and Cross-site scripting

2006-10-13 Thread craigdd

Does wicket handle Cross-site scripting out of the box.  Meaning if I where
to enter the string Hello World into a textarea of a form and then
submitting that form would that same string reappear in a confirmation page
corrently.

If this function isn't provided out of the box is there hooks into the
framework so an application could seemesly decode request parameters and
encode values when rendering the page.
-- 
View this message in context: 
http://www.nabble.com/Wicket-and-Cross-site-scripting-tf2439677.html#a6803097
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ICryptFactory Uses

2006-10-13 Thread craigdd

It is great that wicket provides this functionality out of the box...props to
the wicket development team.

So am I correct in seeing that the CryptedUrlWebRequestCodingStrategy is
using base64 to encode and decode the URL string?

So getting back to the ICryptFactory interface, is this just a convenient
way to provide a utility to the application has a whole for encrypting
things?



Johan Compagner wrote:
> 
> no use CryptedUrlWebRequestCodingStrategy for that.
> 
> johan
> 
> 
> On 10/13/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> So are you saying that by implementing the ICryptFactory interface that
>> URLs
>> will also be encrypted?
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > it is used to retrieve crypto algorithms whenever we need to encrypt
>> > something - which isnt very often. wicket has support for encrypting
>> urls
>> > so
>> > that is one place where it is used.
>> >
>> > generally you can find all places in code where it is used by asking
>> your
>> > IDE to find references to it.
>> >
>> >
>> > -Igor
>> >
>> >
>> > On 10/13/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> In looking at the JavaDoc I noticed the ICryptFactory interface that
>> can
>> >> be
>> >> implemented and added to the security settings of a wicket application
>> >> object.
>> >>
>> >> I'm a little confuses as to what this is used for, does anyone have
>> any
>> >> infor on this interface or how they are utilizing it?
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6800168
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -
>> >> Using Tomcat but need to do more? Need to support web services,
>> security?
>> >> Get stuff done quickly with pre-integrated technology to make your job
>> >> easier
>> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> >> Geronimo
>> >>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> -
>> > Using Tomcat but need to do more? Need to support web services,
>> security?
>> > Get stuff done quickly with pre-integrated technology to make your job
>> > easier
>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6800792
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6801708
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ICryptFactory Uses

2006-10-13 Thread craigdd

So are you saying that by implementing the ICryptFactory interface that URLs
will also be encrypted?



igor.vaynberg wrote:
> 
> it is used to retrieve crypto algorithms whenever we need to encrypt
> something - which isnt very often. wicket has support for encrypting urls
> so
> that is one place where it is used.
> 
> generally you can find all places in code where it is used by asking your
> IDE to find references to it.
> 
> 
> -Igor
> 
> 
> On 10/13/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> In looking at the JavaDoc I noticed the ICryptFactory interface that can
>> be
>> implemented and added to the security settings of a wicket application
>> object.
>>
>> I'm a little confuses as to what this is used for, does anyone have any
>> infor on this interface or how they are utilizing it?
>> --
>> View this message in context:
>> http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6800168
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6800792
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ICryptFactory Uses

2006-10-13 Thread craigdd

In looking at the JavaDoc I noticed the ICryptFactory interface that can be
implemented and added to the security settings of a wicket application
object. 

I'm a little confuses as to what this is used for, does anyone have any
infor on this interface or how they are utilizing it?
-- 
View this message in context: 
http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6800168
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Form Field Focus

2006-10-12 Thread craigdd

Is there a way in wicket to set with field should have focus when rendering a
Page?
-- 
View this message in context: 
http://www.nabble.com/Form-Field-Focus-tf2431530.html#a6779893
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] User Friendly Validation Messages

2006-10-12 Thread craigdd

So you are saying as long as you have the following in the .properties of the
page formid.firstName=My Label, I don't even need to set the label in the
form code?

Very Nice.



Erik van Oosten wrote:
> 
> You don't even need to do that when you have a resource with the name
>   formid.firstName
> of just
>   firstName
> 
>  Erik.
> 
> 
> craigdd schreef:
>> Sorry, should have read a few more posts...here is the solution to the
>> different message.
>>
>> new RequiredTextField("firstName").setLabel(new
>> ResourceModel("resource.key"));
>>
>>   
> 
> -- 
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/User-Friendly-Validation-Messages-tf2427094.html#a6776477
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] User Friendly Validation Messages

2006-10-11 Thread craigdd

Sorry, should have read a few more posts...here is the solution to the
different message.

new RequiredTextField("firstName").setLabel(new
ResourceModel("resource.key"));



craigdd wrote:
> 
> I noticed that when using a RequiredTextField that the validation message
> that comes up if no value was added to the textfield is the name of the
> component.  In other words I have a page backed my a model object that has
> a property called "firstName".  The message that comes up is firstName is
> required.
> 
> Is there a better way to handle this?  I'd rather see something like First
> Name is required.
> 
> Can this be done or do you have to write your own custom validator?
> 

-- 
View this message in context: 
http://www.nabble.com/User-Friendly-Validation-Messages-tf2427094.html#a6767581
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] User Friendly Validation Messages

2006-10-11 Thread craigdd

Or maybe another option would be to show the message "The Following Fields
are Required" and then show something like a red astrick by the fields that
are required.

\

craigdd wrote:
> 
> I noticed that when using a RequiredTextField that the validation message
> that comes up if no value was added to the textfield is the name of the
> component.  In other words I have a page backed my a model object that has
> a property called "firstName".  The message that comes up is firstName is
> required.
> 
> Is there a better way to handle this?  I'd rather see something like First
> Name is required.
> 
> Can this be done or do you have to write your own custom validator?
> 

-- 
View this message in context: 
http://www.nabble.com/User-Friendly-Validation-Messages-tf2427094.html#a6767537
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] User Friendly Validation Messages

2006-10-11 Thread craigdd

I noticed that when using a RequiredTextField that the validation message
that comes up if no value was added to the textfield is the name of the
component.  In other words I have a page backed my a model object that has a
property called "firstName".  The message that comes up is firstName is
required.

Is there a better way to handle this?  I'd rather see something like First
Name is required.

Can this be done or do you have to write your own custom validator?
-- 
View this message in context: 
http://www.nabble.com/User-Friendly-Validation-Messages-tf2427094.html#a6767510
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HTTPSession Creation

2006-10-10 Thread craigdd

Where can you down wicket 2.0?  I'm assuming this is a pre production release
/ build?

I agree that this is not a security issue, however a person just has to
right a simple script, say with wget to create many many session within your
application possibly causing performance and memory issues.

So when you talk about stateful / stateless pages am I hearing that every
page in wicket 1.2 gets put into the session regardless if it needs to keep
state?



Eelco Hillenius wrote:
> 
>> Does this mean that a HTTPSession is created upon a page request? 
>> Basically
>> I'm a little worried that if I have an application that has a security in
>> front of it (a login page) that a HTTPSession doesn't get created when
>> the
>> user hits the login page but rather only when they are sucessfully
>> validated
>> via the login page.
> 
> It would never be a security concern though, only possibly an
> efficiency/ scalability concern. In wicket 1.2, a session is always
> created. In Wicket 2.0, a session is created when the first statefull
> page (yep, that's the opposite of a stateless page, and the default in
> Wicket) is rendered.
> 
>> It this assumption correct? and if so is there a way to override this
>> functionality, say only create a session if the page being requested is
>> not
>> the home page?
> 
> Use stateless pages with Wicket 2.0.
> 
> Eelco
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HTTPSession-Creation-tf2420077.html#a6747914
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] HTTPSession Creation

2006-10-10 Thread craigdd

In the wiki's documentation;

http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle 

I found the following description of Servicing a Request;

1. Wicket asks the Application class to create a Session for the servlet
request. If no session exists for the incoming request, a Session object is
created using the application's session factory. 

Does this mean that a HTTPSession is created upon a page request?  Basically
I'm a little worried that if I have an application that has a security in
front of it (a login page) that a HTTPSession doesn't get created when the
user hits the login page but rather only when they are sucessfully validated
via the login page.

It this assumption correct? and if so is there a way to override this
functionality, say only create a session if the page being requested is not
the home page?
-- 
View this message in context: 
http://www.nabble.com/HTTPSession-Creation-tf2420077.html#a6747152
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Life Cycle

2006-10-10 Thread craigdd

Thanks

Some how I missed that on the wiki.


Erik van Oosten wrote:
> 
> It's on the Wiki: http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle
> 
> You can find it by following 'Reference library' from the main page.
> 
> Regards,
>  Erik.
> 
> 
> craigdd schreef:
>> Does anyone have any good documentation of the life cyle for wicket?
>>   
> 
> -- 
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Life-Cycle-tf2413625.html#a6736517
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket Life Cycle

2006-10-09 Thread craigdd

Does anyone have any good documentation of the life cyle for wicket?
-- 
View this message in context: 
http://www.nabble.com/Wicket-Life-Cycle-tf2413625.html#a6728006
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Properties string with parameter

2006-10-09 Thread craigdd

I have a form object that onSubmit will catch an exception and call the error
method on the form object.  The key to this error has parameters in it for
example here is the string in the .properties for the page that has the
form.

mykey=This is a string with value {0}.

My question is how do I replace the "{0}" part of the string with a value.

I'm readin the javadoc for the Localizer method getString and I'm a little
confused as to what type of imodel should be used in association with
calling getString.
-- 
View this message in context: 
http://www.nabble.com/Properties-string-with-parameter-tf2413607.html#a6727960
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Resource Bundle Best Practice

2006-10-06 Thread craigdd

As I'm evaluating wicket I'm not seeing many examples of using resource
bundles.

I was wondering how, or what the best practices of using resource bundles
with wicket was.  I'm primarily interested on how you setup resource bundles
through wicket, how to use resource bundles in html pages for things like
labels, and how to use resource bundles within wicket objects such as forms
to display back error messages gotten from resource bundles.
-- 
View this message in context: 
http://www.nabble.com/Resource-Bundle-Best-Practice-tf2398440.html#a6688328
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Add addictional resource folder

2006-10-06 Thread craigdd

Does Panel and Border have a backing html file like a Page does?

I agree that I don't want to overengineer something, so far this change was
pretty simple to implement, I just don't like the fact that the .html files
live with the java files, I just think it start to get messy.  Mind you I
don't think it is absolutely horrible thing but if there is an easy way
around it I'd rather go that way.


igor.vaynberg wrote:
> 
> you have to do the same mod to Panel and Border, a Page is not the main
> artefact in wicket - components are, which are often panels or borders.
> page
> is merely a top-level container.
> 
> all in all i think this is overengineering, and i think you will soon find
> that going the default way makes it easier to maintain your code as you
> know
> where to look for things immediately and it avoids any collisions between
> components with the same name but in different packages.
> 
> just my two cents
> 
> -Igor
> 
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> Ok, here is my solution to this problem instead of implementing my own
>> IResourceStreamLocator.
>>
>> The overview is create a abstract class that extends WebPage that
>> overrides
>> the newMarkupResourceStream method. All other pages will extend this
>> object.
>> This object also forces it's children to implement a method that returns
>> it's resource path.  Using this resource path it will use the locator to
>> find the IResourceStream, if not found then it will delegate to it's
>> parent
>> newMarkupResourceStream method.
>>
>> public abstract class BasePage extends WebPage {
>>
>> /**
>>  * Subclasses of this path must implement this method to return
>> the path
>>  * to it's resource file i.e. html file.  This could be the fully
>> qualified
>>  * name of the page class or an alternative path.
>>  */
>> public abstract String getResourcePath();
>>
>> public IResourceStream newMarkupResourceStream(Class
>> containerClass) {
>>
>> IResourceStream stream =
>> findClassMapping(containerClass);
>>
>> return stream != null
>> ? stream
>> : super.newMarkupResourceStream(containerClass);
>>
>> }
>>
>> private IResourceStream findClassMapping(Class containerClass) {
>>
>> return this.getApplication().getResourceSettings().
>> getResourceStreamLocator().locate(
>> containerClass,
>> this.getResourcePath(),
>> this.getStyle(),
>> this.getLocale(),
>> this.getMarkupType());
>>
>> }
>>
>> }
>>
>> An alternative which mich make it a little easier to refactor later is to
>> have the overridden newMarkupResourceStream method look up a resource
>> path
>> given the fully qualified page class name in a config file or even a
>> database table.
>>
>>
>> igor.vaynberg wrote:
>> >
>> > the markup stream is resolved in
>> > MarkupContainer.newMarkupResourceStream(),
>> > it is done via the IResourceStreamLocator defined in resource settings.
>> >
>> > so you can either override that method on all markup containers, or
>> > implement your own IResouceStreamLocator like i sugested.
>> >
>> > -Igor
>> >
>> >
>> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Implementing my own IResourceStreamLocator doesn't seem correct to me
>> >> because
>> >> the interface takes the path to the resource.  The more correct why is
>> to
>> >> find where that path is coming from an overriding that implementation,
>> >> the
>> >> next step is to actual find where that path is coming from.
>> >>
>> >>
>> >>
>> >> igor.vaynberg wrote:
>> >> >
>> >> > implement your own IResourceStreamLocator
>> >> >
>> >> > -Igor
>> >> >
>> >> >
>> >> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >> I got it to work with the path "WEB-INf/view" the thing I was over
>> >>

Re: [Wicket-user] Add addictional resource folder

2006-10-06 Thread craigdd

Ok, here is my solution to this problem instead of implementing my own
IResourceStreamLocator.

The overview is create a abstract class that extends WebPage that overrides
the newMarkupResourceStream method. All other pages will extend this object. 
This object also forces it's children to implement a method that returns
it's resource path.  Using this resource path it will use the locator to
find the IResourceStream, if not found then it will delegate to it's parent
newMarkupResourceStream method.

public abstract class BasePage extends WebPage {

/**
 * Subclasses of this path must implement this method to return the path
 * to it's resource file i.e. html file.  This could be the fully 
qualified
 * name of the page class or an alternative path.
 */
public abstract String getResourcePath();

public IResourceStream newMarkupResourceStream(Class containerClass) {

IResourceStream stream = findClassMapping(containerClass);

return stream != null
? stream
: super.newMarkupResourceStream(containerClass);

}

private IResourceStream findClassMapping(Class containerClass) {

return this.getApplication().getResourceSettings().
getResourceStreamLocator().locate(
containerClass, 
this.getResourcePath(), 
this.getStyle(), 
this.getLocale(), 
this.getMarkupType());

}

}

An alternative which mich make it a little easier to refactor later is to
have the overridden newMarkupResourceStream method look up a resource path
given the fully qualified page class name in a config file or even a
database table.


igor.vaynberg wrote:
> 
> the markup stream is resolved in
> MarkupContainer.newMarkupResourceStream(),
> it is done via the IResourceStreamLocator defined in resource settings.
> 
> so you can either override that method on all markup containers, or
> implement your own IResouceStreamLocator like i sugested.
> 
> -Igor
> 
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> Implementing my own IResourceStreamLocator doesn't seem correct to me
>> because
>> the interface takes the path to the resource.  The more correct why is to
>> find where that path is coming from an overriding that implementation,
>> the
>> next step is to actual find where that path is coming from.
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > implement your own IResourceStreamLocator
>> >
>> > -Igor
>> >
>> >
>> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I got it to work with the path "WEB-INf/view" the thing I was over
>> >> looking
>> >> was the fact that when wicket looks for it's markup page it uses the
>> >> fully
>> >> qualified class name of the page object.
>> >>
>> >> It there anyway to overrider the name of the page object, in other
>> words
>> >> if
>> >> I have a WebPage subclass called com.example.MyPage.java can I
>> override
>> >> the
>> >> lookup behavior to look for a html page called mydir/myPage.html?
>> >>
>> >>
>> >> Juergen Donnerstag wrote:
>> >> >
>> >> > You are using V1.2.2?
>> >> > The debug log provided doesn't help a lot.
>> >> >
>> >> > And I'm not able to test it right now, but did try
>> >> > WEB-INF/view
>> >> > /view   (actually the files in that directory as well)
>> >> > view
>> >> >
>> >> > already. And I'm sure you are aware that even though you might a
>> >> > sourceFolder the sub-directory structure must still match.
>> >> >
>> >> > Juergen
>> >> >
>> >> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> So by the look of the code you show here it is a filter init param,
>> I
>> >> >> don't
>> >> >> remember seeing anything about configuring a filter.
>> >> >>
>> >> >> Anyway, I looked at the internalinit() method in WebApplication and
>> >> found
>> >> >> where it is pulling the sourceFolder init param from the servlet. 
>

Re: [Wicket-user] JBOSS Reload Classes

2006-10-06 Thread craigdd

Dude, I'm not here to get into an argument here, but you obviously haven't
worked in many corporate settings, you don't always get to pick and choose
which app servers you are using.  Jetty is NOT an option for us.

As for the redeployment, that is a fine idea, however with the size of our
application redeploying is extremely slow, way worse then compiling to the
WEB-INF/classes dir and bouncing the container.



igor.vaynberg wrote:
> 
> mainstream enough to attract developers that are smart enough to figure
> out
> that the path of least resistence is to develop on jetty and deploy on
> jboss
> :)
> 
> if you need app server features like ejb then the solution is not to
> restart
> the server, but to force it to redeploy your app.
> 
> -Igor
> 
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> Yes, my next step is to check the jboss forums, I sort of figured a lot
>> of
>> people that where using wicket might also be using jboss and had figured
>> out
>> this issue because it greatly affects the efficiency of development.
>>
>> I'm getting the impression that most people are using jetty with wicket
>> which makes me wonder how main stream this framework is.
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > why not ask on the jboss forums? what you want to ask is that if jboss
>> can
>> > be launched to take advantage of jvm's hotswap.
>> >
>> > -Igor
>> >
>> >
>> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> So in other words the out come to my question is that NO, jboss can
>> not
>> >> be
>> >> configured to reloaded changed classes without restarting the
>> container.
>> >>
>> >>
>> >>
>> >> Erik van Oosten wrote:
>> >> >
>> >> > Martijn Dashorst wrote:
>> >> >> Doesn't JBoss IDE start the jboss container in debug mode?
>> >> > Indeed, it does start jboss in debug mode.
>> >> >
>> >> > craigdd wrote:
>> >> >
>> >> >> I don't think debug mode in jboss allows the reloading of classes,
>> i
>> >> >> believe
>> >> >> it it just for remote debugging.
>> >> >>
>> >> > Indeed again, JBoss is directly started from Eclipse (as all
>> programs
>> >> > you start from Eclipse). Strictly there is no class reloading, but
>> you
>> >> > _can_ change classes on the fly. Just remember that when you restart
>> >> > JBoss, you must recompile and redeploy your changed classes.
>> >> >
>> >> > Regards,
>> >> >  Erik.
>> >> >
>> >> >
>> >> > --
>> >> > Erik van Oosten
>> >> > http://day-to-day-stuff.blogspot.com/
>> >> >
>> >> >
>> >> >
>> >>
>> -
>> >> > Take Surveys. Earn Cash. Influence the Future of IT
>> >> > Join SourceForge.net's Techsay panel and you'll get the chance to
>> share
>> >> > your
>> >> > opinions on IT & business topics through brief surveys -- and earn
>> cash
>> >> >
>> >>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >> > ___
>> >> > Wicket-user mailing list
>> >> > Wicket-user@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6683715
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -
>> >> Take Surveys. Earn Cash. Influence the Future of IT
>> >> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share
>> >> your
>> >> opinions on IT & business topics through brief surveys -- and earn
>> cash
>> >>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >> 

Re: [Wicket-user] JBOSS Reload Classes

2006-10-06 Thread craigdd

Again, sorry for this post to be a little off topic, however, this question
has come up because as I'm evaluating wicket I've found that I'm restarted
my container way too much while doing some simple web development.  I
thought maybe that people in this forum have had the same issue and found
some slick ways around it.



Michael Hosier wrote:
> 
> There is nothing lacking in JBoss here, the guy just doesn't know what he
> is
> doing and doesn't know (or care) about the appropriate venues for this
> type
> of question.  I use JBoss and Eclipse with MyEclipse in development and it
> is very slick.
> 
> Perhaps people are not answering his question because it is off topic and
> that annoys people?
> 
> 
> On 10/6/06, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
>>
>> On Friday, 06 October 2006 12:51 pm, craigdd escreveu:
>> > Yes, my next step is to check the jboss forums, I sort of figured a lot
>> of
>> > people that where using wicket might also be using jboss and had
>> figured
>> > out this issue because it greatly affects the efficiency of
>> development.
>> >
>> > I'm getting the impression that most people are using jetty with wicket
>> > which makes me wonder how main stream this framework is.
>>
>> I user jetty for development, but tomcat for deployment.
>>
>> Dunno about anyone else.
>>
>> Make me wonder how jboss could be mainstream w/o supporting this
>> feature! :)
>>
>> >
>> > igor.vaynberg wrote:
>> > > why not ask on the jboss forums? what you want to ask is that if
>> jboss
>> > > can be launched to take advantage of jvm's hotswap.
>> > >
>> > > -Igor
>> > >
>> > > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> > >> So in other words the out come to my question is that NO, jboss can
>> not
>> > >> be
>> > >> configured to reloaded changed classes without restarting the
>> container.
>> > >>
>> > >> Erik van Oosten wrote:
>> > >> > Martijn Dashorst wrote:
>> > >> >> Doesn't JBoss IDE start the jboss container in debug mode?
>> > >> >
>> > >> > Indeed, it does start jboss in debug mode.
>> > >> >
>> > >> > craigdd wrote:
>> > >> >> I don't think debug mode in jboss allows the reloading of
>> classes,
>> i
>> > >> >> believe
>> > >> >> it it just for remote debugging.
>> > >> >
>> > >> > Indeed again, JBoss is directly started from Eclipse (as all
>> programs
>> > >> > you start from Eclipse). Strictly there is no class reloading, but
>> you
>> > >> > _can_ change classes on the fly. Just remember that when you
>> restart
>> > >> > JBoss, you must recompile and redeploy your changed classes.
>> > >> >
>> > >> > Regards,
>> > >> >  Erik.
>> > >> >
>> > >> >
>> > >> > --
>> > >> > Erik van Oosten
>> > >> > http://day-to-day-stuff.blogspot.com/
>> > >>
>> > >>
>> 
>> > >>-
>> > >>
>> > >> > Take Surveys. Earn Cash. Influence the Future of IT
>> > >> > Join SourceForge.net's Techsay panel and you'll get the chance to
>> > >> > share your
>> > >> > opinions on IT & business topics through brief surveys -- and earn
>> > >> > cash
>> > >>
>> > >>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
>> > >>V
>> > >>
>> > >> > ___
>> > >> > Wicket-user mailing list
>> > >> > Wicket-user@lists.sourceforge.net
>> > >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> > >>
>> > >> --
>> > >> View this message in context:
>> > >> http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6683715
>> > >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> > >>
>> > >>
>> > >>
>> -

Re: [Wicket-user] Add addictional resource folder

2006-10-06 Thread craigdd

Again I don't think implementing the IResourceStream interface is the correct
way because the interface method "locate" you must implement takes a path
member which according to the javadoc IS the path to the resource, it is the
responsibility of the IResourceStream implementation to locate the resource
with the given path.

I'd be looking for where that path value comes from and override it, however
what I think I'm seeing is that the path simply starts as the fully
qualified path of the WebPage subclass.

On the other hand I could implment the interface and in the locator method
look for a path mapping using the class name as a key, however this would be
an extension to the framework and seems a little hackish to me.



igor.vaynberg wrote:
> 
> the markup stream is resolved in
> MarkupContainer.newMarkupResourceStream(),
> it is done via the IResourceStreamLocator defined in resource settings.
> 
> so you can either override that method on all markup containers, or
> implement your own IResouceStreamLocator like i sugested.
> 
> -Igor
> 
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> Implementing my own IResourceStreamLocator doesn't seem correct to me
>> because
>> the interface takes the path to the resource.  The more correct why is to
>> find where that path is coming from an overriding that implementation,
>> the
>> next step is to actual find where that path is coming from.
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > implement your own IResourceStreamLocator
>> >
>> > -Igor
>> >
>> >
>> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I got it to work with the path "WEB-INf/view" the thing I was over
>> >> looking
>> >> was the fact that when wicket looks for it's markup page it uses the
>> >> fully
>> >> qualified class name of the page object.
>> >>
>> >> It there anyway to overrider the name of the page object, in other
>> words
>> >> if
>> >> I have a WebPage subclass called com.example.MyPage.java can I
>> override
>> >> the
>> >> lookup behavior to look for a html page called mydir/myPage.html?
>> >>
>> >>
>> >> Juergen Donnerstag wrote:
>> >> >
>> >> > You are using V1.2.2?
>> >> > The debug log provided doesn't help a lot.
>> >> >
>> >> > And I'm not able to test it right now, but did try
>> >> > WEB-INF/view
>> >> > /view   (actually the files in that directory as well)
>> >> > view
>> >> >
>> >> > already. And I'm sure you are aware that even though you might a
>> >> > sourceFolder the sub-directory structure must still match.
>> >> >
>> >> > Juergen
>> >> >
>> >> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> So by the look of the code you show here it is a filter init param,
>> I
>> >> >> don't
>> >> >> remember seeing anything about configuring a filter.
>> >> >>
>> >> >> Anyway, I looked at the internalinit() method in WebApplication and
>> >> found
>> >> >> where it is pulling the sourceFolder init param from the servlet. 
>> I
>> >> >> added
>> >> >> that init param and it still doesn't work, here is my servlet
>> config;
>> >> >>
>> >> >>
>> >> >>wicket
>> >> >>wicket.protocol.http.WicketServlet
>> >> 
>> >> >>
>> >> >>  applicationClassName
>> >> >> 
>> com.lenzen.web.WicketApplication
>> >> >>
>> >> >>
>> >> >>  sourceFolder
>> >> >>  /WEB-INF/view
>> >> >>
>> >> >>1
>> >> >>
>> >> >>
>> >> >> Here is the debug statements when turning on debug for
>> >> >> wicket.util.resource.
>> >> >>
>> >> >> 08:58:40,046 DEBUG [UrlResourceStream] cannot convert url:
>> >> >> jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib
>> >> >>
>> /wicket-1.2.2.jar!/wicket/markup/

Re: [Wicket-user] JBOSS Reload Classes

2006-10-06 Thread craigdd

Yes, my next step is to check the jboss forums, I sort of figured a lot of
people that where using wicket might also be using jboss and had figured out
this issue because it greatly affects the efficiency of development.

I'm getting the impression that most people are using jetty with wicket
which makes me wonder how main stream this framework is.



igor.vaynberg wrote:
> 
> why not ask on the jboss forums? what you want to ask is that if jboss can
> be launched to take advantage of jvm's hotswap.
> 
> -Igor
> 
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> So in other words the out come to my question is that NO, jboss can not
>> be
>> configured to reloaded changed classes without restarting the container.
>>
>>
>>
>> Erik van Oosten wrote:
>> >
>> > Martijn Dashorst wrote:
>> >> Doesn't JBoss IDE start the jboss container in debug mode?
>> > Indeed, it does start jboss in debug mode.
>> >
>> > craigdd wrote:
>> >
>> >> I don't think debug mode in jboss allows the reloading of classes, i
>> >> believe
>> >> it it just for remote debugging.
>> >>
>> > Indeed again, JBoss is directly started from Eclipse (as all programs
>> > you start from Eclipse). Strictly there is no class reloading, but you
>> > _can_ change classes on the fly. Just remember that when you restart
>> > JBoss, you must recompile and redeploy your changed classes.
>> >
>> > Regards,
>> >  Erik.
>> >
>> >
>> > --
>> > Erik van Oosten
>> > http://day-to-day-stuff.blogspot.com/
>> >
>> >
>> >
>> -
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>> > your
>> > opinions on IT & business topics through brief surveys -- and earn cash
>> >
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6683715
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6684139
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Add addictional resource folder

2006-10-06 Thread craigdd

Implementing my own IResourceStreamLocator doesn't seem correct to me because
the interface takes the path to the resource.  The more correct why is to
find where that path is coming from an overriding that implementation, the
next step is to actual find where that path is coming from.



igor.vaynberg wrote:
> 
> implement your own IResourceStreamLocator
> 
> -Igor
> 
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>>
>> I got it to work with the path "WEB-INf/view" the thing I was over
>> looking
>> was the fact that when wicket looks for it's markup page it uses the
>> fully
>> qualified class name of the page object.
>>
>> It there anyway to overrider the name of the page object, in other words
>> if
>> I have a WebPage subclass called com.example.MyPage.java can I override
>> the
>> lookup behavior to look for a html page called mydir/myPage.html?
>>
>>
>> Juergen Donnerstag wrote:
>> >
>> > You are using V1.2.2?
>> > The debug log provided doesn't help a lot.
>> >
>> > And I'm not able to test it right now, but did try
>> > WEB-INF/view
>> > /view   (actually the files in that directory as well)
>> > view
>> >
>> > already. And I'm sure you are aware that even though you might a
>> > sourceFolder the sub-directory structure must still match.
>> >
>> > Juergen
>> >
>> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>> >>
>> >> So by the look of the code you show here it is a filter init param, I
>> >> don't
>> >> remember seeing anything about configuring a filter.
>> >>
>> >> Anyway, I looked at the internalinit() method in WebApplication and
>> found
>> >> where it is pulling the sourceFolder init param from the servlet.  I
>> >> added
>> >> that init param and it still doesn't work, here is my servlet config;
>> >>
>> >>
>> >>wicket
>> >>wicket.protocol.http.WicketServlet
>> 
>> >>
>> >>  applicationClassName
>> >>  com.lenzen.web.WicketApplication
>> >>
>> >>
>> >>  sourceFolder
>> >>  /WEB-INF/view
>> >>
>> >>1
>> >>
>> >>
>> >> Here is the debug statements when turning on debug for
>> >> wicket.util.resource.
>> >>
>> >> 08:58:40,046 DEBUG [UrlResourceStream] cannot convert url:
>> >> jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib
>> >> /wicket-1.2.2.jar!/wicket/markup/html/pages/ExceptionErrorPage.html to
>> >> file
>> >> (URI is not hierarchical), falling back to the in
>> >> putstream for polling
>> >> 08:58:40,187 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> >> locate resource 'wicket/markup/html/debug/PageView_en_
>> >> US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> >> 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> >> locate resource 'wicket/markup/html/debug/PageView_en_
>> >> US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> >> 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> >> locate resource 'wicket/markup/html/debug/PageView_en.
>> >> html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> >> 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> >> locate resource 'wicket/markup/html/debug/PageView.htm
>> >> l' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> >> 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to
>> >> locate
>> >> resource 'wicket/markup/html/debug/PageView_en_US.
>> >> html' using classloader WebappClassLoader
>> >>  delegate: false
>> >>  repositories:
>> >>/WEB-INF/classes/
>> >> --> Parent Classloader:
>> >> [EMAIL PROTECTED]
>> >>
>> >> 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to
>> >> locate
>> >> resource 'wicket/markup/html/debug/PageView_en_US.
>> >> html' using classloader WebappClassLoader
>> >>  delegate: false
>> >>  repositories:
>> >&g

Re: [Wicket-user] JBOSS Reload Classes

2006-10-06 Thread craigdd

So in other words the out come to my question is that NO, jboss can not be
configured to reloaded changed classes without restarting the container.



Erik van Oosten wrote:
> 
> Martijn Dashorst wrote:
>> Doesn't JBoss IDE start the jboss container in debug mode?
> Indeed, it does start jboss in debug mode.
> 
> craigdd wrote:
> 
>> I don't think debug mode in jboss allows the reloading of classes, i
>> believe
>> it it just for remote debugging.
>>   
> Indeed again, JBoss is directly started from Eclipse (as all programs 
> you start from Eclipse). Strictly there is no class reloading, but you 
> _can_ change classes on the fly. Just remember that when you restart 
> JBoss, you must recompile and redeploy your changed classes.
> 
> Regards,
>  Erik.
> 
> 
> -- 
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6683715
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Add addictional resource folder

2006-10-06 Thread craigdd

I got it to work with the path "WEB-INf/view" the thing I was over looking
was the fact that when wicket looks for it's markup page it uses the fully
qualified class name of the page object.

It there anyway to overrider the name of the page object, in other words if
I have a WebPage subclass called com.example.MyPage.java can I override the
lookup behavior to look for a html page called mydir/myPage.html?


Juergen Donnerstag wrote:
> 
> You are using V1.2.2?
> The debug log provided doesn't help a lot.
> 
> And I'm not able to test it right now, but did try
> WEB-INF/view
> /view   (actually the files in that directory as well)
> view
> 
> already. And I'm sure you are aware that even though you might a
> sourceFolder the sub-directory structure must still match.
> 
> Juergen
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> So by the look of the code you show here it is a filter init param, I
>> don't
>> remember seeing anything about configuring a filter.
>>
>> Anyway, I looked at the internalinit() method in WebApplication and found
>> where it is pulling the sourceFolder init param from the servlet.  I
>> added
>> that init param and it still doesn't work, here is my servlet config;
>>
>>
>>wicket
>>wicket.protocol.http.WicketServlet
>>
>>  applicationClassName
>>  com.lenzen.web.WicketApplication
>>
>>
>>  sourceFolder
>>  /WEB-INF/view
>>
>>1
>>
>>
>> Here is the debug statements when turning on debug for
>> wicket.util.resource.
>>
>> 08:58:40,046 DEBUG [UrlResourceStream] cannot convert url:
>> jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib
>> /wicket-1.2.2.jar!/wicket/markup/html/pages/ExceptionErrorPage.html to
>> file
>> (URI is not hierarchical), falling back to the in
>> putstream for polling
>> 08:58:40,187 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> locate resource 'wicket/markup/html/debug/PageView_en_
>> US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> locate resource 'wicket/markup/html/debug/PageView_en_
>> US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> locate resource 'wicket/markup/html/debug/PageView_en.
>> html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> 08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
>> locate resource 'wicket/markup/html/debug/PageView.htm
>> l' on path [folders = [], webapppaths: [/WEB-INF/view/]]
>> 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to
>> locate
>> resource 'wicket/markup/html/debug/PageView_en_US.
>> html' using classloader WebappClassLoader
>>  delegate: false
>>  repositories:
>>/WEB-INF/classes/
>> --> Parent Classloader:
>> [EMAIL PROTECTED]
>>
>> 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to
>> locate
>> resource 'wicket/markup/html/debug/PageView_en_US.
>> html' using classloader WebappClassLoader
>>  delegate: false
>>  repositories:
>>/WEB-INF/classes/
>> --> Parent Classloader:
>> [EMAIL PROTECTED]
>>
>> 08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to
>> locate
>> resource 'wicket/markup/html/debug/PageView_en.htm
>> l' using classloader WebappClassLoader
>>  delegate: false
>>  repositories:
>>/WEB-INF/classes/
>> --> Parent Classloader:
>> [EMAIL PROTECTED]
>>
>> 08:58:40,218 DEBUG [ClassLoaderResourceStreamLocator] Attempting to
>> locate
>> resource 'wicket/markup/html/debug/PageView.html'
>> using classloader WebappClassLoader
>>  delegate: false
>>  repositories:
>>/WEB-INF/classes/
>> --> Parent Classloader:
>> [EMAIL PROTECTED]
>>
>> 08:58:40,218 DEBUG [UrlResourceStream] cannot convert url:
>> jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib
>> /wicket-1.2.2.jar!/wicket/markup/html/debug/PageView.html to file (URI is
>> not hierarchical), falling back to the inputstream
>> for polling
>>
>>
>>
>> Juergen Donnerstag wrote:
>> >
>> > Just follow back where addResourceFolder() is already used. It is

Re: [Wicket-user] Add addictional resource folder

2006-10-06 Thread craigdd

So by the look of the code you show here it is a filter init param, I don't
remember seeing anything about configuring a filter.

Anyway, I looked at the internalinit() method in WebApplication and found
where it is pulling the sourceFolder init param from the servlet.  I added
that init param and it still doesn't work, here is my servlet config;


wicket
wicket.protocol.http.WicketServlet

  applicationClassName
  com.lenzen.web.WicketApplication


  sourceFolder
  /WEB-INF/view

1
   

Here is the debug statements when turning on debug for wicket.util.resource.

08:58:40,046 DEBUG [UrlResourceStream] cannot convert url:
jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib
/wicket-1.2.2.jar!/wicket/markup/html/pages/ExceptionErrorPage.html to file
(URI is not hierarchical), falling back to the in
putstream for polling
08:58:40,187 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
locate resource 'wicket/markup/html/debug/PageView_en_
US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
locate resource 'wicket/markup/html/debug/PageView_en_
US.html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
locate resource 'wicket/markup/html/debug/PageView_en.
html' on path [folders = [], webapppaths: [/WEB-INF/view/]]
08:58:40,203 DEBUG [ResourceFinderResourceStreamLocator] Attempting to
locate resource 'wicket/markup/html/debug/PageView.htm
l' on path [folders = [], webapppaths: [/WEB-INF/view/]]
08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate
resource 'wicket/markup/html/debug/PageView_en_US.
html' using classloader WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]

08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate
resource 'wicket/markup/html/debug/PageView_en_US.
html' using classloader WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]

08:58:40,203 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate
resource 'wicket/markup/html/debug/PageView_en.htm
l' using classloader WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]

08:58:40,218 DEBUG [ClassLoaderResourceStreamLocator] Attempting to locate
resource 'wicket/markup/html/debug/PageView.html'
using classloader WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]

08:58:40,218 DEBUG [UrlResourceStream] cannot convert url:
jar:file:/C:/develop/projects/wicket/deploy/wicket.war/WEB-INF/lib
/wicket-1.2.2.jar!/wicket/markup/html/debug/PageView.html to file (URI is
not hierarchical), falling back to the inputstream
for polling



Juergen Donnerstag wrote:
> 
> Just follow back where addResourceFolder() is already used. It is
> currently used in WebApplication.internalInit() and
> PortletApplication.internalInit() and the code looks like
>   ...
>   configure(configuration, wicketFilter.getFilterConfig()
>   .getInitParameter("sourceFolder"));
>   ...
> 
> So the init param is "sourceFolder"
> 
> Juergen
> 
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> I've beed trying to get this to work for a while now, basically what I
>> want,
>> is to have Wicket load my html files from /WEB-INF/view directory instead
>> of
>> the classes directory.
>>
>> I've been reading a post about seperating your html and it was suggested
>> to
>> use the method addResourceFolder("path");  So in my init method of my
>> WebApplication subclass I have the following init method;
>>
>> protected void init() {
>>
>>
>> this.getResourceSettings().addResourceFolder("/WEB-INF/view/");
>>
>> } // init
>>
>> Thist doesn't seem to work, what am I missing or is this really possible. 
>> I
>> also tried turing debug on for the path "wicket.util.resource" and the
>> only
>> resource path that is logged in WEB-INF/classes.
>>
>> Also, the other post mentioned adding this as an init parameter to the
>> servlet, looking at the source code of the servlet I don't see anything
>> that
>> allows for adding additional resource folder paths.
>>
>> I'm new to Wicket and currently evaluating it against

Re: [Wicket-user] JBOSS Reload Classes

2006-10-06 Thread craigdd

I don't think debug mode in jboss allows the reloading of classes, i believe
it it just for remote debugging.



Martijn Dashorst wrote:
> 
> Doesn't JBoss IDE start the jboss container in debug mode?
> 
> We typically work with tomcat/jetty directly (tomcat sysdeo or jetty
> launcher plugin)
> 
> Martijn
> 
> On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> I'm using jboss 4.0.4, does anyone know how to configure it to reload
>> changed
>> classes?  I want to be able to change my Wicket WebPage subclasses
>> without
>> having to restart the container.
>> --
>> View this message in context:
>> http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6672270
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> 
> -- 
>  http://www.thebeststuffintheworld.com/vote_for/wicket Vote 
> for  http://www.thebeststuffintheworld.com/stuff/wicket Wicket 
> at the  http://www.thebeststuffintheworld.com/ Best Stuff in
> the World! 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6678468
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] JBOSS Reload Classes

2006-10-05 Thread craigdd

I'm using jboss 4.0.4, does anyone know how to configure it to reload changed
classes?  I want to be able to change my Wicket WebPage subclasses without
having to restart the container.
-- 
View this message in context: 
http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6672270
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Add addictional resource folder

2006-10-05 Thread craigdd

I've beed trying to get this to work for a while now, basically what I want,
is to have Wicket load my html files from /WEB-INF/view directory instead of
the classes directory.

I've been reading a post about seperating your html and it was suggested to
use the method addResourceFolder("path");  So in my init method of my
WebApplication subclass I have the following init method;

protected void init() {

this.getResourceSettings().addResourceFolder("/WEB-INF/view/");

} // init

Thist doesn't seem to work, what am I missing or is this really possible.  I
also tried turing debug on for the path "wicket.util.resource" and the only
resource path that is logged in WEB-INF/classes.

Also, the other post mentioned adding this as an init parameter to the
servlet, looking at the source code of the servlet I don't see anything that
allows for adding additional resource folder paths.

I'm new to Wicket and currently evaluating it against JSF and would
appriecate any help.
-- 
View this message in context: 
http://www.nabble.com/Add-addictional-resource-folder-tf2392764.html#a6671548
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user