Hello,
I'm searching for a best practice to integrate some hibernate
transaction with Wicket. I'd like to implement the session-per-request
that is described here
http://www.hibernate.org/hib_docs/v3/reference/fr/html_single/#tutorial-firstapp-workingpersistence
I think I can commit the
Hello!
I'm (finally!) migrating to 1.3, so have a few wrinkles to iron out.
Is somebody able to tell me the intention of the PropertyModel? I'm
wondering if something has changed, or if I just wasn't using it
correctly before...
In one of my panels, I use this type of property:
But i am using a custom detachable model to provide data to my repeater.
Maybe its something else?
I am posting the code which is very simple and may help.
Thanks for your time and congratulations to the whole team for your work in
the 'Wicket in Action'
** the code is part of a quite big
see databinder.net
-igor
On Feb 12, 2008 11:59 PM, Sébastien Piller [EMAIL PROTECTED] wrote:
Hello,
I'm searching for a best practice to integrate some hibernate
transaction with Wicket. I'd like to implement the session-per-request
that is described here
you can use getconvertedinput() to get the value that will eventually
be pushed into session.
-igor
On Feb 12, 2008 10:44 PM, Rik van der Kleij [EMAIL PROTECTED] wrote:
Hi,
Does someone knows a solution for reading the selected radio button in the
validate() of a IFormValidator
Like in the code given, you can just use :
HomePage.this.getString(header.versionLanguage)
in the anonymous inner class instead of using the trick you mention.
The reference of the page is *already* passed to the anonymous inner
class (by java itself, since anonymous inner classes are not and
On 2/13/08, Korsten, Peter, VF-MT [EMAIL PROTECTED] wrote:
Incidentally, the languages used will be 'en' and 'mt'...
mt == manager talk?
Martijn
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
Erik van Oosten wrote:
Indeed, that's what I did too.
Hmm, but the rest was crap I now see.
Anyway, glad it got you on the right track.
Erik.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hello all,
I am having problems with the path that Wicket builds for my CSS sheet. I
have a BasePage which has:
add(HeaderContributor.forCss(css/styles.css));
And a sign-in page that extends this BasePage is mounted like this at the
Application init() method:
Indeed, that's what I did too.
Martijn, mt is Maltese, now that's is something you don't see often in
the Netherlands :)
Erik.
Sebastiaan van Erk wrote:
Like in the code given, you can just use :
HomePage.this.getString(header.versionLanguage)
in the anonymous inner class instead of
That completely depends on your content.. If you use compressed resource
references etc, clients need to download less, also there are tools to
shrink your js and css files...
regards Nino
carloc wrote:
Hi guys,
What do you think will be the ideal bandwidth to use when you are using
Wicket?
Hi,
I have a js date picker pop up when the calendar icon is clicked, exactly
like this one on the wicket example pages:
http://wicketstuff.org/wicket13/dates/
Mine is used in exactly the same way, I have [ input type=text
wicket:id=dateTextField / ] on the html side and on the java side, a
Yes, you're absolutely right. I got an indication by NetBeans that
something was incorrect, but it was apparently about something else. I'd
never seen this construct before, and it's not exactly like I'm just
starting out with Java.
Again, everybody, thanks for the quick replies.
off-topic
And
dfernandez wrote:
In case this helps, I am applying the Wicket filter to /*.
But: if I switch the filter-mapping to /app/*... it works!
Is this normal? /* filter mapping is supposed to be allowed, isn't it? The
quickstart application in Wicket in Action uses it...
Regards,
Daniel.
Hello,
I wanned to be able to get the browser client size, so I followed the
examples and put
getRequestCycleSettings().setGatherExtendedBrowserInfo(true) in my
Application init method.
I can get the parameters without any problem, but now on the login page,
after I submit, for a few seconds I
Hi David,
I'm not able to tell you the intention of the PropertyModel.
My guess for coding to your spec in 1.3 would be:
IModel languageModel = new AbstractReadOnlyModel() {
@Override
public Object getObject() {
return getSession().getLocale().getLanguage(); }
};
in your special case
Hi all,
I am working on rtying to reproduce this behavior
http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo.
Two sortable list which you can reorder de item in it a between them.
This is the html generated by my component, but it seems
not to work. It doesn't call the component
Hi,
maybe the sugestion in the first result helps:
http://www.google.com/search?hl=deq=yui+calendar+z-index+flash+ontopbtnG=Google-Suchelr=
mf
2008/2/13, mbelarbi [EMAIL PROTECTED]:
Hi,
I have a js date picker pop up when the calendar icon is clicked, exactly
like this one on the wicket
In a project I am working on, I wrote a DynamicWebResource that generates a
PDF file and, by setting the Content-Disposition in the header, got it so
that the user is prompted to download the PDF when they click on a
ResourceLink to my PDF-generating resource.
That all works fine but now I need
I understand that, but what I want to do is create a message on that page
that reads Users in group xxx do not have access to yyy where yyy would be
the name of the principal that triggered the access denied. I need to get
the name of that principal.
-Original Message-
From: Maurice
No, i haven't yet. the problem for me is that I don't have an install
of IE6/7 to test this out on. I'd be happy to apply any patch that
someone has that has been tested against IE6 and IE7 though.
On Feb 13, 2008 12:54 AM, Edward Yakop [EMAIL PROTECTED] wrote:
Hi,
Thanx for the hints :)
Regardless of what technologies you use on the server side (Wicket, JSF,
Struts, etc.,) the end product that gets transmitted to the user is just
plain old HTML. Use the same judgment you would use with any other
page/site. If you have big pages with lots of images and whatnot, you will
either
Hi I have a little problem with displaying list inside datatable.
I have a list of questions and each question has a list of answers.My design
requirement is to display one question per page(that's why used Data
Provider) and within that page I have to display list of relevant answers.I
have a
Ok everyone, I think I have a fix checked in. Before re-rendering the
DraggableTarget on the Ajax response, I call the scriptaculous
Droppables.remove() to cleanup the old reference.
The wicketstuff-scriptaculous-example project should be able to test
and verify this behavior. If anyone has a
Hi All
I'm having a problem with TextField on wicket 1.2.6.
I must format the integer numbers, so, when the number is 123456780 it will
be formated as 123,456,789 or 123.456.789 (according to user locale). The
problem is that when I submit the form, the validation fails because
123,456,789 is
if you have an example running, i'll be happy to test on safari and
ie6/7/ff ..
Ryan Sonnek wrote:
No, i haven't yet. the problem for me is that I don't have an install
of IE6/7 to test this out on. I'd be happy to apply any patch that
someone has that has been tested against IE6 and IE7
hmm, this should still work. mind filing a jira bug with a quickstart?
-igor
On Feb 13, 2008 12:00 AM, David Leangen [EMAIL PROTECTED] wrote:
Hello!
I'm (finally!) migrating to 1.3, so have a few wrinkles to iron out.
Is somebody able to tell me the intention of the PropertyModel? I'm
looks ok.
-igor
On Feb 13, 2008 1:22 AM, Ned Collyer [EMAIL PROTECTED] wrote:
Hi,
I want to use my own localisation service. This allows me to handle the
properties differently via a GUI from within the app, or from another
location, and gives customers / implementors a bit more power.
you can write a converter that strips any commas/periods from input.
override getconverter() on the textfield.
-igor
On Feb 13, 2008 8:53 AM, Marco Aurélio Silva [EMAIL PROTECTED] wrote:
Hi All
I'm having a problem with TextField on wicket 1.2.6.
I must format the integer numbers, so, when
stick that name into requestcycle's metadata, and pull it out in yoru
implementation of access denied page
-igor
On Feb 13, 2008 8:31 AM, Warren [EMAIL PROTECTED] wrote:
I understand that, but what I want to do is create a message on that page
that reads Users in group xxx do not have access
Sorry for the code formatting in the mail... I rewrite it, because I've found
another information that can be useful...
the code is this:
box.setWindowClosedCallback(new WindowClosedCallback() { @Override public
void onClose(AjaxRequestTarget target) {if (ok){ try {
Thanks for the information Igor. Reading now.
Bruce.
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 13 February, 2008 12:22 AM
To: users@wicket.apache.org
Subject: Re: Extending DropDownChoice
give dropdownchoice a model, and in this model's
The reason why this might not work is when we have the following use case:
* We have many draggable target, and when somebody drop to one of the
location, containers that contained the other draggable targets are
also added to ajax request target. Once this happened, none of the
other draggable
ajax doesnt work because probably the ajax request is redirected to
that page...that page is what gathers all the browser info through
javascript...
please add a jira issue for this, we should detect if the request is
ajax and if it is not do the redirect to the browser detection page...
-igor
onsubmit() {
getrequestcycle().setrequesttarget(new
redirectrequesttarget(urlfor(resourceref)));
}
-igor
On Feb 13, 2008 8:18 AM, UPBrandon [EMAIL PROTECTED] wrote:
In a project I am working on, I wrote a DynamicWebResource that generates a
PDF file and, by setting the Content-Disposition
see ListDataProvider
-igor
On Feb 13, 2008 7:44 AM, wiki [EMAIL PROTECTED] wrote:
Hi I have a little problem with displaying list inside datatable.
I have a list of questions and each question has a list of answers.My design
requirement is to display one question per page(that's why used
here is the list of things to try:
are there any javascript errors during callback?
try without encrypted coding strategy
set a break point in wicketfilter and see why it doesnt hit the behavior
-igor
On Feb 13, 2008 6:15 AM, Fernando Wermus [EMAIL PROTECTED] wrote:
Hi all,
I am working
yes
-igor
On Feb 13, 2008 1:49 AM, carloc [EMAIL PROTECTED] wrote:
Thanks For The Reply,
Rating Panel is not a FormComponent right? So am I correct in saying that
the model gets updated during the Ajax Requests ? Cause every click on the
button triggers an ajax request.
Thanks
Guys,
I would want to know if using your business/domain objects as wicket models
would be a good idea ?
i remember in an earlier thread i was suggested not to use business-objects
as wicket models, but it would want to hear more opinions..
Thanks in advance..
--
View this message in
How do I create a link on a page that will go to the last accessed page no
matter what that page is? I see that WebPage has a method homePageLink. Is
there something simmilar that will return you to the last accessed page? I
also see that the class AccessStackPageMap has a method
You could just pass the current page to the new page via the constructor.
On Feb 13, 2008 2:06 PM, Warren [EMAIL PROTECTED] wrote:
How do I create a link on a page that will go to the last accessed page no
matter what that page is? I see that WebPage has a method homePageLink. Is
there
How about using the breadcrumb component? Would that help?
http://wicketstuff.org/wicket13/breadcrumb/
On 2/13/08, Warren [EMAIL PROTECTED] wrote:
How do I create a link on a page that will go to the last accessed page no
matter what that page is? I see that WebPage has a method homePageLink.
I have started implementing your sugestions and I have a question. When I
overide the method createHive() in PolicyFileHiveFactory do I need to set
useHiveCache(true) if I am extending SimpleCachingHive.
public Hive createHive()
{
// Do I need to do this
there is a switch in DiffUtil somewhere, a system arg you define.
-igor
On Wed, Feb 13, 2008 at 10:29 PM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
WicketTester knows how to generate all files for unit tests. I don't
know the how from the top of my head.
Martijn
On 2/14/08, David
I always wrap my domain objects in a generic loadable detachable wicket
model subclass. So for User, for example, UserModel extends
MyGenericDetachableModelUser. This is safer than passing around raw
IModels and also saves casting the return value from getObject() until
Wicket 1.4 generifies
Use cache is default true (i think by the constructor but i don't have
the code with me right now)
So you don't have to worry about that.
Maurice
On Thu, Feb 14, 2008 at 4:04 AM, Warren [EMAIL PROTECTED] wrote:
I have started implementing your sugestions and I have a question. When I
overide
46 matches
Mail list logo