How I can send parameters to server
sideFor example I want realize
ajax Drag
DropAs Minimum I need send 2
paramttersFrom_component_idTo_component_idI want do it without
forms
-
Take Surveys. Earn Cash. Influence
On 7/15/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
Hi,
AFAIK, there are three ways of implementing application transactions,
lazy loading, etc. stuff with Wicket Hibernate :
1 - The hard way, where you pass object ids, and load save them in
each request cycle using a new session
2 -
Ajax calls and history just don't play nice together. Every link on page
has a version information in it. If you make an ajax request, increase
page version and replace component on page, all links on page would
point to previous version, so every link (except on the replaced
component) you
yeah this is know but, what he is exactly saying is that he altereddata on a form through an submit then go to then next pagethen press the back button (now wicket doesnt come into play at all)and it sees the values of the form before the ajax submit.
This only means that the browser only caches
On 7/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i wouldnt recommend doint this in session because user entity will become
detached, i would instead do it in the requestcycle so the user is loaded
once per request
It is? I've used a User-object in session and I haven't noticed that
it gets
As RFC 2109 defined, cookie only supports ASCII code. Current implementation of CookieVAluePersister (wicket 1.2.0) does not encode cookie value as ASCII String. Thus value persistent of FormComponent does not work properly when user input Chinese, Japanese... etc.
Both URLEncoder or Base64 are
I want to disable the WICKET AJAX DEBUG link that appear when you are
using some AJAX components, but I'm not been lucky since now.
Can somebody tell me what I've to do?
Thanks!
-
Take Surveys. Earn Cash. Influence
See IDebugSettings void setAjaxDebugModeEnabled(boolean enable);On 7/31/06, Jordi Deu-Pons [EMAIL PROTECTED]
wrote:I want to disable the WICKET AJAX DEBUG link that appear when you are
using some AJAX components, but I'm not been lucky since now.Can somebody tell me what I've to
Making new entries in history shouldn't be that hard, there are couple
of articles about it. Basicaly changing window.location.hash should do
that AFAIK.
-Matej
Johan Compagner wrote:
yeah this is know but, what he is exactly saying is that he altered
data on a form through an submit then go
Hi,
I have a page with the head element loading a script file using
JavaScript reference. It works fine with Firefox, but when I try to load
the page in IE6, it displays an error message saying IE cannot load the
page. However, if I inline the script, it works.
The static version of the page
i wouldn't recommend doing this in session because user entity will
become detached, i would instead do it in the requestcycle so the
user is loaded once per request
Yeah are you sure about this Igor? because we are also attaching our
user object (hibernate object) to our session, lazy loading it
A session can be used by multiply threads/requestSo it will be detached by those when they are finished. So another request can be busy with it while another calls detach on it.johan
On 7/31/06, Maurice Marrink [EMAIL PROTECTED] wrote:
i wouldn't recommend doing this in session because user entity
true, but shouldn't the lock on the session prevent that in like 95%
of all the cases?
Maurice
On 7/31/06, Johan Compagner [EMAIL PROTECTED] wrote:
A session can be used by multiply threads/request
So it will be detached by those when they are finished.
So another request can be busy with it
Or run in deployment mode.
Martijn
On 7/31/06, Johan Compagner [EMAIL PROTECTED] wrote:
See IDebugSettings void setAjaxDebugModeEnabled(boolean enable);
On 7/31/06, Jordi Deu-Pons [EMAIL PROTECTED] wrote:
I want to disable the WICKET AJAX DEBUG link that appear when you are
using
but we are talking about caching here. if you store the instance of the user you loaded in session that is fine for the request that loaded it. but what happens after that request ends? the session is closed, the instance you store is detached. second request comes in and it is dealing with stale
I need to implement a special numbers formatting in my wicket application. Basically I have to round number to the first digit and use a blank space as thousand separator. For example instead to display number like '1,
000.33' it is required to display (and user will input) '1 000'.I can do that
yes please, create an RFE.
Juergen
On 7/31/06, Ingram Chen [EMAIL PROTECTED] wrote:
As RFC 2109 defined, cookie only supports ASCII code. Current
implementation of CookieVAluePersister
(wicket 1.2.0) does not encode cookie value as ASCII String. Thus value
persistent of FormComponent
does
store is detached. second request comes in and it is dealing with stale data
unless you reload the user object.
correct that is why you should use an imodel or come up with your own
attach detach strategy
also storing imodel in session wont work because session doesnt have an
imodel slot so
You need 3 classes for this. 1 class to convert from string to number.
1 class to convert from number to string. and 1 converterfactory with
both classes registered for your number type.
for instance
private static final class IridiumConverterFactory implements IConverterFactory
{
if you want to do that globally you have to register a stringconverter that will convert an integer so. if you want to do it only for a certain kind of textfield you can subclass getconverter() on it.here is a woogle:
http://woogle.billen.dk/search/q/converter, look at the wiki page
i wasnt suggesting setting the user on request cycle, i was suggesting keeping the id in session and letting requestcycle hold the cache for the request.i didnt realize websession has attach/detach, so this can be made simpler
MySession extends WebSession { private long userid; private transient
Glad to see it was just a misunderstanding. I was afraid you guys were
gonna tell me the world isn't flat ;)
Maurice
On 7/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i wasnt suggesting setting the user on request cycle, i was suggesting
keeping the id in session and letting requestcycle hold
On 7/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
if you want to do that globally you have to register a stringconverter that
will convert an integer so. if you want to do it only for a certain kind of
textfield you can subclass getconverter() on it.
There's an example of this in
Can't really think of it. Can you please send what your page's header
looks like (copy from show source in your browser). It should be
something like script type=text/javascript src=... /. Could
there be anything wrong with that?
Eelco
On 7/31/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
done ;-)http://sourceforge.net/tracker/index.php?func=detailaid=1531861group_id=119783atid=684978
On 7/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
yes please, create an RFE.JuergenOn 7/31/06, Ingram Chen [EMAIL PROTECTED] wrote: As RFC 2109 defined, cookie only supports ASCII code.Current
Hi Johan,
Can you please give me an example on how to do
redirect using IRequestTarget
Thanks
Dipu
- Original Message -
From:
Johan
Compagner
To: wicket-user@lists.sourceforge.net
Sent: Thursday, July 06, 2006 9:48
AM
Subject: Re: [Wicket-user] SSL
Is it possible to use a LoadableDetachableModel with a Form? The problem I'm running into is the following:1) Create the Form with: new Form(form, new CompoundPropertyModel(new MyDetachableModel(fooId, fooService)));
2) Present the page to the user for editing. The user edits the fields and
I tried 'window.location.hash' thingy. I add +1 to window.location.hash every time user clicks the ajax button. I can see that browser's url is changing. The form still have the previous value after back button pressed from the following page. I tried to place
ajaxrequesttarget.addJavascript()
Yeah, those models are typically perfect for doing database stuff. The
only thing is that if all validations pass, you should update the
database. But that's usually exactly what you want, right? If
validation fails, the model is indeed reloaded from the database, but
that's not something that is
something like this:cycle.setRequestTarget(new IRequestTarget() {public void detach(RequestCycle requestCycle){}public Object getLock(RequestCycle requestCycle)
{ return null;}public void respond(RequestCycle requestCycle){ // Redirect there
yes but with igors example it is possiblethat the session is used over multiply request we do have a lockBut that lock doesn't lock globally over everything.So it is possible that it gets detached from under your nose. But that is not a problem
But it is also possible that you get a user loaded by
on the _javascript_ side you can use the wicket _javascript_ lib to make the callon the java side you can use a ajaxcalldecorator to append the parameters to the callback url.if you have a more specific usecase we can help you more.
-IgorOn 7/31/06, Сергей Дрыганец [EMAIL PROTECTED] wrote:
This is fixed in the current version in svn (both for the 1.2 branch
and trunk/ 2.0). Header contributions now work with ajax.
Eelco
I noticed when I added a Behavior (i.e. AjaxSelfUpdatingTimerBehavior)
to my components in a Panel that was then added as a tab to the
AjaxTabbedPanel, that
But that's not the behavior I'm seeing. On successful validation, the model object is refreshed from the database after the form updates the model object, clobbering the user-entered data.
On 7/31/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Yeah, those models are typically perfect for doing
After successful validation, you should update the database with the
object that is in your detachable model. They should be in sync then.
If for some reason, you need to read in the value fresh in the same
request, just call detach on that model to ensure next time it is read
it will first
So something like this?public void onSubmit() { Foo f = (Foo) getModelObject(); ...}or like: public void onSubmit() { Foo f = (Foo) getModel().getObject(null); ...}
Because the first one refreshes the object from the database. On 7/31/06, Eelco Hillenius [EMAIL PROTECTED]
wrote:After successful
Both methods have the same effect. The attachement of models is hidden
in the models, not in the components. Detachement is done by
components after rendering. Preferably is getModelObject, but just
because it is shorter and it hides getting the model.
What happens in that request is that first
Why aren't Wicket 1.2.0 1.2.1 in the Ibiblio Maven repository? Will
you be putting it there?
Thanks,
Jon
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance
Look in the Maven 2 repository:
http://www.ibiblio.org/maven2/wicket/wicket/
Jon Steelman wrote:
Why aren't Wicket 1.2.0 1.2.1 in the Ibiblio Maven repository? Will
you be putting it there?
Thanks,
Jon
-
Take
Hi everybody,
I would like to know if there is a way to do localisation like
wicket:message but inside tags.
IE:
input type=submit value=my localized message/
Thanks,
--
Jean-Philippe Toupin
[EMAIL PROTECTED]
NetUltim / Ultimation s.e.n.c.
www.netultim.com
Ah...I was looking in the Maven (1.x) repository: http://www.ibiblio.org/maven/wicket/Thanks,JonOn 31 Jul 2006 17:39:05 -0700,
Sean Sullivan [EMAIL PROTECTED] wrote:
Look in the Maven 2 repository:http://www.ibiblio.org/maven2/wicket/wicket/Jon Steelman wrote: Why aren't Wicket 1.2.0 1.2.1
in
not from the markup no. we couldnt find any good syntax to specify the key and that the value should be internationalized. you can use an attribute modifier to do this though.in your specific example - if you attach a button to that input tag the button's model is used to feed the value attribute,
Hi..just checked out wicket 1.2.1 branch... looks like wicket.markup.IMarkup.java is missing ?josh
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
Could someone help me with the following error? No sure why I've the logging
error. The 4.0.4.GA Jboss server is running fine with other applications
(i.e. Seam examples). Please help. Thanks.
23:24:19,203 INFO [TomcatDeployer] deploy, ctxPath=/wicket-quickstart,
44 matches
Mail list logo