Re: UTF-8

2009-09-01 Thread Wojciech Żaboklicki

Man, use the native2ascii built-in JDK tool.
It's very simple, transforms your messages into ASCII escaped.

Regards,
Wojtek

Olivier Bourgeois pisze:

That's exactly what I said : I had to use XML properties files to have
UTF-8 localized properties.

You can't use simple properties format because Java can't handle
natively anything else than ISO. We use also Tapestry here, and you
can use UTF-8 properties files (thanks to the wrapper around native
Java properties).

XML files are allright, but they are definitively verbose.

2009/9/1 Eelco Hillenius :
  

Erm 
http://chillenious.wordpress.com/2006/11/13/wicket-now-supports-resource-bundles-in-xml-format/
  

Which says Wicket 2.0 (yes, it's that old), but it was also one of the
first things backported. Loading is automatic, and .xml takes
precedence over .properties.

Eelco

-
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



returning resource on ajax request

2009-06-22 Thread Wojciech Żaboklicki

Hi,
I want to do something like ResourceLink returning DynamicWebResource to 
the client, but I can  use only AjaxLink.

Any idea how to do it?

Regards,
Wojtek

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



Re: WicketJQuery: Drag & drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Wojciech Żaboklicki

I think it's the simmilar situation like here
http://www.nabble.com/DOJO-Menu-Items-and-AJAX-Target-Components-td24020833.html

I posted here few days ago about dojo-menus, but I couldn't solve it.

There is a problem attaching js behavior on ajax rerendered components.
Is there anybody here who managed this problem?

Regards,
Wojtek

Stefan Jozsa pisze:

Doing:
public MyPage() {
...
add(new MyPanel("panelId"));
...
}
dragging elements (having DraggableBehavior) of 'MyPanel' works.

However doing:
...
@Override
public void onClick(AjaxRequestTarget target) {
Panel panel = new MyPanel("panelId");
addOrReplace(panel);
target.addComponent(panel);
}

dragging elements of 'MyPanel' DO NOT works

(DraggableBehavior is lost).


What's going on ?
Any help is (very) appreciated,
thanks Stefan

Using:
Wicket-1.4.rc4,
WicketJQuery-0.3.4




  


-
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



DojoContextualMenuBehavior problem

2009-06-15 Thread Wojciech Żaboklicki

Hi, does anyone use DojoMenu class?

I've got some problem with it. I use it for implementing interactive 
tree panel.

The problem is:
When the tree is rendered once, it works all right, but when I 
collapse/expand some node,
it stopps working, the node I colapse/expand and all nodes below starts 
behaving like usual links, context menu disappears.
I mean situation when I expand all nodes on creating, when the tree is 
collapsed at the beginning, just the node rendered at the beginning 
works fine.

The situation is the same when I repaint my tree.


It's piece of code from my treeNode rendering component:

AjaxLink nodeActivationLink;
add(nodeActivationLink);
Label nodeLabel = new Label("node", linkLabel);
nodeActivationLink.add(nodeLabel);
DojoMenu menu = new DojoMenu("menu");
nodeLabel.add(new DojoContextualMenuBehavior(menu));


I appreciate any suggestion.
Regards,
Wojtek


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