Re: Newbie Question

2018-05-06 Thread Sven Meier
Hi, Wicket can repeat markup, see here: https://ci.apache.org/projects/wicket/guide/8.x/single.html#_displaying_multiple_items_with_repeaters Have fun sven Am 05.05.2018 um 22:56 schrieb athag...@csd.auth.gr: The question is about as simple as it gets: in the HelloWorld! example a single

Re: Newbie question : How do I display a tabbed list vertically rather than horizontally?

2014-06-10 Thread Paul Bors
Extend the Wicket class you want like the AjaxTabbedPanel in Java (Model and Controller) and change the HTML (viewer) as you please. You would need access to Wicket’s source code thus if you use Maven see the sources classifier at: http://maven.apache.org/pom.html Perhaps your IDE (Eclipse,

Re: Newbie question : How do I display a tabbed list vertically rather than horizontally?

2014-06-09 Thread Mihir Chhaya
Tim, Do you need to show only titles in vertical or tabs in vertical with title displayed horizontally? You can do that with CSS itself as below. div.tabpanel div.tab-row { float: left; background: #F2F9FC url(../images/tabs/bg.gif) repeat-x bottom; line-height: normal;

Re: Newbie question : How do I display a tabbed list vertically rather than horizontally?

2014-06-09 Thread Tim Collins
Hmmm That did not work. To be clear, this is what the code looks like : package com.charityusa.janus.page.home; import com.charityusa.config.AppConfig; import com.charityusa.janus.panel.footer.Footer; import com.charityusa.janus.panel.vendor.CoolibarUpload; import

Re: Newbie question : How do I display a tabbed list vertically rather than horizontally?

2014-06-09 Thread Mihir Chhaya
With CSS I provided, were you able to view your tab controls position changing any bit? Though you don't need any kind of animation here; Translate might be helpful. Something like below in 'div.tabpanel div.tab-row' (in CSS)? Here is one for chrome: -webkit-transform: translate(Xpx,Ypx); You

Re: Newbie question: startup wicketapplication with loginform

2013-12-02 Thread Paul Bors
See also the Wicket Guide: http://wicket.apache.org/guide/guide/chapter3.html#chapter3_3 On Tue, Nov 26, 2013 at 10:36 AM, Seçil Aydın techlove...@gmail.com wrote: Hi, you can also view the below example code:

Re: Newbie question: startup wicketapplication with loginform

2013-11-26 Thread Seçil Aydın
Hi, you can also view the below example code: http://www.wicket-library.com/wicket-examples/authentication1/wicket/bookmarkable/org.apache.wicket.examples.authentication1.SignIn?0 - Wicket-Java -- View this message in context:

Re: Newbie question: startup wicketapplication with loginform

2013-11-25 Thread Martin Grigorov
Hi, You should use the form in a page. Create a proper page, add the form to it, and use that page as a home page. On Mon, Nov 25, 2013 at 11:44 AM, gerritqf gerrit.wass...@qfactors.nlwrote: Hello usermembers, I have a question about the startup page for my wicket webapplication. I made a

Re: Newbie question: startup wicketapplication with loginform

2013-11-25 Thread Gerrit Wassink
Ok i will try.Thanks! Martin Grigorov mgrigo...@apache.org , 25-11-2013 10:55: Hi, You should use the form in a page. Create a proper page, add the form to it, and use that page as a home page. On Mon, Nov 25, 2013 at 11:44 AM, gerritqf gerrit.wass...@qfactors.nlwrote: Hello

Re: Newbie Question

2011-01-31 Thread Igor Vaynberg
onclick (target) { setvisible(false); target.add(this); } -igor On Mon, Jan 31, 2011 at 4:46 PM, Fernando O. fot...@gmail.com wrote: Hi All, how are you?   I'm new in this list, actually I'm new to wicket and I'm trying to learn it. So far I hadn't found any issues and it worked great until

Re: Newbie Question

2011-01-31 Thread Fernando O.
Thanks!!! worked! On Mon, Jan 31, 2011 at 9:50 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: onclick (target) { setvisible(false); target.add(this); } -igor On Mon, Jan 31, 2011 at 4:46 PM, Fernando O. fot...@gmail.com wrote: Hi All, how are you? I'm new in this list, actually I'm

Re: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Jeremy Thomerson
On Tue, Jun 15, 2010 at 2:11 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I am sorry, am just getting used to Wicket but I notice a lot of use of calling a lot of code in the constructor. Does it really matter? I mention it because this kind of style makes it difficult to

RE: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 3:25 PM To: users@wicket.apache.org Subject: Re: Newbie question anti-patterns and wicket, constructor component building On Tue, Jun 15, 2010 at 2:11 PM, Brown, Berlin [GCG-PFS

Re: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Jeremy Thomerson
Well, the second version uses constructer injection. Some frameworks prefer that approach. But, I see your point. You should not be calling a service or dao directly in your constructor, regardless of whether you are using dependency injection or not. This is bad. That's what models are

Re: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Jeremy Thomerson
Well, the second version uses constructer injection. Some frameworks prefer that approach. But, I see your point. You should not be calling a service or dao directly in your constructor, regardless of whether you are using dependency injection or not. This is bad. That's what models are

Re: Newbie Question about populating form values

2010-04-14 Thread Nikita Tovstoles
If you're using a CPM there's no need to explicitly set models for child components. Also think about what you want to happen on page reload. Generally I'd imagine you want current data, so set CPM's object on Page.onBeforeRender(): public class EmployeeMain extends BasePage{ final private

Re: Newbie Question about populating form values

2010-04-14 Thread James Carman
Why not use a LoadableDetachableModel instead of setting on onBeforeRender()? On Wed, Apr 14, 2010 at 12:10 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: If you're using a CPM there's no need to explicitly set models  for child components. Also think about what you want to happen on

Re: Newbie Question about populating form values

2010-04-14 Thread Nikita Tovstoles
Yeah, guess you could do that too, but then you'd have to wrap one model into another (since LDM does not do property matching like CPM) + you've to extend LDM. On Wed, Apr 14, 2010 at 9:24 AM, James Carman jcar...@carmanconsulting.comwrote: Why not use a LoadableDetachableModel instead of

Re: Newbie Question about populating form values

2010-04-14 Thread James Carman
That's one of the key concepts of Wicket models. On Wed, Apr 14, 2010 at 2:04 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Yeah, guess you could do that too, but then you'd have to wrap one model into another (since LDM does not do property matching like CPM) + you've to extend LDM.

Re: Newbie question - HTML Labels and IDs

2009-09-30 Thread Igor Vaynberg
see FormComponentLabel and SimpleFormComponentLabel -igor On Wed, Sep 30, 2009 at 8:34 AM, Phillip Sacre psa...@clifford-thames.com wrote: Hi, I've been using Wicket now for a couple of weeks and am getting on pretty well with it. I still run into issues occasionally though, and I'd like to

RE: Newbie question - HTML Labels and IDs

2009-09-30 Thread Phillip Sacre
That's great, thanks - I knew there must be a simple way of doing it! Phill -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: 30 September 2009 16:36 To: users@wicket.apache.org Subject: Re: Newbie question - HTML Labels and IDs see FormComponentLabel

Re: Newbie question: fileupload AJAX progressbar ?

2009-08-20 Thread Robin Sander
UploadWebRequest has any side effects. Does not seem so. Stefan -Ursprüngliche Nachricht- Von: Ashika Umanga Umagiliya [mailto:auma...@biggjapan.com] Gesendet: Mittwoch, 19. August 2009 09:10 An: users@wicket.apache.org Betreff: Re: Newbie question: fileupload AJAX progressbar ? Thanks Stefan

RE: Newbie question: fileupload AJAX progressbar ?

2009-08-19 Thread Stefan Lindner
You need @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) { return new UploadWebRequest(servletRequest); } In your Application's class. I think you should definitly read the APIdoc (see UploadProgressBar)! Stefan

RE: Newbie question: fileupload AJAX progressbar ?

2009-08-19 Thread Jing Ge (Besitec IT DEHAM)
Hi, Add this in your application class SVRWebApplication: @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) { return new UploadWebRequest(servletRequest); } Best regards! Jing -Original Message- From: Ashika Umanga Umagiliya

Re: Newbie question: fileupload AJAX progressbar ?

2009-08-19 Thread Ashika Umanga Umagiliya
Thanks Stefan, That solved my problem. Since UploadProgreeBar is a component of 'wicket-extensions', i refered documentation at http://www.wicketframework.org/wicket-extensions/ which is kind of updated (versoin 1.2) . I had to download documentation for 1.4 from the maven repository.

RE: Newbie question: fileupload AJAX progressbar ?

2009-08-19 Thread Stefan Lindner
@wicket.apache.org Betreff: Re: Newbie question: fileupload AJAX progressbar ? Thanks Stefan, That solved my problem. Since UploadProgreeBar is a component of 'wicket-extensions', i refered documentation at http://www.wicketframework.org/wicket-extensions/ which is kind of updated (versoin 1.2) . I

Re: Newbie question: fileupload AJAX progressbar ?

2009-08-19 Thread Robin Sander
@wicket.apache.org Betreff: Re: Newbie question: fileupload AJAX progressbar ? Thanks Stefan, That solved my problem. Since UploadProgreeBar is a component of 'wicket-extensions', i refered documentation at http://www.wicketframework.org/wicket-extensions/ which is kind of updated (versoin 1.2) . I had

Re: Newbie question: fileupload AJAX progressbar ?

2009-08-19 Thread Ashika Umanga Umagiliya
@wicket.apache.org Betreff: Re: Newbie question: fileupload AJAX progressbar ? Thanks Stefan, That solved my problem. Since UploadProgreeBar is a component of 'wicket-extensions', i refered documentation at http://www.wicketframework.org/wicket-extensions/ which is kind of updated (versoin 1.2

Re: NewBie question :Implementation of Collapsible Link

2009-03-31 Thread James Carman
Are you looking for a menu system? On Tue, Mar 31, 2009 at 4:04 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote: -- Forwarded message -- From: Ajayi Yinka iamstyaj...@googlemail.com Date: Tue, Mar 31, 2009 at 9:01 AM Subject: Re: NewBie question :Implementation of Collapsible

Re: NewBie question :Implementation of Collapsible Link

2009-03-31 Thread Ajayi Yinka
, Ajayi Yinka iamstyaj...@googlemail.com wrote: -- Forwarded message -- From: Ajayi Yinka iamstyaj...@googlemail.com Date: Tue, Mar 31, 2009 at 9:01 AM Subject: Re: NewBie question :Implementation of Collapsible Link To: users@wicket.apache.org Thanks so much. I

Re: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Martijn Dashorst
the book works. Thanks for your feedback. Regards, Mohamed -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:44 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Because you're

RE: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Chenini, Mohamed
To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Pro Wicket has been written during Wicket 1.2 availability. Therefore you should not expect everything to work directly. If you use the wicket-quickstart download from Wicket 1.2 the example should match

RE: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Chenini, Mohamed
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:44 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Because you're not using jetty-config.xml - look at Start.java - you are mounting

Re: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Jeremy Thomerson
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:44 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Because you're not using jetty-config.xml - look at Start.java - you

Re: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Jeremy Thomerson
Have you tried going to http://localhost:8081/quickstart ? or simply http://localhost:8081 ? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:09 PM, Chenini, Mohamed mchen...@geico.comwrote: Hi, I setup the quickstart project using the imbedded jetty server and

RE: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Chenini, Mohamed
(); System.exit(100); } } } -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:23 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Try http://localhost:8080

Re: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Jeremy Thomerson
: Tuesday, March 24, 2009 4:23 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Try http://localhost:8080 and http://localhost:8081 The answer really will be in Start.java - see what port it is on and where the app is mounted. Then make

RE: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Chenini, Mohamed
[mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:30 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Okay - you found it. What's the question? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:28 PM, Chenini

Re: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Jeremy Thomerson
/Arg Argsrc/webapp/Arg /Call -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:30 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Okay - you found it. What's the question

Re: Newbie question

2008-12-09 Thread Mark Daniel
Hi, Basically, getCart().getCheeses().size() != cartListView.size() On Wed, Dec 10, 2008 at 12:31 AM, Bruno Cesar Borges [EMAIL PROTECTED] wrote: I think you are talking about the 'viewSize' property of ListView. This indicates how many viewable items will be displayed within a ListView.

RE: Newbie question

2008-12-09 Thread Bruno Cesar Borges
don't know if for Repeaters would make sense to return how many items they contain. Probably not. -Original Message- From: Mark Daniel [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 6:35 PM To: users@wicket.apache.org Subject: Re: Newbie question Hi, Basically, getCart

Re: Newbie question

2008-12-09 Thread Igor Vaynberg
you gave listview a list instance, but its probably not the same instance of list you are adding items to. that is why the original code uses a model to give listview the list. read the models chapter... -igor On Tue, Dec 9, 2008 at 12:23 PM, Mark Daniel [EMAIL PROTECTED] wrote: Hello all,

Re: Newbie question

2008-12-09 Thread Mark Daniel
Hi Igor, I just changed one line the original source (in my original post), and built a war and deployed on tomcat, and got the behavior I mentioning. I think they both point to the same list. On Wed, Dec 10, 2008 at 1:12 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: you gave listview a list

Re: Newbie question

2008-12-09 Thread Mark Daniel
By original source, I meant I just tried it on the book source code download. On Wed, Dec 10, 2008 at 1:20 AM, Mark Daniel [EMAIL PROTECTED] wrote: Hi Igor, I just changed one line the original source (in my original post), and built a war and deployed on tomcat, and got the behavior I

Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Serkan Camurcuoglu
Model assigns a new object as the model object, and I think java.lang.Boolean is immutable so it can't change after it's constructed anyway. So instead of checking the value of toggleableObject I think you can check myCheckbox.getModelObject() == Boolean.TRUE etc.. Ryan Gravener wrote: If

Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Ryan Gravener
If you would like the property model to work with local variables do new propertymodel(this,property) On 10/6/08, walnutmon [EMAIL PROTECTED] wrote: After using property models, it's nice to have automatic binding to variables in objects... However, I can't seem to get the same thing to work

Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Martijn Dashorst
see the models page on the wiki and read the javadoc for CompoundPropertyModel Martijn On Mon, Oct 6, 2008 at 3:26 PM, walnutmon [EMAIL PROTECTED] wrote: After using property models, it's nice to have automatic binding to variables in objects... However, I can't seem to get the same thing to

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread Jonathan Locke
also see wicket-rad if appropriate igor.vaynberg wrote: have a look see here for an example https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-crud/ -igor On Thu, Sep 11, 2008 at 6:29 PM, walnutmon [EMAIL PROTECTED] wrote: Very new to Wicket, I've

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread wfaler
Jonathan Locke wrote: also see wicket-rad if appropriate A http://sites.google.com/site/wicketrad URL could be useful, so here it is . :) The org.wicketrad.propertyeditor package in the wicket-rad-core module has a bunch of Panels you might want to look at for your problem. The exact

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread James Carman
Does this person really need a RAD tool for what they're trying to do? All they need to do is display a list of an arbitrary number of radio buttons. Wouldn't ListView suffice in this situation? That's all they asked for. The XP folks would say, Do the simplest thing that works. On Fri, Sep

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread wfaler
Nope, probably not, but he can take a look at the code for a sample on how to achieve exactly what he wants. jwcarman wrote: Does this person really need a RAD tool for what they're trying to do? All they need to do is display a list of an arbitrary number of radio buttons. Wouldn't

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread Igor Vaynberg
did you also explain about setreuseitems(true) to them after suggesting a listview? -igor On Fri, Sep 12, 2008 at 3:35 AM, James Carman [EMAIL PROTECTED] wrote: Does this person really need a RAD tool for what they're trying to do? All they need to do is display a list of an arbitrary number

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread James Carman
Where's the fun in that? ;) Sorry, I should have mentioned that you need to setup your ListView to reuse the items if you're doing things as you say. On Fri, Sep 12, 2008 at 10:10 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: did you also explain about setreuseitems(true) to them after suggesting

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread walnutmon
Haha, first off, thanks for all the responses, I'm glad the community is active :) I took a look at the Wicket Rad, it looks pretty cool, I think he referenced it so that I can actually see how some of that stuff works, and get a handle on what Wicket is capable of, it was a bit over my head. I

Re: Newbie Question: Dynamically Building Form Elements

2008-09-11 Thread James Carman
Take a look at ListView. On Thu, Sep 11, 2008 at 9:29 PM, walnutmon [EMAIL PROTECTED] wrote: Very new to Wicket, I've been reading about it for a few days, I'm really excited now that I'm using it. The stuff I do requires that you be able to create dynamic form elements... as an example,

Re: Newbie Question: Dynamically Building Form Elements

2008-09-11 Thread Igor Vaynberg
have a look see here for an example https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-crud/ -igor On Thu, Sep 11, 2008 at 6:29 PM, walnutmon [EMAIL PROTECTED] wrote: Very new to Wicket, I've been reading about it for a few days, I'm really excited now that I'm

Re: [Newbie question] How to avoid empty boxes?

2008-03-15 Thread Kaspar Fischer
Another possibility: /** * A panel whose visibility is on iff at least one of its subcomponents is visible. */ public class Envelope extends Panel { private static final long serialVersionUID = -6422145787799831814L; public Envelope(String id) { super(id); } public

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-29 Thread Nino Saturnino Martinez Vazquez Wael
Could you show us some code? regards Karol Wrzesniewski wrote: Thanks for all your help. NonCachingImage is exacly what I wanted. It works fine but only after I open modal window, call setImageResource, close modal and reopen it again. After first call of modal window default image is

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-29 Thread Nino Saturnino Martinez Vazquez Wael
https://issues.apache.org/jira/browse/WICKET-1382 Igor Vaynberg wrote: most people want stable urls for their images i would imagine, so they can be cached by the browser. in case of ajax this doesnt work because the url has to change so that browser needs to know to refresh it. maybe image

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-29 Thread Karol Wrzesniewski
ok - that's how it looks: this is a ListView on the panels left side: add(listaObrazow = new ListView(pics, obrazki) { public void populateItem(final ListItem listItem) { final

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-28 Thread Karol Wrzesniewski
Thanks for all your help. NonCachingImage is exacly what I wanted. It works fine but only after I open modal window, call setImageResource, close modal and reopen it again. After first call of modal window default image is created, when I'm trying to change it nothing happens exacly like

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Igor Vaynberg
use NonCachingImage -igor On Wed, Feb 27, 2008 at 2:43 AM, Karol Wrzesniewski [EMAIL PROTECTED] wrote: Hi, I'm having problems with refreshing an Image using AjaxLink. I have a ModalWindow. On it's left side theres a ListView containing Ajax links: --

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Nino Saturnino Martinez Vazquez Wael
Should nocachingImage be default, and then have a cachingImage? Or would that result in the same amount of confusion? WDYT? As a couple of people has been confused by this... regards Nino Igor Vaynberg wrote: use NonCachingImage -igor On Wed, Feb 27, 2008 at 2:43 AM, Karol Wrzesniewski

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Igor Vaynberg
most people want stable urls for their images i would imagine, so they can be cached by the browser. in case of ajax this doesnt work because the url has to change so that browser needs to know to refresh it. maybe image can know if its requested within an ajax request and automatically add

Re: [newbie question] How to refresh Image using an AjaxLink

2008-02-27 Thread Bernard Niset
Hi, I had the same issue yesterday and found a solution somewhere else in this mailing list. Adding some random query to the url forces the browser not to reuse a cached image. To achieve that you have to subclass Image and override onComponentTag like this: @Override protected void

Re: [Newbie question] How to avoid empty boxes?

2008-02-26 Thread Gerolf Seitz
hi, if no ajax is involved, i suggest reading [0] about wicket:enclosure. this should do the trick. cheers, gerolf [0] http://www.systemmobile.com/?page_id=253 On Tue, Feb 26, 2008 at 10:47 AM, Kaspar Fischer [EMAIL PROTECTED] wrote: I have just started looking at Wicket and have a basic

Re: [Newbie question] How to avoid empty boxes?

2008-02-26 Thread Nino Saturnino Martinez Vazquez Wael
hmm why do it complicated, just create a panel, and if your rules decide it then call setvisible(false)... then no markup will be visible from that component... Kaspar Fischer wrote: I have just started looking at Wicket and have a basic question. My page displays an article with meta-data

Re: [Newbie question] How to avoid empty boxes?

2008-02-26 Thread Kaspar Fischer
Dear Bernd, Gerolf, Nino, Thanks a lot for your replies: in two minutes I learnt a lot! For my particular needs, wicket:enclosure is not the perfect solution: I have several children, wicket:enclosure child='child1' div wicket:id=child1/div div wicket:id=child2/div

Re: Newbie question. Override class attributes from a tabPanel component

2008-01-03 Thread Martijn Dashorst
Take a look at AttributeAppender, AttributeModifier or SImpleAttributeModifier. You can add them to a component and they allow you to modify tag attributes. Martijn On Jan 3, 2008 10:45 PM, Fernando Wermus [EMAIL PROTECTED] wrote: I am trying to use the themes from Drupal in a wicket app. I

Re: Newbie question. Override class attributes from a tabPanel component

2008-01-03 Thread Igor Vaynberg
if you update to trunk there is a new overridable protected LoopItem newTabContainer(int tabIndex); -igor On Jan 3, 2008 2:19 PM, Fernando Wermus [EMAIL PROTECTED] wrote: Great! I will take a look at that. Thanks! It seems to be hardcoded the tabbedPanel class attribute :( Looking at the

Re: Newbie question. Override class attributes from a tabPanel component

2008-01-03 Thread Fernando Wermus
Great! I will take a look at that. Thanks! It seems to be hardcoded the tabbedPanel class attribute :( Looking at the code tabbedPanel constructor, protected LoopItem newItem(int iteration) { return new LoopItem(iteration) {

Re: Newbie question - how to create a Default Data Table with onmouseover row style changes + link per row

2007-10-22 Thread Igor Vaynberg
create a subclass of defaultdatatable, override newrowitem to be like this: component newrowitem(...) { return new clickableitem(...) { onclick() { // implement onclick } } } class clickableitem extends item implements iclicklistener { oncomponenttag(tag) {

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
Hi Eleco, I' sorry somehow the problem with the locale being null is solved. I cannot reconstruct it. But the problem with the locale passed to IStringResourceLoader.loadStringResource(..) being DE remains. I have the feeling that the SessionLocale is not used. I verified this by putting a label

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
Hi Cristina, thanks for your reply. The problem is, that the session locale is changed, but somehow there seems to be another locale present which is then passed to the IStringResourceLoader.loadStringResource implementation. Have you got any ideas? Thanks a lot Marcus 2007/10/2, Cristina [EMAIL

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
So, I looked at the sources of Localizer, for Tried to retrieve a localized string for a component that has not yet been added to the page. which is the warning i get. In this case the Localizer calls loader.loadStringResource(component, key); without passing a locale. That's why I always get

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
Hi I just found out that this issue should be fixed in wicket 1.3.0 beta 4 (wicket-issue 936). Where can I get that? Which is the current release, best suited for a production environment? Thanks! Marcus 2007/10/2, marcus dickerhof [EMAIL PROTECTED]: So, I looked at the sources of

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread Frank Bille
On 10/2/07, marcus dickerhof [EMAIL PROTECTED] wrote: Hi I just found out that this issue should be fixed in wicket 1.3.0 beta 4 (wicket-issue 936). Where can I get that? beta4 is not released yet. If nothing comes in the way I will release beta4 this weekend. Frank

Re: Newbie Question Loading localization Resources from Database

2007-10-01 Thread Cristina
Hi Marcus, marcus dickerhof wrote: [...] Question: Can it be, that the Session-Locale is not used, because of the Localizer-Problem? Which locale is used instead? If you're setting the Locale in your Session (probably a class that extends WebSession) and then getting the Locale through

Re: Newbie Question Loading localization Resources from Database

2007-10-01 Thread Eelco Hillenius
//funny effect locale.getLanguage() -- Nullpointer Exception //I have to call locale.clone().getLanguage(). Is that normal? ? Could you give us the full stack trace please? Eelco - To unsubscribe, e-mail: [EMAIL

Re: newbie question about using WizardStep, help! thanks!

2007-09-25 Thread raybristol
Great! that's what I want, thanks so much and sorry for my stupid questions :) Eelco Hillenius wrote: Hi experts, I want to implement a wizard, user need to input some data, I can do it with a single page using form, but I don't know how to do it in wizard, I put a couple of input

Re: newbie question about using WizardStep, help! thanks!

2007-09-24 Thread Eelco Hillenius
Hi experts, I want to implement a wizard, user need to input some data, I can do it with a single page using form, but I don't know how to do it in wizard, I put a couple of input textfield etc. then I get a error: java.lang.IllegalStateException: Attempt to set model object on null model