Re: searching for a Rich text editor

2013-12-22 Thread Anton Bessonov

Hello Dirk,

I'm not on the track, but this RTEs are just javascript helper to create 
html documents. What do you see? Do you check that javascript loaded, or 
html be escaped? But in generally, it should just work. Have you see 
some examples from wicketstuff:

https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/tinymce-parent/tinymce-examples/src/main/java/wicket/contrib/examples/tinymce
?

Best Regards

Anton

On 18.11.2013 22:13, Dirk Wichmann wrote:

Hi,

I'm searching for Rich text editor to integrate in my page, but at the
moment nothing seems to work.
Found
 Tynimce
 Wicket-jQuery (Kendo)
 Visural Wicket
and examples, but they dont work with wicket 6.12 maybe.
Have you maybe any hint for me??

Thanks in advance
Cheers
Dirk


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




--
Certified Prince2:2009 Project Manager
Professional Scrum Master I & II
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer

Now that's a test of the character of an organization.
Of the organizations that are attempting to implement
Scrum probably, 30% - 35% will successfully implement it.
- Ken Schwaber



Re: Small Wicket 6 Auth Example

2012-09-27 Thread Anton Bessonov

Hello Martin,

I removed it from dependency, thank you!

Best regards,

Anton

On 09/27/2012 09:15 AM, Martin Grigorov wrote:

1.3.7

^^ This is not really needed.


--
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer
Professional Scrum Master I & II

Now that's a test of the character of an organization.
Of the organizations that are attempting to implement
Scrum probably, 30% - 35% will successfully implement it.
- Ken Schwaber


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



Re: Small Wicket 6 Auth Example

2012-09-26 Thread Anton Bessonov

Hello Wicketeers,

now same example for Wicket 6 and Jetty 8:

https://github.com/Bessonov/wicket-6-example

Best regards,

Anton

On 08/12/2012 08:53 PM, Anton Bessonov wrote:

Hello wicketeers,

I've updated my old small Wicket example to 1.5.7 and pushed it to 
github [1]. It's available under cc-by license (also for commercial 
use, redistributing and so on). Maybe helpful for someone.


Example include:
- i18n
- Hibernate (hsqldb is default and mysql example config is included)
- Authentication (Register/Login/Logout, persistent)
- Simple Authorization (is_user, is_anonymous roles)
- Spring DI
- Standalone application packaging (with Jetty and maven-shade-plugin)
- Good test coverage

Following dependencies are declared:
1.5.7
6.1.25
1.6.6
1.2.14
4.1.5.Final
3.9.0.GA
3.1.2.RELEASE
1.3.7
4.8.1
1.4
0.9.1.2
5.1.6
2.2.8

Improvements, comments, forks and pull requests are welcome.

[1] https://github.com/Bessonov/wicket-example

Best regards

Anton 


--
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer
Professional Scrum Master I & II

Now that's a test of the character of an organization.
Of the organizations that are attempting to implement
Scrum probably, 30% - 35% will successfully implement it.
- Ken Schwaber



Small Wicket Auth Example

2012-08-12 Thread Anton Bessonov

Hello wicketeers,

I've updated my old small Wicket example to 1.5.7 and pushed it to 
github [1]. It's available under cc-by license (also for commercial use, 
redistributing and so on). Maybe helpful for someone.


Example include:
- i18n
- Hibernate (hsqldb is default and mysql example config is included)
- Authentication (Register/Login/Logout, persistent)
- Simple Authorization (is_user, is_anonymous roles)
- Spring DI
- Standalone application packaging (with Jetty and maven-shade-plugin)
- Good test coverage

Following dependencies are declared:
1.5.7
6.1.25
1.6.6
1.2.14
4.1.5.Final
3.9.0.GA
3.1.2.RELEASE
1.3.7
4.8.1
1.4
0.9.1.2
5.1.6
2.2.8

Improvements, comments, forks and pull requests are welcome.

[1] https://github.com/Bessonov/wicket-example

Best regards

Anton

--
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer
Professional Scrum Master I & II



Re: internationalizing page title

2011-02-27 Thread Anton Bessonov

Hello Josh,

have you found any solution?

Best regards,

Anton

Am trying to internationalize the page title. The below snipplet doesnt seem
to work. Where am i going wrong?



 
 
 


regards
Josh




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



Re: TreeTabel and file download

2011-02-23 Thread Anton Bessonov

Hello Martin,

thanks for your reply! You mean override newLink method in 
DefaultAbstractTree?



See DownloadLink.

On Fri, Dec 31, 2010 at 3:19 AM, Anton Bessonovwrote:


Hello list,

I'm trying to implement small file browser and I use TreeTable.
PropertyTreeColumn shows file names and I can get (newCell ->
getTreeTable().getTreeState().isNodeSelected(node)) java.io.File. Now, I'm
need force to download file after click on the file name. Any suggestions?

Thanks,

Anton

-
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: Wicket with fest assert

2011-01-21 Thread Anton Bessonov

Of course!

https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html

It must be built in :)


There is a room for improvement in that area.



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



Re: TreeTabel and file download

2010-12-31 Thread Anton Bessonov

I solved it.

new PropertyTreeColumn(new 
ColumnLocation(Alignment.MIDDLE, 8, Unit.PROPORTIONAL),

"", "userObject.name") {
@Override
public IRenderable newCell(TreeNode node, int level)
{
if 
(getTreeTable().getTreeState().isNodeSelected(node)) {
File f = new PropertyModel(node, 
"userObject.file").getObject();
ResourceStreamRequestTarget res = new 
ResourceStreamRequestTarget(

new FileResourceStream(f), f.getName());
getRequestCycle().setRequestTarget(res);
return null;
} else {
return super.newCell(node, level);
}
}
}

and

TreeTable tree = new TreeTable("treeTable", createTreeModel(), columns);
tree.setLinkType(TreeTable.LinkType.REGULAR);

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



TreeTabel and file download

2010-12-30 Thread Anton Bessonov

Hello list,

I'm trying to implement small file browser and I use TreeTable. 
PropertyTreeColumn shows file names and I can get (newCell -> 
getTreeTable().getTreeState().isNodeSelected(node)) java.io.File. Now, 
I'm need force to download file after click on the file name. Any 
suggestions?


Thanks,

Anton

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



Re: Simple way to show image on WebPage

2010-12-28 Thread Anton Bessonov

Hi Martin,

thanks! DynamicImageResource does this!

Best Regards,

Anton


Hi Anton,

you need custom Resource or ResourceReference to load the image.
See
org.apache.wicket.markup.html.image.Image.Image(String, ResourceReference)
org.apache.wicket.markup.html.image.Image.Image(String, Resource)
and different implementations
of org.apache.wicket.markup.html.image.resource.DynamicImageResource

On Tue, Dec 28, 2010 at 7:16 PM, Anton Bessonovwrote:


Hi Andrea,

thanks for your reply, but this is'nt exactly what I want. ContextImage
generate stateless path, also not binded to session. What I need is cryptic
path such as for Link-Component.

Best regards,

Anton

  add(new ContextImage("icon", "images/imageFileName.jpg"));

-
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: Simple way to show image on WebPage

2010-12-28 Thread Anton Bessonov

Hi Andrea,

thanks for your reply, but this is'nt exactly what I want. ContextImage 
generate stateless path, also not binded to session. What I need is 
cryptic path such as for Link-Component.


Best regards,

Anton
add(new ContextImage("icon", "images/imageFileName.jpg")); 



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



Simple way to show image on WebPage

2010-12-24 Thread Anton Bessonov

Hello,

I've folder of images such as $PROJECT_ROOT/images/
and in 
$PROJECT_ROOT/src/main/java/org/myproject/myprofile/MyProfilePage.java:


package org.myproject.myprofile;

public class MyProfilePage extends WebPage {
...
  public MyProfilePage() {
...
class MyProfileForm extends Form {
...
  // user.getImagePath() return for example images/1
  add(new Image("myimage", user.getImagePath()));

but it's create 404-link:
http://localhost:8081/myproject/resources/org.myproject.myprofile.MyProfilePage/images/1_de_DE

What is the best way for this, if I need session-binded images?

Thanks!

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



Re: Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov

Thanks, I will try!


Use getters:

https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html

   



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



Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov

Hello list,

I'm trying to set checkboxes with junit but without significant success. 
My trouble is to find checkboxes. I've not found any way to access it if 
I use CheckBoxMultipleChoice. With CheckGroup I get access with Visitor


tester.getLastRenderedPage().visitChildren(Check.class, new
IVisitor() {
public Object component(Component component) {

if(component.getDefaultModelObject().equals("TestLabel"))

[...]

but it's very ugly way. Any suggestions?

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



Re: Sort column header for PageableListView

2010-08-19 Thread Anton Bessonov

Hi! Like this?
https://cwiki.apache.org/confluence/display/WICKET/Simple+Sortable+DataTable+Example

Best Regards,

Anton

Hi All,

My project is already developed in Wicket framework. In which
PageableListView is used to display number of records with pagination.
Further i have to make this list sortable on clicking its column header.
I could find examples given for DataTable to sort, but can anybody give me
sample code for PageableListView to sort by column header click.

I will be thankful.. 


Deepa.. .
  



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