RE: Images not displaying
Hi James I have tried placing the img tag between wicket:link tags but still no image displaying. I have also tried the same with the DateTextField/DatePicker input text field in order to display the calendar icon, but still nothing displays. This one in particular is very odd since it is the wicket DatePicker class. I cannot display any image whether it be a img tag or a built in wicket image like with the DatePicker class. Here is my setup: HTML PAGE: form wicket:id=transactionQueryForm table tr td span wicket:id=cardNumberLabel/span: /td td input type=text wicket:id=cardNumberField size=20 / /td /tr tr td span wicket:id=dateFromLabel/span: /td td input type=text wicket:id=dateFromField/ /td /tr tr td colspan=2 align=left input type=submit name=search value=search/ /td /tr /table /form /wicket:extend JAVA CLASS: import java.util.Date; import java.util.Locale; import javax.servlet.http.HttpSession; import org.apache.wicket.datetime.StyleDateConverter; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.DatePicker; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.model.Model; import org.apache.wicket.model.PropertyModel; import org.apache.wicket.protocol.http.WebRequest; /** * @author Administrator */ public class TransactionQueryPage extends BasePage { public TransactionQueryPage() { add(new TransactionQueryForm(transactionQueryForm)); } public final class TransactionQueryForm extends Form { private Locale selectedLocale = new Locale(en); private TextField cardNumberField; private Date date = new Date(); private DateTextField dateFromField; public TransactionQueryForm(String id) { super(id); add(new Label(cardNumberLabel, Card number)); add(cardNumberField = new TextField(cardNumberField, new Model( enter a card number))); add(new Label(dateFromLabel, Date From:)); dateFromField = new DateTextField( dateFromField, new PropertyModel(this, date), new StyleDateConverter( S-, true)) { @Override public Locale getLocale() { return selectedLocale; } }; dateFromField.add(new DatePicker()); add(dateFromField); } public final void onSubmit() { // } } } JAVA APPLICATION CLASS: import org.apache.wicket.protocol.http.WebApplication; import za.co.transactionjunction.transpector.pages.IndexPage; /** * @author Administrator */ public class TranspectorApplication extends WebApplication { public TranspectorApplication() { } public ClassIndexPage getHomePage() { return IndexPage.class; } } Please help. Regards, Yazeed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: 26 September 2008 05:16 PM To: users@wicket.apache.org Subject: Re: Images not displaying Try surrounding your img tag with wicket:link 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: img src=logo.jpg/ Files are: Index.html Index.java logo.jpg To make matters worst, I tried this with the DateTextField DatePicker classes, eg: dateFromField = new DateTextField( dateFromField, new PropertyModel(this, date), new StyleDateConverter( S-, true
Re: Images not displaying
is your filter's mapping properly ends in a /* ? -igor On Sun, Sep 28, 2008 at 11:52 PM, Yazeed Isaacs [EMAIL PROTECTED] wrote: Hi James I have tried placing the img tag between wicket:link tags but still no image displaying. I have also tried the same with the DateTextField/DatePicker input text field in order to display the calendar icon, but still nothing displays. This one in particular is very odd since it is the wicket DatePicker class. I cannot display any image whether it be a img tag or a built in wicket image like with the DatePicker class. Here is my setup: HTML PAGE: form wicket:id=transactionQueryForm table tr td span wicket:id=cardNumberLabel/span: /td td input type=text wicket:id=cardNumberField size=20 / /td /tr tr td span wicket:id=dateFromLabel/span: /td td input type=text wicket:id=dateFromField/ /td /tr tr td colspan=2 align=left input type=submit name=search value=search/ /td /tr /table /form /wicket:extend JAVA CLASS: import java.util.Date; import java.util.Locale; import javax.servlet.http.HttpSession; import org.apache.wicket.datetime.StyleDateConverter; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.DatePicker; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.model.Model; import org.apache.wicket.model.PropertyModel; import org.apache.wicket.protocol.http.WebRequest; /** * @author Administrator */ public class TransactionQueryPage extends BasePage { public TransactionQueryPage() { add(new TransactionQueryForm(transactionQueryForm)); } public final class TransactionQueryForm extends Form { private Locale selectedLocale = new Locale(en); private TextField cardNumberField; private Date date = new Date(); private DateTextField dateFromField; public TransactionQueryForm(String id) { super(id); add(new Label(cardNumberLabel, Card number)); add(cardNumberField = new TextField(cardNumberField, new Model( enter a card number))); add(new Label(dateFromLabel, Date From:)); dateFromField = new DateTextField( dateFromField, new PropertyModel(this, date), new StyleDateConverter( S-, true)) { @Override public Locale getLocale() { return selectedLocale; } }; dateFromField.add(new DatePicker()); add(dateFromField); } public final void onSubmit() { // } } } JAVA APPLICATION CLASS: import org.apache.wicket.protocol.http.WebApplication; import za.co.transactionjunction.transpector.pages.IndexPage; /** * @author Administrator */ public class TranspectorApplication extends WebApplication { public TranspectorApplication() { } public ClassIndexPage getHomePage() { return IndexPage.class; } } Please help. Regards, Yazeed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: 26 September 2008 05:16 PM To: users@wicket.apache.org Subject: Re: Images not displaying Try surrounding your img tag with wicket:link 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: img src=logo.jpg/ Files are: Index.html Index.java logo.jpg To make matters worst, I tried this with the DateTextField DatePicker classes, eg: dateFromField = new DateTextField( dateFromField, new PropertyModel(this, date), new StyleDateConverter( S-, true)) { @Override public Locale getLocale
RE: Images not displaying
Hi Igor Please excuse me, but I am new to wicket. :) I am not sure what you mean by filter's mapping end in a /*, please explain. Is this a mapping configuration that I must setup with the app? Regards, Yazeed -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: 29 September 2008 10:01 AM To: users@wicket.apache.org Subject: Re: Images not displaying is your filter's mapping properly ends in a /* ? -igor On Sun, Sep 28, 2008 at 11:52 PM, Yazeed Isaacs [EMAIL PROTECTED] wrote: Hi James I have tried placing the img tag between wicket:link tags but still no image displaying. I have also tried the same with the DateTextField/DatePicker input text field in order to display the calendar icon, but still nothing displays. This one in particular is very odd since it is the wicket DatePicker class. I cannot display any image whether it be a img tag or a built in wicket image like with the DatePicker class. Here is my setup: HTML PAGE: form wicket:id=transactionQueryForm table tr td span wicket:id=cardNumberLabel/span: /td td input type=text wicket:id=cardNumberField size=20 / /td /tr tr td span wicket:id=dateFromLabel/span: /td td input type=text wicket:id=dateFromField/ /td /tr tr td colspan=2 align=left input type=submit name=search value=search/ /td /tr /table /form /wicket:extend JAVA CLASS: import java.util.Date; import java.util.Locale; import javax.servlet.http.HttpSession; import org.apache.wicket.datetime.StyleDateConverter; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.DatePicker; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.model.Model; import org.apache.wicket.model.PropertyModel; import org.apache.wicket.protocol.http.WebRequest; /** * @author Administrator */ public class TransactionQueryPage extends BasePage { public TransactionQueryPage() { add(new TransactionQueryForm(transactionQueryForm)); } public final class TransactionQueryForm extends Form { private Locale selectedLocale = new Locale(en); private TextField cardNumberField; private Date date = new Date(); private DateTextField dateFromField; public TransactionQueryForm(String id) { super(id); add(new Label(cardNumberLabel, Card number)); add(cardNumberField = new TextField(cardNumberField, new Model( enter a card number))); add(new Label(dateFromLabel, Date From:)); dateFromField = new DateTextField( dateFromField, new PropertyModel(this, date), new StyleDateConverter( S-, true)) { @Override public Locale getLocale() { return selectedLocale; } }; dateFromField.add(new DatePicker()); add(dateFromField); } public final void onSubmit() { // } } } JAVA APPLICATION CLASS: import org.apache.wicket.protocol.http.WebApplication; import za.co.transactionjunction.transpector.pages.IndexPage; /** * @author Administrator */ public class TranspectorApplication extends WebApplication { public TranspectorApplication() { } public ClassIndexPage getHomePage() { return IndexPage.class; } } Please help. Regards, Yazeed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: 26 September 2008 05:16 PM To: users@wicket.apache.org Subject: Re: Images not displaying Try surrounding your img tag with wicket:link 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: img src=logo.jpg/ Files are: Index.html Index.java logo.jpg To make matters worst, I tried this with the DateTextField DatePicker classes, eg: dateFromField = new DateTextField
RE: Images not displaying
Hi Igor You mean filter mappings in web.xml I did not have any filter mappings, so I have added them and everything is now working fine. Thanks for the help Igor. Regards, Yazeed -Original Message- From: Yazeed Isaacs Sent: 29 September 2008 11:16 AM To: users@wicket.apache.org Subject: RE: Images not displaying Hi Igor Please excuse me, but I am new to wicket. :) I am not sure what you mean by filter's mapping end in a /*, please explain. Is this a mapping configuration that I must setup with the app? Regards, Yazeed -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: 29 September 2008 10:01 AM To: users@wicket.apache.org Subject: Re: Images not displaying is your filter's mapping properly ends in a /* ? -igor On Sun, Sep 28, 2008 at 11:52 PM, Yazeed Isaacs [EMAIL PROTECTED] wrote: Hi James I have tried placing the img tag between wicket:link tags but still no image displaying. I have also tried the same with the DateTextField/DatePicker input text field in order to display the calendar icon, but still nothing displays. This one in particular is very odd since it is the wicket DatePicker class. I cannot display any image whether it be a img tag or a built in wicket image like with the DatePicker class. Here is my setup: HTML PAGE: form wicket:id=transactionQueryForm table tr td span wicket:id=cardNumberLabel/span: /td td input type=text wicket:id=cardNumberField size=20 / /td /tr tr td span wicket:id=dateFromLabel/span: /td td input type=text wicket:id=dateFromField/ /td /tr tr td colspan=2 align=left input type=submit name=search value=search/ /td /tr /table /form /wicket:extend JAVA CLASS: import java.util.Date; import java.util.Locale; import javax.servlet.http.HttpSession; import org.apache.wicket.datetime.StyleDateConverter; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.DatePicker; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.model.Model; import org.apache.wicket.model.PropertyModel; import org.apache.wicket.protocol.http.WebRequest; /** * @author Administrator */ public class TransactionQueryPage extends BasePage { public TransactionQueryPage() { add(new TransactionQueryForm(transactionQueryForm)); } public final class TransactionQueryForm extends Form { private Locale selectedLocale = new Locale(en); private TextField cardNumberField; private Date date = new Date(); private DateTextField dateFromField; public TransactionQueryForm(String id) { super(id); add(new Label(cardNumberLabel, Card number)); add(cardNumberField = new TextField(cardNumberField, new Model( enter a card number))); add(new Label(dateFromLabel, Date From:)); dateFromField = new DateTextField( dateFromField, new PropertyModel(this, date), new StyleDateConverter( S-, true)) { @Override public Locale getLocale() { return selectedLocale; } }; dateFromField.add(new DatePicker()); add(dateFromField); } public final void onSubmit() { // } } } JAVA APPLICATION CLASS: import org.apache.wicket.protocol.http.WebApplication; import za.co.transactionjunction.transpector.pages.IndexPage; /** * @author Administrator */ public class TranspectorApplication extends WebApplication { public TranspectorApplication() { } public ClassIndexPage getHomePage() { return IndexPage.class; } } Please help. Regards, Yazeed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: 26 September 2008 05:16 PM To: users@wicket.apache.org Subject: Re: Images not displaying Try surrounding your img tag with wicket:link tags. On Fri, Sep 26, 2008 at 11
Re: Images not displaying
Try surrounding your img tag with wicket:link 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: img src=logo.jpg/ Files are: Index.html Index.java logo.jpg To make matters worst, I tried this with the DateTextField DatePicker classes, eg: dateFromField = new DateTextField( dateFromField, new PropertyModel(this, date), new StyleDateConverter( S-, true)) { @Override public Locale getLocale() { return selectedLocale; } }; dateFromField.add(new DatePicker()); add(dateFromField); The date picker image (calendar icon) does not display. But when I install the wicket examples. All the dates example app works perfectly displaying the calendar icon. What am I doing wrong in my wicket web application? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]