Re: Evaluating Wicket

2008-02-06 Thread djo.mos

Hi,
 I'm myself discovering Wicket, but I'll try to nswer some of your questions
;)


René Samselnig wrote:
> 
> * What experience do you have regarding performance of wicket
> applications?
> 

I haven't built a large application with Wicket yet, but in a JPA CRUD
examples I made, Wicket performs better than JSF IMO, I mean I did not made
a serious benchmarking, but I can notice the difference with my bare eyes.

René Samselnig wrote:
> 
> * Is there a way to cluster wicket applications?
> 
Hell yes ! It's one of the major features of the 1.3 version I think.


René Samselnig wrote:
> 
> * Does wicket use any proprietary, non-standard technologies?
> 
Well, being an Open Source and ASF Licensed, the answer is clearly NO.


René Samselnig wrote:
> 
> * How does wicket care about session hijacking or sql injection?
> 
Session Hijacking: One nifty feature of Wicket is that you can pass
parameters betwwen pages as Java parameters, thus not exposing them outside
the runtime environment.
Regarding the SQL Injection, this has absolutely nothing to do with Wicket
nor any other Web Framework.
JDBC solves this (using the query parameters).


René Samselnig wrote:
> 
> * Is there an easy way to implement SSO?
> 
Sorry, this question is not not for me.


René Samselnig wrote:
> 
> * Can I integrate wicket applications into any content management system?
> 
Well, this seems a bit delicate to achieve in Wicket, for the simple reason
of the 1..1 relationship between a HTML page and a WebPage class ...

Regards.
-- 
View this message in context: 
http://www.nabble.com/Evaluating-Wicket-tp15306535p15309002.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: Evaluating Wicket

2008-02-06 Thread djo.mos

Ah, just an addition about performance:
  Session size can be a bottleneck in performance, so one have just to be
careful about what to put in his session and by using detachable models for
example.


-- 
View this message in context: 
http://www.nabble.com/Evaluating-Wicket-tp15306535p15309398.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: Reloading resource

2008-02-06 Thread djo.mos

Hi,

gantini wrote:
> 
> But when I modify any html file, no reload is performed :-((
> 

This may take time, especially with HTML files (in opposition to class files
change) and in an unvisible manner (again in opposition to class files
change where Tomcat reloads the context).

Try waiting for some seconds and keep hitting the refresh button.
-- 
View this message in context: 
http://www.nabble.com/Reloading-resource-tp15268997p15312791.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: Can i assign parameters while calling the application?

2008-02-07 Thread djo.mos

Hi,
  I am not sure I understood why you are using filters ... anyway, it is
perfectly possible to pass parameters to a Wicket page via URLs by providing
a constructor taking a PageParameters as an argument + configuring the
adequate URL encoding strategy.

  Look  http://cwiki.apache.org/WICKET/passing-parameters-to-pages.html here 
and  http://cwiki.apache.org/WICKET/stateless-pages.html here  for more
details (Wicket wiki).

Regards

-- 
View this message in context: 
http://www.nabble.com/Can-i-assign-parameters-while-calling-the-application--tp15321764p15331875.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: Feedback on proposed Groovy DSL syntax for Wicket

2008-03-06 Thread djo.mos

Hi,
  Seems very interesting to me also.
  In fact, what I would be interested in seeing in more details is the
groovy way of describing models as closures.

  Can you please elaborate on this point ? (the propertyModel for instance,
and how the Grooby properties may help ?)

Cheers
-- 
View this message in context: 
http://www.nabble.com/Feedback-on-proposed-Groovy-DSL-syntax-for-Wicket-tp15873183p15880617.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: Default Focus Behavior?

2008-03-09 Thread djo.mos



jwcarman wrote:
> 
> How about something like:
> 
> public class DefaultFocusBehavior extends AbstractBehavior
> {
> private Component component;
> 
> public void bind( Component component )
> {
> this.component = component;
> component.setOutputMarkupId(true);
> }
> 
> public void renderHead( IHeaderResponse iHeaderResponse )
> {
> super.renderHead(iHeaderResponse);
> iHeaderResponse.renderOnLoadJavascript("document.getElementById('"
> + component.getMarkupId() + "').focus();");
> }
> }
> 

This simply looks great ! I think this should make it into the core Wicket
behaviors as the componenet focus is quite useful.

Cheers.

-- 
View this message in context: 
http://www.nabble.com/Default-Focus-Behavior--tp15934889p15945036.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: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread djo.mos

[ ] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3
-- 
View this message in context: 
http://www.nabble.com/-vote--Release-1.4-with-only-generics-and-stop-support-for-1.3-tp16090054p16097038.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: Set a dynamic color to a label

2008-03-19 Thread djo.mos


vincent Renaville-2 wrote:
> 
> Hello,
> 
> I try to display a application a table with odd line in red and even line
> in
> blue.
> For each cell of the table I use a label.
> 
> Somebody know how can I set the color to a label.
> 
> Thanks for your help
> 
> Vincent
> 
> 
Hello,
  I assume that you are using a ListView for iterating over a list and
repeating a tr elment in your HTML.
  Assuming that you have two css classes : evenLine and oddLine.

  Striping the table is as simple as adding this to your populateItem
method:



> if (item.getIndex() % 2 == 1) {
>  item.add(new AttributeModifier("class", true, new Model("oddRow")));
> } else {
>  item.add(new AttributeModifier("class", true, new Model("evenRow")));
> }
> 

Cheers.
-- 
View this message in context: 
http://www.nabble.com/Set-a-dynamic-color-to-a-label-tp16158028p16162946.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: Is there a way to set ListView not to output repeater tag

2008-03-19 Thread djo.mos

Or use  as the repeating element, instead of span ;-)
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-way-to-set-ListView-not-to-output-%3Cspan%3E-repeater-tag-tp16168409p16169452.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: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread djo.mos

Hello,

Martijn Dashorst wrote:
> 
> There is a solution: not to deploy your application more than 2-3 times...
> 
> Martijn
> 
Actually, there is a less radical solution, which is not to use a Sun JVM,
as the PermGenSpace is a specific implementation limitation of these.
IcedTea for example do not suffer from this problem.

Anyway, Piller Sébastien is using a shared server, so changing the JVM is
clearly not an option to consider.

Cheers.
-- 
View this message in context: 
http://www.nabble.com/OOM-in-PermGen-after-several-deploy-undeploy-tp16424948p16427202.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: Make a Ajax button have a confirm dialog

2008-04-01 Thread djo.mos

Hi,

Pinger wrote:
> 
> I want to get a Yes/No confirm dialog, so I only "Do Stuff" if they say
> yes..
> 

What kind of confirmation ? Javascript ? Html ?
for the first, you could use this

ajaxButton.add(new SimpleAttributeModifier("onclick", "return
confirm('Delete ?');"));

Cheers
-- 
View this message in context: 
http://www.nabble.com/Make-a-Ajax-button-have-a-confirm-dialog-tp16425091p16429221.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]