Re: Good reference for clustering and page/session store options?

2008-03-13 Thread Igor Vaynberg
as of 1.3.1 the clustering piggy backs on whatever clustering you use to cluster httpsession, so i guess there isnt much to tell... -igor On Thu, Mar 13, 2008 at 11:29 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Can someone tell me of a good reference for this? > > The wiki and ... even goo

Good reference for clustering and page/session store options?

2008-03-13 Thread Ned Collyer
Can someone tell me of a good reference for this? The wiki and ... even google search results seem a bit light on. Does someone have a handy link? -- View this message in context: http://www.nabble.com/Good-reference-for-clustering-and-page-session-store-options--tp16045170p16045170.html Sent

Re: Junit required for WicketTester?

2008-03-13 Thread Timo Rantalaiho
On Fri, 07 Mar 2008, reikje wrote: > Do you have to have junit.jar in the classpath if you want to use > WicketTester? We are using TestNG here and in a regular TestNG test case Supposedly BaseWicketTester is testing framework neutral, and WicketTester the JUnit version of it. Theoretically you mi

ListView: if my entry is one component, can I not have it nested inside the entry?

2008-03-13 Thread Gin Yeah
My list entry is only one component, but the only way I can get the ListView to work is have the markup with one level nesting like this: EE Is it possible to just have markup without the additional level of nesting? Like this: EE and somehow in java, m

Wicket Testing

2008-03-13 Thread Ricky
I need to test drop down values in a list using WicketTester ... like is there wicketTester.assertXXX or something that i could use ? I tried getTagByWicketId("some_thing_").getValue() but it only gives me the HTML for it ... my drop down is something like add(dChoice = new DropDownChoice("someMo

display images in the TreeTable cell

2008-03-13 Thread jianfei
i need to display different images for each cell in my tree table, i'm using a ModelBean that maintains the different properties for different cell just like the example, so how to i make it so the cell can display an image instead of just text? i tried to implement my own column that simply retu

Re: How to pre-select a DropDownChoice

2008-03-13 Thread Nick Heudecker
Set the model of the DDC to the value you want to have selected. On Thu, Mar 13, 2008 at 7:53 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I feel silly asking this, but I can't figure it out. I need to set my > DropDownChoice component to the id I'm passing into my page via a > pageparam. How

How to pre-select a DropDownChoice

2008-03-13 Thread Michael Mehrle
I feel silly asking this, but I can't figure it out. I need to set my DropDownChoice component to the id I'm passing into my page via a pageparam. How do I do that? I don't see anything resembling setSelected(). Michael - To uns

Re: LinkTree Node Refresh

2008-03-13 Thread Matej Knopp
Make sure your tree model fires the appropriate events when your tree is modified. The Tree implementation should properly update the changed portions of tree (assuming you call the update() method). -Matej On Fri, Mar 14, 2008 at 1:27 AM, jeredm <[EMAIL PROTECTED]> wrote: > > I have a LinkTree

LinkTree Node Refresh

2008-03-13 Thread jeredm
I have a LinkTree where am adding new nodes via AJAX where the node is not visually refreshing until I call myLinkTree.invalidateAll();. The problem is that the tree refresh takes too long when I have a bunch of nodes displayed. AbstractTree.invalidateAll() appears to "redraw" the whole tree, bu

Re: JNLP File Link (within same webapp)

2008-03-13 Thread Igor Vaynberg
see ContextImage and how it builds a context-relative path... -igor On Thu, Mar 13, 2008 at 2:20 PM, James Carman <[EMAIL PROTECTED]> wrote: > This is probably a dumb question, but what kind of link should I use > to link to a JNLP file which resides within the same webapp? We have > the Jnlp

FeedbackPanel#newMessageDisplayComponent throws NullPointerException if empty message is inserted

2008-03-13 Thread Edvin Syse
Hi, I sometimes do: try { // work } catch (Exception e) { error(e.getMessage()); } and came across an Exception that didn't have a message, and was greeted with a NullPointerException from the FeedbackPanel. Ofcourse this was my mistake but maybe the code could be changed like

JNLP File Link (within same webapp)

2008-03-13 Thread James Carman
This is probably a dumb question, but what kind of link should I use to link to a JNLP file which resides within the same webapp? We have the JnlpDownloadServlet running which accepts any *.jnlp file requests and we're using WicketFilter (so it shouldn't interfere). I don't think it's an External

Problem serving images from resource folder named 'resources'

2008-03-13 Thread Enrique Rodriguez
Hi, wicket-users, I just upgraded several Wicket sites from 1.2.4 to 1.3. I now have a problem where images in a folder called 'resources' won't appear. In other words, I have a WAR source directory of 'src/main/webapp' which has images in a folder 'resources'. My HTML then has images reference

RE: getConverter() in TextArea not being called

2008-03-13 Thread Michael Mehrle
This was very helpful - thank you again, Igor! -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 12:55 PM To: users@wicket.apache.org Subject: Re: getConverter() in TextArea not being called textarea.settype(mytype.class); or new textarea("id

Re: Converter gets called before Validator?

2008-03-13 Thread Igor Vaynberg
yes. validators work on types not strings, if they didnt then every converter would have to attempt to type convert the string and deal with conversion errors. so first we typeconvert, then run validators on the result -igor On Thu, Mar 13, 2008 at 12:23 PM, Michael Mehrle <[EMAIL PROTECTED]> wr

Re: getConverter() in TextArea not being called

2008-03-13 Thread Igor Vaynberg
textarea.settype(mytype.class); or new textarea("id",model,mytype.class); yes, alternatvely you can override convertvalue() -igor On Thu, Mar 13, 2008 at 12:22 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Thanks for help (again), Igor :-) However, I'm not sure I understand - > could you ple

Re: Different content for user

2008-03-13 Thread Mathias P.W Nilsson
Thanks! I'm really confused on what to do here. What is your approach to this? -- View this message in context: http://www.nabble.com/Different-content-for-user-tp16027844p16036638.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Converter gets called before Validator?

2008-03-13 Thread Michael Mehrle
I read the update docs and at this time assume that my component's Validator gets called AFTER the Converter. Is that correct for 1.3? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: getConverter() in TextArea not being called

2008-03-13 Thread Michael Mehrle
Thanks for help (again), Igor :-) However, I'm not sure I understand - could you please give me a code fragment? BTW, I just dug around in FormComponent - isn't an alternative approach to override convertValue()? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] S

Re: getConverter() in TextArea not being called

2008-03-13 Thread Igor Vaynberg
you have to set the type either via constructor arg or a call to settype -igor On Thu, Mar 13, 2008 at 12:08 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I've got a custom TextArea which overrides getConverter(), however for > some reason that method never gets called. getConverter() returns

getConverter() in TextArea not being called

2008-03-13 Thread Michael Mehrle
I've got a custom TextArea which overrides getConverter(), however for some reason that method never gets called. getConverter() returns an implementation of IConverter - it all looks pretty basic. Is there anything special I have to do for getConverter() to be called? By the way I added the @Over

Wicket Portlet Error in Liferay

2008-03-13 Thread gaugat
I have a simple portlet created using wicket. It contains a PageableListView and PagingNavigator components. The portlet initially renders just fine. When I click on one of the paging links, I get ClassCastException. Part of the stacktrace looks like this... java.lang.ClassCastException: com.life

RE: Wicketstuff/dojo Examples

2008-03-13 Thread Stefan Lindner
Thank you Maurice! -Ursprüngliche Nachricht- Von: Maurice Marrink [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. März 2008 17:39 An: users@wicket.apache.org Betreff: Re: Wicketstuff/dojo Examples Try https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-d

Re: Different content for user

2008-03-13 Thread Igor Vaynberg
yep, you can write something like tapestry's if, it would look very much like the onbeforerender stuff i wrote below... -igor On Thu, Mar 13, 2008 at 11:38 AM, James Carman <[EMAIL PROTECTED]> wrote: > Tapestry has an actual If component. Would that work in Wicket? > > > > On 3/13/08, Igor Vay

Re: Different content for user

2008-03-13 Thread James Carman
Tapestry has an actual If component. Would that work in Wicket? On 3/13/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > if (condition) add component is static - if you put it into > constructor it is only evaluated once, so if login status changes in > the middle of the lifecyle of the panel it

Re: Different content for user

2008-03-13 Thread Igor Vaynberg
if (condition) add component is static - if you put it into constructor it is only evaluated once, so if login status changes in the middle of the lifecyle of the panel it will not reflect the change. personally something like add(new loggedinpanel(..) { isvisible() { return isuserloggedin(); } }

Re: Back link

2008-03-13 Thread Mathias P.W Nilsson
Thanks I will look into this! -- View this message in context: http://www.nabble.com/Back-link-tp16026896p16034782.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTE

RE: Different content for user

2008-03-13 Thread Mathias P.W Nilsson
Ehh looks complicated. What about the old if( condition ) add Component ? -- View this message in context: http://www.nabble.com/Different-content-for-user-tp16027844p16034721.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: Hide "Wicket AJAX Debug" window

2008-03-13 Thread Martijn Dashorst
You really should deploy using DEPLOYMENT mode, not randomly modifying settings in your init() method. Martijn On 3/13/08, hjuturu <[EMAIL PROTECTED]> wrote: > > Thanks Ryan and Gerolf. > I put the settings in the init() method and it works fine. > > > > hjuturu wrote: > > > > Hi All > > i

Why does SqlTimestampConverter only use the time portion of the timestamp?

2008-03-13 Thread Markus Strickler
Hi- is there any reason why SqlTimestampConverter.convertToString() only returns a time? Or is this a bug? Thanks, -kusako This message was sent using IMP, the Internet Messaging Program. -

Re: Is it possible to escape HTML in a feedback message?

2008-03-13 Thread Sri Sankaran
I believe you can do this using decorating your FeedbackPanel with a behavior (see IBehavior, AbstractBehavior). Sri mraible wrote: > > > Yes it does - thanks! > > FeedbackPanel feedback = (FeedbackPanel) backPage.get("feedback"); > feedback.setVisible(true); > feedback.setEscapeModelStrings(

AjaxEditableMultiLineLabel in does not work in safari

2008-03-13 Thread hjuturu
Hi All, i am using a AjaxEditableLabel and AjaxEditableMultiLineLabel wicket components inside a tag. They both work fine on Firefox and IE7. But when i try it on safari, the AjaxEditableMultiLineLabel component doesnt expand when clicked on. The AjaxEditableLabel component works fine though. I

RE: [Howto] WizardStep communication ?

2008-03-13 Thread Jeremy Thomerson
Show us the code from your ConfirmStep. My guess is that you're not familiar with the need for models yet. For instance, my guess would be that you're doing this: public ConfirmStep(MyObj obj) { add(new Label("time", obj.getTime())); add(new Label("location", obj.getLocation())); } If yo

Re: Panel not updated on modelchange

2008-03-13 Thread deletethisprofile
Thanks, now it works. Ole-Harald igor.vaynberg wrote: > > change that to new propertymodel(getmodel(), "name") > > -igor > > > On Thu, Mar 13, 2008 at 1:26 AM, deletethisprofile > <[EMAIL PROTECTED]> wrote: >> >> Running Panel.detach from onselectionchanged in the radiogroup didn't >> he

Re: Hide "Wicket AJAX Debug" window

2008-03-13 Thread hjuturu
Thanks Ryan and Gerolf. I put the settings in the init() method and it works fine. hjuturu wrote: > > Hi All > i have a label on my webpage on which i do a in line edit using > AjaxEditableLabel. > I have included wicket-event.js and wicket-ajax.js javascripts in my page. > When i start editing

Re: Wicket, Hibernate and Models

2008-03-13 Thread Peter Ertl
whew - glad to hear :-) [having probably hundreds of anonymous models in his projects] Am 13.03.2008 um 17:46 schrieb Igor Vaynberg: actually not in 1.3. our serialization is smart enough to take this into account if i remember correctly. -igor On Thu, Mar 13, 2008 at 8:47 AM, Leszek Gawron

Re: Wicket, Hibernate and Models

2008-03-13 Thread Igor Vaynberg
actually not in 1.3. our serialization is smart enough to take this into account if i remember correctly. -igor On Thu, Mar 13, 2008 at 8:47 AM, Leszek Gawron <[EMAIL PROTECTED]> wrote: > > Maurice Marrink wrote: > > I believe refreshingview has better support for reusing items but in > > our

Re: Wicket, Hibernate and Models

2008-03-13 Thread Peter Ertl
> please mind that you shouldn't create anonymous model classes as they keep the reference to the page/panel and you will fall into other memory issues. could you elaborate on that? Am 13.03.2008 um 16:47 schrieb Leszek Gawron: Maurice Marrink wrote: I believe refreshingview has better s

Re: Wicketstuff/dojo Examples

2008-03-13 Thread Maurice Marrink
Try https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-examples Maurice On Thu, Mar 13, 2008 at 5:16 PM, Stefan Lindner <[EMAIL PROTECTED]> wrote: > Where can I find the source for the wicketstuff/dojo examples? I do not > mean the code snipplets like the ones

RE: Different content for user

2008-03-13 Thread Warren
Take a look at Wicket-Security at Wicket Stuff site. http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security I am using it to do the same types of things you are talking about, and it works great. > -Original Message- > From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] > Se

Wicketstuff/dojo Examples

2008-03-13 Thread Stefan Lindner
Where can I find the source for the wicketstuff/dojo examples? I do not mean the code snipplets like the ones at http://wicketstuff.org/confluence/display/STUFFWIKI/Simple+Dojo+D%27n%27 D+tutorial? The repositories that are mentiones all around the page contain only source for the wicket-doje-inte

RE: downloading Wicket examples

2008-03-13 Thread Zappaterrini, Larry
They come bundled with the Wicket download under src\jdk-1.5\wicket-examples -Original Message- From: Andrew Broderick [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 10:45 AM To: 'users@wicket.apache.org' Subject: downloading Wicket examples Hi, I found many useful Wicket exam

Re: Wicket, Hibernate and Models

2008-03-13 Thread Leszek Gawron
Maurice Marrink wrote: I believe refreshingview has better support for reusing items but in our apps we hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc <[EMAIL PROTECTED]> wrote: What should I use when I am accessing hi

Re: Wicket, Hibernate and Models

2008-03-13 Thread Igor Vaynberg
heh. make sure all your listviews override getlistitemmodel() otherwise you can run into all kinds of problems if you use listview to select items not just display them... -igor On Thu, Mar 13, 2008 at 8:38 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > I believe refreshingview has better supp

Re: Wicket, Hibernate and Models

2008-03-13 Thread Maurice Marrink
I believe refreshingview has better support for reusing items but in our apps we hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc <[EMAIL PROTECTED]> wrote: > > What should I use when I am accessing hibernate? > Should I u

Re: Wicket, Hibernate and Models

2008-03-13 Thread carloc
What should I use when I am accessing hibernate? Should I use a ListView or should I use a refreshing view?\ In the api it says to use refreshingview instead of using listview when using database collections what is better to use? carloc wrote: > > Hi everyone, > > I have been reading wicket i

Re: Panel not updated on modelchange

2008-03-13 Thread Igor Vaynberg
change that to new propertymodel(getmodel(), "name") -igor On Thu, Mar 13, 2008 at 1:26 AM, deletethisprofile <[EMAIL PROTECTED]> wrote: > > Running Panel.detach from onselectionchanged in the radiogroup didn't help. > > It seems like the panels is updated, but labels in the panel is not. > T

Re: downloading Wicket examples

2008-03-13 Thread Maurice Marrink
Not sure if the wicket-examples war is generated using https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk but you can find the source for a number of examples there too, or else you might have to look in another branch. Maurice On Thu, Mar 13, 2008 at 3:59 PM, Andrew Broderick <[

Different content for user

2008-03-13 Thread Mathias P.W Nilsson
How can I show different content for logged in users. I have a DataSheet page that allows users to add to cart, edit and so on. Some users should not be able to edit the content or even add to cart. How can I achive this? -- View this message in context: http://www.nabble.com/Different-content

Re: Back link

2008-03-13 Thread Martijn Dashorst
setResponsePage(new DetailsPage(SearchPage.this)); Or if you want to keep bookmarkability, then you need to do some pagemap wizardry, retrieving the previous page from the page history and checking if that is a searchpage instance, if so put it in a link. i think a couple of weeks ago this was al

RE: downloading Wicket examples

2008-03-13 Thread Andrew Broderick
Not all of the examples on wicketstuff.org are in the distribution. Thanks anyway. -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 9:48 AM To: users@wicket.apache.org Subject: Re: downloading Wicket examples http://www.apache.org/dyn/clo

Re: Wicket, Hibernate and Models

2008-03-13 Thread Mathias P.W Nilsson
Yes I think you are right. By using the LoadableDetachableModel you prevent the List to be put in the session. -- View this message in context: http://www.nabble.com/Wicket%2C-Hibernate-and-Models-tp16025532p16026919.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Back link

2008-03-13 Thread Mathias P.W Nilsson
Hi! I was wondering on how to deal with a back link. Not back button of browser but a back link ( not history.back() in javascript ) A user has performed a search for items. He/she found one on page 3. In my wicket link onclick event I do the following. Item i = ( Item ) item.getModelObject();

Re: downloading Wicket examples

2008-03-13 Thread Martijn Dashorst
http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 Download the distribution, read the readme, look in lib/ for wicket-examples.war Martijn On 3/13/08, Andrew Broderick <[EMAIL PROTECTED]> wrote: > Hi, > > I found many useful Wicket examples at: > > http://wicketstuff.org/wicket13/ > > You can

downloading Wicket examples

2008-03-13 Thread Andrew Broderick
Hi, I found many useful Wicket examples at: http://wicketstuff.org/wicket13/ You can browse the source code, but not all classes are there (e.g WicketExampleApplication). Where can I download jar or zip files of the sources for these examples? Thanks _

Is there any way to be notified somehow just after the CompoundPropertyModel is resolved by the component hierarchy?

2008-03-13 Thread Vitaly Tsaplin
Hi everyone, Is there any way to be notified somehow just after the CompoundPropertyModel is resolved by the component hierarchy? Vitaly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Wicket, Hibernate and Models

2008-03-13 Thread Maurice Marrink
I think the memleak will not occur that easily because i believe hibernate removes the session from each proxy / persistent bag after it is closed. But you really should use the LDM (or another sort of lazy loading model) because it will prevent a lot of lazyinitexceptions and other hibernate excep

[Howto] WizardStep communication ?

2008-03-13 Thread smallufo
This is my Wizard and steps : MyObj myObj = new MyObj(); // build MyObj with default Time / Location WizardModel model = new WizardModel(); model.add(new TimeStep(myObj)); model.add(new LocationStep(myObj)); model.add(new ConfirmStep(myObj)); init(model); MyObj is just a class containing time / l

Wicket, Hibernate and Models

2008-03-13 Thread carloc
Hi everyone, I have been reading wicket in action recently and I have seen pitfalls of hibernate section. I was wondering about the stuff about hibernate and memory leaks due to hibernate proxy objects maintaining a reference to the session with them Am I doing this wrong then? @SpringBean

Re: StringResourceModel labels within values

2008-03-13 Thread Sebastiaan van Erk
Sebastiaan van Erk wrote: How's this: public class RecursiveStringResourceModel extends AbstractReadOnlyModel { private final String resourceKey; private final Component component; public RecursiveStringResourceModel(final String resourceKey, final Component component) {

Re: Wicket Kitchen Sink Application?

2008-03-13 Thread Martijn Dashorst
wicket-examples, wicket-phonebook, jtrac, artifactory, jalbum(?) Martijn On 3/13/08, Hoover, William <[EMAIL PROTECTED]> wrote: > Anyone know of a good kitchen sink application for Wicket (preferably one > application)? We need something robust enough to test most of the Wicket > features in ou

Wicket Kitchen Sink Application?

2008-03-13 Thread Hoover, William
Anyone know of a good kitchen sink application for Wicket (preferably one application)? We need something robust enough to test most of the Wicket features in our current environment. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: IntelliJ WicketForge issue: NPE when trying to use "New Wicket Page" to create both Java and markup

2008-03-13 Thread Kevin Murphy
Kurt R. Hoehn wrote: That can happen if the html directory is different then the source directory and the html directory has not been created yet. I'm a Wicket and IDEA newbie working with the Wicket QuickStart structure. I don't even know how to make the HTML and component directories di

Re: StringResourceModel labels within values

2008-03-13 Thread Sebastiaan van Erk
How's this: public class RecursiveStringResourceModel extends AbstractReadOnlyModel { private final String resourceKey; private final Component component; public RecursiveStringResourceModel(final String resourceKey, final Component component) {

Re: Ajax CheckGroup problem exception: java.lang.IllegalStateException: No Page found for component

2008-03-13 Thread Johan Compagner
you can't hold reference tocheckboxes.add(checkbox); like that Because onPopulate() can be called again when you refresh the page and then you get a new set You can use a reusestrategy for that but still If you want to set states then you should set states on your model object that the checkbo

Page redirect behavior

2008-03-13 Thread jnorris
Hi All, I have different behavior when using a RedirectPage which I'm trying to understand. I have a web page which has a Tree. In one case when a tree node is clicked, in the onNodeClicked() method this.setResponsePage( new RedirectPage( http.)) is called and the URL opens in the same brow

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Frank van Lankvelt wrote: ok, I'll go ahead with storing the object in the session directly (as meta-data) and use models in the pages to access this object. May I ask what your use case is? it's very simple; when carrying out an action on page A, I want to display a modal window ("are you sur

Re: PageParameter question

2008-03-13 Thread Thijs
Stupid, I should have known that :'( Thanks Martijn Martijn Dashorst schreef: You keep adding your new parameters to the parameters from the page. Not a new page parameters object. You should do something like: PageParameters p = new PageParameters(getPage().getPageParameters()); p.add(key, v

Re: object sharing between pages

2008-03-13 Thread Frank van Lankvelt
> > ok, I'll go ahead with storing the object in the session directly (as > > meta-data) and use models in the pages to access this object. > May I ask what your use case is? > it's very simple; when carrying out an action on page A, I want to display a modal window ("are you sure?" with ok/cancel

Re: PageParameter question

2008-03-13 Thread Martijn Dashorst
You keep adding your new parameters to the parameters from the page. Not a new page parameters object. You should do something like: PageParameters p = new PageParameters(getPage().getPageParameters()); p.add(key, value); Martijn On 3/13/08, Thijs <[EMAIL PROTECTED]> wrote: > Sorry I'm not sure

Re: PageParameter question

2008-03-13 Thread Thijs
Sorry I'm not sure I follow. What I'm trying is to add a new PageParameter to the set that the current page is created with. So I get the Page, get it's pageParameters and add a new one to the existing set and feed that to the bookmarkablepagelink. If I would do: protected void populateItem(

Re: object sharing between pages

2008-03-13 Thread Johan Compagner
yes Pages are not serialized in 1 go They are seperated from each other and saved as there own entity thats why you have that shared instance problem On Thu, Mar 13, 2008 at 12:40 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > Sebastiaan van Erk wrote: > > Maurice Marrink wrote: > >> Assumi

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Frank van Lankvelt wrote: Assuming B has a reference to Page A, wont A be Serialized with B, when you go to C, and both still share the same serialized object? When B is serialized, so is A, and serialization makes sure the instances to your object are kept shared how can this be? Aren't

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Sebastiaan van Erk wrote: Maurice Marrink wrote: Assuming B has a reference to Page A, wont A be Serialized with B, when you go to C, and both still share the same serialized object? When B is serialized, so is A, and serialization makes sure the instances to your object are kept shared

Re: Customising Radio Buttons with JS and CSS

2008-03-13 Thread richardwilko
Instead of using RadioChoice use a RadioGroup, i think there are examples here: http://wicketstuff.org/wicket13/forminput/ This allows you to customise the ui of your radio's much more than a RadioGroup does and should aid you in your jazziness Richard Ballist1c wrote: > > Hey guys, > > I go

Re: object sharing between pages

2008-03-13 Thread Frank van Lankvelt
> > Assuming B has a reference to Page A, wont A be Serialized with B, > > when you go to C, and both still share the same serialized object? > When B is serialized, so is A, and serialization makes sure the > instances to your object are kept shared > how can this be? Aren't different pages

RE: StringResourceModel labels within values

2008-03-13 Thread i ii
how will this work with example i gave? i'm not sure how to get some.label and some.text back into some.key? would i use something like StringResourceModel srm = new StringResourceModel("some.key", this, null); PropertyVariableInterpolator.interpolate("some.label", srm); not sure that works :(

Re: PageParameter question

2008-03-13 Thread Martijn Dashorst
So why don't you expect the loop to add them to the existing parameters? Martijn On 3/13/08, Thijs <[EMAIL PROTECTED]> wrote: > > because I want to use the already existing parameters and add them to > the link. > > Thijs > > Martijn Dashorst schreef: > > > Why don't you create a new PagePara

Re: IntelliJ WicketForge issue: NPE when trying to use "New Wicket Page" to create both Java and markup

2008-03-13 Thread Kurt R. Hoehn
That can happen if the html directory is different then the source directory and the html directory has not been created yet. -kurt On Tue, 2008-03-11 at 08:25 -0500, Nick Heudecker wrote: > I'll dig into it today. Thanks for the report. > > On Tue, Mar 11, 2008 at 6:40 AM, Kevin Murphy <[EMAI

Re: PageParameter question

2008-03-13 Thread Thijs
because I want to use the already existing parameters and add them to the link. Thijs Martijn Dashorst schreef: Why don't you create a new PageParameters object in each populateItem? Martijn On 3/13/08, Thijs <[EMAIL PROTECTED]> wrote: I'm having troubles with pageparameters. when I

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Maurice Marrink wrote: Assuming B has a reference to Page A, wont A be Serialized with B, when you go to C, and both still share the same serialized object? When B is serialized, so is A, and serialization makes sure the instances to your object are kept shared But when A is serialized a

Re: StringResourceModel labels within values

2008-03-13 Thread Sebastiaan van Erk
At one point I wanted to do interpolation in constant strings, so I just used the property interpolator directly: PropertyVariableInterpolator.interpolate(value, modelObject); You can use that to build a model that recursively interpolates until there are no more ${...} occurrences in the valu

Re: PageParameter question

2008-03-13 Thread Martijn Dashorst
Why don't you create a new PageParameters object in each populateItem? Martijn On 3/13/08, Thijs <[EMAIL PROTECTED]> wrote: > I'm having troubles with pageparameters. > > when I use Page.getPageParameters() they are always null untill I call > super(paramters) in my constructor. > But when I t

PageParameter question

2008-03-13 Thread Thijs
I'm having troubles with pageparameters. when I use Page.getPageParameters() they are always null untill I call super(paramters) in my constructor. But when I then add a BookmarkablePageLink I get very strange behavior. See the following example code: public HomePage(final PageParameters pa

Re: object sharing between pages

2008-03-13 Thread Maurice Marrink
> This only works if the session is not replicated and the Action on B is > executed on a different machine. Don't you mean on the same machine? > > But if somebody goes from PageB to PageC and then uses the back button to > get to B and then executes the action > The shared instance is not

Re: StringResourceModel labels within values

2008-03-13 Thread Johan Compagner
if you use again StringResourceModels in the model that you give to your outer StringResourceModel :) johan On Wed, Mar 12, 2008 at 9:57 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > but will that work recusively? :) > > -igor > > > On Wed, Mar 12, 2008 at 1:44 PM, Johan Compagner <[EMAIL PRO

RE: StringResourceModel labels within values

2008-03-13 Thread i ii
thank you for help! which way is better? my own component or srm model that gets from localizer? > Date: Wed, 12 Mar 2008 13:57:10 -0700 > From: [EMAIL PROTECTED] > To: users@wicket.apache.org > Subject: Re: StringResourceModel labels within values > > but will that work recusively? :) > > -ig

Re: object sharing between pages

2008-03-13 Thread Johan Compagner
the problem is that if you have 2 page that share the same object instance and 1 of the pages get serialized and then deserialized The object instance is not the same anymore For example this still works: Object A instance PageA has that instance. PageA creates PageB and passes that instance (a

Adding javascript in html

2008-03-13 Thread Juha Alatalo
Hi, we just started using version 1.3.2 and noticed that references to js-files without wicket:id doesn't work any more. They were working in 1.3.1. code: src="/syncrontech/common/gate/component/GateConfirm.js"> log: 192.168.2.155 - st [13/Mar/2008:09:29:03 +] "GET /wicket//syncr

Re: London Wicket Training at Easter ... still 4 places left

Thanks for the feedback and questions so far ... for immediate answers to most course/training related questions, take a look at the http://jweekend.com/dev/Faq/ FAQ as well. Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk Al and I are preparing for the London Wicket course coming up ne

Re: object sharing between pages

Why shouldn't pages share objects? pushing object x from page a to page b to modify x and then return to either the same or another instance of page a is just fine. You can also wrap object x in a model and use that same model on different pages / components. Maurice On Thu, Mar 13, 2008 at 10:14

object sharing between pages

Hi, please excuse my newbie question; is it correct that pages cannot share objects? (any pointers on the subject of wickets serialization would be greatly appreciated) I want to provide some feedback to the main page from a modal-window, and now do this by putting meta-data in the session. Is

Re: Panel not updated on modelchange

Running Panel.detach from onselectionchanged in the radiogroup didn't help. It seems like the panels is updated, but labels in the panel is not. The labels are added like this: add(new Label("name", new PropertyModel(getModelObject(), "name"))); Ole-Harald igor.vaynberg wrote: > > sounds