SV: Localizer in a new Thread

2010-07-29 Thread Wilhelmsen Tor Iver
> To clarify, I want to use Localizer#getString(...) in a thraed I
> create.
> I have seen other posts on this issue, but haven't been able to figure
> out the solution.

The Localizer.getString() looks for its messages in Wicket's property file 
structure, which depends on Application, the resource-oriented classes, 
hierarchies and so forth. Your best bet is to "pre-read" the values you need 
into a Properties object that you pass to the thread code.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Localizer in a new Thread

2010-07-29 Thread Warren Bell
To clarify, I want to use Localizer#getString(...) in a thraed I create.
I have seen other posts on this issue, but haven't been able to figure
out the solution.

Warren 

-Original Message-
From: Warren Bell [mailto:warr...@clarksnutrition.com] 
Sent: Thursday, July 29, 2010 3:31 PM
To: users@wicket.apache.org
Subject: Localizer in a new Thread

I want to take advantage of Wicket's message localization in a new
thread I have created. I am trying to pass the localizer to a thread
that runs background tasks. I am geting an
"org.apache.wicket.WicketRuntimeException: There is no application
attached to current thread...". I am sure I am going about this the
wrong way.
 
What's the best way to get message localization in a new thread ?
 
Thanks,
 
Warren

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
On Thu, Jul 29, 2010 at 7:13 PM, jverstry  wrote:

>
> Ok, it compiles. Thanks.
>
> Just one last question about the usage of WebMarkupContainer, because this
> is new to me.
>
> If I create a WebMarkupContainer, will it automatically 'attach' itself to
> the provided html tag using the provided wicket id no matter the type of
> the
> HTML tag? Can I use it to access any wicket-ed HTML tags?
>

Yes.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Question about embedded labels

2010-07-29 Thread jverstry

Ok, it compiles. Thanks.

Just one last question about the usage of WebMarkupContainer, because this
is new to me.

If I create a WebMarkupContainer, will it automatically 'attach' itself to
the provided html tag using the provided wicket id no matter the type of the
HTML tag? Can I use it to access any wicket-ed HTML tags?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307399.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
new Model("the-class-name")

On Thu, Jul 29, 2010 at 6:57 PM, jverstry  wrote:

>
> I just tried to add your code in my code:
>
> WebMarkupContainer mydiv = new WebMarkupContainer("MyDiv");
> mydiv.add(new AttributeModifier("class", true, "the-class-name"));
> add(mydiv);
>
> but it won't compile because the "the-class-name" parameter cannot be a
> string.
>
> I checked the doc and saw that it should be an IModel. This interface is
> implemented by many classes.
>
> Which one should I use?
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
Why don't they have compilers and code autocompletion in gmail?

On Thu, Jul 29, 2010 at 7:01 PM, Scott Swank  wrote:

> You can just use:
>
> new AttributeModifier("class", true, Model.of("the-class-name"));
>
> On Thu, Jul 29, 2010 at 4:57 PM, jverstry  wrote:
> >
> > I just tried to add your code in my code:
> >
> > WebMarkupContainer mydiv = new WebMarkupContainer("MyDiv");
> > mydiv.add(new AttributeModifier("class", true, "the-class-name"));
> > add(mydiv);
> >
> > but it won't compile because the "the-class-name" parameter cannot be a
> > string.
> >
> > I checked the doc and saw that it should be an IModel. This interface is
> > implemented by many classes.
> >
> > Which one should I use?
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Question about embedded labels

2010-07-29 Thread Scott Swank
You can just use:

new AttributeModifier("class", true, Model.of("the-class-name"));

On Thu, Jul 29, 2010 at 4:57 PM, jverstry  wrote:
>
> I just tried to add your code in my code:
>
> WebMarkupContainer mydiv = new WebMarkupContainer("MyDiv");
> mydiv.add(new AttributeModifier("class", true, "the-class-name"));
> add(mydiv);
>
> but it won't compile because the "the-class-name" parameter cannot be a
> string.
>
> I checked the doc and saw that it should be an IModel. This interface is
> implemented by many classes.
>
> Which one should I use?
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Question about embedded labels

2010-07-29 Thread jverstry

I just tried to add your code in my code:

WebMarkupContainer mydiv = new WebMarkupContainer("MyDiv");
mydiv.add(new AttributeModifier("class", true, "the-class-name"));
add(mydiv);

but it won't compile because the "the-class-name" parameter cannot be a
string.

I checked the doc and saw that it should be an IModel. This interface is
implemented by many classes.

Which one should I use?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Question about embedded labels

2010-07-29 Thread Jeremy Thomerson
You don't need a label for this.  Instead, do this (leave your HTML the
same):

WebMarkupContainer mydiv = new WebMarkupContainer("MyDiv");
mydiv.add(new AttributeModifier("class", true, "the-class-name"));
add(mydiv);

On Thu, Jul 29, 2010 at 6:07 PM, jverstry  wrote:

>
> Hi,
>
> In the body of an HTML, I have something like this:
>
> 
>Embedded content to be added
> 
>
> I have created a label to be able to modify the content of 'class' as
> following:
>
> public class MyDivLabel extends Label {
>...
>@Override
>protected void onComponentTag(ComponentTag tag) {
>super.onComponentTag(tag);
>tag.put("class", "The class value I want to set");
>}
>...
> }
>
> In the web page, I add the labels as following:
>
> ...
> add(new MyDivLabel("MyDiv","xxx"));
> add(new Label("MyEmbedded","My embedded text"));
> ...
>
> a) Is it ok to embed Labels like I do?
> b) How can I make sure the embedded span will not be replaced by "xxx"?
>
> Thanks !!!
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307332.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Question about embedded labels

2010-07-29 Thread jverstry

Hi, 

In the body of an HTML, I have something like this:


Embedded content to be added


I have created a label to be able to modify the content of 'class' as
following:

public class MyDivLabel extends Label {
...
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("class", "The class value I want to set");
}
...
}

In the web page, I add the labels as following:

...
add(new MyDivLabel("MyDiv","xxx"));
add(new Label("MyEmbedded","My embedded text"));
...

a) Is it ok to embed Labels like I do?
b) How can I make sure the embedded span will not be replaced by "xxx"?

Thanks !!!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307332.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Localizer in a new Thread

2010-07-29 Thread Warren Bell
I want to take advantage of Wicket's message localization in a new
thread I have created. I am trying to pass the localizer to a thread
that runs background tasks. I am geting an
"org.apache.wicket.WicketRuntimeException: There is no application
attached to current thread...". I am sure I am going about this the
wrong way.
 
What's the best way to get message localization in a new thread ?
 
Thanks,
 
Warren  


Re: Wicket and JEE6

2010-07-29 Thread Erik Brakkee
On Thu, Jul 29, 2010 at 10:18 PM, James Carman
wrote:

> The problem with using the AspectJ-injected references occurs when you
> pass your reference to another class (such as a model, for instance).
> That class may not be instrumented via AspectJ to handle the
> serialization/deserialization properly for that reference.  So, it
> will fail.
>
> I also think it is a dodgy approach with aspect J and that it's best to
avoid it. Also, because it involves additional configuration and more
complexity.

The simplest solution appears to be to inject using the onBeforeRender
listener. The disadvantage is however that I will be doing this injection
too many times (every construction and onBeforeRender).


RE: DropDownChoice for opening a new Window

2010-07-29 Thread Stefan Lindner
Thank you once again. I ended up with

wantOnChangeNotification true

and modify the onclick script from 

onchange="window.location.href='?wicket.

to

onchange="window.open('?wicket.

If anyone else ever needs this toos.

Stefan.

-Ursprüngliche Nachricht-
Von: Pedro Santos [mailto:pedros...@gmail.com] 
Gesendet: Donnerstag, 29. Juli 2010 22:32
An: users@wicket.apache.org
Betreff: Re: DropDownChoice for opening a new Window

The first javascript api that comes to my mind is the onclick method, you
can add on your page an Link component, with all PopupSettings of your need.
Then you send to browser some javascript like:
Wicket.$('linkmarkupid').onclick

On Thu, Jul 29, 2010 at 5:23 PM, Stefan Lindner  wrote:

> Dear Pedro,
>
> thank you! Do you have any code snipplet or just a function name for
> google?
>
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Pedro Santos [mailto:pedros...@gmail.com]
> Gesendet: Donnerstag, 29. Juli 2010 22:21
> An: users@wicket.apache.org
> Betreff: Re: DropDownChoice for opening a new Window
>
> Yes, use javascript to reach that functionality. For instance, you can add
> an AjaxFormComponentUpdatingBehavior for the onchange event of your
> DropDownChoice. At the onUpdate method implementation, you can append the
> needed javascript to open your new window.
>
> On Thu, Jul 29, 2010 at 4:58 PM, Stefan Lindner 
> wrote:
>
> > Is it possible to have a DropDownChoice that responds to a new window
> > when selected? What I mean is
> >
> >new DropDownChoice(...) {
> >protected void onSelectionChanged(Integer newSelection)
> > {
> >// Send response to a new open window as if
> > clicket to a Link with PopupSettings
> >}
> >}
> >
> > Stefan
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Pedro Henrique Oliveira dos Santos
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DropDownChoice for opening a new Window

2010-07-29 Thread Pedro Santos
The first javascript api that comes to my mind is the onclick method, you
can add on your page an Link component, with all PopupSettings of your need.
Then you send to browser some javascript like:
Wicket.$('linkmarkupid').onclick

On Thu, Jul 29, 2010 at 5:23 PM, Stefan Lindner  wrote:

> Dear Pedro,
>
> thank you! Do you have any code snipplet or just a function name for
> google?
>
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Pedro Santos [mailto:pedros...@gmail.com]
> Gesendet: Donnerstag, 29. Juli 2010 22:21
> An: users@wicket.apache.org
> Betreff: Re: DropDownChoice for opening a new Window
>
> Yes, use javascript to reach that functionality. For instance, you can add
> an AjaxFormComponentUpdatingBehavior for the onchange event of your
> DropDownChoice. At the onUpdate method implementation, you can append the
> needed javascript to open your new window.
>
> On Thu, Jul 29, 2010 at 4:58 PM, Stefan Lindner 
> wrote:
>
> > Is it possible to have a DropDownChoice that responds to a new window
> > when selected? What I mean is
> >
> >new DropDownChoice(...) {
> >protected void onSelectionChanged(Integer newSelection)
> > {
> >// Send response to a new open window as if
> > clicket to a Link with PopupSettings
> >}
> >}
> >
> > Stefan
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Pedro Henrique Oliveira dos Santos
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


RE: DropDownChoice for opening a new Window

2010-07-29 Thread Stefan Lindner
Dear Pedro,

thank you! Do you have any code snipplet or just a function name for google?

Stefan

-Ursprüngliche Nachricht-
Von: Pedro Santos [mailto:pedros...@gmail.com] 
Gesendet: Donnerstag, 29. Juli 2010 22:21
An: users@wicket.apache.org
Betreff: Re: DropDownChoice for opening a new Window

Yes, use javascript to reach that functionality. For instance, you can add
an AjaxFormComponentUpdatingBehavior for the onchange event of your
DropDownChoice. At the onUpdate method implementation, you can append the
needed javascript to open your new window.

On Thu, Jul 29, 2010 at 4:58 PM, Stefan Lindner  wrote:

> Is it possible to have a DropDownChoice that responds to a new window
> when selected? What I mean is
>
>new DropDownChoice(...) {
>protected void onSelectionChanged(Integer newSelection)
> {
>// Send response to a new open window as if
> clicket to a Link with PopupSettings
>}
>}
>
> Stefan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DropDownChoice for opening a new Window

2010-07-29 Thread Pedro Santos
Yes, use javascript to reach that functionality. For instance, you can add
an AjaxFormComponentUpdatingBehavior for the onchange event of your
DropDownChoice. At the onUpdate method implementation, you can append the
needed javascript to open your new window.

On Thu, Jul 29, 2010 at 4:58 PM, Stefan Lindner  wrote:

> Is it possible to have a DropDownChoice that responds to a new window
> when selected? What I mean is
>
>new DropDownChoice(...) {
>protected void onSelectionChanged(Integer newSelection)
> {
>// Send response to a new open window as if
> clicket to a Link with PopupSettings
>}
>}
>
> Stefan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


Re: Wicket and JEE6

2010-07-29 Thread James Carman
The problem with using the AspectJ-injected references occurs when you
pass your reference to another class (such as a model, for instance).
That class may not be instrumented via AspectJ to handle the
serialization/deserialization properly for that reference.  So, it
will fail.


On Thu, Jul 29, 2010 at 4:14 PM, Erik Brakkee  wrote:
> On Thu, Jul 29, 2010 at 9:54 PM, Erik Brakkee wrote:
>
>>  Is there also a callback in wicket to listen for component serialization
>> and deserialization?
>>
>
> Googling for this it also seems possible to use an aspectj pointcut to do
> injection at deserialization.
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and JEE6

2010-07-29 Thread Erik Brakkee
On Thu, Jul 29, 2010 at 9:54 PM, Erik Brakkee wrote:

>  Is there also a callback in wicket to listen for component serialization
> and deserialization?
>

Googling for this it also seems possible to use an aspectj pointcut to do
injection at deserialization.


DropDownChoice for opening a new Window

2010-07-29 Thread Stefan Lindner
Is it possible to have a DropDownChoice that responds to a new window
when selected? What I mean is

new DropDownChoice(...) {
protected void onSelectionChanged(Integer newSelection)
{
// Send response to a new open window as if
clicket to a Link with PopupSettings
}
}

Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FormComponentPanel Behavior

2010-07-29 Thread Pedro Santos
Hi Bernard, did you call setRequired method on your FormComponentPanel input
components?
like: formComponentPanel.fieldOne.setRequired(true)

On Thu, Jul 29, 2010 at 4:33 PM,  wrote:

> Hi,
>
> org.apache.wicket.markup.html.form.FormComponentPanel
> aims to act to the outside world as one component.
>
> I want it to behave in a way that it flags missing required input on
> behalf of its enclosed components.
>
> Imagine an input component with 4 fields for a credit card number.
>
> If input in any of the fields is missing, then I want to highlight (eg
> with FormComponentFeedbackBorder) the enclosing component not any
> individual sub-fields .
>
> As an easy test example, please consider
>
> org.apache.wicket.examples.forminput.Multiply which is included in the
> Wicket distribution.
>
>
> http://www.wicketstuff.org/wicket/forminput/?wicket:bookmarkablePage=sources:org.apache.wicket.examples.source.SourcesPage&SourcesPage_class=org.apache.wicket.examples.forminput.FormInput&source=Multiply.java
>
> What is the best way to change this example so that a Required error
> is generated for Multiply if any of its components are empty? I found
> that checkRequired() is not called.
>
> Many thanks.
>
> Bernard
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


Re: Wicket and JEE6

2010-07-29 Thread Erik Brakkee
I have done a lot of experimentation at the moment and I am using CDI
dependency injection now for a simple wicket project. It is based on the
code at utils.wamblee.org (wicket/inject).

The issue I am running into is the following. I am creating a detachable
entity object which is simply a detachable model that safes the primary key
in onDetach() + sets the object to null.
It loads the object from persistent storage using entityManager.find(class,
key) in the get() method (if not yet initialized).

The detachable model is constructed using an entity manager obtained using
CDI. However, in the following scenario, things go wrong: (1) edit an entity
in a form, (2) click ok, (3) browser back.

What happens is that I get a NullPointerException in EntityManagerWrapper on
line 314 on glassfish v3. What is actually happening here is that the
detachable model is being serialized but the EntityManagerWrapper (the
contextual that delegates to the actual entitymanager to use) has transient
fields which become null after deserialization. The EntityManagerWrapper is
declared Serializable but in fact it isn't.

Now, I have to do two things. First I have to report an issue on glassfish
v3. I think the entity manager wrapper should be truly serializable and not
just declared serializable.  Second, I need to work around this problem. The
solution I am thinking of is to use a simple utility that provides a truly
serializable entity manager that delegates to an entity manager obtained
using CDI. That would solve the problem with the detachable.

However, there is one more issue which is the injection setup in the
application. I still need the injection at component instantiation to allow
use of injected objects in the constructor. But I still have a question
whether it would be required to also use a IComponentOnBeforeRenderListener
to do an additional injection in the onBeforeRender() method. The only
reason I would need to do this is when pages in wicket are serialized as
well. Do I need to take page serialization into account? Is there also a
callback in wicket to listen for component serialization and
deserialization?


FormComponentPanel Behavior

2010-07-29 Thread bht
Hi,

org.apache.wicket.markup.html.form.FormComponentPanel 
aims to act to the outside world as one component.

I want it to behave in a way that it flags missing required input on
behalf of its enclosed components.

Imagine an input component with 4 fields for a credit card number.

If input in any of the fields is missing, then I want to highlight (eg
with FormComponentFeedbackBorder) the enclosing component not any
individual sub-fields .

As an easy test example, please consider

org.apache.wicket.examples.forminput.Multiply which is included in the
Wicket distribution.

http://www.wicketstuff.org/wicket/forminput/?wicket:bookmarkablePage=sources:org.apache.wicket.examples.source.SourcesPage&SourcesPage_class=org.apache.wicket.examples.forminput.FormInput&source=Multiply.java

What is the best way to change this example so that a Required error
is generated for Multiply if any of its components are empty? I found
that checkRequired() is not called.

Many thanks.

Bernard


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



WicketTester and Palette component

2010-07-29 Thread loic

Hello,
i'm trying to test a form with a Palette component, with WicketTester.

I don't know how to make a selection into the palette.
I did all the stuff i need to fill the Palette with some values, so it
should not be empty.

If i do 

formTester.selectMultiple("myPalette", new int[] {0});

I get a "palette cannot be cast to FormComponent" error.

Palette contains a "recorder" component, which is a FormComponent (it
extends TextField)

if i try 

formTester.select("myPalette:recorder", 0 );

or 
formTester.selectMultiple("myPalette:recorder", new int[] {0});

I get a "Trying to select on null component" error ...

Thanks for your help!

Loic


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2306743.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff site

2010-07-29 Thread Igor Vaynberg
jira studio is listed as an option in the first link i pasted

-igor

On Thu, Jul 29, 2010 at 8:40 AM, Jeremy Thomerson
 wrote:
> Sure, they have a hosted solution, but it doesn't say they have a free OSS
> hosted solution.  :)
>
> On Thu, Jul 29, 2010 at 10:35 AM, Igor Vaynberg 
> wrote:
>
>> this says they do:
>>
>> http://www.atlassian.com/hosted/studio/
>>
>> -igor
>>
>> On Thu, Jul 29, 2010 at 8:33 AM, Martijn Dashorst
>>  wrote:
>> > On Thu, Jul 29, 2010 at 5:28 PM, Igor Vaynberg 
>> wrote:
>> >> should we apply for atlassian's hosted solution? they have an oss
>> license
>> >>
>> >> http://www.atlassian.com/software/views/opensource-license-request.jsp
>> >
>> > Open source license != hosted solution. They don't provide hosted
>> > confluence for open source projects (I already asked)
>> >
>> > Martijn
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff site

2010-07-29 Thread Jeremy Thomerson
Sure, they have a hosted solution, but it doesn't say they have a free OSS
hosted solution.  :)

On Thu, Jul 29, 2010 at 10:35 AM, Igor Vaynberg wrote:

> this says they do:
>
> http://www.atlassian.com/hosted/studio/
>
> -igor
>
> On Thu, Jul 29, 2010 at 8:33 AM, Martijn Dashorst
>  wrote:
> > On Thu, Jul 29, 2010 at 5:28 PM, Igor Vaynberg 
> wrote:
> >> should we apply for atlassian's hosted solution? they have an oss
> license
> >>
> >> http://www.atlassian.com/software/views/opensource-license-request.jsp
> >
> > Open source license != hosted solution. They don't provide hosted
> > confluence for open source projects (I already asked)
> >
> > Martijn
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Wicket stuff site

2010-07-29 Thread Igor Vaynberg
this says they do:

http://www.atlassian.com/hosted/studio/

-igor

On Thu, Jul 29, 2010 at 8:33 AM, Martijn Dashorst
 wrote:
> On Thu, Jul 29, 2010 at 5:28 PM, Igor Vaynberg  
> wrote:
>> should we apply for atlassian's hosted solution? they have an oss license
>>
>> http://www.atlassian.com/software/views/opensource-license-request.jsp
>
> Open source license != hosted solution. They don't provide hosted
> confluence for open source projects (I already asked)
>
> Martijn
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff site

2010-07-29 Thread Martijn Dashorst
On Thu, Jul 29, 2010 at 5:28 PM, Igor Vaynberg  wrote:
> should we apply for atlassian's hosted solution? they have an oss license
>
> http://www.atlassian.com/software/views/opensource-license-request.jsp

Open source license != hosted solution. They don't provide hosted
confluence for open source projects (I already asked)

Martijn

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff site

2010-07-29 Thread Igor Vaynberg
should we apply for atlassian's hosted solution? they have an oss license

http://www.atlassian.com/software/views/opensource-license-request.jsp

-igor

On Thu, Jul 29, 2010 at 6:49 AM, Martijn Dashorst
 wrote:
> Confluence is up and running again... Hoping to upgrade it to 3.3 soon...
>
> Martijn
>
> On Thu, Jul 29, 2010 at 1:40 PM, Martijn Dashorst
>  wrote:
>> On Thu, Jul 29, 2010 at 11:32 AM, Martin Grigorov  
>> wrote:
>>> Confluence is down right now for security reasons.
>>
>> Not really: it is down because we are (were?) working on installing
>> hudson and didn't want to wait 10 minutes for the container to start
>> up. I guess we can enable confluence again as hudson seems to be
>> humming quite nicely.
>>
>> The only service that is down for secutiry reasons is JIRA.
>>
>> Martijn
>>
>>>
>>> On Thu, Jul 29, 2010 at 10:47 AM, armandoxxx 
>>> wrote:
>>>

 Hey ppl ...

 Does anyone know the right link to wicket stuff site .. cause link I find
 on
 google or other sites are not working ...

 http://wicketstuff.org/confluence/display/STUFFWIKI

 Kind regards

 Armando
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.4 increases type safety for web applications
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Error "no application attached to current thread main" with AnnotApplicationContextMock

2010-07-29 Thread Igor Vaynberg
what version of wicket?

-igor

On Thu, Jul 29, 2010 at 1:54 AM, Sam Grönblom  wrote:
> Getting this error when trying to use AnnotApplicationContextMock. Judging
> by the example shown in the latest javadocs:
> http://wicketbyexample.com/api/wicket-spring/latest/org/apache/wicket/spring/injection/annot/test/AnnotApplicationContextMock.html
> you should create the application context mock before initializing
> WicketTester. However then you get the error mentioned in the subject, ie.
> "no application attached to current thread main".
>
> However if I initialize the WicketTester before the
> AnnotApplicationContextMock I get null pointer errors which are caused when
> the Panel or Page to be tested tries to access a service, which seems to
> apply that they don't get injected correctly in this case either.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff site

2010-07-29 Thread avrahamr

It was down for a while. Would it be too much to ask for a heads-up next
time :-)

On Thu, Jul 29, 2010 at 4:50 PM, Martijn Dashorst [via Apache Wicket] <
ml-node+2306488-1603966086-293...@n4.nabble.com
> wrote:

> Confluence is up and running again... Hoping to upgrade it to 3.3 soon...
>
> Martijn
>
> On Thu, Jul 29, 2010 at 1:40 PM, Martijn Dashorst
> <[hidden email] >
> wrote:
>
> > On Thu, Jul 29, 2010 at 11:32 AM, Martin Grigorov <[hidden 
> > email]>
> wrote:
> >> Confluence is down right now for security reasons.
> >
> > Not really: it is down because we are (were?) working on installing
> > hudson and didn't want to wait 10 minutes for the container to start
> > up. I guess we can enable confluence again as hudson seems to be
> > humming quite nicely.
> >
> > The only service that is down for secutiry reasons is JIRA.
> >
> > Martijn
> >
> >>
> >> On Thu, Jul 29, 2010 at 10:47 AM, armandoxxx <[hidden 
> >> email]>wrote:
>
> >>
> >>>
> >>> Hey ppl ...
> >>>
> >>> Does anyone know the right link to wicket stuff site .. cause link I
> find
> >>> on
> >>> google or other sites are not working ...
> >>>
> >>> http://wicketstuff.org/confluence/display/STUFFWIKI
> >>>
> >>> Kind regards
> >>>
> >>> Armando
> >>> --
> >>> View this message in context:
> >>>
> http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.html
> >>> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [hidden 
> >>> email]
> >>> For additional commands, e-mail: [hidden 
> >>> email]
> >>>
> >>>
> >>
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: 
> > http://wicketinaction.com
> > Apache Wicket 1.4 increases type safety for web applications
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: 
> http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306488.html
> To start a new topic under Wicket - User, email
> ml-node+1842947-1647783149-293...@n4.nabble.com
> To unsubscribe from Wicket - User, click 
> here.
>
>
>


-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306496.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Session cookie path

2010-07-29 Thread Pepijn de Geus
Found a (non-Wicket) solution using sun-web.xml:
http://markmail.org/message/hi6ecymqdh7gyi4y


On 29 jul 2010, at 14:02, Pepijn de Geus wrote:

> Hi,
> 
> We're running Wicket 1.4.9 on GlassFish 2.1 behind an Apache server running 
> on port 80.
> In several Apache virtual hosts we use JkMount to mount the GlassFish 
> applications.
> 
> I just found out this raises a problem: Wicket sets the session cookie path 
> to the servlet contextpath "/MyProject" by default.
> Is there any way to configure or change this path? I couldn't find any 
> usefull get...Settings() methods for this.
> 
> Thanks a lot!
> Pepijn
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread vov

Thanks for reply!
It's help.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306490.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff site

2010-07-29 Thread Martijn Dashorst
Confluence is up and running again... Hoping to upgrade it to 3.3 soon...

Martijn

On Thu, Jul 29, 2010 at 1:40 PM, Martijn Dashorst
 wrote:
> On Thu, Jul 29, 2010 at 11:32 AM, Martin Grigorov  
> wrote:
>> Confluence is down right now for security reasons.
>
> Not really: it is down because we are (were?) working on installing
> hudson and didn't want to wait 10 minutes for the container to start
> up. I guess we can enable confluence again as hudson seems to be
> humming quite nicely.
>
> The only service that is down for secutiry reasons is JIRA.
>
> Martijn
>
>>
>> On Thu, Jul 29, 2010 at 10:47 AM, armandoxxx wrote:
>>
>>>
>>> Hey ppl ...
>>>
>>> Does anyone know the right link to wicket stuff site .. cause link I find
>>> on
>>> google or other sites are not working ...
>>>
>>> http://wicketstuff.org/confluence/display/STUFFWIKI
>>>
>>> Kind regards
>>>
>>> Armando
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread James Carman
http://commons.apache.org/fileupload/faq.html#whole-path-from-IE


On Thu, Jul 29, 2010 at 9:10 AM, vov  wrote:
>
> Yes, but how to fix this problem?
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306431.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread vov

Yes, but how to fix this problem?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306431.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



BrowserInfoPage and HelloBrowser on Firefox

2010-07-29 Thread Dirk Forchel

Hello,
according to this post
(http://apache-wicket.1842946.n4.nabble.com/Overloaded-ClientProperties-isJavaEnabled-and-JavaScript-support-detection-td1889053.html#a1889053)
I'm wondering whether somebody got some problems with the "java-enabled"
property of his browser too. Using IE8 the HelloBrowser page returns the
correct result. But using Firefox, the page returns 'false' even if
JavaScript support is enabled, what seems to be not correct.
Does anybody has the same problem? I assume there should be a
"JavaScript-enabled" property as well. Diving into the code of the
BrowserInfoPage class I found the following snippet ...

public BrowserInfoPage(PageParameters parameters)
{
String to = Strings.toString(parameters.get("cto"));
if (to == null)
{
throw new IllegalArgumentException("parameter cto must be 
provided!");
}
setContinueTo(to);
initComps();
WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
WebSession session = (WebSession)getSession();
ClientInfo clientInfo = session.getClientInfo();
if (clientInfo == null)
{
clientInfo = new WebClientInfo(requestCycle);
getSession().setClientInfo(clientInfo);
}
else if (clientInfo instanceof WebClientInfo)
{
WebClientInfo info = (WebClientInfo)clientInfo;
ClientProperties properties = info.getProperties();
properties.setJavaEnabled(false);
}
else
{
warnNotUsingWebClientInfo(clientInfo);
}
continueToPrevious();
}

Can someone explain why the "JavaEnabled" property is set to false although
JavaScript support is enabled.
Is there another way to detect whether the browser supports JavaScript?
Thanks,
  Dirk
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/BrowserInfoPage-and-HelloBrowser-on-Firefox-tp2306399p2306399.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread Martin Grigorov
The code was upgraded to latest version of Apache commons-fleupload.
Maybe this is the cause ...

On Thu, Jul 29, 2010 at 2:07 PM, vov  wrote:

>
> Why did FileUpload.getClientFileName() return file name in 1.4.8 but it
> return all path to file in 1.4.9??
>
> E.g. My_File_Name.txt in 1.4.8
> and D:\MyFolder\My_File_Name.txt in 1.4.9
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306372.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread vov

Why did FileUpload.getClientFileName() return file name in 1.4.8 but it
return all path to file in 1.4.9??

E.g. My_File_Name.txt in 1.4.8
and D:\MyFolder\My_File_Name.txt in 1.4.9
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306372.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod delete Exception

2010-07-29 Thread nfischer

.
I'm stupid  .

The gird save the old row in selected items collecton , need call refresh.

ButtonToolbar.this.grid.resetSelectedItems();

sorry. 

(The prev. post not a first thing, I've been struggling for two days) 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-delete-Exception-tp2306330p2306366.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Session cookie path

2010-07-29 Thread Pepijn de Geus
Hi,

We're running Wicket 1.4.9 on GlassFish 2.1 behind an Apache server running on 
port 80.
In several Apache virtual hosts we use JkMount to mount the GlassFish 
applications.

I just found out this raises a problem: Wicket sets the session cookie path to 
the servlet contextpath "/MyProject" by default.
Is there any way to configure or change this path? I couldn't find any usefull 
get...Settings() methods for this.

Thanks a lot!
Pepijn
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Transparent FB auth from cookie?

2010-07-29 Thread Anh
Works lovely, thanks Igor

On Wed, Jul 28, 2010 at 8:25 AM, Igor Vaynberg  wrote:
> RequestCycle#onBeginRequest()
>
> -igor
>
> On Tue, Jul 27, 2010 at 9:02 PM, Anh <7za...@gmail.com> wrote:
>> Hi,
>>
>> Having trouble with how this would best be done in Wicket:
>>
>> I have a Facebook OAuth token, which I use to request data from FB API
>> and then assemble a User object.
>>
>> What I'd like to do is store this token in a Cookie, and whenever the
>> user requests any page in my Wicket app, I'd like to reassemble the
>> User object and put it in the WicketSession first.
>>
>> This works fine if I send a user to a "login page" that looks up the
>> token, etc, but I'd rather this be transparent so that any page could
>> be requested, without smearing this logic into every page.
>>
>>
>> Is there a clean way to do this?
>>
>>
>> Thanks!
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



inmethod delete Exception

2010-07-29 Thread nfischer

Hi all. 
I try to use a inmethod datagrid, but I dont fix a problem. Please help.
I write a ButtonToolbar with insert, delete buttons.
I think the insert is working good.
When I delete one row the row is deleted from the grid it seems work good,
but after I delete other row on that RequestCycle  PageDatabase.get(long id)
method throw RuntimeException becouse don’t find the first deleted row, but
I don't now why.

Thanks Norber.

Here is my code :

ButtonToolbar.java

public class ButtonToolbar extends AbstractToolbar{

private static final long serialVersionUID = 591204732171790366L;
private BaseDataGrid grid;

public ButtonToolbar(AbstractGrid grid, IModel model) {
super(grid, model);
this.grid=(BaseDataGrid)grid;

add(new AjaxFallbackLink("insert") {

private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) { 
PageDatabase database = 
DatabaseLocator.getDatabase();

PageEntity pageEntity=new PageEntity(); 


database.save(pageEntity);

ButtonToolbar.this.grid.markAllItemsDirty();
ButtonToolbar.this.grid.update();

}

});

add(new AjaxFallbackLink("delete") {

private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {
PageDatabase database = 
DatabaseLocator.getDatabase();
Collection 
list=ButtonToolbar.this.grid.getSelectedItems();

for (IModel iModel : list) {


database.delete((PageEntity)iModel.getObject());

}

ButtonToolbar.this.grid.markAllItemsDirty();
ButtonToolbar.this.grid.update();

}
}); 
}
}


PageDatabase.java 

public PageEntity get(long id){
PageEntity c = (PageEntity)map.get(new Long(id));
if (c == null){
throw new RuntimeException("page with id [" + id + "] 
not found in the
database");
}
return c;
}

public void save(PageEntity pageEntity) {
if (pageEntity.getPageId() == null) {
pageEntity=pageService.save(pageEntity);
add(pageEntity);
updateIndices();
}else{
throw new IllegalArgumentException("page [" + 
pageEntity.getPageId() +
"] is already persistent");
}
}

public void delete(final PageEntity pageEntity) {
pageService.delete(pageEntity);
map.remove(new Long(pageEntity.getPageId()));

nameIdx.remove(pageEntity);
titleIdx.remove(pageEntity);
nameDescIdx.remove(pageEntity);
titleDescIdx.remove(pageEntity);

pageEntity.setPageId(Long.valueOf(0));
}


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-delete-Exception-tp2306330p2306330.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket stuff site

2010-07-29 Thread Martijn Dashorst
On Thu, Jul 29, 2010 at 11:32 AM, Martin Grigorov  wrote:
> Confluence is down right now for security reasons.

Not really: it is down because we are (were?) working on installing
hudson and didn't want to wait 10 minutes for the container to start
up. I guess we can enable confluence again as hudson seems to be
humming quite nicely.

The only service that is down for secutiry reasons is JIRA.

Martijn

>
> On Thu, Jul 29, 2010 at 10:47 AM, armandoxxx wrote:
>
>>
>> Hey ppl ...
>>
>> Does anyone know the right link to wicket stuff site .. cause link I find
>> on
>> google or other sites are not working ...
>>
>> http://wicketstuff.org/confluence/display/STUFFWIKI
>>
>> Kind regards
>>
>> Armando
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page Expired

2010-07-29 Thread not_in_my_name

I have the same problem here. does anyone have a solution by now?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-Expired-tp1844813p2306222.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Integrating Wicket with Dojo/Jquery/Dwr/Ext Js

2010-07-29 Thread Nivedan Nadaraj
Here is alink to Wiquery project:
http://code.google.com/p/wiquery/wiki/QuickStart


On Thu, Jul 29, 2010 at 5:37 PM, Nivedan Nadaraj wrote:

> WiQuery integrates JQuery with Wicket. It is a very responsive community as
> well. The other one that integrates Wicket is JWicket  but I have not used
> it.
> I have used Wiquery but if you wanted I guess you can use Jquery  customise
> it for your project. As such Wiquery provides out of the box integration
> with Wicket.
>
> Cheers
>
>
>
>
> On Wed, Jul 28, 2010 at 11:22 PM, Arjun Dhar  wrote:
>
>>
>> This is more a question than an opinion.
>>
>> Wicket is a View first framework, and also has the cleanest separation
>> between Markups and Code that I have seen so far.
>>
>> I think What Scripting technology one uses should anyway never be tightly
>> coupled with whats on the server. I keep seeing questions on Mobile
>> device,
>> JQuery etc. In design people should just focus on bare minimal to connect
>> the two and avoid strong coupling. (just enough to trigger events and pass
>> data)
>>
>> So in a way questions specific to "How wicket supports mobile devices, or
>> XYZ Scripting framework in the markup" are not really relevant.
>>
>> Would that be a fair way of thinking? ..or am over philosophizing this? :)
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Integrating-Wicket-with-Dojo-Jquery-Dwr-Ext-Js-tp2304474p2305142.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: Integrating Wicket with Dojo/Jquery/Dwr/Ext Js

2010-07-29 Thread Nivedan Nadaraj
WiQuery integrates JQuery with Wicket. It is a very responsive community as
well. The other one that integrates Wicket is JWicket  but I have not used
it.
I have used Wiquery but if you wanted I guess you can use Jquery  customise
it for your project. As such Wiquery provides out of the box integration
with Wicket.

Cheers



On Wed, Jul 28, 2010 at 11:22 PM, Arjun Dhar  wrote:

>
> This is more a question than an opinion.
>
> Wicket is a View first framework, and also has the cleanest separation
> between Markups and Code that I have seen so far.
>
> I think What Scripting technology one uses should anyway never be tightly
> coupled with whats on the server. I keep seeing questions on Mobile device,
> JQuery etc. In design people should just focus on bare minimal to connect
> the two and avoid strong coupling. (just enough to trigger events and pass
> data)
>
> So in a way questions specific to "How wicket supports mobile devices, or
> XYZ Scripting framework in the markup" are not really relevant.
>
> Would that be a fair way of thinking? ..or am over philosophizing this? :)
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Integrating-Wicket-with-Dojo-Jquery-Dwr-Ext-Js-tp2304474p2305142.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket stuff site

2010-07-29 Thread Martin Grigorov
Confluence is down right now for security reasons.

On Thu, Jul 29, 2010 at 10:47 AM, armandoxxx wrote:

>
> Hey ppl ...
>
> Does anyone know the right link to wicket stuff site .. cause link I find
> on
> google or other sites are not working ...
>
> http://wicketstuff.org/confluence/display/STUFFWIKI
>
> Kind regards
>
> Armando
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Lightweight session management

2010-07-29 Thread M. Hammer
I see the point, but still I expect this to be a frequent use-case for  
Facebook App iframe integration. There, you get the  
OAuth-Token/Session Secret/whatever only for the initial iframe  
request, and then usually put them into the session (at least this is  
suggested by the PHP examples). And at least the marketing guys hope  
that there will be some number of visits on such an app :-)


Anyway, thanks for the reply; I'll use bind() on the session and see  
how things go. I've done stress testing, and it looks ok memory-wise;  
but reading about how much effort is spent into statelessness, I was  
wondering if I am missing something. Would you recommend bothering  
about being stateless at all?


Quoting nino martinez wael :

Yeah it's prone to fall under YAGNI and if not use time on it when it
becomes a problem..

2010/7/28 Igor Vaynberg 


load test it and see if it becomes a problem before spending any
cycles on a solution.

-igor

On Wed, Jul 28, 2010 at 7:54 AM, M. Hammer  wrote:
> Hello,
>
> in my application I would like to have user sessions for storing some
data
> (mostly related to tracking which pages a user has visited), but
otherwise
> stay stateless as long as possible to keep memory consumption low. Is
there
> any provision in Wicket for such a scenario? I could run two session
> managements in parallel, but I'd rather reuse Wicket's facilities.
>
> On a related note, my back-of-the-envelope-calculations somehow suggest
that
> I should not bother anyway, as I'd run out of CPU time about the same
time I
> run out of memory. Can someone share some experience? My app is rather
lean,
> but runs a CMS that is similar to Brix, so it is made up from many
> components, but only some AJAX and form elements are actually stateful.
>
> Thank you very much,
>  Moritz
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Single session per user

2010-07-29 Thread MelmanRo

Hi guys,

I'm trying to achieve the behavior where if a user is logged in and he is
logging in from some place else again, he would be logged out and prompted
the login page in the first place.

For now, I've experimented with Session#invalidateNow and
ApplicationSettings#setExpiredErrorPage on the current session and it works
fine. I can't figure out how I can invalidateNow other session than the
current one. Besides this, a method that wouldn't require storing the
sessionId for one user in the DB would be preferred (a Map at WebApplication
level maybe?). 

Any suggestions are welcome. I've searched the forum for similar threads but
didn't quite understand how to do it...

Thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Single-session-per-user-tp2306158p2306158.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Error "no application attached to current thread main" with AnnotApplicationContextMock

2010-07-29 Thread Sam Grönblom
Getting this error when trying to use AnnotApplicationContextMock. 
Judging by the example shown in the latest javadocs: 
http://wicketbyexample.com/api/wicket-spring/latest/org/apache/wicket/spring/injection/annot/test/AnnotApplicationContextMock.html 
you should create the application context mock before initializing 
WicketTester. However then you get the error mentioned in the subject, 
ie. "no application attached to current thread main".


However if I initialize the WicketTester before the 
AnnotApplicationContextMock I get null pointer errors which are caused 
when the Panel or Page to be tested tries to access a service, which 
seems to apply that they don't get injected correctly in this case either.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket stuff site

2010-07-29 Thread armandoxxx

Hey ppl ... 

Does anyone know the right link to wicket stuff site .. cause link I find on
google or other sites are not working ... 

http://wicketstuff.org/confluence/display/STUFFWIKI

Kind regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org