Re: Second Level Cache

2007-11-18 Thread Eelco Hillenius
> hmmm..so correct me if its not the right understanding..i.e. the only time
> wicket would be fetching the older page versions is when a user hit the back
> button and clicks on a link (or submit a form) from that previous page, and
> with that whatever page-version those links/forms were linked to (which
> would be the original rendered page) wicket would load that page.

Yes.

> That means one (ideally) wouldn't code anything himself to refer to the old
> page versions lets say in the page to be rendered next, thats why i sort of
> was into thinking as to why would i refer to an older version, so its only
> the back button where this whole idea of version-ing comes in.

The only thing you might code yourself are explicit changes. Changes
in the component tree and some model (setModelObject specifically)
will be recorded automatically, but property changes for instance
won't be caught by Wicket. If you're not sure anything else triggers
the recording of a new version, you could consider making changes
explicit like for instance PageableListView#setCurrentPage does.

Eelco

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



Re: double form submission handling ?

2007-11-18 Thread Eelco Hillenius
> Yet another question...
>
> Does wicket handles double form submission in anyway ? like if the user
> clicks the back button where the previous page was a result of a form
> submission, which could result in double form submission..OR otherwise
> refreshes that page..

Yes, Wicket by default uses the redirect after submit pattern. See the
renderStrategy property of IRequestCycleSettings (read the Javadoc of
the three available strategies).

Eelco

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



Re: double form submission handling ?

2007-11-18 Thread Johan Compagner
But a user can click the back button to go to the previous page with
the form and submit it again, but that isn't something wicket should
prevent.  Because that could be valid for that application, a user
submit something then sees it made a mistake, presses back, corrects
it and submit again..

2007/11/18, Eelco Hillenius <[EMAIL PROTECTED]>:
> > Yet another question...
> >
> > Does wicket handles double form submission in anyway ? like if the user
> > clicks the back button where the previous page was a result of a form
> > submission, which could result in double form submission..OR otherwise
> > refreshes that page..
>
> Yes, Wicket by default uses the redirect after submit pattern. See the
> renderStrategy property of IRequestCycleSettings (read the Javadoc of
> the three available strategies).
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Thanks, but I can't get this to work...

2007-11-18 Thread Johan Compagner
Wat you could try to do is make that markup container a
transparantresolver. Then the components can be added to the page
itself

2007/11/18, nlif <[EMAIL PROTECTED]>:
>
> I tried adding an attributeModifier to the Page class, and it doesn't work
> (the "dir" attribute is not added to the html element).
>
> I then tried creating a WebMarkupContainer (and adding wicket:id to the html
> element in my html file), but this throws an exception. I think it's because
> I did it in my base-page class, and there are classes that extend it, and
> their components are not added to my webMarkupContainer.
>
> Last, I tried using a MarkupFilter, like this:
>
> getApplication().getMarkupSettings().setMarkupParserFactory(new
> IMarkupParserFactory()
> {
> public MarkupParser newMarkupParser(MarkupResourceStream
> resource)
> {
> MarkupParser parser = new MarkupParser(new
> XmlPullParser(), resource);
> parser.appendMarkupFilter(new AbstractMarkupFilter()
> {
> public MarkupElement nextTag()
> throws ParseException
> {
> // Get the next tag. If null, no more tags
> are available
> final ComponentTag tag = (ComponentTag)
> getParent().nextTag();
>
> if (tag == null)
> {
> return tag;
> }
>
> if ("html".equals(tag.getName()))
> {
> tag.addBehavior(new
> AttributeModifier("dir", true, new Model("rtl")));
> }
>
> return tag;
> }
> });
>
> return parser;
> }
> });
>
>
> I used a debugger to verify it indeed executes the addBehavior() line, but
> still - no "dir" attribute is added to the html.
>
> I cannot seem to find anywhere in the forum a specific example. There are
> only general suggestions, such as "use MarkupFilter" or "add an
> AttributeModifier"... I guess an code-sample would be helpful.
>
> Thanks again,
> Naaman
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/How-can-I-switch-page-direction-%28LTR-RTL%29--tf4805391.html#a13817345
> 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]



Thanks, but I can't get this to work...

2007-11-18 Thread nlif

I tried adding an attributeModifier to the Page class, and it doesn't work
(the "dir" attribute is not added to the html element).

I then tried creating a WebMarkupContainer (and adding wicket:id to the html
element in my html file), but this throws an exception. I think it's because
I did it in my base-page class, and there are classes that extend it, and
their components are not added to my webMarkupContainer.

Last, I tried using a MarkupFilter, like this:

getApplication().getMarkupSettings().setMarkupParserFactory(new
IMarkupParserFactory()
{
public MarkupParser newMarkupParser(MarkupResourceStream
resource)
{
MarkupParser parser = new MarkupParser(new
XmlPullParser(), resource);
parser.appendMarkupFilter(new AbstractMarkupFilter()
{
public MarkupElement nextTag()
throws ParseException
{
// Get the next tag. If null, no more tags
are available
final ComponentTag tag = (ComponentTag)
getParent().nextTag();

if (tag == null)
{
return tag;
}

if ("html".equals(tag.getName()))
{
tag.addBehavior(new
AttributeModifier("dir", true, new Model("rtl")));
}

return tag;
}
});

return parser;
}
});


I used a debugger to verify it indeed executes the addBehavior() line, but
still - no "dir" attribute is added to the html.

I cannot seem to find anywhere in the forum a specific example. There are
only general suggestions, such as "use MarkupFilter" or "add an
AttributeModifier"... I guess an code-sample would be helpful.

Thanks again,
Naaman





-- 
View this message in context: 
http://www.nabble.com/How-can-I-switch-page-direction-%28LTR-RTL%29--tf4805391.html#a13817345
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: Border component - naming

2007-11-18 Thread Johan Compagner
Thats why we also have IcomponentBorder, because thats like a swing
border, you add that border to a component instead the other way
around

2007/11/16, Stefan Simik <[EMAIL PROTECTED]>:
>
> thanks for your response igor,
> yes, you are right, i understand, that in the output html border wraps
> its content -> so it's looks like border for nested components.
>
> What we both mean, is the same, difference is only from point of view.
> My point of view is, that generally (in desktop GUI like Swing - that was my
> swing context)
> borders are used for decorating some component (that's the same for wicket)
> but hierarchy
> is reversed towards wicket - for example:
>  component.add( new LineBorder() );//like in
> desktop GUI
> Here: border knows nothing about component, that decorates
>
>
> In Wicket, it's reversed:
>   border.add(component); //in
> Wicket
> So it's my point of view, that this border is container component, because
> other
> components are added to it. I know, that it results in decorating added
> component, but in the sense
> of hierarchy, other components are added to the border, so the border is
> container for added components.
>
> In this context I see Border quite like "Panel, that can use markup
> inheritance through "
>
> I hope, you understand what I mean..
> thx
>
>
> --
> View this message in context:
> http://www.nabble.com/Border-component---naming-tf4822088.html#a13802790
> 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]



Spring bean in session with annotation

2007-11-18 Thread Hugues Pichereau

I've successfully implemented Spring injection in *pages*, using annotations
from the wicket-spring-annot jar.

But when I try to inject a bean in the *session* class:

public class WkSession extends AuthenticatedWebSession {
   @SpringBean
   private UserService userService;
   // getter / setter
}

the bean remains null.

Apart from that, the session works great.

Is it required to use a different approach to inject beans in session?






-
Regards,
Hugues
-- 
View this message in context: 
http://www.nabble.com/Spring-bean-in-session-with-annotation-tf4829705.html#a13817750
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: double form submission handling ?

2007-11-18 Thread Eelco Hillenius
On Nov 18, 2007 2:55 AM, mfs <[EMAIL PROTECTED]> wrote:
>
> Yeah that scenario still makes sense where the user goes to the form page
> itself, but i was refering to the scenario where the user goes to the page
> (with the back button) which got shown after form submission, as in that
> case the browser would be submitting the request to the server (implicitly
> in case of a GET) and hence a double form submit OR the other scenario where
> user presses the refresh button on that previous page.

That doesn't happen with redirect-after-post.

Eelco

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



Re: IOC problem

2007-11-18 Thread Al Maw

Uwe Schäfer wrote:

Is it currently impossible to use constructor injection ?


To quickly answer my own question: no, but little tricky! :)
Well, you need to replace instances of new FooComponent() with something 
that gets injected, like a Provider if you're using Guice, or some 
kind of bean factory if you use Spring.
I´d like to share the experience to the wiki or wherever the right 
place for 'little gotchas' is.


Is there a place where you can find wicket-guice notes already?

Not really. Feel free to add like Gwyn said.

Regards,

Al

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



Re: double form submission handling ?

2007-11-18 Thread mfs

Yeah that scenario still makes sense where the user goes to the form page
itself, but i was refering to the scenario where the user goes to the page
(with the back button) which got shown after form submission, as in that
case the browser would be submitting the request to the server (implicitly
in case of a GET) and hence a double form submit OR the other scenario where
user presses the refresh button on that previous page.

Farhan.


Johan Compagner wrote:
> 
> But a user can click the back button to go to the previous page with
> the form and submit it again, but that isn't something wicket should
> prevent.  Because that could be valid for that application, a user
> submit something then sees it made a mistake, presses back, corrects
> it and submit again..
> 
> 2007/11/18, Eelco Hillenius <[EMAIL PROTECTED]>:
>> > Yet another question...
>> >
>> > Does wicket handles double form submission in anyway ? like if the user
>> > clicks the back button where the previous page was a result of a form
>> > submission, which could result in double form submission..OR otherwise
>> > refreshes that page..
>>
>> Yes, Wicket by default uses the redirect after submit pattern. See the
>> renderStrategy property of IRequestCycleSettings (read the Javadoc of
>> the three available strategies).
>>
>> Eelco
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/double-form-submission-handling---tf4829048.html#a13818039
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: Spring bean in session with annotation

2007-11-18 Thread Hugues Pichereau

Yes, I just found it in the Javadoc of SpringComponentInjector, and was about
to post it, but you have been faster! 
Anyway, thank you.

Best regards,
Hugues


Timo Rantalaiho wrote:
> 
> On Sun, 18 Nov 2007, Hugues Pichereau wrote:
>> I've successfully implemented Spring injection in *pages*, using
>> annotations
>> from the wicket-spring-annot jar.
>> 
>> But when I try to inject a bean in the *session* class:
> 
> Call InjectorHolder.getInjector().inject(this); in your
> Session class constructor.
> 
> Best wishes,
> Timo
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
Regards,
Hugues
-- 
View this message in context: 
http://www.nabble.com/Spring-bean-in-session-with-annotation-tf4829705.html#a13818158
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: Spring bean in session with annotation

2007-11-18 Thread Timo Rantalaiho
On Sun, 18 Nov 2007, Hugues Pichereau wrote:
> I've successfully implemented Spring injection in *pages*, using annotations
> from the wicket-spring-annot jar.
> 
> But when I try to inject a bean in the *session* class:

Call InjectorHolder.getInjector().inject(this); in your
Session class constructor.

Best wishes,
Timo


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



RE: JPA best-practices?

2007-11-18 Thread dtoffe

I've found jPersist very interesting:

http://sourceforge.net/projects/jpersist

It's a different concept, it works by matching entity and attribute
names between POJOs and database metadata names, and doesn't need xml
configuration files at all. I like to think of it as "the wicket of
persistence frameworks".
It was open sourced in july and the community seems to be very small. I
would gladly appreciate to hear what others think about it.
BTW, I'm not in any way related to the project and/or its authors, just
an user.

Cheers,

Daniel


Chris Colman wrote:
> 
> Have you seen exPOJO (http://expojo.com) yet? It an open source, very
> lightweight framework, free for use in commercial and open source apps,
> which sounds like what you're looking for.
> 
> It allows you to build a completely POJO object model and persist it via
> a generic transparent persistence interface that has plugins for the
> various popular transparent persistence engines: Hibernate
> (implemented), JDO/JPOX (implemented) and JPA (will be implemented if
> sufficient demand)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JPA-best-practices--tf4777536.html#a13818521
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: Seam Integration and Injection

2007-11-18 Thread Frank Martínez
Hi Igor and Eelco,
I studied wicket-seam code and i understand its injection pattern
pretty well. But i want to implement the seam integration by other
approach because there are some special things:

1. With SeamProxyTargetLocator is not possible to inject null values.
2. in IComponentInstantiationListener.onAfterRender all component
attributes are null (I dont know why).

I want to do all injections every request and outject and cleanup any
previous injected resource after every request. Is it possible?

Thanks,
Frank.


On Nov 16, 2007 12:53 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On Nov 16, 2007 5:22 AM, Frank Martínez <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I am working with jboss seam by about one year, now i am developing a
> > wicket-seam integration based on wicket-seam-test.
>
> Good to hear someone is working on it!
>
> > I will send it to the wicket developers when i finish it.
>
> You can work directly on it if you like. If you give us a source forge
> id, we can give you write access and the project is yours :-)
>
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Frank D. Martínez M.
Asimov Technologies Ltda.
Blog: http://www.ibstaff.net/fmartinez/

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



RepeatingView constructors

2007-11-18 Thread jweekend

When instantiating a RepeatingView, is there a case where
RepeatingView(String id, IModel model) would be used instead of
RepeatingView(String id) ?
It seems that RepeatingView's (and RefreshingView's) "model" is unused. If
this is the case, to help users (as opposed to sub-classers who may
conceivably come up with a use for the model) of RepeatingView should the
constructor "RepeatingView(String id, IModel model)" be declared protected
rather than public to avoid confusion? (If this is a valid argument, does
the same apply all the way up to MarkupContainer?)  
It would be nice _if it were possible_ to even throw some sort of
RuntimeException (UnsupportedOperationException?) in RepeatingView's
setModel method (that sub-classers would need to override to behave in the
usual manner (see MarkupContainer) if the model is somehow relevant for
their sub-class - but of course, this would be, at best, tricky as they
would not be able to call super.setModel and would have to provide their own
implementation ;-) .

Regards - Cemal
http://jWeekend.co.uk http://jWeekend.co.uk 
-- 
View this message in context: 
http://www.nabble.com/RepeatingView-constructors-tf4830379.html#a13819597
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: Wicket-Seam Desired Architecture

2007-11-18 Thread Frank Martínez
The image is: 
http://www.ibstaff.net/fmartinez/wp-content/uploads/2007/11/arch.jpg

On Nov 18, 2007 10:46 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Attachments are filtered. Please upload to a server (for example
> http://papernapkin.org/pastebin/) and provide a link.
> Martijn
>
>
> On Nov 18, 2007 4:39 PM, Frank Martínez <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
> > This (Attached image) is my vision of the Wicket-Seam Integration.
> > I am working on it and i appreciate any comments.
> >
> > Regards,
> >
> > --
> > Frank D. Martínez M.
> > Asimov Technologies Ltda.
> > Blog: http://www.ibstaff.net/fmartinez/
> >
> >
> > -
> > 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-rc1 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
>



-- 
Frank D. Martínez M.
Asimov Technologies Ltda.
Blog: http://www.ibstaff.net/fmartinez/

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



Re: Wicket-Seam Desired Architecture

2007-11-18 Thread Martijn Dashorst
Attachments are filtered. Please upload to a server (for example
http://papernapkin.org/pastebin/) and provide a link.
Martijn

On Nov 18, 2007 4:39 PM, Frank Martínez <[EMAIL PROTECTED]> wrote:

> Hi All,
> This (Attached image) is my vision of the Wicket-Seam Integration.
> I am working on it and i appreciate any comments.
>
> Regards,
>
> --
> Frank D. Martínez M.
> Asimov Technologies Ltda.
> Blog: http://www.ibstaff.net/fmartinez/
>
>
> -
> 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-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/


Wicket-Seam Desired Architecture

2007-11-18 Thread Frank Martínez
Hi All,
This (Attached image) is my vision of the Wicket-Seam Integration.
I am working on it and i appreciate any comments.

Regards,

-- 
Frank D. Martínez M.
Asimov Technologies Ltda.
Blog: http://www.ibstaff.net/fmartinez/

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

SOLVED Re: .properties files question

2007-11-18 Thread dtoffe

I've found what I wanted in \test\java\org\apache\wicket\properties

Cheers,

Daniel



dtoffe wrote:
> 
> Hi !
> 
> Can I put arbitrary (I mean, not mapped to components) properties in
> my own subclass of WebApplication, or I have to put them in another place
> ?  How should I load them ?  Should I use java.util.Properties, or the
> wicket flavour ?
> I've been looking at the code of Properties, PropertiesFactory,
> Application, IResourceSettings, Settings and a couple other files, and
> also grepped the examples dir, but still I can't understand how to get my
> own configuration values from a .properties file the wicket way.
> I just need an easy way of getting initialization values that I don't
> want to be wired in MyApplication code, kind of what the .INI files are in
> the Windows world.
> 
> Cheers,
> 
> Daniel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/.properties-files-question-tf4831100.html#a13821697
Sent from the Wicket - User mailing list archive at Nabble.com.


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



.properties files question

2007-11-18 Thread dtoffe

Hi !

Can I put arbitrary (I mean, not mapped to components) properties in my
own subclass of WebApplication, or I have to put them in another place ? 
How should I load them ?  Should I use java.util.Properties, or the wicket
flavour ?
I've been looking at the code of Properties, PropertiesFactory,
Application, IResourceSettings, Settings and a couple other files, and also
grepped the examples dir, but still I can't understand how to get my own
configuration values from a .properties file the wicket way.
I just need an easy way of getting initialization values that I don't
want to be wired in MyApplication code, kind of what the .INI files are in
the Windows world.

Cheers,

Daniel

-- 
View this message in context: 
http://www.nabble.com/.properties-files-question-tf4831100.html#a13821533
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: Wicket behind a front-end proxy

2007-11-18 Thread Niels Bo

Hi Murat!

If you are running behind a WebSeal proxy, just configure the junction as
"transparent" and 
deploy your application with the same context-root as the junction name.
Then you can run like:

myserver1.xxx.com:80/myapp1 -> localhost:8080/myapp1

The "transparent" setting means that the proxy will not try to parse the
html and try
to "fix" any server-relative url contained in you pages. 

Best Regards
Niels Bo 
 

Murat Yücel-2 wrote:
> 
> It seems like wicket doesnt support it, because there is no workaround
> on the link that
> Frank Bille send. There is only information about that this is a problem.
> 
> /Murat
> 
> 2007/11/9, Johan Compagner <[EMAIL PROTECTED]>:
>> so we dont support this currently?
>>
>> myserver1.xxx.com:80 -> localhost:8080/myapp1
>> myserver2.xxx.com:80 -> localhost:8080/myapp2
>>
>> johan
>>
>>
>> On Nov 9, 2007 1:35 PM, Frank Bille <[EMAIL PROTECTED]> wrote:
>>
>> > Read this again:
>> >
>> >
>> >
>> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
>> >
>> > Frank
>> >
>> >  On Nov 9, 2007 1:26 PM, Murat Yücel <[EMAIL PROTECTED]> wrote:
>> >
>> > > Hi Frank
>> > >
>> > > I have substituted my projectname with wicket. Below is the conf for
>> > > the proxy part.
>> > >
>> > > 
>> > >   ServerAdmin [EMAIL PROTECTED]
>> > >   ServerName  www.wicket.com
>> > >   ServerAlias wicket.com
>> > >
>> > >   ProxyRequests off
>> > >   ProxyPreserveHost On
>> > >   RewriteEngine On
>> > >
>> > >   # Indexes + Directory Root.
>> > >   DirectoryIndex index.html
>> > >   DocumentRoot /var/wicket.com
>> > >
>> > >   # Logfiles
>> > >   ErrorLog  /var/log/apache2/wicket-error.log
>> > >   CustomLog /var/log/apache2/wicket-access.log combined
>> > >
>> > >   ProxyPass / http://127.0.0.1:8080/wicket/
>> > >   ProxyPassReverse / http://127.0.0.1:8080/wicket/
>> > >
>> > >   ProxyPreserveHost On
>> > > 
>> > >
>> > > 2007/11/9, Frank Bille <[EMAIL PROTECTED]>:
>> > > > Sounds weird.
>> > > >
>> > > > Can you show me your apache conf for the proxy?
>> > > >
>> > > > Frank
>> > > >
>> > > > On Nov 9, 2007 12:44 PM, Murat Yücel <[EMAIL PROTECTED]>
>> wrote:
>> > > >
>> > > > > Hi Frank
>> > > > >
>> > > > > I have changed the /app/* to /* but it doesnt change the urls.
>> They
>> > > > > are still wrong.
>> > > > > For example i enter the following url:
>> > > > > www.wicket.com
>> > > > >
>> > > > > The url is transformed to
>> > > > >
>> > www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
>> > > > >
>> > > > > If i remove the the wicket part from the url then i can see the
>> > login
>> > > > > page. But if i click
>> > > > > on a link then the wicket part is appended again.
>> > > > >
>> > > > > /Murat
>> > > > >
>> > > > > 2007/11/9, Frank Bille <[EMAIL PROTECTED]>:
>> > > > > > First of all, you don't need /app/* anylonger. just /*.
>> > > > > >
>> > > > > > I'm running behind proxy as well and it works well. Are you
>> sure
>> > you
>> > > > > haven't
>> > > > > > run into this problem:
>> > > > > >
>> > > > > >
>> > > > >
>> > >
>> >
>> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
>> > > > > >
>> > > > > > Frank
>> > > > > >
>> > > > > >
>> > > > > > On Nov 9, 2007 11:56 AM, Murat Yücel <[EMAIL PROTECTED]>
>> > wrote:
>> > > > > >
>> > > > > > > Hi All
>> > > > > > >
>> > > > > > > I have looked at this article:
>> > > > > > >
>> > > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
>> > > > > > >
>> > > > > > > and it seems like the problem should be gone in wicket 1.3
>> but
>> > it
>> > > > > > > isnt. I still get 404
>> > > > > > > errors. There is a warning on the wiki page: "Don't use
>> > > setContextPath
>> > > > > > > with Wicket 1.3".
>> > > > > > >
>> > > > > > > I am not setting the context path. Instead i am using
>> > > filter-mapping.
>> > > > > > > Is this the same thing?
>> > > > > > >
>> > > > > > >
>> > > > > > >wicket
>> > > > > > >
>> > > > > > >/app/*
>> > > > > > >
>> > > > > > >
>> > > > > > > Do you have a workaround for this issue or am i doing
>> something
>> > > wrong?
>> > > > > > > I am currently running 1.3-beta4.
>> > > > > > >
>> > > > > > > Kind regards
>> > > > > > >
>> > > > > > > /Murat Yücel
>> > > > > > >
>> > > > > > >
>> > > -
>> > > > > > > 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]
>> > > > >
>> > > > >
>> > > >
>> > >
>> > > ---

Session.bind() in newSession()

2007-11-18 Thread Niels Bo

Hi

I am setting locale and a userid to my custom Session in the
application.newSession() method
(the information comes from a front end proxy),
and this works fine under Jetty, but I get this nullpointer exception under
WebLogic.

Is that the wrong place to call bind()? 

java.lang.NullPointerException
at org.apache.wicket.Session.bind(Session.java:392)
at
oet.applications.branch.BranchApplication.newSession(BranchApplication.java:87)
at org.apache.wicket.Session.findOrCreate(Session.java:225)
at
org.apache.wicket.protocol.http.WicketFilter.getLastModified(WicketFilter.java:894)
at
org.apache.wicket.protocol.http.WicketServlet.getLastModified(WicketServlet.java:210)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:736)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

Using 1.3.0-rc1, Session.java:392 contains RequestCycle.get().getRequest()

Niels
-- 
View this message in context: 
http://www.nabble.com/Session.bind%28%29-in-newSession%28%29-tf4831304.html#a13822138
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: Seam Integration and Injection

2007-11-18 Thread Igor Vaynberg
its possible, you just have to figure out how to do it :)

-igor


On Nov 18, 2007 5:23 AM, Frank Martínez <[EMAIL PROTECTED]> wrote:
> Hi Igor and Eelco,
> I studied wicket-seam code and i understand its injection pattern
> pretty well. But i want to implement the seam integration by other
> approach because there are some special things:
>
> 1. With SeamProxyTargetLocator is not possible to inject null values.
> 2. in IComponentInstantiationListener.onAfterRender all component
> attributes are null (I dont know why).
>
> I want to do all injections every request and outject and cleanup any
> previous injected resource after every request. Is it possible?
>
> Thanks,
> Frank.
>
>
>
> On Nov 16, 2007 12:53 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > On Nov 16, 2007 5:22 AM, Frank Martínez <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > I am working with jboss seam by about one year, now i am developing a
> > > wicket-seam integration based on wicket-seam-test.
> >
> > Good to hear someone is working on it!
> >
> > > I will send it to the wicket developers when i finish it.
> >
> > You can work directly on it if you like. If you give us a source forge
> > id, we can give you write access and the project is yours :-)
> >
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Frank D. Martínez M.
> Asimov Technologies Ltda.
> Blog: http://www.ibstaff.net/fmartinez/
>
> -
>
> 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: .properties files question

2007-11-18 Thread Igor Vaynberg
just use Properties, thats what its for... no need for anything
wicket-related here

-igor


On Nov 18, 2007 9:46 AM, dtoffe <[EMAIL PROTECTED]> wrote:
>
> Hi !
>
> Can I put arbitrary (I mean, not mapped to components) properties in my
> own subclass of WebApplication, or I have to put them in another place ?
> How should I load them ?  Should I use java.util.Properties, or the wicket
> flavour ?
> I've been looking at the code of Properties, PropertiesFactory,
> Application, IResourceSettings, Settings and a couple other files, and also
> grepped the examples dir, but still I can't understand how to get my own
> configuration values from a .properties file the wicket way.
> I just need an easy way of getting initialization values that I don't
> want to be wired in MyApplication code, kind of what the .INI files are in
> the Windows world.
>
> Cheers,
>
> Daniel
>
> --
> View this message in context: 
> http://www.nabble.com/.properties-files-question-tf4831100.html#a13821533
> 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: Seam Integration and Injection

2007-11-18 Thread Eelco Hillenius
> Hi Igor and Eelco,
> I studied wicket-seam code and i understand its injection pattern
> pretty well. But i want to implement the seam integration by other
> approach because there are some special things:
>
> 1. With SeamProxyTargetLocator is not possible to inject null values.
> 2. in IComponentInstantiationListener.onAfterRender all component
> attributes are null (I dont know why).

You mean IComponentOnAfterRenderListener? I wouldn't know why tbh...

Anyway, you could look at using IComponentOnBeforeRenderListener for
injecting and using IComponentOnAfterRenderListener for cleaning up
(outjecting?). You should ignore IComponentInstantiationListener here
because component instances can be reused over multiple requests.

Eelco

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



Re: .properties files question

2007-11-18 Thread dtoffe

Thanks for your help !

Cheers,

Daniel


igor.vaynberg wrote:
> 
> just use Properties, thats what its for... no need for anything
> wicket-related here
> 
> -igor
> 
> On Nov 18, 2007 9:46 AM, dtoffe <[EMAIL PROTECTED]> wrote:
>>
>> Hi !
>>
>> Can I put arbitrary (I mean, not mapped to components) properties in
>> my
>> own subclass of WebApplication, or I have to put them in another place ?
>> How should I load them ?  Should I use java.util.Properties, or the
>> wicket
>> flavour ?
>> I've been looking at the code of Properties, PropertiesFactory,
>> Application, IResourceSettings, Settings and a couple other files, and
>> also
>> grepped the examples dir, but still I can't understand how to get my own
>> configuration values from a .properties file the wicket way.
>> I just need an easy way of getting initialization values that I don't
>> want to be wired in MyApplication code, kind of what the .INI files are
>> in
>> the Windows world.
>>
>> Cheers,
>>
>> Daniel
>>
> 

-- 
View this message in context: 
http://www.nabble.com/.properties-files-question-tf4831100.html#a13823907
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: Wicket-Seam Desired Architecture

2007-11-18 Thread Eelco Hillenius
On Nov 18, 2007 7:51 AM, Frank Martínez <[EMAIL PROTECTED]> wrote:
> The image is: 
> http://www.ibstaff.net/fmartinez/wp-content/uploads/2007/11/arch.jpg

Looks fine, but it doesn't tell me much about how it would be
implemented. I prefer to talk code :-)

Eelco

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



Re: Wicket-Seam Desired Architecture

2007-11-18 Thread Frank Martínez
Yes. It is no the architecture of the integration implementation itself.
It is a general architecture of an application using wicket and seam.
It is just a global vision for the users.

Frank.

On Nov 18, 2007 4:27 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On Nov 18, 2007 7:51 AM, Frank Martínez <[EMAIL PROTECTED]> wrote:
> > The image is: 
> > http://www.ibstaff.net/fmartinez/wp-content/uploads/2007/11/arch.jpg
>
> Looks fine, but it doesn't tell me much about how it would be
> implemented. I prefer to talk code :-)
>
> Eelco
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Frank D. Martínez M.
Asimov Technologies Ltda.
Blog: http://www.ibstaff.net/fmartinez/

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



Re: Wicket & OSGi

2007-11-18 Thread David Leangen

Sorry, been away for a few days and didn't catch this thread until now.

If you are new to Wicket+OSGi and don't have backporting issues like
Ernesto did, I suggest you take a look a Pax Wicket.

I've been generally very satisfied. It's also easy to jump in and make
changes if you need them.

  http://wiki.ops4j.org/confluence/display/ops4j/Pax+Wicket


The Pax projects are very strict about OSGi compliance, whereas Eclipse
sometimes is not due to their complex background.

Also, I feel safer not being depending on one OSGi implementation.


Anyway, there are examples there you can use. Normally, it should be
easy to get the demo app setup and running within minutes.


Best ask questions on the ops4j list if you run into any issues.


Cheers,
Dave



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



Deployment mode Javascript error

2007-11-18 Thread John Patterson

Hello users,

I am in the process of deploying a wicket site and found that the  
cool scriptalicious effect I am using does not work when I am in  
Deployment mode.  In the Safari console it shows:


SyntaxError: Parse error
http://www.blahblah.com/resources/ 
org.wicketstuff.scriptaculous.ScriptaculousAjaxBehavior/prototype.js  
Line 3661


I guess this is due to some error in the compression?

Thanks,

John

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



Re: Deployment mode Javascript error

2007-11-18 Thread Frank Bille
The easy solution is to disable javascript cleanup:

INIT:
getResourceSettings().setStripJavascriptCommentsAndWhitespace(false);

I have been too lazy to actually try to fix the problem, I'm afraid.

Frank

On Nov 19, 2007 7:21 AM, John Patterson <[EMAIL PROTECTED]> wrote:

> Hello users,
>
> I am in the process of deploying a wicket site and found that the
> cool scriptalicious effect I am using does not work when I am in
> Deployment mode.  In the Safari console it shows:
>
> SyntaxError: Parse error
> http://www.blahblah.com/resources/
> org.wicketstuff.scriptaculous.ScriptaculousAjaxBehavior/prototype.js
> Line 3661
>
> I guess this is due to some error in the compression?
>
> Thanks,
>
> John
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>