Re: FileUploadField in a form in a modalWindow

2019-01-09 Thread JavaTraveler
Hi

So, apparently, the solution is that the fileUploadField in a form in a
modalWindow doesn't work when used on a local server (maybe localhost ... is
causing the trouble).

Thank you a lot for your time.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: FileUploadField in a form in a modalWindow

2019-01-07 Thread JavaTraveler
I tried the first part and no when I click the button, none of those is
called.

But I don't undestand what you mean by debugging glassfish's
ServletHttpResponse implementation.
Could you be more specific ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: FileUploadField in a form in a modalWindow

2019-01-04 Thread JavaTraveler
The response : 

400 Bad Request

Connection  close
Content-Length  1082
Content-Typetext/html;charset=ISO-8859-1
DateFri, 04 Jan 2019 07:54:37 GMT
Server GlassFish Server Open Source Edition 4.1
X-Powered-By Servlet/3.1 JSP/2.3 (GlassFish… Java/Oracle Corporation/1.8)

What's weird is that the response 's parameters contains the file and its
data that i'm uploading ...

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



FileUploadField in a form in a modalWindow

2019-01-03 Thread JavaTraveler
Hello everyone,

Happy new Year !!!

I'd like to ask you something for this new year ^^

I wish to upload a .csv file through a FileUploadField, wich is in a Form,
and in a modal Window. But every try, I get an ajax error : ERROR:
Wicket.Ajax.Call.failure: Error while parsing response: Could not find root
 element.
And then I realised that my FileUpload was always null.

Browsing the forum and other sites, I got that Ajax and FileUploadField
don't go along that well, and that I should use an IFrame.

But I don't really get what that means. Could anyone help me a bit ?

Thanks a lot in advance.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: ModalWindows in a listView

2018-10-31 Thread JavaTraveler
Yes thank you. By putting it outside and setting the content in the link, it
worked. Thank you very much :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: ModalWindows in a listView

2018-10-31 Thread JavaTraveler
Ok, so how would you do it ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



ModalWindows in a listView

2018-10-31 Thread JavaTraveler
Hello everyone,

I have a question. Is it possible to add modal windows in a listView. I have
tried, but it doesn't on wich line I click, the corresponding modal window
will always concern the last item of my list.
Here's how I do it :


lArt = new ListView("articles", new
LoadableDetachableModel>() {
@Override
protected List load() {
  return BusinessFactory.getArticleEjb().searchDto(ARTICLESEARCH,
ARTICLELOAD);
}
  }) {
@Override
protected void populateItem(final ListItem _itemRow) {
  _itemRow.setOutputMarkupId(true);
  _itemRow.add(new Label("code",
_itemRow.getModelObject().getCode()));
modalWindowLibelle = new ModalWindow("modalWindowLibelle");
  modalWindowLibelle.setContent(new
ModifierArticlePanel(modalWindowLibelle.getContentId(),
_itemRow.getModelObject()));
  modalWindowLibelle.setTitle("Modifier le libellé d'article ?");
  modalWindowLibelle.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {
@Override
public void onClose(AjaxRequestTarget target){
target.add(tabArticles);
}
  }); 
  AjaxLink btnLib = new AjaxLink("btnLib") {
@Override
public void onClick(AjaxRequestTarget art) {
  modalWindowLibelle.show(art);
}
  };
  btnLib.add(new Image("imgLib", new
PackageResourceReference(TemplatePage.class, "images/magnifier.png")));
  
  modalWindowPrix = new ModalWindow("modalWindowPrix");
  modalWindowPrix.setContent(new
ModifierPrixArticlePanel(modalWindowPrix.getContentId(),   
_itemRow.getModelObject()));
  modalWindowPrix.setTitle("Modifier le libellé d'article ?");
  modalWindowPrix.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {
@Override
public void onClose(AjaxRequestTarget target){
target.add(tabArticles);
}
  }); 
  AjaxLink btnPrix = new AjaxLink("btnPrix") {
@Override
public void onClick(AjaxRequestTarget art) {
  modalWindowPrix.show(art);
}
  };
  btnPrix.add(new Image("imgPrix", new
PackageResourceReference(TemplatePage.class, "images/magnifier.png")));
  
  _itemRow.add(btnLib);
  _itemRow.add(btnPrix);
  _itemRow.add(modalWindowLibelle);
  _itemRow.add(modalWindowPrix);
};


Any ideas ?

Thank you very much in advance.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket architecture

2018-09-10 Thread JavaTraveler
Or maybe like that ?


 

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket architecture

2018-09-10 Thread JavaTraveler
Or maybe like that ?


 

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Wicket architecture

2018-09-10 Thread JavaTraveler
Hello everyone !

I have made a drawing to represent the functionning of Wicket, and I was
wondering if you would agree with this representation.


 

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Form in a modal window in only one class

2018-09-05 Thread JavaTraveler
So I think I managed to do it, by passing as a parameter of the panel's
constructor the object taking the data.

Thank you every one :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Form in a modal window in only one class

2018-09-04 Thread JavaTraveler
I see. Thank you. I did that.
But as I understand it, the content of my modalWindow is another page :
  modalWindow.setContent(new
AjouterArticle(modalWindow.getContentId());

But then how do I get the data from this modal window ?
I'm sorry if my questions are stupid. But I don't understand.

Thank you in advance

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Form in a modal window in only one class

2018-09-03 Thread JavaTraveler
Hi!
Sorry, I'm not very clear.

What I wish to do :
a page with a button that opens a pop up window. In this pop up window, i
would like to have a form. The informations in this form (from the pop up)
will have to go back to the original page to be treated.

So I'm looking for the most efficient way to do that.
Do you have any idea ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AW: Form in a modal window in only one class

2018-08-31 Thread JavaTraveler
Well, or does anyone know how to retrieve the data from the inputs of a panel
?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AW: Form in a modal window in only one class

2018-08-30 Thread JavaTraveler
Right sorry.
A wicket modal window.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Form in a modal window in only one class

2018-08-30 Thread JavaTraveler
Hello everyone,

I wanted to add a modal window with a form inside it on a page.
But I'd like to do it in juste one class. Describe the modal window and then
call it in one class.

I can do it with two classes, but I'm not satsfied by this solution.

Is there any way ?

Thanks in advance. And have a good day :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AjaxLink and AjaxFormComponentUpdatingBehavior

2018-07-19 Thread JavaTraveler
I'd like to, but I havn't done much. Just swapped the ajaxLink with an
AjaxSubmitLink.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AjaxLink and AjaxFormComponentUpdatingBehavior

2018-07-19 Thread JavaTraveler
Why ? Easy !
I have been learning, so couldn't help, because I didn't know the answers to
the other's questions.

Now I BEGIN to understand, so if I can, I'll help, but only if I can.
So that won't be a lot.

And by the way, guess what ? Being condescending doesn't make people wan't
to do what you ask.
In my case, it's the opposite. But it doesn't matter since I wanted to take
part anyway.

So good bye and have a nice day.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Use a property file to change the choose one option

2018-06-26 Thread JavaTraveler
Hello everyone, I have another question.

Where do you put the properties file to change the label of the null option
for a dropdownchoice ?
Next to your java class ? Can you put in the same arboresence in resources,
like for the css files ?

And what do you write in it ?
.null ? .nullvalid ?


My dropdown has it's "setNullValid" to false.

I found multiple solutions on the internet, but none have worked yet.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: DropDownChoice and null value

2018-06-25 Thread JavaTraveler
Ok thank you, interesting component. I'll try it :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



DropDownChoice and null value

2018-06-25 Thread JavaTraveler
Hello everyone, I wish to get rid of the "choose one" option. Wich is
equivalent to null, if i'm not mistaken.

ddlSociete = new DropDownChoice("societe", new
PropertyModel(pointageMasseSearchDto, "societe"), new
LoadableDetachableModel>() {
  @Override
  protected List load() {
return societes;
  }
  
}, new ChoiceRenderer("numeroLibelle", "numero"));

I was thinking about imposing a default value to replace the null one with
one from my List.
I tried everything i could find but nothing worked. It can't be that
complicated, can it ?

THanks in advance for your answers.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AjaxLink and AjaxFormComponentUpdatingBehavior

2018-06-25 Thread JavaTraveler
I see, well I found a solution that seems to work with an AjaxSubmitLink :)
Thank you all

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



AjaxLink and AjaxFormComponentUpdatingBehavior

2018-06-22 Thread JavaTraveler
Hello everyone !!!

I wish to add a JQueryBlockUIBehavior, so I'm adding an
AjaxFormComponentUpdatingBehavior.
But when I click on the link, i get the error :
Behavior (.) can only be added to an instance of a FormComponent.

 linkPointage.add(new
JQueryBlockUIBehavior(JQueryBlockUIBehavior.JQUERY_ACTION_ONCHANGE,
"Veuillez patienter..."));
linkPointage.add(new AjaxFormComponentUpdatingBehavior("change"){
  @Override
  protected void onUpdate(AjaxRequestTarget _target) {
_target.add(panelTableau);
  }
});


But I'm already using for a dropdownchoice, not in formcomponent, and it's
working.

Could anyone help me ? Please.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Basket in session

2018-05-28 Thread JavaTraveler
I made it !
I was using Panier pan = WebSession.get();
instead of
Panier pan = Panier.get();
!

Thank you anyway, you're the bests ! :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Basket in session

2018-05-28 Thread JavaTraveler
myproject.7z
  
Like this ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Basket in session

2018-05-28 Thread JavaTraveler
I'd be glad to. But what do you mean by quickstart ?

That ? https://wicket.apache.org/start/quickstart.html

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Basket in session

2018-05-28 Thread JavaTraveler
Thanks for the advice, I subscribed.


I'm sorry to be a bother, but I don't get it. 

I already was using the wicket guide.
And yet, I don't get how to use the session class.

I have made a class extending Session (I have also tried WebSession).
Then I try to access it on another class. 
HttpSession pan = ((ServletWebRequest)RequestCycle.get().
getRequest()).getContainerRequest().getSession();

But it doesn't work I get a null exception.

I missing something, but I can't see what.
Any idea ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Basket in session

2018-05-25 Thread JavaTraveler
Hello !

I have been trying to make a basket for an e-commerce application.

But I don't understand how to use the session's system in wicket.

Anyone have a good source I could read ?

Right now, I'm trying a class with "@SessionScoped" like in JSF. But, I had
no results so far.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: ListView

2018-05-24 Thread JavaTraveler
Quickstart ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: ListView

2018-05-24 Thread JavaTraveler
Hello !

So no sorry, it does not work.
The solution of Maxim does nothing different.
And the one from Sven makes a mistake since my ListView needs a list of
pieces, and pieceModel is just a Piece.

Any other solutions ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: ListView

2018-05-24 Thread JavaTraveler
Ok, so I managed to pass the piecesModel !
Thank you, it seems to be working :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



ListView

2018-05-23 Thread JavaTraveler
Hello,

Does anyone know how to update a listView with an ajaxButton, after it's
construction when it was empty ?
For now, I have this :

 final ListView pieceView = new ListView("pieceView", pieces)
{
/**
 * 
 */
private static final long serialVersionUID = 
1569632937178977468L;

@Override
protected void populateItem(ListItem item) {
item.add(new Label("refPiece", new 
PropertyModel(item.getModel(),
"refPiece")));
}
};
pieceView.setOutputMarkupId(true);


final WebMarkupContainer wmc = new WebMarkupContainer("wmc");
wmc.setOutputMarkupId(true);

wmc.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));

wmc.add(pieceView);


final AjaxButton button2 = new AjaxButton("rechercheModele"){
/**
 * 
 */
private static final long serialVersionUID = 
-4334196093047066924L;

@Override
public void onSubmit(AjaxRequestTarget target, Form 
formF) {
super.onSubmit(target, formF);

libPieces.clear();

pieces = pieceDAO.getByMod(modeleModel);

for (int i = 0; i < pieces.size(); i++) {
libPieces.add(i, 
pieces.get(i).getRefPiece());
}   

target.add(wmc.add(pieceView));

target.add(piece);
}



I made something similar with a dropdownchoice which works perfectly. I
guess I'm doing something wrong. But I can't put my finger on it.

Can anyone help me ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Difficulties

2018-05-23 Thread JavaTraveler
All right sorry, it's ok, it works !

I was using, without realising it, a JSF form ^^

Really sorry for the trouble.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Difficulties

2018-05-23 Thread JavaTraveler
Hello !
I managed to do so, and make it a panel, with .
But The button still refuse to work ^^
I'm trying anything I can find.

Any idea ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Difficulties

2018-05-22 Thread JavaTraveler
Yes it is. It shouldn't be ?

My idea was to make a template. A sidebar for searching always available.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Difficulties

2018-05-22 Thread JavaTraveler
On that subject, I have another question if you don't mind.
I got troubles with IFrame. I have a submit button in a form inside the
iFrame. This button doesn't do anything.

But if I do the same button outside of the iframe, everything works fine.

Is this normal ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Difficulties

2018-05-22 Thread JavaTraveler
It works, that's great, thank you so much ! :D

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Difficulties

2018-05-22 Thread JavaTraveler
Hello everyone,

I'm extremely new to the wicket Framework. Trying to learn since last week
:)

I'm searching for some help.

I have made a page that I want to become a side bar. This page has an ejb
injection in it:

private static final long serialVersionUID = 1L;

@EJB(name="ejb/marques") private MarqueLocal marqueDAO;
@EJB(name="ejb/types") private TypeLocal typeDAO;

//  private ServiceLocal svc= new Service();


final Marque marqueModel = new Marque();
final Type typeModel = new Type();

Form form = new Form("formFiltre");

private List marques = new ArrayList();

private List types= new ArrayList();


public Sidebarleft(final PageParameters parameters) {
super(parameters);

marques = marqueDAO.getAll();
final DropDownChoice marque = new 
DropDownChoice("marque",
new PropertyModel(marqueModel.getLibMarque(), "marques"), marques);

types = typeDAO.getAll();
final DropDownChoice type= new 
DropDownChoice("type", new
PropertyModel(typeModel.getLibType(), "types"), types);


add(form);

form.add(marque);
form.add(type);
}


This works. But, if I want to call this page in another. I only find this
solution, wich doesnt work since my constructor has no string parameter :
add(sidebarleft = new Sidebarleft("sidebarleft"));


Does anyone have any idea ?

In advance, I thank you very much for your help.



--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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