Re: Employ JQuery Accordion in Wicket

2009-04-01 Thread pixotec

perhaps this will work: it's a dojo accordion pane for wicket 1.3

http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.accordioncontainer.AccordionContainerSample

try it and respond if it is working.
-- 
View this message in context: 
http://www.nabble.com/Employ-JQuery-Accordion-in-Wicket-tp22825442p22827578.html
Sent from the Wicket - User 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: Wicket Phonebook: Maven repos not available, can't build

2008-09-01 Thread pixotec



Martijn Dashorst wrote:
 
 and why even bother using mergere.com or devzus.com as a repo manager?
 

I just installed Maven 2.0.9under Windows, checked out the phonebook and die
mvn package.
I can not find the string mergere in the project's directory, so it must
be at a remote source...

nevertheless, after installing JTA by hand (how it was described in the
error message) everything works now...

now I have two good applications to look into:
- the phonebook
- the cheesr-shop of the ebook Wicket in Action that I bought ;-)
-- 
View this message in context: 
http://www.nabble.com/Wicket-Phonebook%3A-Maven-repos-not-available%2C-can%27t-build-tp19215315p19251706.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Phonebook: Maven repos not available, can't build

2008-08-29 Thread pixotec

Thank you, this solves the SUN part...
But how to avoid using the unreachable repo.mergere.com-repository?
Where is it configured? How to use another repo?
(Sorry I am new to Maven...)
Should you change it in SVN to avoid the problem for other users, too?
-- 
View this message in context: 
http://www.nabble.com/Wicket-Phonebook%3A-Maven-repos-not-available%2C-can%27t-build-tp19215315p19215780.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic Resource/ResourceReference as Model for Image

2008-03-15 Thread pixotec

I have an Image (imgThumbnailSelected) that shows the thumbnail (Resource
thumbnailResource) of a selected image (selectedImage object).
If no image is selected imgThumbnailSelected should show a placeholder
(ResourceReference DialogImagePage.IMG_NO_IMAGE).

I defined the Image and its Model like this:

// thumbnail of selected image
imgThumbnailSelected = new
wicket.markup.html.image.Image(imgThumbnailSelected, new Model()
{
public Object getObject(Component comp)
{
PixoCMSRepository repository = PixoCMSRepository.getInstance();
Resource thumbnailResource =
repository.getThumbnailResource(selectedImage);
if (thumbnailResource == null)
{
   ResourceReference result = DialogImagePage.IMG_NO_IMAGE;
   return result;
} else {
   return thumbnailResource;
}
}
});
imgThumbnailSelected.setOutputMarkupId(true);
add(imgThumbnailSelected);

At the beginning when there is no image selected I always get an empty page
because of this warning:

wicket.markup.html.PackageResource getResourceStream
WARNUNG: Unable to find package resource [path =
de/pixotec/webapps/kms/wicket/panels/[ResourceReference name =
res/noimage.jpg, scope = class
wicket.extensions.markup.html.form.wysiwyg.DialogImagePage, locale = null,
style = null], style = null, locale = de_DE]


de/pixotec/webapps/kms/wicket/panels is the package of the panel
containing above code.
the ResourceReference logged is correct.

When I do a static Model like this:
imgThumbnailSelected = new
wicket.markup.html.image.Image(imgThumbnailSelected,DialogImagePage.IMG_NO_IMAGE);


it works and the no image-image is shown.

How to make the dynamic code work?
Is it a problem that the returned model-object is once a ResourceReference
and once a Reference (Image has constructors for both arguments...)?
Is the Model converted to String as argument for the Image-constructor? If
so: how to force using returned ResourceReference/Reference-objects as
argument for constructors?

-- 
View this message in context: 
http://www.nabble.com/Dynamic-Resource-ResourceReference-as-Model-for-Image-tp16068578p16068578.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[SOLVED] Re: Get Page expired after closing javascript opened window (containing a wicket page)

2007-11-05 Thread pixotec

thank you igor, you saved my project!
after using a link with popupsettings instead using a homebrewed
resquestcycle.urlFor-url it works.
(a speaking exception would have helped...)

thank you


igor.vaynberg wrote:
 
 make sure you are opening your popup in a different pagemap
 
 -igor
 
 
 On 11/2/07, pixotec [EMAIL PROTECTED] wrote:

 I'm developing a CMS in wicket and have a selfmade wysiwyg textarea in
 the
 page.
 when clicking on insert image an image dialog is opened in a new
 window.
 the dialog is a wicket page.
 I provide the url for the dialog in the textarea page by this
 (shortened):

 CharSequence charSequence = RequestCycle.get().urlFor(new
 DialogImagePage(settings));
 js.append(var dialogImageUrl=' + charSequence.toString() + ';\n);
 add(new StringHeaderContributor(js.toString()));

 the source code of the calling page is then:

 ?xml version='1.0' encoding='UTF-8'?

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
   head
   ...
   script type=text/javascript
 !--/*--![CDATA[/*!--*/
 var dialogImageUrl='/kms/app/?wicket:interface=:16::';
 /*--]]*/
   /script
   ...
   script type=text/javascript
   !--
 function openImageDialog() {
   var dialog = window.open(dialogImageUrl, Image,
 status=no,modal=yes,width=700,height=550);
 }
   --
   ...
   script type=text/javascript 
 !--/*--![CDATA[/*!--*/
 if (window.name=='') {
 window.location=/kms/app/?wicket:interface=:14::INewBrowserWindowListener;
 }
 /*--]]*/
   /script
   ...
 /head

 body
 ...
 tdlt;img width=25 height=24 title=Insert image
 wicket:id=btnImage
 onclick=openImageDialog(); onmouseup=drawButtonDown(this);
 src=/kms/app/resources/wicket.extensions.markup.html.form.wysiwyg.WysiwygTextarea/res/btnImage_up.gif
 border=0 alt=Insert image id=btnImage/gt;/td
 ...
 /body
 /html


 after closing the dialog window (using javascript's window.close() or a
 PopupCloseLink) the dialog window is closed.


 When I click then on save in the calling page containing the textarea I
 always get a Page expired.
 Why?

 (even doing a getPageSettings().setAutomaticMultiWindowSupport(true); in
 my
 application did not help...)
 --
 View this message in context:
 http://www.nabble.com/Get-Page-expired-after-closing-javascript-opened-window-%28containing-a-wicket-page%29-tf4737168.html#a13546851
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-Page-expired-after-closing-javascript-opened-window-%28containing-a-wicket-page%29-tf4737168.html#a13586488
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



UploadProgressBar prevents execution of onSubmit-methods of buttons

2007-10-15 Thread pixotec

i have a form with one uploadfield and an uploadprogressbar.
i wanted to start upload by clicking on an upload-button having his own
onSubmit-method.
this did not work. the onSubmit-method is never entered.
when remove uploadprogressbar, it works.
-- 
View this message in context: 
http://www.nabble.com/UploadProgressBar-prevents-execution-of-onSubmit-methods-of-buttons-tf4625016.html#a13208180
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LinkTree lazy loading possible?

2007-09-21 Thread pixotec

I want to use LinkTree to represent a very very large hierarchy (the loading
of the whole thing is expensive...).
Is there an AJAX way of loading the children of a node just when clicking on
the plus-icon for expanding?

-- 
View this message in context: 
http://www.nabble.com/LinkTree-lazy-loading-possible--tf4493231.html#a12814684
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Simple CMS or Wiki

2007-09-08 Thread pixotec

a cms always needs a wysiwyg-textarea.
there is TinyMCE in wicket-contrib project.
if this is to heavy-loaded and difficult to customize for you (as it was for
me) then
I invite you to work with me on my WysiwygTextarea-component which already
is usable for
bold, italic, underline, unorderedlist, orderedlist, subscript, superscript,
indent, outdent, inserting table, undo, redo,
align left, center, right functions

I could put it online for download in a few days if you (or anyone else)
want...
I made it as apache-licensed alternative to tinymce, just for wicket (maybe
for wicket-extension project)




tauren wrote:
 
 I'd like to add some simple CMS and/or wiki features to a wicket
 application.  I don't need anything full featured by any means.  I'm
 looking for pointers to any resources, code, libraries, blogs, or
 anything else that would help jump start adding these features to my
 application.
 
 I'm aware of the wicketstuff kronos-cms project and am starting to
 look into it now.  Also, via kronos-cms, I learned about the apache
 jackrabbit project, but know nothing about it at this time.  It looks
 like it may be pertinent.
 
 Any other advice and suggestions is appreciated!
 
 Tauren
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Simple-CMS-or-Wiki-tf4405034.html#a12567148
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CompressedResourceReference: can't get resource-url of static html in package

2007-09-07 Thread pixotec

I think this will be an easy problem for you all...

I want to create a new component for wicket-extensions: it is a already
working wysiwyg-textarea.
I packaged it like this:

wicket.extensions.markup.html.form.wysiwyg
- WysiwygTextarea.java
- WysiwygTextarea.html
wicket.extensions.markup.html.form.wysiwyg.res
- btnBold_off.gif
- ...
- btnUnorderedList_off.gif
- dialogTable.html
- wysiwygTextarea.js

I made ResourceReferences for all GIFs and added them as Image to the
component's panel.
I added the wysiwygTextarea.js as CompressedResourceReference with
HeaderContributor.forJavaScript.
They all work fine.

the same I wanted to do with dialogTable.html (a static html page containing
no wicket stuff) like this:

- I need the url to this page in WysiwygTextarea.html as javascript variable
'dialogTableUrl' (defined in head):
function openTableDialog() {
var dialog = window.open(dialogTableUrl, Tabelle,
status=no,modal=yes,width=350,height=150);
  }

so I tried
private static final CompressedResourceReference DIALOG_TABLE_HTML = new
CompressedResourceReference(
WysiwygTextarea.class, res/dialogTable.html);

and in onAttach() method (beside other things needed to be here):
StringBuffer js = new StringBuffer();
js.append(JavascriptUtils.SCRIPT_OPEN_TAG);
CharSequence charSequence =
RequestCycle.get().urlFor(DIALOG_TABLE_HTML);
js.append(var dialogTableUrl=' + charSequence.toString() + ';);
js.append(JavascriptUtils.SCRIPT_CLOSE_TAG);
add(new StringHeaderContributor(js.toString()));

but I get:
07.09.2007 21:48:26 wicket.RequestCycle step
SCHWERWIEGEND: package resource
wicket/extensions/markup/html/form/wysiwyg/res/dialogTable.html may not be
accessed
wicket.markup.html.PackageResource$PackageResourceBlockedException: package
resource wicket/extensions/markup/html/form/wysiwyg/res/dialogTable.html may
not be accessed
at wicket.markup.html.PackageResource.init(PackageResource.java:489)
at
wicket.markup.html.CompressedPackageResource.init(CompressedPackageResource.java:51)
at
wicket.markup.html.CompressedPackageResource.get(CompressedPackageResource.java:83)
at
wicket.markup.html.resources.CompressedResourceReference.newResource(CompressedResourceReference.java:49)
at wicket.ResourceReference.bind(ResourceReference.java:149)
at
wicket.ResourceReference.getSharedResourceKey(ResourceReference.java:231)
at wicket.RequestCycle.urlFor(RequestCycle.java:746)
at wicket.RequestCycle.urlFor(RequestCycle.java:730)
at
wicket.extensions.markup.html.form.wysiwyg.WysiwygTextarea.onAttach(WysiwygTextarea.java:104)

How to output the Url to the packaged html page in WysiwygTextarea.html
without bothering (adding code to) the application using the new wysiwyg
component?
-- 
View this message in context: 
http://www.nabble.com/CompressedResourceReference%3A-can%27t-get-resource-url-of-static-html-in-package-tf4403564.html#a12562566
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]