Re: How to pre-populate a file in FileUpload field using wicket 6.9

2013-08-26 Thread Peter Henderson
I think you will find this is prevented by the browser for security reasons.

A naughty web app could fill in the upload with say /etc/passwd which
would be bad.

Peter.


On 25 August 2013 12:12, eeshan.laddha eeshan.lad...@gmail.com wrote:

 How to per-populate a file in FileUpload field using wicket 6.9?



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/How-to-pre-populate-a-file-in-FileUpload-field-using-wicket-6-9-tp4661067.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




-- 
Peter Henderson

Director
Starjar Ltd.
0330 088 1662
www.starjar.com


Re: Styling label tags

2013-08-26 Thread francois meillet
have a look to

http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup/html/form/FormComponentLabel.html
and
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup/html/form/SimpleFormComponentLabel.html

François


On Sun, Aug 25, 2013 at 6:30 PM, Lucio Crusca lu...@sulweb.org wrote:

 I need to dynamically set class=cssClassName to some label tags. Just
 now
 I set the label text with:

   myFormComponent.setLabel(...)

 but how do I change its css class?


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




ajaxlink in ListItem not working

2013-08-26 Thread haiko


Wicket users,

I got an AjaxLink in a ListItem, but there is no response when  
clicking. This is the markup code


ul
  li wicket:id=colors
a wicket:id=selectLinkwicket:container  
wicket:id=color#ff/wicket:container/a

  /li
/ul

Java code

  ListViewString colorView = new ListViewString(kleuren, getKleuren()) {

 @Override
 protected void populateItem(ListItem item) {
 String color = (String) item.getModelObject();
AjaxLink selectColor = new AjaxLink(selectLink,  
Model.of(Color)) {

@Override
public void onClick(AjaxRequestTarget target) {
logger.debug(click color);
}
};

Label kleurLabel = new Label(kleur, kleur);
selectKleur.add(kleurLabel);
item.add(selectKleur);

}
};

add(colorView);

I can see javascript generated for the links in the items, but somehow  
this is not triggered.


javascript code:

...
(function(){Wicket.Ajax.ajax({u:./customizer?1-1.IBehaviorListener.0-customizerForm-stijlPanel-colorSelectiePanel-colorSelectie-submitColor,e:click,c:submitColor25});})();.

Anybody has an idea or experience with ajaxlinks in listitems? How to  
debug this?




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



Re: ajaxlink in ListItem not working

2013-08-26 Thread Sven Meier

Is this the actual code?

  selectColor - selectKleur
  selectLink - submitColor

Sven

On 08/26/2013 12:33 PM, ha...@dds.nl wrote:


Wicket users,

I got an AjaxLink in a ListItem, but there is no response when 
clicking. This is the markup code


ul
  li wicket:id=colors
a wicket:id=selectLinkwicket:container 
wicket:id=color#ff/wicket:container/a

  /li
/ul

Java code

  ListViewString colorView = new ListViewString(kleuren, 
getKleuren()) {


 @Override
 protected void populateItem(ListItem item) {
 String color = (String) item.getModelObject();
AjaxLink selectColor = new AjaxLink(selectLink, 
Model.of(Color)) {

@Override
public void onClick(AjaxRequestTarget target) {
logger.debug(click color);
}
};

Label kleurLabel = new Label(kleur, kleur);
selectKleur.add(kleurLabel);
item.add(selectKleur);

}
};

add(colorView);

I can see javascript generated for the links in the items, but somehow 
this is not triggered.


javascript code:

...
(function(){Wicket.Ajax.ajax({u:./customizer?1-1.IBehaviorListener.0-customizerForm-stijlPanel-colorSelectiePanel-colorSelectie-submitColor,e:click,c:submitColor25});})();. 



Anybody has an idea or experience with ajaxlinks in listitems? How to 
debug this?




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




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



Re: ajaxlink in ListItem not working

2013-08-26 Thread haiko

Sven,

No, I forgot to change the names in the code. The names in the markup  
and java code are the same.


Sven Meier s...@meiers.net schreef:




Wicket users,

I got an AjaxLink in a ListItem, but there is no response when  
clicking. This is the markup code


ul
 li wicket:id=colors
   a wicket:id=selectLinkwicket:container  
wicket:id=color#ff/wicket:container/a

 /li
/ul

Java code

 ListViewString colorView = new ListViewString(kleuren,  
getKleuren()) {


@Override
protected void populateItem(ListItem item) {
String color = (String) item.getModelObject();
   AjaxLink selectColor = new AjaxLink(selectLink,  
Model.of(Color)) {

   @Override
   public void onClick(AjaxRequestTarget target) {
   logger.debug(click color);
   }
   };

   Label kleurLabel = new Label(kleur, kleur);
   selectKleur.add(kleurLabel);
   item.add(selectKleur);

   }
   };

   add(colorView);

I can see javascript generated for the links in the items, but  
somehow this is not triggered.


javascript code:

...
(function(){Wicket.Ajax.ajax({u:./customizer?1-1.IBehaviorListener.0-customizerForm-stijlPanel-colorSelectiePanel-colorSelectie-submitColor,e:click,c:submitColor25});})();. Anybody has an idea or experience with ajaxlinks in listitems? How to debug  
this?




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




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






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



Re: Generating spreadsheet to send to Client fails in 1.6

2013-08-26 Thread BrianWilliams
Not only did this work before, it has worked in every other web technology I've 
tried.  Can anyone on the Wicket team explain how Response handling changed in 
1.5?  I am hoping there is a single line fix, like response.clearBuffer(), that 
will make my existing code work as it always has, rather than refactor this 
with brand new code.
 
Thank you very much.
 


 From: Sven Meier [via Apache Wicket] ml-node+s1842946n466064...@n4.nabble.com
To: BrianWilliams brianwilliams33...@yahoo.com 
Sent: Friday, August 2, 2013 1:17 AM
Subject: Re: Generating spreadsheet to send to Client fails in 1.6
  


Hi, 

I don't know how this worked for you in 1.4.x. 

But if you're just writing something into the response, how should 
Wicket know that it has to stop processing the request? 


Sven 

On 08/02/2013 04:24 AM, BrianWilliams wrote: 




- 
To unsubscribe, e-mail: [hidden email] 
For additional commands, e-mail: [hidden email] 






 
If you reply to this email, your message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/Generating-spreadsheet-to-send-to-Client-fails-in-1-6-tp4660579p4660643.html
  
To unsubscribe from Generating spreadsheet to send to Client fails in 1.6, 
click here.
NAML



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-spreadsheet-to-send-to-Client-fails-in-1-6-tp4660579p4661083.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



Re: Generating spreadsheet to send to Client fails in 1.6

2013-08-26 Thread Sven Meier
Please create a quickstart for Wicket 1.4.x so we can see how your 
solution worked.


Thanks
Sven

On 08/26/2013 04:49 PM, BrianWilliams wrote:

Not only did this work before, it has worked in every other web technology I've 
tried.  Can anyone on the Wicket team explain how Response handling changed in 
1.5?  I am hoping there is a single line fix, like response.clearBuffer(), that 
will make my existing code work as it always has, rather than refactor this 
with brand new code.
  
Thank you very much.
  



  From: Sven Meier [via Apache Wicket] 
ml-node+s1842946n466064...@n4.nabble.com
To: BrianWilliams brianwilliams33...@yahoo.com
Sent: Friday, August 2, 2013 1:17 AM
Subject: Re: Generating spreadsheet to send to Client fails in 1.6
   



Hi,

I don't know how this worked for you in 1.4.x.

But if you're just writing something into the response, how should
Wicket know that it has to stop processing the request?


Sven

On 08/02/2013 04:24 AM, BrianWilliams wrote:




-
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]






  
If you reply to this email, your message will be added to the discussion below:

http://apache-wicket.1842946.n4.nabble.com/Generating-spreadsheet-to-send-to-Client-fails-in-1-6-tp4660579p4660643.html
To unsubscribe from Generating spreadsheet to send to Client fails in 1.6, 
click here.
NAML



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-spreadsheet-to-send-to-Client-fails-in-1-6-tp4660579p4661083.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




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