html table with each column representing a day in a month

2014-01-27 Thread gerritqf
Hello Wicket users,

I want to have a table (in html) which has the following look.
A header table row with seperate columns each representing a day of a chosen
month.
Then the next row in eacha textField with wicket:id="insert or update
value to hour column in database".
In each column in this second row there must be a value for hours belonging
to the corresponding day in the row above.

What is the best solution? and which wicket components are best suitable for
this?
I think of using a listview to populate the rows but how can i specify
different id's for wicket in these columns of the table?
In the markup page i can use something like jstl but this is not wicket-way
of doing!

Gerrit


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/html-table-with-each-column-representing-a-day-in-a-month-tp4663955.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket war file deployment to Heroku

2014-01-15 Thread gerritqf
Hello Forum members,

I am trying to deploy a java webapplication with Wicket to Heroku site.
The war file is build with maven and can run with Jetty-runner on
localhost:8080.
Now after deploying to Heroku the site comes up with a Application error.

Maybe you can help me with how and what i must do. For example the Procfile
and system.properties file.

I found this link:

http://wicketinaction.com/2011/09/git-wicket-running-on-heroku/comment-page-1/

but is this a way to follow?

Thanks a lot for your answer!

Gerrit

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-war-file-deployment-to-Heroku-tp4663737.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DateTimeField or html5 date

2013-12-17 Thread gerritqf
Hello,

I am using Wicket now for a couple of weeks. In my form i have some
datefields.
Now is my question: considering my not so experienced knowledge about
Wicket, is it better to use the html5 input type=date or should i implement
a DateTimeField (like the example in Wicket in Action, page 208)?

Thanks!

Greetings Gerrit



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTimeField-or-html5-date-tp4663100.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket and Responsive Design question

2013-12-03 Thread gerritqf
Hello,

I am new to Wicket and i need some advice about building a webapplication
with Wicket and making this suitable for several devices, like tablet and
smartphone.
What is the best way of building the markup pages with Wicket, or is it just
a way of including the right css3 and html5 to the pages afterwards?
Is it a good idea to make a Single-page application using panels or better
inherit pages regarding responsive design?

I hope you can help me into the right direction.

Thanks in advance.

Gerrit



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Responsive-Design-question-tp4662736.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Redirect to buffer does not work?

2013-11-26 Thread gerritqf
Hello,

In my quickstart wicket application in Eclipse with Jetty server in debug
mode i have added a wicket form within a webpage.
Now when i submit the wicket form an object is written into the database.
After this the form is displayed again with the inputvalue in the textfield.
Is'n it a default setting in Wicket that the page cannot submitted twice
because of "Redirect to buffer" setting?
But in my example it is possible to accidentally resubmit the same value.
Is there an obvious explanation?

Code for the wicket page:
===
public class BedrijfPage extends WebPage {

  private static final long serialVersionUID = 1L;
  private Form form;
  private TextField bedrijf;
  private Label message;

  public BedrijfPage() {
this.bedrijf = new TextField("bedrijf", Model.of(""));
this.message = new Label("message", Model.of(""));
this.form = new Form("form") {
 
  @Override
  public void onSubmit() {
System.out.println("onSubmit");
String bedrijfsnaam = (String) bedrijf.getDefaultModelObject();
// wegschrijven naar database
if (bedrijfsnaam == null) {
  message.setDefaultModelObject("Het veld bedrijf is niet
ingevuld!");
}
else {
  Bedrijf bedrijf = new Bedrijf();
  bedrijf.setNaam(bedrijfsnaam);
  try {
PuqBeheer.getInstance().addBedrijf(bedrijf);
message
.setDefaultModelObject("Het bedrijf is toegevoegd aan de
database");
  }
  catch (SysteemException se) {
message.setDefaultModelObject(se.getMessage());
  }
}
  }
};

this.add(form);
form.add(bedrijf);
form.add(message);
  }
 
}

=
Code htmlpage
=


http://wicket.apache.org";>


Toevoegen bedrijf aan Puq



Naam Bedrijf:







=





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Redirect-to-buffer-does-not-work-tp4662681.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Newbie question: startup wicketapplication with loginform

2013-11-25 Thread gerritqf
Hello usermembers,

I have a question about the startup page for my wicket webapplication.
I made a Loginform class and a Loginform.html which i want to start my
application with.
The Loginform class extends Form.
Now in the application class it is not possible to point to the
Loginform.class like this:

public Class getHomePage()
{
return LoginForm.class;
}

Because Form of "cannot convert from Class to Class"

How can i make this work?, or do i have to make a Loginform which extends
WebPage?

Thanks in advance.
Gerrit



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Newbie-question-startup-wicketapplication-with-loginform-tp4662641.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org