Hi Johan,
Do you think that the WicketSessionFilter CREATES a WicketSession object for
you?
No, my confusion is about how it comes into the HttpSession accessible under
the attribute name which is build only in WicketSessionFilter (aren't the
HttpSession's attributes not a simple
Thanks, I will take a look at the example.
Tom
Eelco Hillenius wrote:
This creates following question for me:
- Where the httpSession attribute with the sessionKey is set?
Using the default session store implementations, this is done in
HttpSessionStore#setAttribute.
No, my confusion is about how it comes into the HttpSession accessible under
the attribute name which is build only in WicketSessionFilter (aren't the
HttpSession's attributes not a simple string-to-object map so you need the
right key to get the value?).
That's why you need to provide the
Ah, that's the secret missing link. I then suggest to have a method
getSessionKey(String wicketFilterName) which is used by the normal
WicketFilter to read/write and the WicketSessionFilter to read the WebSession.
Thanks, Eelco!
--
Cheers,
Tom
Eelco Hillenius wrote:
No, my confusion is
On 8/31/07, Ghodmode [EMAIL PROTECTED] wrote:
For the record, the URL I'm using is
http://localhost:8080/helloworld1/HelloWorld1Application This is based on
a
url-pattern in the servlet mapping of /helloworld1/* and a servlet-name
of
HelloWorld1Application.
I'm still getting a
On 9/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
On 8/31/07, Ghodmode [EMAIL PROTECTED] wrote:
...
your servlet mapping is /helloworld1/* so the homepage url for your
application is of form
http://server/context/helloworld1/
assuming you are running localhost and your context is root
I haven't try it, but maybe sample code from iText here should be helpful :
http://itext.ugent.be/library/com/lowagie/examples/general/webapp/SilentPrintServlet.java
thanks
2007/8/23, Eko S.W. [EMAIL PROTECTED]:
Thank you very much for the great pointer!
Close (or maybe exactly) to what I
This is not really related to wicket, since your properties file is
available in your classpath, you should be able to get it as a resource.
Something like:
Properties props=new Properties () ;
props.load (
getClass().getResourceAsStream(/WEB-INF/conf/database.properties) ) ;
If you're in a
Oops, sorry, WEB-INF is usually not accessible in your application
classpath, but through the ServletContext.
So you can access it with:
((WebApplication)WebApplication.get()).getServletContext().getResourceAsStream(/WEB-INF/conf/database.properties)
Xavier
On 9/1/07, Xavier Hanin [EMAIL
we already have that but it is not in the filter because the filter doesn't
have anything to do with that kind of stuff
its in
WebApplication.getSessionAttributePrefix(final WebRequest request) (dont
know why it needs the request param)
and then appended with:
Session.SESSION_ATTRIBUTE_NAME
Thanks for your reply,
How to find the base path of the project
For e.g my project name is TMS. this projected stored in c:/program
files/TMS.
How to find the above path using java program.
Thanking You.
Xavier Hanin wrote:
Oops, sorry, WEB-INF is usually not accessible in your
Thanks. That solves the problem.
Johannes Schneider
Matej Knopp wrote:
Assuming you are using 1.3.
Make your page implement IHeaderContributor
class MyPage extends WebPage implements IHeaderContributor {
public void renderHead(final IHeaderResponse response) {
Hi Doug,
thanks for the quickstart, issue should be fixed, see the issue comments.
-Matej
On 9/1/07, Doug Leeper [EMAIL PROTECTED] wrote:
See entry WICKET-914
https://issues.apache.org/jira/browse/WICKET-914
--
View this message in context:
On 8/31/07, Scott Swank [EMAIL PROTECTED] wrote:
I will not argue against Lisp. The paucity of Lisp/Scheme/Haskell
within professional software development is criminal. That is why,
for example, we will be seeing continuations in Java 7.
Heh, even though the idea goes so far, that reminds me
Wicket is not for newbie OOP developers. We don't pretend that it is. That
was never the goal. You need rather solid OO skills to get Wicket. But if
you want to learn, I think Wicket is a pretty good material.
I'm going to go out on a limb - because I'm sure there are plenty of
anecdotal
Good luck with such solutions. If you want to build things like that, you've
got basically two approaches. Use GWT (or something alike) - code logic in
limited subset of java and have it magically translated to javascript. This
seems somewhat fragile and limiting to me, but I don't have enough
It depends... if your application is a web application, it can be packaged
as a war, or an expanded war, be deployed in a web container, or embed its
own web container. That's a lot of different cases, so there is no single
answer to your question. The best is to keep things either in your
On 8/30/07, David Leangen [EMAIL PROTECTED] wrote:
Ok, thanks!
I've been looking for a way to somehow attach a Session to this filter,
but can't see one.
Essentially, I am trying to grab certain tags (such as p) and add the
attribute lang=en (or whatever, according to the current locale).
I've been running my app through the YSlow firefox plugin, and have been
*very* impressed on how wicket does the right thing most of the time (ex:
gzip css and javascript). nice work guys!
While digging through the YSlow feedback, it suggested that the javascript
should be minified. This led me
Well, I certainly didn't want to reinvent the wheel. But all existing
solutions I was able to find either relied on a third part library
(shrinksafe) or had license not compatible with ASL. So I just wrote a
simple stripper. I think it still helps a lot, I didn't want to build a
perfect stripper.
Creating a pluggable interface for this would allow for non-ASL solutions to
be hosted through wicket-stuff projects. The default implementation could
stay as it is today.
On 9/1/07, Matej Knopp [EMAIL PROTECTED] wrote:
Well, I certainly didn't want to reinvent the wheel. But all existing
Am I missing something here? Why doesn't the AjaxButton take a IModel that
sets the value attribute like the normal Button component?
I need to internationalize the button value (name), do I really need to
override something like the onbeforerender method to add a
AttributeModifier?
-Craig
--
excellent! Thanks Matej. Let me know if you have any other ideas on this.
As soon as there's an abstraction in place, i'll be happy to create a
wicketstuff project with the dojo (and maybe YUI) compressors!
https://issues.apache.org/jira/browse/WICKET-918
On 9/1/07, Matej Knopp [EMAIL
On 9/1/07, Sam Hough [EMAIL PROTECTED] wrote:
Doh, hadn't seen the AjaxFallbackButton... That definitely puts a dent in
my
current plan.
read my second post in this long thread, i explicitly told you about this
stuff as i thought it would fit your usecase well :)
* Sending extra HTML to
ermwhat exactly is the point of minifing AND gziping javascript or
anything else? if you take a zip file and then zip it again do you get a
smaller file?
-igor
On 9/1/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
excellent! Thanks Matej. Let me know if you have any other ideas on
this.
As
input type=button wicket:id=ajaxbutton value=preview
wicket:message=value:key/
i believe that is the syntax for internatianalyzing attributes. yes it is a
bit inconsistent, but if anything i would like the button to not use its
model and let me put in there a model i can use in onsubmit(). just
26 matches
Mail list logo