Re: @AuthorizeInstanciation and several roles

2007-12-31 Thread nasrin mansour
hi
i don't have enough experience in this topic like you but i think if you
look at wicket-role-auth-example it's usuful and
 i think you must wite  this :
@AuthorizeInstanciation(poweruser,admin,sysadmin)
in this way:
@AuthorizeInstanciation(poweruser , admin, sysadmin)

On Dec 31, 2007 3:35 AM, Pills [EMAIL PROTECTED] wrote:


 Hello,

 I'm using the wicket-auth-roles package to allow or restrict access to
 some
 pages. I need to autorize the instanciation of some pages to several
 roles.
 Is it possible to write something like:

 @AuthorizeInstanciation(poweruser,admin,sysadmin)
 class Mypage extends WebPage {...}

 and something like this in my authenticated session:

 public Roles getRoles() {
return new Roles(new String[] {poweruser,admin,sysadmin});
 }

 If it's possible, what is the right syntax?

 PS: I've read a bit about wasp/swarm, but it looks too much complicated
 for
 my needs (I just need to prevent some components to be instantiated for
 some
 kinds of users). Hiding/showing links and such fonctionnality is not
 needed

 Thank you ;)
 --
 View this message in context:
 http://www.nabble.com/%40AuthorizeInstanciation-and-several-roles-tp14552711p14552711.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: @AuthorizeInstanciation and several roles

2007-12-31 Thread nasrin mansour
sorry this :
@AuthorizeInstanciation({poweruser , admin, sysadmin})

On Dec 31, 2007 2:04 PM, nasrin mansour [EMAIL PROTECTED] wrote:

 hi
 i don't have enough experience in this topic like you but i think if you
 look at wicket-role-auth-example it's usuful and
  i think you must wite  this :
 @AuthorizeInstanciation(poweruser,admin,sysadmin)
 in this way:
 @AuthorizeInstanciation(poweruser , admin, sysadmin)


 On Dec 31, 2007 3:35 AM, Pills [EMAIL PROTECTED]  wrote:

 
  Hello,
 
  I'm using the wicket-auth-roles package to allow or restrict access to
  some
  pages. I need to autorize the instanciation of some pages to several
  roles.
  Is it possible to write something like:
 
  @AuthorizeInstanciation(poweruser,admin,sysadmin)
  class Mypage extends WebPage {...}
 
  and something like this in my authenticated session:
 
  public Roles getRoles() {
 return new Roles(new String[] {poweruser,admin,sysadmin});
  }
 
  If it's possible, what is the right syntax?
 
  PS: I've read a bit about wasp/swarm, but it looks too much complicated
  for
  my needs (I just need to prevent some components to be instantiated for
  some
  kinds of users). Hiding/showing links and such fonctionnality is not
  needed
 
  Thank you ;)
  --
  View this message in context: 
  http://www.nabble.com/%40AuthorizeInstanciation-and-several-roles-tp14552711p14552711.html
 
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: @AuthorizeInstanciation and several roles

2007-12-31 Thread Sébastien Piller




Yes, I tried it too, but it doesn't work.

The right syntax seems to be @AutorizeInstanciation( { "poweruser", "admin", "sysadmin" } )

Thanks

nasrin mansour a crit:

  hi
i don't have enough experience in this topic like you but i think if you
look at wicket-role-auth-example it's usuful and
 i think you must wite  this :
@AuthorizeInstanciation("poweruser,admin,sysadmin")
in this way:
@AuthorizeInstanciation("poweruser ", "admin", "sysadmin")

On Dec 31, 2007 3:35 AM, Pills [EMAIL PROTECTED] wrote:

  
  
Hello,

I'm using the wicket-auth-roles package to allow or restrict access to
some
pages. I need to autorize the instanciation of some pages to several
roles.
Is it possible to write something like:

@AuthorizeInstanciation("poweruser,admin,sysadmin")
class Mypage extends WebPage {...}

and something like this in my authenticated session:

public Roles getRoles() {
   return new Roles(new String[] {"poweruser","admin","sysadmin"});
}

If it's possible, what is the right syntax?

PS: I've read a bit about wasp/swarm, but it looks too much complicated
for
my needs (I just need to prevent some components to be instantiated for
some
kinds of users). Hiding/showing links and such fonctionnality is not
needed

Thank you ;)
--
View this message in context:
http://www.nabble.com/%40AuthorizeInstanciation-and-several-roles-tp14552711p14552711.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



  
  
  





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



Re: @AuthorizeInstanciation and several roles

2007-12-31 Thread nasrin mansour
yes i said this before , has my syntax any different with your's?

On Dec 31, 2007 2:07 PM, Sébastien Piller [EMAIL PROTECTED] wrote:

  Yes, I tried it too, but it doesn't work.

 The right syntax seems to be @AutorizeInstanciation( *{* poweruser,
 admin, sysadmin *}* )

 Thanks

 nasrin mansour a écrit :

 hi
 i don't have enough experience in this topic like you but i think if you
 look at wicket-role-auth-example it's usuful and
  i think you must wite  this :
 @AuthorizeInstanciation(poweruser,admin,sysadmin)
 in this way:
 @AuthorizeInstanciation(poweruser , admin, sysadmin)

 On Dec 31, 2007 3:35 AM, Pills [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



  Hello,

 I'm using the wicket-auth-roles package to allow or restrict access to
 some
 pages. I need to autorize the instanciation of some pages to several
 roles.
 Is it possible to write something like:

 @AuthorizeInstanciation(poweruser,admin,sysadmin)
 class Mypage extends WebPage {...}

 and something like this in my authenticated session:

 public Roles getRoles() {
return new Roles(new String[] {poweruser,admin,sysadmin});
 }

 If it's possible, what is the right syntax?

 PS: I've read a bit about wasp/swarm, but it looks too much complicated
 for
 my needs (I just need to prevent some components to be instantiated for
 some
 kinds of users). Hiding/showing links and such fonctionnality is not
 needed

 Thank you ;)
 --
 View this message in 
 context:http://www.nabble.com/%40AuthorizeInstanciation-and-several-roles-tp14552711p14552711.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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


Ajax History Back support on Stateless pages

2007-12-31 Thread based

Hi

I have a stateless page which holds product datas. And it has a tab
component which uses Ajax.

I know a way to do it with Page Bookmarks (#tabName). But i wonder is there
any other solution or any pattern to implement this issue better?

Thanks
fatih


-- 
View this message in context: 
http://www.nabble.com/Ajax-History-Back-support-on-Stateless-pages-tp14556855p14556855.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Ajax History Back support on Stateless pages

2007-12-31 Thread Peter Ertl
As far as I understand your page will not be stateless anymore once  
you use ajax.


Am 31.12.2007 um 12:59 schrieb based:



Hi

I have a stateless page which holds product datas. And it has a tab
component which uses Ajax.

I know a way to do it with Page Bookmarks (#tabName). But i wonder  
is there

any other solution or any pattern to implement this issue better?

Thanks
fatih


--
View this message in context: 
http://www.nabble.com/Ajax-History-Back-support-on-Stateless-pages-tp14556855p14556855.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



set the feedback message to js function

2007-12-31 Thread JohnSmith333

Could anyone tell me how to set the feedback message to js function like
alert(some txt must set)?
thanks!
-- 
View this message in context: 
http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: wicketstuff.org is down

2007-12-31 Thread C.

On Mon, 2007-12-31 at 10:46 -0500, Ryan McKinley wrote:
 Hello-
 
 http://wicketstuff.org/ currently sends you to:
 http://wicketstuff.org/confluence/errors.jsp
 
 It was like this last night too...

I wonder what it would take these domains to switch over to hippo or
wicket?  scornful lookWicket is a web framework.. /scornful look
Before I jump too far I do have to assume though that part of the infra
is under Apache control?


Thanks

./C


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



Re: wicketstuff.org is down

2007-12-31 Thread Martijn Dashorst
Don't assume too much. This is *NOT* under control of Apache. It is a
private server provided by Servoy.
The problem is that the server does quite a bit: bamboo, jira, confluence,
wicket examples (1.3 and 1.2), wicket stuff examples, ##wicket logging, etc.

As far as 'wicket is a web framework' is concerned... talk to the atlassian
guys... they didn't use Wicket to build bamboo, jira and confluence.

Martijn

On Dec 31, 2007 6:00 PM, C. Bergström [EMAIL PROTECTED] wrote:


 On Mon, 2007-12-31 at 10:46 -0500, Ryan McKinley wrote:
  Hello-
 
  http://wicketstuff.org/ currently sends you to:
  http://wicketstuff.org/confluence/errors.jsp
 
  It was like this last night too...

 I wonder what it would take these domains to switch over to hippo or
 wicket?  scornful lookWicket is a web framework.. /scornful look
 Before I jump too far I do have to assume though that part of the infra
 is under Apache control?


 Thanks

 ./C


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




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


Re: wicketstuff.org is down

2007-12-31 Thread Martijn Dashorst
A shutdown and startup of the tomcat instance seemed to do the trick.
Martijn

On Dec 31, 2007 5:11 PM, Martijn Dashorst [EMAIL PROTECTED]
wrote:

 Don't assume too much. This is *NOT* under control of Apache. It is a
 private server provided by Servoy.
 The problem is that the server does quite a bit: bamboo, jira, confluence,
 wicket examples ( 1.3 and 1.2), wicket stuff examples, ##wicket logging,
 etc.

 As far as 'wicket is a web framework' is concerned... talk to the
 atlassian guys... they didn't use Wicket to build bamboo, jira and
 confluence.

 Martijn


 On Dec 31, 2007 6:00 PM, C. Bergström [EMAIL PROTECTED] wrote:

 
  On Mon, 2007-12-31 at 10:46 -0500, Ryan McKinley wrote:
   Hello-
  
   http://wicketstuff.org/ currently sends you to:
   http://wicketstuff.org/confluence/errors.jsp
  
   It was like this last night too...
 
  I wonder what it would take these domains to switch over to hippo or
  wicket?  scornful lookWicket is a web framework.. /scornful look
  Before I jump too far I do have to assume though that part of the infra
  is under Apache control?
 
 
  Thanks
 
  ./C
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




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


RE: Can't Find/Load Properties Files

2007-12-31 Thread Shelli D. Orton
Thanks for replying!

I did as you suggested and added the messages to MyApp.properties.  I now
get the proper message for com.my.company.MyStringValidator.  However
there's still a problem with the pattern validator.  I am expecting my
message to be displayed as defined in MyApp.properties:

MyPatternValidator=${input} contains invalid characters.

Instead, I get the wicket/Application.properties message:

PatternValidator='${input}' does not match pattern '${pattern}'

Is this related to the same issue you mentioned?  I suppose I could make
MyPatternValidator a subclass of StringValidator, but would prefer to have
it subclass PatternValidator.

Thanks again!
Shelli

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 28, 2007 5:03 PM
To: users@wicket.apache.org
Subject: Re: Can't Find/Load Properties Files

we do not currently check ValidatorClassName.properties files, there
is an rfe open for that in jira and will go into 1.3.1 or 1.4.0.

for now i would put those new properties into yourapplication.properties

-igor


On Dec 28, 2007 1:36 PM, Shelli D. Orton [EMAIL PROTECTED] wrote:
 Hi,

 I asked a variation of this question recently but didn't get a response.
I'm still stumped, so am trying again.  I am using Wicket 1.2.6 and Tomcat
5.0.28 and have created 2 custom validators:

 com.my.company.MyPatternValidator
 com.my.company.MyStringValidator

 where MyPatternValidator extends PatternValidator and MyStringValidator
extends StringValidator.  I have also created properties files for each
class within a directory structure that match the classpath:

 com/my/company/MyPatternValidator.properties
 com/my/company/MyStringValidator.properties


 The class that extends PatternValidator uses the default message from
Application.properties instead of the message defined in its properties
file.  The logs show that the Wizard and Application resources are being
loaded:

 Dec 28, 2007 2:31:24 PM wicket.resource.PropertiesFactory
loadPropertiesFileAndWatchForChanges
 INFO: Loading properties files from
file:/C:/tomcat-5.0.28/work/Catalina/localhost/myApp/loader/wicket/extension
s/wizard/Wizard.properties
 Dec 28, 2007 2:31:34 PM wicket.resource.PropertiesFactory
loadPropertiesFileAndWatchForChanges
 INFO: Loading properties files from
file:/C:/tomcat-5.0.28/work/Catalina/localhost/myApp/loader/wicket/Applicati
on.properties

 The other that extends StringValidator throws this exception:

 java.util.MissingResourceException: Unable to find resource:
MyStringValidator for component: wizard:form:view:service.name

 I have checked and tomcat-5.0.28/work/Catalina/localhost/myApp also
contains /com/my/company/MyPatternValidator.properties and
/com/my/company/MyStringValidator.properties files.

 Can somebody please explain to me (or point me to a resource) how to set
up properties files in Wicket so that they can be found?  Any help is
greatly appreciated!

 Shelli


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



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


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



TextArea/TinyMceBehavior/quotes and sql...oh my

2007-12-31 Thread Doug Leeper

Not sure where my error falls into...wicket, tinymcebehavior, hibernate, or
mysql.  My error (invalid syntax in my sql) is showing up when inserting.

I am using a textarea with TinyMceBehavior(false). The content has single
quotes; i.e. don't, you're.  How do I escape these so they will be able to
be inserted properly.  Is there some behavior in the textarea or
tinymcebehavior to handle this?  or is this a hibernate/sql issue?

Thanks
- Doug
-- 
View this message in context: 
http://www.nabble.com/TextArea-TinyMceBehavior-quotes-and-sql...oh-my-tp14562465p14562465.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Happy new year list!

2007-12-31 Thread Jörgen Persson

Regards,

Jörgen

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



Re: set the feedback message to js function

2007-12-31 Thread JohnSmith333

Thanks for your kindly reply and help.
I have read the FeedbackPanel  source code and know the use of
HeaderContributor.
But I still don't know how to do . Could you or anyone help me more? Thanks!

HeaderContributor.forJavaScript(/js/default.js);



igor.vaynberg wrote:
 
 see how feedbackpanel is implemented, you can write a header
 contributor to spit feedback messages to a js function
 
 -igor
 
 
 On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED] wrote:

 Could anyone tell me how to set the feedback message to js function like
 alert(some txt must set)?
 thanks!
 --
 View this message in context:
 http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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