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
> over
I always wrap my domain objects in a generic loadable detachable wicket
model subclass. So for User, for example, UserModel extends
MyGenericDetachableModel. This is safer than passing around raw
IModels and also saves casting the return value from getObject() until
Wicket 1.4 generifies everyt
Except for rather small scoped projects, I prefer the usage of DTOs (or
formerly
known as 'View Objects') over direct usage of domain objects. DTOs can be
modelled
much closer to the use case (i.e. view) at hand (by combining domain objects
or
leaving out non-required attributes to have objects
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, D
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 Leangen <[EMAIL PROTECTED]> wrote:
>
> Hello.
>
> I've tried searching, so please excuse me if this question has already
> been asked. I will add the answer to t
you can always roll your own link, you dont have to use the one
provided with ListView - there is nothing special it does that you
cannot do yourself. Of course we should have used item.getindex() if
there was some common interface that all items that were put in list
had to implement...but since t
Hi,
Taking a look at ListView.moveUpLink as example, I doubt that this
getList().indexOf() will return a correct index if we have duplicate
items with same identity in getList(). Should not it uses
item.getIndex() instead?
public final Link moveUpLink(final String id, final ListItem item)
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
Hello.
I've tried searching, so please excuse me if this question has already
been asked. I will add the answer to this on the wiki...
I would like to develop a static site with Wicket, then save the static
html files on the file system.
I can think of lots of ways to do this, but is there al
I think I am following your example correctly. What I will end up with is
the names of one or more principals that have the permission that was
denied. Those one or more principals will not belong to the current subject.
Then I can use the names of those principals to construct a message. You
could
You could do that. If you are paid by the lines of code you write, it
might be even profitable. A lot of people prefer the direct binding
(which IMO is a POJO) instead of making a GUI bean (which would be a
DTO).
Martijn
On 2/14/08, mfs <[EMAIL PROTECTED]> wrote:
>
> Well i meant the same in my q
I always use business objects as my model objects unless the data is some
form of aggregate, like a summary table.
Well i meant the same in my question..i dont think making your Domain Objects
implement IModel would give any benefit rather would make the DO dependent
on wicket (or the presentation layer)...
So you advocate the idea of having the domain object wrapped inside wicket
models..rather than having a
http://www.urbandictionary.com/define.php?term=mofo
-igor
On Feb 13, 2008 3:20 PM, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> :D thanks for the explanation Martijn.
>
>
>
> On Feb 14, 2008 12:13 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > For those unfamiliar with the term "mofo", it m
:D thanks for the explanation Martijn.
On Feb 14, 2008 12:13 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> For those unfamiliar with the term "mofo", it means something *really*
> bad, and not wished upon anyone.
>
> Martijn
>
>
> On 2/14/08, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> > In
For those unfamiliar with the term "mofo", it means something *really*
bad, and not wished upon anyone.
Martijn
On 2/14/08, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> In our apps we always wrap our domain objects in models, not have them
> implement IModel.
> There is only 1 exception to this r
In our apps we always wrap our domain objects in models, not have them
implement IModel.
There is only 1 exception to this rule and that is because that
particular object is not stored in the db but is initialized with
loads of other objects. It turned out to be one very complex mofo not
something
It actually is a bit more trickier then that.
Swarm does not check for principals it checks for permissions.
The same permission might be shared by multiple principals.
To get that information you need to dig deep.
You can't wait for the wicket UnAuthorizedActionException since all it
will tell you
Could you point me to some code examples?
> -Original Message-
> From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 13, 2008 1:18 PM
> To: users@wicket.apache.org
> Subject: Re: Link to last accessed page
>
>
> That is the same as pressing the back button. It is
That is the same as pressing the back button. It is a low tech
solution to the problem you are trying to solve :-)
It is possible to gain access to the pages in the pagemap. I just
don't have the code readily available.
We use it in our system to provide users with a navigation hierarchy
so they
Would that be the same as clicking the browser's back button? And would
there be any instance that that would cause a problem? Also, isn't the
PageMap where all the previous pages are stored so that the back button will
work? And if so, is there a way to access those pages from my page so that I
ca
you could use the following markup fragment:
Return to previous page
(not 100% sure about the back() method, but there is a javascript
function in the browser that does that.
Martijn
On 2/13/08, Warren <[EMAIL PROTECTED]> wrote:
> The link is on an Accessed denied page. I am not sure how to pas
The link is on an Accessed denied page. I am not sure how to pass anything
to it other than thru the session. I thought maybe I could get the last page
from the PageMap from the Session or from the PageMap from the Page. I have
not looked at breadcrumbs, not sure how that would work. I should be ab
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 homePageLi
The urlFor() method can take a few different types but not a
Resource/WebResource/DynamicWebResource. It can take a ResourceReference
but would mean that I would have to register an object of my
DynamicWebResource class as a shared resource before I could get a reference
to it, wouldn't it? It w
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 so
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 lastAccessedEntry(
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 context:
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
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
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 work
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 us
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-Disposit
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 setobject(
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 {
man.delete(
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 acc
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
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 p
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?
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 tar
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 not
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 sp
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 thou
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 n
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
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 t
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 ja
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 :)
Hi,
maybe the sugestion in the first result helps:
http://www.google.com/search?hl=de&q=yui+calendar+z-index+flash+ontop&btnG=Google-Suche&lr=
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 th
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 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 y
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 ge
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...
Rega
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.
And indeed, 'mt
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 [ ] on the html side and on the java side, a
datePicker is added to the dateTextField fie
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?
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:
mountBookmarkablePa
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: [E
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
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
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
Dankjewel! :)
I had to tweak the code below a bit, in order to get it working, but
this is what I ended up with:
public HomePage()
{
final Component parentPage = this;
add( new Link( "languageSwitch" )
{
@Over
Dude, its a web site. Whatever works well for websites works well for
wicket.
Just don't make 500kb pages.
carloc wrote:
>
> Hi guys,
>
> What do you think will be the ideal bandwidth to use when you are using
> Wicket?
> Will it work good on a 128kbps connection?
>
> what's the beset band
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
igor.vaynberg wrote:
>
> or you can bind the model to a property, and then when a
Hi guys,
What do you think will be the ideal bandwidth to use when you are using
Wicket?
Will it work good on a 128kbps connection?
what's the beset bandwidth that you could recommend?
carlo
--
View this message in context:
http://www.nabble.com/Wicket-Ideal-Bandwidth-tp15452645p15452645.html
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.
Thing I'm working on will have components that can be translated and
customised for ma
Hi Peter,
Yes, you can do this. Suppose the link is in LocalePanel, then
LocalePanel.properties:
other_locale: nl_NL
LocalePanel_en.properties:
other_locale: en_US
LocalePanel.java:
add(new Link("localeLink", new Model() {
public Object getObject() {
Locale l = new Locale(LocalePane
Hi Igor,
Thanks for your reply, but it doesn't answer my question.
I don't want an HTML file for each language, and I don't want all
languages as links: on the page in language X I want a link to language
Y, and on the page in language Y a link to language X.
It *is* described in detail in my or
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 impleme
give dropdownchoice a model, and in this model's setobject(object)
save the value into session. also check out the models page on the
wiki, it is important to understand/use models correctly.
-igor
On Feb 12, 2008 11:07 PM, Bruce McGuire <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I would like to save
when you hit the back button there is no server hit right? the page is
shown from browser's cache. if you dont want that you have to set a
cache/pragma no-store headers. see webpage.setheaders(). but do notice
this will result in more overhead as every back button hit will result
in another request
In the init of your webapp do
getApplicationSettings().setAccessDeniedPage(MyPage.class)
This is a wicket setting and not related to the security framework.
Maurice
On Feb 12, 2008 7:50 PM, Warren <[EMAIL PROTECTED]> wrote:
> How do you set-up a custom "access denied page" that has a message on
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
> http://www.hibernate.org
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 serie
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:
PropertyModel
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 tr
76 matches
Mail list logo