I think it's already been taken care of.. IT's because the user clicks
on something that no longer exists..
Adriano dos Santos Fernandes wrote:
Nino Saturnino Martinez Vazquez Wael wrote:
Hi Guys
One of the major problems with the game are that if you click a
box(AjaxEventBehavior) while the
OH.Thinks for the reply.
Yes,I can get a string through parameter.
How to pass id and got that object from that id? I am sorry,I learned wicket
just a few days.Is there any other ways to pass an object form one page to
another page?
在2008-09-27,"张伟" <[EMAIL PROTECTED]> 写道:
>pass id, and t
pass id, and then get that object from that id
2008/9/27 Igor Vaynberg <[EMAIL PROTECTED]>
> pageparameters is used for passing parameters on the url, so it only
> supports strings or whatever you can convert to a string.
>
> -igor
>
> On Fri, Sep 26, 2008 at 9:35 PM, fish3934 <[EMAIL PROTECTED]>
pageparameters is used for passing parameters on the url, so it only
supports strings or whatever you can convert to a string.
-igor
On Fri, Sep 26, 2008 at 9:35 PM, fish3934 <[EMAIL PROTECTED]> wrote:
> Hi All,
>I wanted to pass an object from one page to another page,so
>I set an objec
Hi All,
I wanted to pass an object from one page to another page,so
I set an object into a parameter:
PageParameters para=new PageParameters();
para.put("result",resultList);//resultList is a List contains some pojo.
//jump to another page
setResponsePage(DeviceEnquiry.cla
good to know. i completely ignored this :)
francisco
On Fri, Sep 26, 2008 at 8:44 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> Class< ? extends Enum< ? >> enumClass;
> enumClass.getEnumConstants();
>
> -igor
>
> On Fri, Sep 26, 2008 at 4:32 PM, Cédric Thiébault
> <[EMAIL PROTECTED]> wrote:
>>
Nino Saturnino Martinez Vazquez Wael wrote:
Hi Guys
One of the major problems with the game are that if you click a
box(AjaxEventBehavior) while the heartbeat(AbstractAjaxTimerBehavior)
are in process you will get an error, since the box's component has
changed and no longer carries that beha
Yeah, check out:
https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/component/choice/EnumDropDownChoice.java
On Fri, Sep 26, 2008 at 7:44 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> Class< ? extends Enum< ? >> enumClass;
> enumClass.getEnum
Class< ? extends Enum< ? >> enumClass;
enumClass.getEnumConstants();
-igor
On Fri, Sep 26, 2008 at 4:32 PM, Cédric Thiébault
<[EMAIL PROTECTED]> wrote:
> Thanks for the input... I've updated my code :)
>
> James, I have the same question as Francisco: how do you get the
> values from the class of
Thanks for the input... I've updated my code :)
James, I have the same question as Francisco: how do you get the
values from the class of an enum?
Cedric
On Fri, Sep 26, 2008 at 6:57 PM, francisco treacy
<[EMAIL PROTECTED]> wrote:
> * i meant enum class
>
> On Fri, Sep 26, 2008 at 7:51 PM, fran
* i meant enum class
On Fri, Sep 26, 2008 at 7:51 PM, francisco treacy
<[EMAIL PROTECTED]> wrote:
>> Also, you could have a varargs feature so that users could specify
>> exactly what they want without having to instantiate an array.
>
> yes, of course there is place for improvements...
> public E
> Also, you could have a varargs feature so that users could specify
> exactly what they want without having to instantiate an array.
yes, of course there is place for improvements...
public EnumCheckGroup(String id, T... values)
>> Why not just pass the enum class into the constructor?
if i pas
Also, you could have a varargs feature so that users could specify
exactly what they want without having to instantiate an array.
On Fri, Sep 26, 2008 at 6:15 PM, James Carman
<[EMAIL PROTECTED]> wrote:
> Why not just pass the enum class into the constructor? But, also have
> one that allows you
Why not just pass the enum class into the constructor? But, also have
one that allows you to provide a subset of enum values (as you already
have).
On Fri, Sep 26, 2008 at 4:43 PM, francisco treacy
<[EMAIL PROTECTED]> wrote:
> i'm sorry i didn't see this post before-- i came up with a solution a
Hi Guys
One of the major problems with the game are that if you click a
box(AjaxEventBehavior) while the heartbeat(AbstractAjaxTimerBehavior)
are in process you will get an error, since the box's component has
changed and no longer carries that behavior. I've tried to solve this by
adding a t
Hi,
I'm working in an application that is using the Breadcrumb component and
everything works as expected.
Currently I'm trying to add a "previous/return" button in some of my modules
to give the user a friendlier environment, but I don't know how to send the
user to the previous panel and remov
i'm sorry i didn't see this post before-- i came up with a solution a
couple of weeks ago.
i called it EnumCheckGroup (that is, i went for CheckGroup rather than
CheckBox).
usage:
for a given enum:
public static enum Niveau {
etage, mezzanine, sous_sol;
}
On Tue, 23 Sep 2008, Emanuele Gesuato wrote:
> I'm writing a testcase in which i try to compare the value of a
> textfield in a form with the value of a pojo.
>
> This value is a BigDecimal.
>
> This is the code:
> FormTester ft =
> tester.newFormTester(GestisciListino.tags.pizzaForm.toString()
Thanks Igor, it was exactly what i needed :-)
To complete this post, here is the solution I found :
http://surunairdejava.blogspot.com/2008/09/wicket-checkbox-abstractcheckboxmodel.html
Sorry it's in french but the code is easy to understand...
Cedric
On Wed, Sep 24, 2008 at 2:46 PM, Igor Vayn
That worked a charm Nino, thanks.
I can see now that I was previously setting a raw SystemUser object as the
ListView model as opposed to the wrapped LDM object.
I'll still check out the DataView as well.
Thanks all for your replies.
Nino.Martinez wrote:
>
> You are not chaining...
>
> This
On Thu, 25 Sep 2008, Benny Weingarten wrote:
> I want to have a functionality that if a user types something in field2, the
> checkbox becomes disabled. currently I use an onChangeAjaxBehavior on the
> textfield, and that is AJAX, making a call to the server. I don't really
> want that sort of comm
hi,
i just noticed that a panel that remained untouched for weeks (and
that worked ok) is now failing - sometimes! the panel simply contains
a search form. depending on which checkbox i check, it behaves fine,
or sometimes it doesn't, if i play with the back button it will
eventually work. i'm com
You are not chaining...
This is how:
new PropertyModel(userModel,"contacts")
Neil McT wrote:
Sure.
Originally I had it set up like
(note that userModel is a LDM which wraps a SystemUser. SystemUser contains
a collection of Contact objects).
final WebMarkupContainer listContainer =
And checkout the AjaxFallbackDefaultDataTable while your at it.. It's
really nice too.
Neil McT wrote:
I wasn't getting the error from the main LDM but from the underlying
collection (and its reference back to 'owner').
I need to display all collections elements in this instance but maybe on
o
Sure.
Originally I had it set up like
(note that userModel is a LDM which wraps a SystemUser. SystemUser contains
a collection of Contact objects).
final WebMarkupContainer listContainer = new
WebMarkupContainer("listContainer");
ListView displayList = new ListView("contactsList",
user
Never mind. I used SubmitLink instead of Link and that fixed it.
Thanks a lot Igor and others for your time and replies.
- krishna
krisnv wrote:
>
> Ok. Should i need to call submitForm() on the event onClick() for the
> link?
>
> add(new Link("edit") {
>public void onClick() {
> in
Ok. Should i need to call submitForm() on the event onClick() for the link?
add(new Link("edit") {
public void onClick() {
int resultCode=0;
User usr = (User)getParent().getModelObject();
System.out.println("firstname=="+usr.getFirstName()); }
});
}
-krishna
igor.vaynber
How about sharing some code with us as to how you're setting up your models?
On Fri, Sep 26, 2008 at 12:48 PM, Neil McT <[EMAIL PROTECTED]> wrote:
>
> I wasn't getting the error from the main LDM but from the underlying
> collection (and its reference back to 'owner').
>
> I need to display all co
I wasn't getting the error from the main LDM but from the underlying
collection (and its reference back to 'owner').
I need to display all collections elements in this instance but maybe on
other pages, only a subset.
Thanks both for your replies. I'm probably going to have a look at DataView.
that is because your form never submits, otherwise you woudlve gotten
a stacktrace because you were using a readonlymodel previously
-igor
On Fri, Sep 26, 2008 at 9:43 AM, krisnv <[EMAIL PROTECTED]> wrote:
>
> I tried using the PropertyModel ,
>
> add(new textfield("name", new propertymodel(item.
I tried using the PropertyModel ,
add(new textfield("name", new propertymodel(item.getmodel(), "name"));
still not getting the new value.
- krishna
igor.vaynberg wrote:
>
> equals seems ok, although your hashcode is broken
>
>
> you do realize you are adding read only models to your
Yes, perhaps I wasn't clear enough. But, Martijn is correct. A
DataView (which uses a DataProvider) might be a better choice in your
situation (unless you have to load the entity to display other parts
of your page anyway). Are you always showing all members of the
nested collection?
On Fri, Se
When we ask for a JIRA issue, we want you to create a bug report in
our JIRA instance [1] and attach the quickstart (mvn clean before you
zip) to that issue. We don't mean that you try the JIRA support forums
[2], because though Atlassian has a track record of using and
supporting Apache projects,
Thx for the quick response.
I cahnged the url mount in my application to
mount(new IndexedHybridUrlCodingStrategy("/iframe/MyFrame", MyFrame.class))
...
My problem is that still when i try to create iframe like:
PageParameters params = new PageParameters();
params.add("url", url) or params.add(
The main LDM shouldn't get you serialization errors, because you're
not serializing the "entity" (just the key perhaps and a proxied
reference to your dao/repository).
On Fri, Sep 26, 2008 at 12:11 PM, Neil McT <[EMAIL PROTECTED]> wrote:
>
> Yeah, I originally had that - a LDM as the main model an
James suggested 'model chaining', where you nest the LDM inside
property models. In your case I'd suggest using a DataView instead, as
it is easier to work with when using LDM's and data coming from
databases.
If you still want to use ListView, you'll have to override
newListItemModel (iirc) and l
equals seems ok, although your hashcode is broken
you do realize you are adding read only models to your
textfields...those models never update model objects.
in fact you shouldve gotten a stack trace in your log indicating that
you cannot call setobject on a readonlymodel. if you do not see
Yes I think so. Below is my code :
public boolean equals(final Object obj)
{
if (obj == this)
{
return true;
}
else if (obj == null)
{
return false;
Yeah, I originally had that - a LDM as the main model and the ListView model
based on that. I've also tried a couple of variations of this but I still
get the Serialization errors. I think maybe I'm not following you exactly.
As far as I can see the ListView needs a collection as a model (the
col
does your model properly implement equals and hashcode? and i mean
your actual IModel you are using, not the object inside it...
-igor
On Fri, Sep 26, 2008 at 8:55 AM, krisnv <[EMAIL PROTECTED]> wrote:
>
> igor,
>
> I am already setting it . Do i have to provide any custom implementation?
>
> ref
igor,
I am already setting it . Do i have to provide any custom implementation?
refreshingView.setItemReuseStrategy(new ReuseIfModelsEqualStrategy());
-krishna
igor.vaynberg wrote:
>
> see IItemReuseStrategy
>
> -igor
>
> On Fri, Sep 26, 2008 at 8:41 AM, krisnv <[EMAIL PROTECTED]> wrote:
Hi Matez,
Can you please help me with any information, could not find out the reason
so far. Kind of stuck...
Appreciate your help.
thanks
Kuga
Kuga wrote:
>
> Hi,
> I have added a jira issue for this. Can you please let me know?
> thanks
> kuga
>
> Matej Knopp-2 wrote:
>>
>> Please create jir
see IItemReuseStrategy
-igor
On Fri, Sep 26, 2008 at 8:41 AM, krisnv <[EMAIL PROTECTED]> wrote:
>
> Thanks for you reply and pointing to the right component to use. Just
> curious, is there any way to fix this to make it work using this
> approach?
>
> krishna
>
>
> Matej Knopp-2 wrote:
>>
>> Tha
Thanks for you reply and pointing to the right component to use. Just
curious, is there any way to fix this to make it work using this
approach?
krishna
Matej Knopp-2 wrote:
>
> That's probably because refreshing view is creating new components on
> every request. Try using listView nad don't
That's probably because refreshing view is creating new components on
every request. Try using listView nad don't forget to call
setReuseItems(true) on it.
-Matej
On Fri, Sep 26, 2008 at 4:49 PM, krisnv <[EMAIL PROTECTED]> wrote:
>
> can any of you please respond.
>
>
> krisnv wrote:
>>
>> I have
Try surrounding your tag with tags.
On Fri, Sep 26, 2008 at 11:04 AM, Yazeed Isaacs
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I am trying to display a logo but nothing is displayed.
>
> Eg:
> new PropertyModel(this, "date"),
>
Hi
I am trying to display a logo but nothing is displayed.
Eg:
can any of you please respond.
krisnv wrote:
>
> I have RefreshingView similar to Contact Editor in Wicket Examples.
> I added a Panel and TextFields to this RefreshingView. I populate
> these TextFields from a list from Database and have assigned Model objects
> to each TextField component. T
Liz,
> The "href"-Element of my Ajax-Fallbacklinks show a pretty URLs now, but the
> fallback links don't work anymore, if JavaScript is disabled.
>
That is the intention, the fallback links only work when havascript is
enabled.
I think you should mount your pages like this:
mount(new HybridUr
Thank you all! This is exactly what I'm looking for!
-Ursprüngliche Nachricht-
Von: Daniel Frisk [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 26. September 2008 14:50
An: users@wicket.apache.org
Betreff: Re: Individual session timeout
Code example:
private static void setSessionTim
Code example:
private static void setSessionTimeout(int seconds) {
HttpSession session = getHttpSession();
if (session != null) {
session.setMaxInactiveInterval(seconds);
}
}
private static HttpSession getHttpSession() {
WebRequest request
I mean the method on the ordinary java session
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.html
You can get that from the wicket session... Or request cycle... I cant
remember..
Stefan Lindner wrote:
I forgut to tell you that I use Wicket 1.4 M3. I can't see
On Fri, Sep 26, 2008 at 7:28 AM, Takeshi Matsuba <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> I understand that there is one Application class instance per WicketFilter.
> So, I can use Application class like on memory database.
> (Wicket In Action too. )
>
> I read source. I notice that Application cl
Hi,
>From the documentation, setMaxInactiveInterval() should do the trick.
But i have not used it myself..
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int)
Bert
On Fri, Sep 26, 2008 at 13:10, Stefan Lindner <[EMAIL PROTECTED]> wro
Hi all.
I understand that there is one Application class instance per WicketFilter.
So, I can use Application class like on memory database.
(Wicket In Action too. )
I read source. I notice that Application class instance set ThreadLocal.
I understand that value of threadLocal is Singleton per re
I usually use a LDM for the main object (which has the collection
property) and have the model for the collection based upon that
(perhaps a PropertyModel?).
On Fri, Sep 26, 2008 at 6:34 AM, Neil McT <[EMAIL PROTECTED]> wrote:
>
> I'm using LoadableDetachableModels to minimise the serialized sessi
I forgut to tell you that I use Wicket 1.4 M3. I can't see any
settimeout-Method in Session.
Stefan
-Ursprüngliche Nachricht-
Von: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 26. September 2008 12:59
An: users@wicket.apache.org
Betreff: Re: Individu
Serialization/deserialization is handled for you automatically.
On Thu, Sep 25, 2008 at 9:33 PM, Ari M <[EMAIL PROTECTED]> wrote:
>
> I see nothing on the wiki page under Annotation-based Approach concerning
> serialization. The other approaches discuss serialization issues, but not
> this one.
session.settimeout() ?
Stefan Lindner wrote:
The global session timeout for all sessions can be set in the web.xml
file. Is it possible to set an individual session timeout for each
session? E.g. depending on the user's role?
Stefan
-
I used to "publish" in Eclipse, it just copies the war file and the app.
is reinitialized and the session is lost.
This may be a bit off-topic here, as it is a generic container problem,
but it directly affects my evaluation of Wicket.
Should I configure anything on my web.xml or in JBoss fil
I'm using LoadableDetachableModels to minimise the serialized session state
of my app. However, there is one place where I am still seeing
WicketNotSerializableException and that is where I use a hibernate
collection as a components model.
I have a SystemUser class which contains a List of Contac
The global session timeout for all sessions can be set in the web.xml
file. Is it possible to set an individual session timeout for each
session? E.g. depending on the user's role?
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTE
Thanks for the suggestion.
But I wanted it to be transparent for me in this case, so I did not have
to change my Headercontributor...
Problem are that I use markup inheritance and in my basepage I include a
base css.. Writing this it's actually pretty simple to see the solution,
it can just
We have 40-45 people registered so far for our next London Wicket Event, at
18:30 on October 1st, where we have more professional, instructive and often
quite interactive presentations lined up for our guests, invariably
comprising of an interesting collection of skills and friendly
personalities,
First of all: Thanks a lot for trying to help me, Erik!
The "href"-Element of my Ajax-Fallbacklinks show a pretty URLs now, but the
fallback links don't work anymore, if JavaScript is disabled.
Products
Team
The thing I'd like to do is to mount a different, meaningful URLs for each
Aj
That's not a bug in Wicket. If you place javascript in head you have
to either enclose the content in cdata block or escale < and > with
< and > Otherwise it's not valid xml.
-Matej
On Fri, Sep 26, 2008 at 2:40 AM, Dreamage <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is the content of wicket:head tags
Hi
What we do in our project is to add
public AbstractShopWebPage() {
super();
add(HeaderContributor.forCss(ResourceHelper.getBrandOverrideCss(site.getBrandName(;
}
in the abstract web page. So that it gets attached to all the pages.
And have a static helper method
pri
You can only get one point per box... And theres a small time slip from
when the heartbeat is activated until the reponse comes back in that
time it's possible to click the boxes and not get points..
I can see that this simple game really shows that you need to be
carefull if you have more tha
and shut down your app server in a normal way :). Kill -9 doesn't give
the server a chance to write things to disk (as does the little red
button in eclipse)
Martijn
On Fri, Sep 26, 2008 at 8:42 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> For wicket you shouldnt have to do anything except ma
Yes, of course, but I'm in the same position as the one who posed the
question: looking for the answer. I inferred from what was written that
de-/serialization was handled by @SpringBean, but since I haven't had time
to do a full code review, I don't know the details of how it all works, and
ther
70 matches
Mail list logo