I am trying to use the ModalWindow as a confirmation dialog and it works fine
on one page but the same code on a different page produces the above error.
Closing the ModalWindow with the X in the corner work fine. The error
occurs when the AjaxCallbackLink onClick handler calls ModalWindow.close
> Best way to go is probably to use tags for static
> blocks that need to be localized.
To illustrate that, I just committed an alternative implementation of
pub (called pub2). Please look and compare! :-)
Eelco
-
To unsubscrib
> the *pub* example (http://wicketstuff.org/wicket13/pub/) shows how a
> localized string can be retrieved from a properties file and then
> dinamically inserted in a page. Still, with the exception of that string,
> the remaining markup is kept static, which results in separated, localized
> HTML
Hello,
the *pub* example (http://wicketstuff.org/wicket13/pub/) shows how a
localized string can be retrieved from a properties file and then
dinamically inserted in a page. Still, with the exception of that string,
the remaining markup is kept static, which results in separated, localized
HTML f
Excellent! That is only 4 blocks from where I work :)
Also, all those dates are fine by me.
Just an opinion: I do not expect any presentations; just a get together
for a couple of hours is nice.
Erik.
--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/
> I think I understand your explanations yet I struggle to see how scenario I
> was describing is optimization-only. Consider these scenarios:
>
> Shopping w/o signing in.
> 1.I go to amazon.com and fill my shopping cart with stuff without signing
> in.
> 2.I navigate away to somewhere else and sho
I have been successfully developing a Wicket application with Eclipse, Maven,
and the Maven Jetty plugin with hot redeploy enabled. However, I don't want
Jetty to do a hot redeploy of the application when I make a change to my
HTML files. I assume that Wicket will pick up these changes automatic
I think I understand your explanations yet I struggle to see how scenario I
was describing is optimization-only. Consider these scenarios:
Shopping w/o signing in.
1.I go to amazon.com and fill my shopping cart with stuff without signing
in.
2.I navigate away to somewhere else and short time lat
We are looking to form partnerships with at least 1 US Wicket
training/consulting specialist company but this is unlikely to happen before
Q1 2008.
Regards - Cemal
http://jWeekend.co.uk jWeekend.co.uk
Stanczak Group wrote:
>
> Off you subject here, but is there any US training?
>
> jweekend
I offer a Wicket training course in the US.
On 10/4/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
>
> Off you subject here, but is there any US training?
>
> jweekend wrote:
> > The 2 day London http://jweekend.co.uk/dev/JW703/ Wicket 1.3 course
> this
> > weekend still has plenty of room! Since
This works:
getWebRequestCycle().getWebResponse().setContentType("text/csv");
getWebRequestCycle().getWebResponse().setHeader("Content-Disposition",
"attachment;filename=\"export_" +
formatFile.format(Calendar.getInstance().getTime()) + ".csv\"");
Off you subject here, but is there any US training?
jweekend wrote:
The 2 day London http://jweekend.co.uk/dev/JW703/ Wicket 1.3 course this
weekend still has plenty of room! Since it has been scheduled on demand and
without much notice, and to give people a chance who maybe wouldn't
otherwise
This maybe? Should I be using "getWebRequestCycle().getWebResponse()"
instead of "getResponse()."?
getWebRequestCycle().getWebResponse().setHeader()
Stanczak Group wrote:
How can I do this in Wicket? I'm writing a csv generated file to the
output, but I don't know how to tell the client what fi
The 2 day London http://jweekend.co.uk/dev/JW703/ Wicket 1.3 course this
weekend still has plenty of room! Since it has been scheduled on demand and
without much notice, and to give people a chance who maybe wouldn't
otherwise get the opportunity to be professionally trained in Wicket, we are
of
How can I do this in Wicket? I'm writing a csv generated file to the
output, but I don't know how to tell the client what file name to use.
This is what I was using before, is there another way?
getResponse().setHeader("Content-Disposition",
"attachment;filename=\"export_" +
formatFile.format
WebRequest.isAjax()
Eelco
On 10/4/07, Clay Lehman <[EMAIL PROTECTED]> wrote:
> Is there a way to tell if a request is coming via AJAX instead of a
> normal request? If there is a way to do this, I could disable my
> ComponentBorder on secondary AJAX requests, and only use it on the
> original re
Eelco Hillenius wrote:
>
> On 9/28/07, pierobo <[EMAIL PROTECTED]> wrote:
>>
>> I.e., in the parent HTML page he could put a block representing a browse
>> able list of childs.
>
> Yeah, I think Wicket is very suitable for what you want to do.
>
>> So, I need a heavy component oriented framewo
Is there a way to tell if a request is coming via AJAX instead of a
normal request? If there is a way to do this, I could disable my
ComponentBorder on secondary AJAX requests, and only use it on the
original request...
Thanks,
-Clay
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL
I don't know that 1.1 has a tar. My project uses maven, so it was a snap to
add the Databinder bits to our pom.
Here is the page that gives the databinder snapshot repo info:
http://databinder.net/site/show/faq#updates
If you don't use maven, I could always send a 1.1-SNAPSHOT directly to
you..
Probably not. I'll probably use it when I get a chance. I just
downloaded the 1.0 tar and saw it's using 1.2 Wicket. Shot me the link
and I'll see if I can give it a shot tonight.
ChuckDeal wrote:
Stanczak Group wrote:
I'm not for sure what to use. I tried to override the newRequestCycle()
If you are going to have to add extra containers anyway, you could try it the
way we do it on my project.
In the html, we add both a label and input element with wicket ids. to keep
it simple, the label's id is the same as the related component's id with
"label" appended to it.
Then, we have a
Stanczak Group wrote:
>
> I'm not for sure what to use. I tried to override the newRequestCycle()
> but I had trouble understanding it. I'm doing something like what
> DataBinder does, but with 1.3. DataBinder seems to be 1.2. Either way
> I'd rather use my own. Does anyone have an example of
I'm not sure if Spring is something that really requires much learning - More
than anything it is a good way of tying together a bunch of disparate
frameworks for use together.
Neil B. Cohen wrote:
Michael Laccetti wrote:
> If you are using Spring, you may be interested in a Servlet Filter
>
Ah, yes. Link-O-Matic. Use the docs, that's what they're there for. Sorry.
Stanczak Group wrote:
Really new, but do you mean use the new Link() and
best method is to add a Link to wrote:
I don't want the cancel button to submit the form, is this the best
method? I'm not sure I see how to do
Yep! Not so new after all :)
Martijn
On 10/4/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
> Really new, but do you mean use the new Link() and
> in code:
> add(new Link("cancel"){...});
>
> in html:
>
> Like that?
>
> Igor Vaynberg wrote:
> > best method is to add a Link to >
> > -igor
> >
>
Michael Laccetti wrote:
If you are using Spring, you may be interested in a Servlet Filter
that supports opening/closing sessions on a per-request basis:
http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.html
Mike
Than
Neil B. Cohen wrote:
> Anyone have a really simple MySQL example like that? Or an online
> tutorial that I could follow?
We have one of those:
http://databinder.net/site/show/baseball-players
I don't know if you want to use Databinder or not, but you aren't going
to find a lot of code or tutori
Really new, but do you mean use the new Link() and
best method is to add a Link to wrote:
I don't want the cancel button to submit the form, is this the best
method? I'm not sure I see how to do this. Is there examples?
@Override
protected void delegateSubmit(IFormSubmittingComponent
best method is to add a Link to wrote:
> I don't want the cancel button to submit the form, is this the best
> method? I'm not sure I see how to do this. Is there examples?
> @Override
> protected void delegateSubmit(IFormSubmittingComponent component) {
> }
>
> --
> Justin Stancza
I don't want the cancel button to submit the form, is this the best
method? I'm not sure I see how to do this. Is there examples?
@Override
protected void delegateSubmit(IFormSubmittingComponent component) {
}
--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary f
put a container around your component and update that via ajax instead
-igor
On 10/4/07, Clay Lehman <[EMAIL PROTECTED]> wrote:
> I implemented a simple IComponentBorder, and anything I put in the
> beforeRender gets added again every time I try to update the component
> with AJAX.
>
> My Icompo
this can all be done independently of wicket using a
servletcontextlistener for sessionfactory start/shutdown and a servlet
filter for closing the session at the end of requests. go for the
simplest things first :)
-igor
On 10/4/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
> Another piece I for
Hi,
Can we chain WebRequestCodingStrategies? I want to use the
CryptedUrlWebRequestCodingStrategy and an SSL coding strategy as seen on
http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html#HowtoswitchtoSSLmode-CreateNewResponseStrategy
.
Is this possible to use multiple WebRequestCoding
I implemented a simple IComponentBorder, and anything I put in the
beforeRender gets added again every time I try to update the component
with AJAX.
My IcomponentBorder has:
public void renderBefore(Component component)
{
Response resp = component.getResponse();
Another piece I forgot to add is the config and shutting down of the
factory. I use this in the WebApplication:
@Override
protected void init() {
try {
HibernateUtil.setSessionFactory(new
Configuration().configure().buildSessionFactory());
} catch (Throwable e) {
If you are using Spring, you may be interested in a Servlet Filter that
supports opening/closing sessions on a per-request basis:
http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.html
Mike
Neil B. Cohen wrote:
I suspect
On 10/4/07, Neil B. Cohen <[EMAIL PROTECTED]> wrote:
> Thanks for the sample code - I'll see what I can do with it - you'll
> probably hear from me again :)
thanks for the warning
-igor
>
> nbc
> > On 10/4/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
> >
> >> It's really very simple. I'm doing
Martijn Dashorst wrote:
According to me you can use Hibernate's thread local session if you
want (you still need the custom request cycle though!). This removes
the need for all the casting and getting.
Session.get().createCriteria(SysUser.class).add(.).uniqueResult();
Hibernate ses
According to me you can use Hibernate's thread local session if you
want (you still need the custom request cycle though!). This removes
the need for all the casting and getting.
Session.get().createCriteria(SysUser.class).add(.).uniqueResult();
Hibernate session, not Wicket's
Martij
It's really very simple. I'm doing the same thing here. You simple use
the HibernateUtil example that is in the Hibernate documentation. Then
you simple create a custom RequestCycle by overriding this method in
your application. With the request cycle you can open and close
Hibernate seesion. T
Thanks.
Igor Vaynberg wrote:
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/
-igor
On 10/4/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
I can't seem to find a download versions of the javadocs, anyone know?
Do I need to use maven?
--
Justin Stanczak
Stan
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/
-igor
On 10/4/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
> I can't seem to find a download versions of the javadocs, anyone know?
> Do I need to use maven?
>
> --
> Justin Stanczak
> Stanczak Group
> 812-735-3600
I suspect I'm biting off more than I can chew conveniently but maybe
someone can push me in the right direction...
I'm attempting to build a fairly simple web application with Wicket, and
I'd like to use Hibernate to manage the database access (although other
frameworks like Cayenne have been
Great, thanks.
Martijn Dashorst wrote:
pubic class ListPage {
...
@override void onClick() {
setResponsePage(new EditPage(getModelObject(), ListPage.this));
}
}
public class EditPage {
private Page previousPage;
public EditPage(Foo edit, Page back) {
I can't seem to find a download versions of the javadocs, anyone know?
Do I need to use maven?
--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
-
pubic class ListPage {
...
@override void onClick() {
setResponsePage(new EditPage(getModelObject(), ListPage.this));
}
}
public class EditPage {
private Page previousPage;
public EditPage(Foo edit, Page back) {
previousPage = back;
...
I have a classic list and edit page setup. You select an object that you
then pass to the edit page. My hang up is how to I return the user to
the list page, if the list page took a constructor parameter so it knows
what to list? In other words the list page has a constructor parameter,
so how
Ok, thanks. This is what I did.
public class RequestCycleImpl extends WebRequestCycle {
private Session hibernateSession;
public RequestCycleImpl(Application application, Request request,
Response response) {
super(application, (WebRequest) request, response);
}
@Override
Much more elegant than I ever thought. Thank you very much!
--
View this message in context:
http://www.nabble.com/Null-values-in-Lists-question-tf4569676.html#a13043323
Sent from the Wicket - User mailing list archive at Nabble.com.
---
Well I only have up to chapter 4 so far... too bad, maybe it would have
helped :-))
Sebastiaan
Martijn Dashorst wrote:
On 10/4/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote:
(which is a pleasant escape from my philosophy homework where I have to
try understand what stuff like "It follows t
On 10/4/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote:
> (which is a pleasant escape from my philosophy homework where I have to
> try understand what stuff like "It follows that trying to give tensed
> thoughts or sentences non-token-reflexive truth-conditions, tensed or
> tenseless, always lea
On 10/4/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
> How can I access the request cycle so I can open and close a Hibernate
> session on each request?
In your application class:
@Override
public RequestCycle newRequestCycle(Request request, Response response)
{
Cool, thanks Martijn, learned something useful today!
(which is a pleasant escape from my philosophy homework where I have to
try understand what stuff like "It follows that trying to give tensed
thoughts or sentences non-token-reflexive truth-conditions, tensed or
tenseless, always leads to c
> how can I force from a middle of the loop, which may run up to few
> minutes to update a component's value?
> I am manipulating a lot of files and I would like to let the user know
> how much of the processing is already done.
> I would like to start processing the files when user reaches certain
Yeah, trunk JavaDoc, 1.3b2 code. I'll seek to keep the two sync'd in future.
Thx.
Igor Vaynberg wrote:
what javadoc are you looking at? The one online is based on trunk
-igor
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Ok, Sorry, it seems it was a dependency issue... I forgot to add to JBoss
wicket-extension.jar
Sorry!!
Thanks for you help :blush:
giladgaron wrote:
>
> It seems that the DateTimeField is a panel:
>
> DateTimeField java:
>
> package org.apache.wicket.extensions.yui.calendar;
> ...
> ...
> publ
http://www.w3schools.com/css/tryit.asp?filename=trycss_table_empty-cells
On 10/4/07, Doug Leeper <[EMAIL PROTECTED]> wrote:
>
> I am sure there is a more elegant way than what I am doing so I thought I
> would throw out the following question.
>
> I have a List that displays a date in one of its c
Okay, I cannot find it in the 1.3.0-beta2 source JAR from Maven. I'll query
about the possibility of switching to b3 to fix this.
Gwyn Evans wrote:
Some form of issue - it's definitely in 1.3.0b3
(D:\Wicket\apache-wicket-1.3.0-beta3\src\jdk-1.4\wicket\src\main\java\org\apache\wicket\markup\ht
I am sure there is a more elegant way than what I am doing so I thought I
would throw out the following question.
I have a List that displays a date in one of its columns. If that date is
null, nothing is displayed...fine and dandy. However, when applying a style
to the table, aka border to tha
what javadoc are you looking at? The one online is based on trunk
-igor
On 10/4/07, Michael Laccetti <[EMAIL PROTECTED]> wrote:
> I am using 1.3.0-beta2 - I popped open FormComponent in Eclipse and it
> doesn't seem to exist. Do I have a versioning issue?
>
> Igor Vaynberg wrote:
> > setconvert
It seems that the DateTimeField is a panel:
DateTimeField java:
package org.apache.wicket.extensions.yui.calendar;
...
...
public class DateTimeField extends FormComponentPanel
{
...
}
DateTimeField html:
:
Michael Laccetti-2 wrote:
>
> For the life of me I cann
Some form of issue - it's definitely in 1.3.0b3
(D:\Wicket\apache-wicket-1.3.0-beta3\src\jdk-1.4\wicket\src\main\java\org\apache\wicket\markup\html\form\FormComponent.java)
On Thursday, October 4, 2007, 4:15:39 PM, Michael <[EMAIL PROTECTED]> wrote:
> I am using 1.3.0-beta2 - I popped open FormC
For the life of me I cannot see where it is getting "panel" from. Have you
included everything?
giladgaron wrote:
Hi,
I'm new to wicket, and I will appreciate if could help me!
I'm having problems using DateTimeField, i'm getting the following
exception:
"WicketMessage: Unknown tag name w
I am using 1.3.0-beta2 - I popped open FormComponent in Eclipse and it doesn't
seem to exist. Do I have a versioning issue?
Igor Vaynberg wrote:
setconvertedinput() is still there. it is public final void on the
formcomponent.
-igor
--
see icomponentborder
-igor
On 10/4/07, Clay Lehman <[EMAIL PROTECTED]> wrote:
>
> Hey Everyone,
>
>
>
> I want to create a subclass of a Form Component (Let's use TextField for
> this example) which takes a String in the constructor, and automatically
> adds the HTML for a Label before the field
I looked into this a bit more, and it looks like
WebRequestCycleProcessor.resolve(RequestCycle, RequestParameters) always
checks to see if an Ajax request is being made before a Page gets to be
instantiated and stored in the session. If the Page doesn't exist in the
PageMap, the request simply red
I see DataBinder is just casting them and using WebRequestCycle, is that
the right way?
Stanczak Group wrote:
If I create my own request cycle, then what class do I extend?
RequestCycle, WebRequestCycle or... ? RequestCycle requires you to
implement other methods? Is there a wrapper class?
S
setconvertedinput() is still there. it is public final void on the
formcomponent.
-igor
On 10/4/07, Michael Laccetti <[EMAIL PROTECTED]> wrote:
>
> I take it back. It is the validator itself that isn't functioning as
> expected. In my panel, I did not override convertInput(), as expected. The
If I create my own request cycle, then what class do I extend?
RequestCycle, WebRequestCycle or... ? RequestCycle requires you to
implement other methods? Is there a wrapper class?
Stanczak Group wrote:
I'm not for sure what to use. I tried to override the
newRequestCycle() but I had trouble u
Hey Everyone,
I want to create a subclass of a Form Component (Let's use TextField for
this example) which takes a String in the constructor, and automatically
adds the HTML for a Label before the field. I want to provide all the
default functionality of a TextField (like adding behaviors, and
I'm not for sure what to use. I tried to override the newRequestCycle()
but I had trouble understanding it. I'm doing something like what
DataBinder does, but with 1.3. DataBinder seems to be 1.2. Either way
I'd rather use my own. Does anyone have an example of providing my own
request cycle, o
Hi,
I'm new to wicket, and I will appreciate if could help me!
I'm having problems using DateTimeField, i'm getting the following
exception:
"WicketMessage: Unknown tag name with Wicket namespace: 'panel'. Might be
you haven't installed the appropriate resolver?"
I've tried to google it, but
Actually, Page.detach() is not callable from a JUnit test that uses
WicketTester in 1.3.0beta3. It throws an exception:
org.apache.wicket.WicketRuntimeException: No RequestCycle is currently set!
at org.apache.wicket.Component.getRequest(Component.java:1443)
at org.apache.wicket.Page.onDetach(Page
I take it back. It is the validator itself that isn't functioning as expected.
In my panel, I did not override convertInput(), as expected. The JavaDoc
suggests that I call setConvertedInput() from within convertInput(), except
that setConvertedInput() does not exist. Has this been replaced
I think it is setup with ThreadLocal so you can get it easily with
RequestCycle.get(). You can also provide your own version from
Application.newRequestCycle which might be more what you need to hook in
start/end events.
Stanczak Group wrote:
>
> How can I access the request cycle so I can ope
did you properly override convertintput() on the formcomponentpanel to
generate an object based on the 3 children? by default it returns null and
validators do not run on null values...
-igor
On 10/4/07, Michael Laccetti <[EMAIL PROTECTED]> wrote:
>
> I've created a FormComponentPanel that wraps
How can I access the request cycle so I can open and close a Hibernate
session on each request?
--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
I've created a FormComponentPanel that wraps three text fields, to mimic
a phone number. I created a custom validator, which I have added to the
panel. When I submit the form, the validator does not seem to be fired.
If I attach the validator to another form component, it fires without
a pro
swaroop belur wrote:
But mind u- that thread may not have references to stuff like
ur session,application objects- they might be null. So you will have to
first get
the reqd stuff (any dependecies- say something from ur service layer for
example)
and then start the thread.
-swaroop
Would
what's exactly wicket's role in this? you should take a look at java.io.File /
java.io.FilenameFilter and/or java.util.regex.*
regards, --- jan.
Edi wrote:
> any body have an Idea regarding this.??
>
>
>
> Edi wrote:
>> Hello Guys,
>>
>> I have different file patterns like
>>
>> *.xls (a
Hi Johan, all,
> i also have been asking around for a big room.
> And Servoy is willing to sponser a big room if needed (if
> there are really comming 30+ people)
That's excellent news! :)
Do you think the dates and location I suggested will work?
These are the dates I made a reservation for:
any body have an Idea regarding this.??
Edi wrote:
>
> Hello Guys,
>
> I have different file patterns like
>
> *.xls (all the xls files)
> n*.xls (xls file starts with n) - all the xls files starts with "n"
>
>
> How can we do this pattern matching in wicket?
> Please let me know.
>
Per,
a temporary fix for now would be to instead of adding the DateTextField to
the AjaxRequestTarget,
add text.getParent()
i'll fix this "misbehavior" with something similar what matej did with the
IndicatingAjaxButton
Gerolf
On 10/4/07, Per Newgro <[EMAIL PROTECTED]> wrote:
>
> Hi *,
>
> I
Hi *,
I present a date by 3 DropDownChoices (year, month, day). Additionally i want
to provide a datepicker. The sync from datepicker selection to dropdownchoises
is working as expected. On the other hand if i change the dropdownchoise the
datepicker value will be changed, but it is represented
P.S.: I'm using Wicket 1.2.6.
Fabio Fioretti - WindoM
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If i understand correctly , I think clock example does not work for you
because your first ajax request - to handle the files - has to first finish.
Until that finishes the self updating behavior which is a separate ajax
request
will not fire. So prob you will have to do ur file stuff in a se
On 10/3/07, Martin-2 <[EMAIL PROTECTED]> wrote:
[ CUT on useful suggestions: thanks a lot ]
> The thing is: it's always better to rely on wicket for state handling and
> variable updating. So if two components refer to the same thing, make sure
> your model object is the same for both (or a propert
On Thursday, October 4, 2007, 7:44:44 AM, Vit <[EMAIL PROTECTED]> wrote:
> Hallo,
> how can I force from a middle of the loop, which may run up to few
> minutes to update a component's value?
> I am manipulating a lot of files and I would like to let the user know
> how much of the processing is
88 matches
Mail list logo